2010-07-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
[official-gcc.git] / gcc / ChangeLog
blob3e96698dbf59c5a3044a0d0c4f7f5f0d730f5489
1 2010-07-15  Jie Zhang  <jie@codesourcery.com>
3         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
4         cortex_a8_issue_ls.
6 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
8         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
9         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
11 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13         * config/spu/spu.c (reg_names): Remove prototype.
14         (call_used_regs): Likewise.
16 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
18         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
19         "unused" with attribute "used".
20         (__JCR_END__): Likewise.
21         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
22         "used" attribute.
23         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
25 2010-07-14  Richard Guenther  <rguenther@suse.de>
27         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
28         (maybe_fixup_decls): Likewise.
29         (input_gimple_stmt): Do not fixup anything.
30         * lto-streamer-out.c (output_gimple_stmt): Make sure all
31         non-automatic variable uses are wrapped inside a MEM_REF.
33 2010-07-14  Richard Henderson  <rth@redhat.com>
35         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
36         for functions.
37         * varasm.c (assemble_variable): Remove early exit for functions;
38         assert that we're given a variable.
40 2010-07-14  Jie Zhang  <jie@codesourcery.com>
42         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
43         cortex_a8_default when neon_type is not none.
45 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
47         * lower-subreg.c (subreg_context): New static bitmap.
48         (decompose_multiword_subregs): Allocate and free it.
49         (find_decomposable_subregs): Set a bit in it for a register that
50         occurs in a subreg that changes mode but not size.
51         (can_decompose_p): Test it instead of non_decomposable_context.
53 2010-07-14  Richard Guenther  <rguenther@suse.de>
55         PR tree-optimization/44824
56         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
57         is_gimple_mem_ref_addr.
58         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
59         non-decl_address_invariant_p addresses.
61 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
63         * reload.c (find_reloads): Revert code to penalize small register
64         classes that was brought in with the IRA merge.
66 2010-07-14  Richard Guenther  <rguenther@suse.de>
68         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
69         as base of ARRAY_REFs.
71 2010-07-14  Richard Guenther  <rguenther@suse.de>
73         PR middle-end/44930
74         * tree-pretty-print.c (do_niy): Do not print a newline.
76 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
78         * ira-int.h (struct ira_object): New.
79         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P
80         for it.
81         (struct ira_allocno): Remove members min, max,
82         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
83         conflict_allocnos_num and conflict_vec_p.  Add new member object.
84         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
85         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
86         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
87         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
88         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
89         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
90         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
91         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
92         an ira_object_t rather than ira_allocno_t.  All uses changed.
93         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
94         contains a vector of ira_object_t; all uses changed.
95         (ira_objects_num): Declare variable.
96         (ira_create_allocno_object): Declare function.
97         (ira_conflict_vector_profitable_p): Adjust prototype.
98         (ira_allocate_conflict_vec): Renamed from
99         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
100         (ira_allocate_object_conflicts): Renamed from
101         ira_allocate_allocno_conflicts; first arg now ira_object_t.
102         (struct ira_object_iterator): New.
103         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
104         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
105         to conflict_vec_p.  All uses changed.
106         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
107         Changed to take into account that conflicts are now tracked for
108         objects.
109         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from
110         CONFLICT_ALLOCNO_P.  Args changed to accept ira_object_t.  All
111         uses changed.
112         (allocnos_conflict_p): New static function.
113         (collected_conflict_objects): Renamed from collected_allocno_objects;
114         now a vector of ira_object_t.  All uses changed.
115         (build_conflict_bit_table): Changed to take into account that
116         conflicts are now tracked for objects.
117         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
118         (print_allocno_conflicts, ira_build_conflicts): Likewise.
119         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
120         setup_allocno_left_conflicts_size, allocno_reload_assign,
121         fast_allocation): Likewise.
122         * ira-lives.c (make_hard_regno_born, make_allocno_born)
123         process_single_reg_class_operands, process_bb_node_lives): Likewise.
124         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
125         Likewise.
126         * ira-build.c (ira_objects_num): New variable.
127         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
128         contains a vector of ira_object_t; all uses changed.
129         (ira_object_id_map_vec): Corresponding change.
130         (object_pool): New static variable.
131         (initiate_allocnos): Initialize it.
132         (finish_allocnos): Free it.
133         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
134         New functions.
135         (ira_create_allocno): Don't set members that were removed.
136         (ira_set_allocno_cover_class): Don't change conflict hard regs.
137         (merge_hard_reg_conflicts): Changed to take into account that
138         conflicts are now tracked for objects.
139         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
140         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
141         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
142         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
143         setup_min_max_conflict_allocno_ids, ):  Likewise.
144         ((add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
145         to ira_object_t; all callers changed.
146         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
147         to ira_object_t, all callers changed.
148         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
149         to ira_object_t, all callers changed.
150         (conflict_check, curr_conflict_check_tick): Renamed from
151         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
152         changed.
153         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
154         arg changed to ira_object_t, all callers changed.
155         (create_cap_allocno): Call ira_create_allocno_object.
156         (finish_allocno): Free the corresponding object.
157         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
158         callers changed.  Adjusted for dealing with objects.
159         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
160         dealing with objects.
161         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
163         * ira-int.h (struct live_range): Rename allocno member to object and change
164         type to ira_object_t.
165         (struct ira_object): New member live_ranges.
166         (struct ira_allocno): Remove member live_ranges.
167         (ALLOCNO_LIVE_RANGES): Remove.
168         (OBJECT_LIVE_RANGES): New macro.
169         (ira_create_live_range, ira_copy_live_range_list,
170         ira_merge_live_range_list, ira_live_ranges_intersect_p,
171         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
172         * ira-build.c (ira_create_object): Initialize live ranges here.
173         (ira_create_allocno): Not here.
174         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
175         changed to ira_object_t, all callers changed.
176         (copy_live_range): Rename from copy_allocno_live_range, all callers
177         changed.
178         (ira_copy_live_range_list): Rename from ira_copy_allocno_live_range_list,
179         all callers changed.
180         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
181         all callers changed.
182         (ira_live_ranges_intersect_p): Rename from
183         ira_allocno_live_ranges_intersect_p, all callers changed.
184         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
185         callers changed.
186         (ira_finish_live_range_list): Rename from
187         ira_finish_allocno_live_range_list, all callers changed.
188         (change_object_in_range_list): Rename from change_allocno_in_range_list,
189         last arg changed to ira_object_t, all callers changed.
190         (finish_allocno): Changed to expect live ranges in the allocno's object.
191         (move_allocno_live_ranges, copy_allocno_live_ranges,
192         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
193         ira_flattening, ira_build): Likewise.
194         * ira-color.c (allocnos_have_intersected_live_ranges_p,
195         slot_coalesced_allocno_live_ranges_intersect,
196         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
197         * ira-conflicts.c (build_conflict_bit_table): Likewise.
198         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
199         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
200         make_allocno_dead, create_start_finish_chains,
201         remove_some_program_points_and_update_live_ranges,
202         ira_debug_live_range_list): Likewise.
204         * ira-int.h (ira_object_conflict_iterator): Rename from
205         ira_allocno_conflict_iterator.
206         (ira_object_conflict_iter_init): Rename from
207         ira_allocno_conflict_iter_init, second arg changed to
208         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
209         FOR_EACH_ALLOCNO_CONFLICT.
210         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
211         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
212         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
213         * ira-conflicts.c (print_allocno_conflicts): Likewise.
215 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
217         PR other/44874
218         * tree-dump.c (dump_options): Add enumerate_locals entry.
219         Add TDF_NOID exclusion to all entry.
220         * tree-dump.h (dump_enumerated_decls): Declare.
221         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
222         Don't display type uid.
223         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
224         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
225         * tree-ssa-live.c: Include gimple.h.
226         (numbered_tree_d): New struct.
227         (numbered_tree): New typedef.
228         (DEF_VEC_O (numbered_tree): New.
229         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
230         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
231         (dump_enumerated_decls): Likewise.
232         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
233         debug info and flag_dump_final_insns, call dump_enumerated_decls.
234         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
235         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
237 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
239         * expmed.h (MAX_BITS_PER_WORD): Move to...
240         * defaults.h (MAX_BITS_PER_WORD): ...here.
242 2010-07-13  DJ Delorie  <dj@redhat.com>
244         * config/h8300/h8300.c (h8300_init_once): Default to
245         -fstrict_volatile_bitfields.
247         * config/sh/sh.c (sh_override_options): Default to
248         -fstrict_volatile_bitfields.
250         * config/rx/rx.c (rx_option_override): New.
252         * config/m32c/m32c.c (m32c_override_options): Default to
253         -fstrict_volatile_bitfields.
255 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
257         * tree.h (build_function_call_expr): Delete.
258         (build_call_expr_loc_array): New function.
259         (build_call_expr_loc_vec): New function.
260         * tree-flow.h (struct omp_region): Change type of ws_args field
261         to a VEC.
262         * builtins.c (build_function_call_expr): Delete.
263         (build_call_expr_loc_array): New function.
264         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
265         (build_call_expr): Likewise.
266         (build_call_expr_loc_vec): New function.
267         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
268         build_function_call_expr.
269         * expr.c (emutls_var_address): Likewise.
270         * varasm.c (emutls_common_1): Likewise.
271         * omp-low.c (expand_omp_atomic_mutex): Likewise.
272         (expand_omp_taskreg): Adjust for new type of region->ws_args.
273         (get_ws_args_for): Return a VEC instead of a tree.
274         (expand_parallel_call): Call build_call_expr_loc_vec instead of
275         build_function_call_expr.
276         * stor-layout.c (self_referential_size): Likewise.
278 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
280         PR testsuite/44701
281         * recog.c (constrain_operands): Allow side-effects in memory
282         operands if either < or > constraint is used, rather than if
283         both < and > is used.
285 2010-07-13  Richard Guenther  <rguenther@suse.de>
287         PR middle-end/44911
288         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
289         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
290         without name.
292 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
294         PR target/44761
295         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
296         to variable emited.
297         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
298         * config/sh/sh.md (symGOT_load): Likewise.
299         (symDTPOFF2reg): Likewise.
300         (symTPOFF2reg): Likewise.
302 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
304         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
305         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
307 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
309         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
310         explanation.
311         Find ucontext_t * on Solaris 11.
312         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
313         Handle new Solaris 11 __sighndlr patterns.
315 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
317         PR debug/44901
318         * vec.h (VEC_block_remove): Fix comment.
319         * tree-ssa-live.c (remove_unused_locals): Don't use
320         VEC_unordered_remove on local_decls, instead replace a single
321         vector element in each iteration if at least one element had
322         to be removed and VEC_truncate at the end.
323         * omp-low.c (expand_omp_taskreg): Likewise.
325 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
327         * c-decl.c (finish_function): Fix typo in comment.
328         
329 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
331         PR bootstrap/44921
332         * postreload.c (move2add_use_add3_insn): Silence gcc warning
333         on min_regno.
335 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
337         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
338         (simplify_stmt_using_ranges): Use it.
340 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
342         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
343         member.  Do not mark as GTY(()).
344         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
345         (spu_builtin_decls): New static variable.
346         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
347         (spu_init_builtins): Likewise.
348         (spu_builtin_mul_widen_even): Likewise.
349         (spu_builtin_mul_widen_odd): Likewise.
350         (spu_builtin_mask_for_load): Likewise.
351         (spu_builtin_vec_perm): Likewise.
352         * config/spu/spu-c.c: Include "target.h".
353         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
354         of using spu_builtins[].fndecl.
356 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
358         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
359         imply -minterlink-mips16.
361 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
363         * config/mips/mips.h (mips16_globals): Declare.
364         (SWITCHABLE_TARGET): Define.
365         * config/mips/mips.c: Include target-globals.h.
366         (mips16_globals): New variable.
367         (mips_set_mips16_mode): Use save_target_globals and
368         restore_target_globals instead of target_reinit.
370 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
372         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
373         to say that the function can be called more than once.
374         * target-globals.c (save_target_globals): Call init_reg_sets.
376 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
378         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
379         * bb-reorder.h: New file.
380         * bb-reorder.c (default_target_bb_reorder): New variable.
381         (this_target_bb_reorder): New conditional variable.
382         (uncond_jump_length): Redefine as a macro.
383         * target-globals.h (this_target_bb_reorder): Declare.
384         (target_globals): Add a bb_reorder field.
385         (restore_target_globals): Copy the bb_reorder field to
386         this_target_bb-reorder.
387         * target-globals.c: Include bb-reorder.h.
388         (default_target_globals): Initialize the bb_reorder field.
389         (save_target_globals): Likewise.
391 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
393         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
394         * gcse.h: New file.
395         * gcse.c: Include gcse.h.
396         (default_target_gcse): New variable.
397         (this_target_gcse): New conditional variable.
398         (can_copy): Redefine as a macro.
399         (can_copy_init_p): New macro.
400         (can_copy_p): Remove can_copy_init_p.
401         * target-globals.h (this_target_gcse): Declare.
402         (target_globals): Add a gcse field.
403         (restore_target_globals): Copy the gcse field to
404         this_target_gcse.
405         * target-globals.c: Include gcse.h.
406         (default_target_globals): Initialize the gcse field.
407         (save_target_globals): Likewise.
409 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
411         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
412         and x_ira_prohibited_mode_move_regs_initialized_p.
413         (ira_prohibited_mode_move_regs): Redefine as a macro.
414         * ira.c (ira_prohibited_mode_move_regs): Delete.
415         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
417 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
419         * reload.h (target_reload): Add x_cached_reg_save_code and
420         x_cached_reg_restore_code.
421         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
422         Redefine as macros.
424 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
426         * Makefile.in (target-globals.o): Depend on builtins.h.
427         * builtins.h: New file.
428         * builtins.c: Include builtins.h.
429         (default_target_builtins): New variable.
430         (this_target_builtins): New conditional variable.
431         (apply_args_mode, apply_result_mode): Redefine as macros.
432         * target-globals.h (this_target_builtins): Declare.
433         (target_globals): Add a builtins field.
434         (restore_target_globals): Copy the builtins field to
435         this_target_builtins.
436         * target-globals.c: Include builtins.h.
437         (default_target_globals): Initialize the builtins field.
438         (save_target_globals): Likewise.
440 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
442         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
443         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
444         from expmed.c.
445         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
446         (alg_hash, alg_hash_used_p): New macros.
447         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
448         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
449         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
451 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
453         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
454         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
455         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
456         (this_op_costs, costs_classes): Redefine as macros.
457         (record_reg_classes): Don't take op_costs as a parameter.
458         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
459         (scan_one_insn): Update call to record_operand_costs.
461 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
463         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
464         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
465         (target_ira_int): New structure.
466         (default_target_ira_int): Declare.
467         (this_target_ira_int): Declare as a variable or define as a macro.
468         (ira_reg_mode_hard_regset, ira_register_move_cost)
469         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
470         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
471         (prohibited_class_mode_regs, ira_important_classes_num)
472         (ira_important_classes, ira_reg_class_intersect)
473         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
474         (ira_reg_class_union): Redefine as macros.
475         * ira.h (target_ira): New structure.
476         (default_target_ira): Declare.
477         (this_target_ira): Declare as a variable or define as a macro.
478         (ira_available_class_regs, ira_hard_regno_cover_class)
479         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
480         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
481         (ira_class_hard_regs_num): Redefine as macros.
482         * ira.c (default_target_ira, default_target_ira_int): New variables.
483         (this_target_ira, this_target_ira_int): New conditional variables.
484         (ira_reg_mode_hard_regset, ira_memory_move_cost)
485         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
486         (ira_class_subset_p): Delete.
487         (no_unit_alloc_regs): Redefine as a macro.
488         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
489         (ira_class_hard_regs_num, ira_class_hard_reg_index)
490         (ira_available_class_regs): Delete.
491         (alloc_reg_class_subclasses): Redefine as a macro.
492         (ira_reg_class_cover_size, ira_reg_class_cover)
493         (ira_important_classes_num, ira_important_classes)
494         (ira_important_class_nums, ira_class_translate): Delete.
495         (cover_class_order): Document the variable's lifetime.
496         (reorder_important_classes): Don't set ira_important_class_nums.
497         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
498         (ira_reg_class_super_classes, ira_reg_class_union)
499         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
500         Delete.
501         (setup_reg_class_nregs): Don't set ira_max_regs.
502         (prohibited_class_mode_regs): Delete.
503         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
504         (target_globals): Add ira and ira_int fields.
505         (restore_target_globals): Copy the ira field to this_target_ira
506         and the ira_int field to this_target_ira_int.
507         * target-globals.c: Include ira-int.h.
508         (default_target_globals): Initialize the ira and ira_int fields.
509         (save_target_globals): Likewise.
511 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
513         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
514         * cfgloop.h (target_cfgloop): New structure.
515         (default_target_cfgloop): Declare.
516         (this_target_cfgloop): Declare as a variable or define as a macro.
517         (target_avail_regs, target_clobbered_regs, target_res_regs)
518         (target_reg_cost, target_spill_cost): Redefine as macros.
519         * cfgloopanal.c (default_target_cfgloop): New variable.
520         (this_target_cfgloop): New conditional variable.
521         (target_avail_regs, target_clobbered_regs, target_res_regs)
522         (target_reg_cost, target_spill_cost): Delete.
523         * target-globals.h (this_target_cfgloop): Declare.
524         (target_globals): Add a cfgloop field.
525         (restore_target_globals): Copy the cfgloop field to
526         this_target_cfgloop.
527         * target-globals.c: Include cfgloop.h.
528         (default_target_globals): Initialize the cfgloop field.
529         (save_target_globals): Likewise.
531 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
533         * regs.h (target_regs): Add x_direct_load, x_direct_store and
534         x_float_extend_from_mem.
535         (direct_load, direct_store, float_extend_from_mem): New macros.
536         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
538 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
540         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
541         (target-globals.o): Depend on $(LIBFUNCS_H).
542         * libfuncs.h: Include hashtab.h.
543         (libfunc_entry): Moved from optabs.c.
544         (target_libfuncs): New structure.
545         (default_target_libfuncs): Declare.
546         (this_target_libfuncs): Declare as a variable or define as a macro.
547         (libfunc_table): Redefine as a macro.
548         * optabs.c (default_target_libfuncs): New variable.
549         (this_target_libfuncs): New conditional variable.
550         (libfunc_table): Delete.
551         (libfunc_entry): Moved to optabs.h.
552         (libfunc_hash): Redefine as a macro.
553         (hash_libfunc, eq_libfunc): Fix comments.
554         (init_optabs): Use libfunc_hash to detect cases where the function
555         has already been called.  Clear the hash table instead of
556         recreating it.
557         * target-globals.h (this_target_libfuncs): Declare.
558         (target_globals): Add a libfuncs field.
559         (restore_target_globals): Copy the libfuncs field to
560         this_target_libfuncs.
561         * target-globals.c: Include libfuncs.h.
562         (default_target_globals): Initialize the libfuncs field.
563         (save_target_globals): Likewise.
565 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
567         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
568         in all dependency lists.
570 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
572         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
573         * optabs.h (target_optabs): New structure.
574         (default_target_optabs): Declare.
575         (this_target_optabs): Declare as a variable or define as a macro.
576         (optab_table, convert_optab_table, direct_optab_table): Redefine
577         as macros.
578         * optabs.c (default_target_optabs): New variable.
579         (this_target_optabs): New conditional variable.
580         (optab_table, convert_optab_table, direct_optab_table): Delete.
581         * target-globals.h (this_target_optabs): Declare.
582         (target_globals): Add a optabs field.
583         (restore_target_globals): Copy the optabs field to
584         this_target_optabs.
585         * target-globals.c: Include expr.h and optabs.h.
586         (default_target_globals): Initialize the optabs field.
587         (save_target_globals): Likewise.
589 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
591         * flags.h (target_flagstate): Add x_flag_excess_precision.
592         (flag_excess_precision): Redefine as a macro.
593         * toplev.c (flag_excess_precision): Delete.
595 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
597         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
598         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
599         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
600         (no_caller_save_reg_set): Redefine as a macro.
601         * reload.h (target_reload): Add x_caller_save_initialized_p and
602         x_regno_save_mode.
603         (caller_save_initialized_p): Redefine as a macro.
604         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
605         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
606         (regno_save_mode): Redefine as a macro.
608 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
610         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
611         * expmed.h: New file.
612         * expmed.c (default_target_costs): New variable.
613         (this_target_costs): New conditional variable.
614         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
615         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
616         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
617         * target-globals.h (this_target_expmed): Declare.
618         (target_globals): Add a expmed field.
619         (restore_target_globals): Copy the expmed field to
620         this_target_expmed.
621         * target-globals.c: Include expmed.h.
622         (default_target_globals): Initialize the expmed field.
623         (save_target_globals): Likewise.
625 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
627         * Makefile.in (target-globals.o): Depend on reload.h.
628         * reload.h (target_reload): New structure.
629         (default_target_reload): Declare.
630         (this_target_reload): Declare as a variable or define as a macro.
631         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
632         * reload1.c (default_target_reload): New variable
633         (this_target_reload): New conditional variable.
634         (indirect_symref_ok, double_reg_address_ok): Delete.
635         (spill_indirect_levels): Redefine as a macro.
636         * target-globals.h (this_target_reload): Declare.
637         (target_globals): Add a reload field.
638         (restore_target_globals): Copy the reload field to
639         this_target_reload.
640         * target-globals.c: Include hard-reg-set.h.
641         (default_target_globals): Initialize the reload field.
642         (save_target_globals): Likewise.
644 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
646         * rtl.h (target_rtl): Add x_static_reg_base_value.
647         * alias.c (static_reg_base_value): Redefine as a macro.
649 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
651         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
652         (GTFILES): Remove reginfo.c.
653         * rtl.h (target_rtl): Add x_top_of_stack.
654         (top_of_stack): New macro.
655         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
656         (top_of_stack): Delete.
658 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
660         * regs.h (target_regs): Add x_hard_regs_of_mode, x_contains_reg_of_mode,
661         x_move_cost, x_may_move_in_cost, x_may_move_out_cost and
662         x_last_mode_for_init_move_cost.
663         (have_regs_of_mode, contains_reg_of_mode, move_cost)
664         (may_move_in_cost, may_move_out_cost): Redefine as macros.
665         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
666         (may_move_in_cost, may_move_out_cost): Delete.
667         (last_mode_for_init_move_cost): Redefine as a macro.
669 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
671         * hard-reg-set.h (target_hard_regs): New structure.
672         (default_target_hard_regs): Declare.
673         (this_target_hard_regs): Declare as a variable or define as a macro.
674         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
675         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
676         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
677         (reg_class_size, reg_class_subclasses, reg_class_subunion)
678         (reg_class_superunion, reg_names): Redefine as macros.
679         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
680         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
681         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
682         (reg_class_contents, reg_class_size, reg_class_subclasses)
683         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
684         (default_target_hard_regs): New variable
685         (this_target_hard_regs, initial_call_really_used_regs)
686         (initial_reg_alloc_order): New conditional variables.
687         (initial_reg_names): New variable.
688         (init_reg_sets): Assert that initial_call_really_used_regs,
689         initial_reg_alloc_order and initial_reg_names
690         are all the same size as their variable counterparts.  Use them to
691         initialize those counterparts.
692         * target-globals.h (this_target_hard_regs): Declare.
693         (target_globals): Add a hard_regs field.
694         (restore_target_globals): Copy the hard_regs field to
695         this_target_hard_regs.
696         * target-globals.c: Include hard-reg-set.h.
697         (default_target_globals): Initialize the hard_regs field.
698         (save_target_globals): Likewise.
700 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
702         * Makefile.in (target-globals.o): Depend on $(RTL_H).
703         * rtl.h: (target_rtl): New structure.
704         (default_target_rtl): Declare.
705         (this_target_rtl): Declare as a variable or define as a macro.
706         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
707         Redefine as macros.
708         * emit-rtl.c (default_target_rtl): New variable.
709         (this_target_rtl): New conditional variable.
710         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
711         (return_address_pointer_rtx): Delete.
712         (initial_regno_reg_rtx): New macro.
713         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
714         (init_emit_regs): Likewise.
715         * target-globals.h (this_target_rtl): Declare.
716         (target_globals): Add a rtl field.
717         (restore_target_globals): Copy the rtl field to this_target_rtl.
718         * target-globals.c: Include rtl.h.
719         (default_target_globals): Initialize the rtl field.
720         (save_target_globals): Likewise.
722 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
724         * Makefile.in (target-globals.o): Depend on $(REGS_H).
725         * regs.h (target_reg_modes): New structure.
726         (default_target_reg_modes): Declare.
727         (this_target_reg_modes): Declare as a variable or define as a macro.
728         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
729         * reginfo.c (default_target_reg_modes): New variable.
730         (this_target_reg_modes): New conditional variable.
731         (hard_regno_nregs, reg_raw_mode): Delete.
732         * target-globals.h (this_target_regs): Declare.
733         (target_globals): Add a regs field.
734         (restore_target_globals): Copy the regs field to this_target_regs.
735         * target-globals.c: Include regs.h.
736         (default_target_globals): Initialize the regs field.
737         (save_target_globals): Likewise.
739 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
741         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
742         * doc/tm.texi: Regenerate.
743         * Makefile.in (OBJS-common): Add target-globals.o.
744         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
745         and target-globals.h.
746         (target-globals.o): New rule.
747         (GTFILES): Include $(srcdir)/target-globals.h.
748         * defaults.h (SWITCHABLE_TARGET): Define.
749         * gengtype.c (open_base_files): Add target-globals.h to the
750         list of includes.
751         * target-globals.h: New file.
752         * target-globals.c: Likewise.
754         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
755         * flags.h (target_flag_state): New structure.
756         (default_target_flag_state): Declare.
757         (this_target_flag_state): Declare as a variable or define as a macro.
758         (align_loops_log): Redefine as a macro.
759         (align_loops_max_skip, align_jumps_log): Likewise.
760         (align_jumps_max_skip, align_labels_log): Likewise.
761         (align_labels_max_skip, align_functions_log): Likewise.
762         * toplev.c (default_target_flag_state): New variable.
763         (this_target_flag_state): New conditional variable.
764         (align_loops_log): Delete.
765         (align_loops_max_skip, align_jumps_log): Likewise.
766         (align_jumps_max_skip, align_labels_log): Likewise.
767         (align_labels_max_skip, align_functions_log): Likewise.
768         * target-globals.h (this_target_flag_state): Declare.
769         (target_globals): Add a flag_state field.
770         (restore_target_globals): Copy the flag_state field to
771         this_target_flag_state.
772         * target-globals.c: Include flags.h.
773         (default_target_globals): Initialize the flag_state field.
774         (save_target_globals): Likewise.
776 2010-07-12  Jie Zhang  <jie@codesourcery.com>
778         * postreload.c (reg_symbol_ref[]): New.
779         (move2add_use_add2_insn): New.
780         (move2add_use_add3_insn): New.
781         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
782         (move2add_note_store): Likewise.
784 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
786         PR rtl-optimization/44752
787         * genautomata.c (main): Don't emit an empty file even if there
788         is no automaton.
790 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
792         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
793         ix86_solaris_return_in_memory.
794         * config/i386-protos.h: Reflect this.
795         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
796         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
797         Move ...
798         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
800 2010-07-12  Jie Zhang  <jie@codesourcery.com>
802         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
803         align the stack when it's going to be saved.
805 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
807         PR pch/14940
808         * config/host-solaris.c (mmap_fixed): New function.
809         (sol_gt_pch_get_address): Use it.
810         (sol_gt_pch_use_address): Likewise.
812 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
814         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
815         pentiumpro on Solaris 8 and 9/x86.
816         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
817         Document SSE/SSE2 support.
818         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
820 2010-07-12  Andi Kleen  <ak@linux.intel.com>
822         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
823         instead of gcc_assert to print better error message for multiple
824         prevailing defs.
826 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
828         * config/i386/i386.c (ix86_asm_output_function_label): Change format
829         string placeholder from 0x%x to %#x.
830         (ix86_code_end): Use putc to output '\n'.
831         (ix86_print_operand) <case ';'>: Use putc to output ';'.
833 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
835         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
836         in directive -export.
838 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
840         * reginfo.h (reg_classes_intersect_p): Change arguments type to
841         reg_class_t.
842         * rtl.h (reg_classes_intersect_p): Adjust prototype.
844         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
845         Remove macros.
846         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
847         rs6000_memory_move_cost): Remove
848         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
849         TARGET_MEMORY_MOVE_COST): Define.
850         (rs6000_register_move_cost): Make static. Change arguments type from
851         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
852         (rs6000_memory_move_cost): Make static. Change arguments type from
853         'enum reg_class' to reg_class_t.
855 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
857         PR middle-end/42505
858         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
859         lookup code into....
860         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
861         new functions.
862         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
863         * cfgloopanal.c (target_clobbered_regs): Define.
864         (init_set_costs): Initialize target_clobbered_regs.
865         (estimate_reg_pressure_cost): Add call_p argument.  When true,
866         adjust the number of available registers to exclude the
867         call-clobbered registers.
868         * cfgloop.h (target_clobbered_regs): Declare.
869         (estimate_reg_pressure_cost): Adjust declaration.
870         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
871         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
872         (determine_set_costs): Dump target_clobbered_regs.
873         (loop_body_includes_call): New function.
874         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
875         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
876         call_p flag through.
877         (best_gain_for_invariant): Likewise.
878         (find_invariants_to_move): Likewise.
879         (move_single_loop_invariants): Likewise, using already-computed
880         has_call field.
882 2010-07-10  Richard Guenther  <rguenther@suse.de>
883             Joern Rennecke  <joern.rennecke@embecosm.com>
885         PR debug/44832
886         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
887         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
888         unless they have DECL_IGNORED_P set.
890 2010-07-10  Richard Guenther  <rguenther@suse.de>
892         PR lto/44889
893         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
894         helper function.
895         (gimple_types_compatible_p): Similar to pointed-to
896         types allow and merge a mix of complete and incomplete aggregate.
897         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
898         (iterative_hash_gimple_type): Adjust for that.
900 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
902         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
904 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
906         PR objc/44140
907         * config/darwin.c (output_objc_section_asm_op): Save and restore
908         section when outputting ObjC section list.
910 2010-07-09  Jan Hubicka  <jh@suse.cz>
912         * lto-streamer-out.c (produce_symtab): Do not write alias
913         cgraph/varpool nodes.
915 2010-07-09  Jan Hubicka  <jh@suse.cz>
917         * tree-inline.c (declare_return_variable): Fix ICE while
918         inlining DECL_BY_VALUE function not in SSA form
920 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
922         PR tree-optimization/44576
923         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
924         New.  Pull out from is_loop_prefetching_profitable to implement
925         the trip count to ahead ratio heuristic.
926         (mem_ref_count_reasonable_p): New.  Pull out from
927         is_loop_prefetching_profitable to implement the instruction to
928         memory reference ratio heuristic.  Also consider not reasonable if
929         the memory reference count is above a threshold (to avoid
930         explosive compilation time.
931         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
932         is_loop_prefetching_profitable to implement the instruction to
933         prefetch ratio heuristic.
934         (is_loop_prefetching_profitable): Removed.
935         (loop_prefetch_arrays): Distribute the cost analysis across the
936         function to allow early exit of the prefetch analysis.
937         is_loop_prefetching_profitable is splitted into three functions,
938         with each one called as early as possible.
939         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
940         number of memory references in a loop is considered too many.
942 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
944         * reload.c (find_reloads): Don't clear badop if we have a winreg
945         alternative, but not win, and the class only has fixed regs.
946         * hard-reg-set.h (class_only_fixed_regs): Declare.
947         * reginfo.c (class_only_fixed_regs): New array.
948         (init_reg_sets_1): Initialize it.
949         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
950         discourage alternatives using the stack pointer.
952         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
954         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
956         * config/arm/arm.md (cbranchqi4): Fix array size.
957         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
958         calculating length.
960 2010-07-09  Richard Guenther  <rguenther@suse.de>
962         * gimple.c (struct type_fixup_s): New struct and VEC type.
963         (gimple_register_type_fixups): New static global.
964         (gimple_queue_type_fixup): New function.
965         (gimple_types_compatible_p): Queue type fixups instead of
966         applying them here.
967         (gimple_register_type): Apply queued fixups for the
968         canonical type.  Empty the type fixup queue.
970 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
972         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
973         * configure: Regenerate.
974         * config.in: Ditto.
976 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
977             Denys Vlasenko  <dvlasenk@redhat.com>
978             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
980         PR tree-optimization/28632
981         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
982         (extract_range_from_binary_expr): Further optimize
983         BIT_AND_EXPR and BIT_IOR_EXPR.
985 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
987         * tree-if-conv.c (fold_or_predicates): New.
988         (add_to_predicate_list): Call it.
990 2010-07-09  Richard Guenther  <rguenther@suse.de>
992         PR middle-end/44890
993         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
994         if base is a pointer.
995         * tree-cfg.c (verify_expr): Update MEM_REF checking.
997 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
999         PR target/44877
1000         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
1001         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
1002         builtin mask for load/store builtins.
1004 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
1006         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
1007         for "lock addl".
1008         * configure: Regenerate.
1009         * config/i386/i386.c (ix86_print_operand) <case ';'>:
1010         Remove TARGET_MACHO.
1012 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
1014         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
1015         default ISA flags.
1016         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
1018 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
1020         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
1022 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
1024         * config/picochip/picochip.md (commsTestPort): Emit more
1025         efficient sequence for tstport instruction.
1027 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
1029         * config/i386/i386.c (ix86_veclib_handler): Make static.
1031 2010-07-09  Richard Guenther  <rguenther@suse.de>
1033         PR tree-optimization/44852
1034         * tree-ssa-alias.c: Include toplev.h for exact_log2.
1035         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
1036         in MEM_REF.
1037         (indirect_refs_may_alias_p): Likewise.
1038         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
1040 2010-07-09  Richard Guenther  <rguenther@suse.de>
1042         PR tree-optimization/44882
1043         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
1044         sets do conflict.
1045         (vectorizable_load): Likewise.
1047 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
1049         PR target/40657
1050         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
1051         All callers changed.
1052         Handle the case when we're called for the epilogue.
1053         (thumb_unexpanded_epilogue): Use it.
1054         (thumb1_expand_epilogue): Likewise.
1056 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
1058         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
1059         both ranges are range_int_cst_p with non-negative minimum,
1060         try harder to derive smaller range.
1062 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1064         * genrecog.c: Include diagnostic-core.h before toplev.h.
1065         * genoutput.c: Likewise.
1066         * genextract.c: Likewise.
1067         * genautomata.c: Likewise.
1068         * genemit.c: Likewise.
1069         * genpeep.c: Likewise.
1070         * genattrtab.c: Likewise.
1071         * genconditions.c: Likewise.
1072         * genpreds.c: Likewise.
1074 2010-07-08  Andi Kleen  <ak@linux.intel.com>
1076         * lto-section-in.c (lto_section_name): Add missing comma.
1078 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
1080         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
1081         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
1082         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
1083         (ia64_override_options): Rename to...
1084         (ia64_option_override): ... this one. Make static.
1086 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1088         PR middle-end/44843
1089         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
1090         pointed-to type of the offset in a MEM_REF to compute the alignment.
1092 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
1094         * final.c (final_scan_insn): Replace
1095         TARGET_UNWIND_INFO macro check by unwind_emit
1096         hook NULL check.
1097         * targhooks.c (default_unwind_emit): Removed.
1098         * targhooks.h (default_unwind_emit): Likewise.
1099         * target.def (unwind_emit): Set default value to NULL.
1101         * config/i386/i386-protos.h (ix86_asm_output_function_label):
1102         New prototype.
1103         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
1104         for NULL fntype argument and allow 64-bit targets.
1105         (ix86_asm_output_function_label): New function.
1106         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
1107         (ix86_handle_fndecl_attribute): Likewise.
1108         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
1109         * doc/doc/tm.texi: Regenerated.
1110         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
1111         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
1112         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
1113         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
1114         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1115         * config/elfos.h: Likewise.
1116         * config/i386/cygming.h: Likewise.
1117         * config/netbsd-aout.h: Likewise.
1118         * config/openbsd.h: Likewise.
1119         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
1120         by ix86_asm_output_function_label function call.
1121         * varasm.c (assemble_start_function): Use
1122         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1124 2010-07-08  Jan Hubicka  <jh@suse.cz>
1126         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
1127         New function.
1128         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
1129         Declare.
1130         * ipa-cp.c (ipcp_estimate_growth): Use it.
1131         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
1132         Likewise.
1134 2010-07-08  Jan Hubicka  <jh@suse.cz>
1136         * tree-inline.c (declare_return_variable): Allocate annotation for new
1137         temporary.
1139 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
1141         PR tree-optimization/44710
1142         * tree-if-conv.c (parse_predicate): New.
1143         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
1144         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
1146 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
1148         * common.opt (ftree-loop-if-convert): New flag.
1149         * doc/invoke.texi (ftree-loop-if-convert): Documented.
1150         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
1151         when flag_tree_loop_if_convert is set.
1153 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
1155         * config/i386/i386.c: Use short syntax for function calls
1156         through function pointers.
1157         * config/i386/i386.md: Ditto.
1159 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1161         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
1163 2010-07-08  Richard Guenther  <rguenther@suse.de>
1165         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
1166         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
1168 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
1170         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
1171         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
1172         (loc_list_from_tree): Likewise.
1173         (output_loc_operands): Handle outputting DW_OP_const[48]u
1174         with loc->dtprel set.
1175         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
1177 2010-07-08  Jan Hubicka  <jh@suse.cz>
1179         * ipa.c: Include pointer-set.h
1180         (cgraph_externally_visible_p): New attribute ALIASED;
1181         when in LTO, hidden symbols are local unless they are aliased.
1182         (function_and_variable_visibility): Compute aliased nodes;
1183         handle LTO and hidden symbol on functions and vars.
1184         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
1185         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
1187 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1189         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1190         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1191         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1192         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1193         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1194         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
1195         (ix86_gen_probe_stack_range): Likewise.
1196         (override_options): Set them.
1197         (ix86_target_stack_probe): New function.
1198         (ix86_compute_frame_layout): Force use of push instructions to
1199         save registers if stack checking with probes is enabled.
1200         (get_scratch_register_on_entry): New function.
1201         (release_scratch_register_on_entry): Likewise.
1202         (ix86_adjust_stack_and_probe): Likewise.
1203         (output_adjust_stack_and_probe): Likewise.
1204         (ix86_emit_probe_stack_range): Likewise.
1205         (output_probe_stack_range): Likewise.
1206         (ix86_expand_prologue): Emit stack checking code if static built-in
1207         stack checking is enabled.
1208         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
1209         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
1210         (output_adjust_stack_and_probe): Likewise.
1211         (output_probe_stack_range): Likewise.
1212         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1213         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
1214         TARGET_STACK_PROBE.
1215         (allocate_stack_worker_64): Likewise.
1216         (allocate_stack): Likewise.
1217         (adjust_stack_and_probe): New insn.
1218         (probe_stack_range): Likewise.
1220 2010-07-08  Richard Guenther  <rguenther@suse.de>
1222         PR tree-optimization/44831
1223         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
1224         a MEM_REF preserving TBAA info of the original dereference.
1225         Dereference the original pointer if the address is not invariant.
1226         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
1227         at least one invariant address that we are going to dereference.
1229 2010-07-08  Richard Guenther  <rguenther@suse.de>
1231         PR tree-optimization/44861
1232         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
1233         information when building MEM_REFs.
1234         (vectorizable_load): Likewise.
1235         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
1237 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1239         * config/sol2-c.c: Do not include diagnostic-core.h.
1241 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1243         PR bootstrap/44768
1244         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
1245         with respect to current_function_decl. Pass decl of the function.
1246         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
1247         * ipa-inline.c (compute_inline_parameters): Pass decl to
1248         estimated_stack_frame_size.
1250 2010-07-08  Richard Guenther  <rguenther@suse.de>
1252         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1253         New function.
1254         (valueize_refs): Call it.
1256 2010-07-08  Richard Guenther  <rguenther@suse.de>
1258         PR rtl-optimization/44838
1259         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
1260         SSA form do not use pointer equivalence.
1262 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1264         * dwarf2out.c (AT_linkage_name): Delete.
1265         (add_linkage_attr): New function.
1266         (add_linkage_name): Call it to emit the linkage attribute.
1267         (dwarf2out_finish): Likewise.
1268         (move_linkage_attr): Explicitly accept both attribute variants.
1270 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1272         * toplev.h: Do not include diagnostic-core.h.
1273         Include diagnostic-core.h in every file that includes toplev.h.
1274         * c-tree.h: Do not include toplev.h.
1275         * pretty-print.h: Update comment.
1276         * Makefile.in: Update dependencies.
1277         * alias.c: Include diagnostic-core.h in every file that includes
1278         toplev.h.
1279         * attribs.c: Likewise.
1280         * auto-inc-dec.c: Likewise.
1281         * bb-reorder.c: Likewise.
1282         * bt-load.c: Likewise.
1283         * caller-save.c: Likewise.
1284         * calls.c: Likewise.
1285         * cfg.c: Likewise.
1286         * cfganal.c: Likewise.
1287         * cfgbuild.c: Likewise.
1288         * cfgcleanup.c: Likewise.
1289         * cfghooks.c: Likewise.
1290         * cfgloop.c: Likewise.
1291         * combine.c: Likewise.
1292         * config/alpha/alpha.c: Likewise.
1293         * config/arc/arc.c: Likewise.
1294         * config/arm/arm.c: Likewise.
1295         * config/arm/pe.c: Likewise.
1296         * config/avr/avr.c: Likewise.
1297         * config/bfin/bfin.c: Likewise.
1298         * config/cris/cris.c: Likewise.
1299         * config/crx/crx.c: Likewise.
1300         * config/darwin-c.c: Likewise.
1301         * config/darwin.c: Likewise.
1302         * config/fr30/fr30.c: Likewise.
1303         * config/frv/frv.c: Likewise.
1304         * config/h8300/h8300.c: Likewise.
1305         * config/host-darwin.c: Likewise.
1306         * config/i386/i386.c: Likewise.
1307         * config/i386/netware.c: Likewise.
1308         * config/i386/nwld.c: Likewise.
1309         * config/i386/winnt-cxx.c: Likewise.
1310         * config/i386/winnt-stubs.c: Likewise.
1311         * config/i386/winnt.c: Likewise.
1312         * config/ia64/ia64-c.c: Likewise.
1313         * config/ia64/ia64.c: Likewise.
1314         * config/iq2000/iq2000.c: Likewise.
1315         * config/lm32/lm32.c: Likewise.
1316         * config/m32c/m32c-pragma.c: Likewise.
1317         * config/m32c/m32c.c: Likewise.
1318         * config/m32r/m32r.c: Likewise.
1319         * config/m68hc11/m68hc11.c: Likewise.
1320         * config/m68k/m68k.c: Likewise.
1321         * config/mcore/mcore.c: Likewise.
1322         * config/mep/mep-pragma.c: Likewise.
1323         * config/mep/mep.c: Likewise.
1324         * config/mmix/mmix.c: Likewise.
1325         * config/mn10300/mn10300.c: Likewise.
1326         * config/moxie/moxie.c: Likewise.
1327         * config/pa/pa.c: Likewise.
1328         * config/pdp11/pdp11.c: Likewise.
1329         * config/picochip/picochip.c: Likewise.
1330         * config/rs6000/rs6000-c.c: Likewise.
1331         * config/rs6000/rs6000.c: Likewise.
1332         * config/rx/rx.c: Likewise.
1333         * config/s390/s390.c: Likewise.
1334         * config/score/score.c: Likewise.
1335         * config/score/score3.c: Likewise.
1336         * config/score/score7.c: Likewise.
1337         * config/sh/sh.c: Likewise.
1338         * config/sh/symbian-base.c: Likewise.
1339         * config/sh/symbian-c.c: Likewise.
1340         * config/sh/symbian-cxx.c: Likewise.
1341         * config/sol2-c.c: Likewise.
1342         * config/sol2.c: Likewise.
1343         * config/sparc/sparc.c: Likewise.
1344         * config/spu/spu.c: Likewise.
1345         * config/stormy16/stormy16.c: Likewise.
1346         * config/v850/v850-c.c: Likewise.
1347         * config/v850/v850.c: Likewise.
1348         * config/vax/vax.c: Likewise.
1349         * config/vxworks.c: Likewise.
1350         * config/xtensa/xtensa.c: Likewise.
1351         * convert.c: Likewise.
1352         * cse.c: Likewise.
1353         * cselib.c: Likewise.
1354         * dbgcnt.c: Likewise.
1355         * dbxout.c: Likewise.
1356         * ddg.c: Likewise.
1357         * dominance.c: Likewise.
1358         * emit-rtl.c: Likewise.
1359         * explow.c: Likewise.
1360         * expmed.c: Likewise.
1361         * fixed-value.c: Likewise.
1362         * fold-const.c: Likewise.
1363         * fwprop.c: Likewise.
1364         * gcse.c: Likewise.
1365         * ggc-common.c: Likewise.
1366         * ggc-page.c: Likewise.
1367         * ggc-zone.c: Likewise.
1368         * gimple-low.c: Likewise.
1369         * gimplify.c: Likewise.
1370         * graph.c: Likewise.
1371         * haifa-sched.c: Likewise.
1372         * ifcvt.c: Likewise.
1373         * implicit-zee.c: Likewise.
1374         * integrate.c: Likewise.
1375         * ira-build.c: Likewise.
1376         * ira-color.c: Likewise.
1377         * ira-conflicts.c: Likewise.
1378         * ira-costs.c: Likewise.
1379         * ira-lives.c: Likewise.
1380         * ira.c: Likewise.
1381         * lists.c: Likewise.
1382         * loop-doloop.c: Likewise.
1383         * loop-iv.c: Likewise.
1384         * lto-opts.c: Likewise.
1385         * lto-symtab.c: Likewise.
1386         * main.c: Likewise.
1387         * modulo-sched.c: Likewise.
1388         * optabs.c: Likewise.
1389         * params.c: Likewise.
1390         * plugin.c: Likewise.
1391         * postreload-gcse.c: Likewise.
1392         * postreload.c: Likewise.
1393         * predict.c: Likewise.
1394         * profile.c: Likewise.
1395         * real.c: Likewise.
1396         * regcprop.c: Likewise.
1397         * reginfo.c: Likewise.
1398         * regmove.c: Likewise.
1399         * reorg.c: Likewise.
1400         * resource.c: Likewise.
1401         * rtl.c: Likewise.
1402         * rtlanal.c: Likewise.
1403         * sched-deps.c: Likewise.
1404         * sched-ebb.c: Likewise.
1405         * sched-rgn.c: Likewise.
1406         * sdbout.c: Likewise.
1407         * sel-sched-dump.c: Likewise.
1408         * sel-sched-ir.c: Likewise.
1409         * simplify-rtx.c: Likewise.
1410         * stmt.c: Likewise.
1411         * stor-layout.c: Likewise.
1412         * store-motion.c: Likewise.
1413         * targhooks.c: Likewise.
1414         * tree-cfg.c: Likewise.
1415         * tree-cfgcleanup.c: Likewise.
1416         * tree-dump.c: Likewise.
1417         * tree-eh.c: Likewise.
1418         * tree-inline.c: Likewise.
1419         * tree-nomudflap.c: Likewise.
1420         * tree-object-size.c: Likewise.
1421         * tree-optimize.c: Likewise.
1422         * tree-outof-ssa.c: Likewise.
1423         * tree-phinodes.c: Likewise.
1424         * tree-profile.c: Likewise.
1425         * tree-ssa-ccp.c: Likewise.
1426         * tree-ssa-coalesce.c: Likewise.
1427         * tree-ssa-live.c: Likewise.
1428         * tree-ssa-loop-niter.c: Likewise.
1429         * tree-ssa-loop-prefetch.c: Likewise.
1430         * tree-ssa-loop.c: Likewise.
1431         * tree-ssa-structalias.c: Likewise.
1432         * tree-ssa-uninit.c: Likewise.
1433         * tree-ssa.c: Likewise.
1434         * tree-vect-data-refs.c: Likewise.
1435         * tree-vect-loop-manip.c: Likewise.
1436         * tree-vect-loop.c: Likewise.
1437         * tree-vect-patterns.c: Likewise.
1438         * tree-vect-stmts.c: Likewise.
1439         * tree-vrp.c: Likewise.
1440         * varasm.c: Likewise.
1441         * vec.c: Likewise.
1442         * web.c: Likewise.
1443         * xcoffout.c: Likewise.
1445 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
1447         * gengtype.c (write_field_root): New function.
1448         (write_root): Use it.
1450 2010-07-07  Wei Guozhi  <carrot@google.com>
1452         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1453         of lowest bits to lshift/compare): Add a missing line.
1455 2010-07-07  Wei Guozhi  <carrot@google.com>
1457         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1458         of lowest bits to lshift/compare): New.
1460 2010-07-07  Tom Tromey  <tromey@redhat.com>
1462         * doc/tm.texi: Update.
1463         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
1464         Add @hook.
1465         * target.def (want_debug_pub_sections): New hook.
1466         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
1467         * dwarf2out.c (add_pubname_string): Check
1468         targetm.want_debug_pub_sections.
1469         (add_pubname): Likewise.
1470         (add_pubtype): Likewise.
1472 2010-07-07  Jie Zhang  <jie@codesourcery.com>
1474         * genautomata.c (output_automata_list_min_issue_delay_code):
1475         Correctly decompress min_issue_delay.
1477 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1479         PR rtl-optimization/44404
1480         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
1481         possible, use reg_overlap_mentioned_p instead.
1483 2010-07-07  Duncan Sands  <baldrick@free.fr>
1485         PR middle-end/41355
1486         * tree.c (build_function_type_skip_args): Copy the original type using
1487         build_distinct_type_copy rather than copy_node.
1489 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1491         PR target/44850
1492         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
1493         revision 161876.
1494         (ix86_expand_prologue): Likewise.
1495         (ix86_handle_fndecl_attribute): Likewise.
1496         (ix86_asm_declare_function_name): Likewise.
1497         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1498         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1499         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
1500         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
1501         * doc/extend.texi: Likewise.
1503 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1505         PR target/44844
1506         * config/i386/i386.md (rdrand<mode>): Changed to expand to
1507         retry if the carry flag isn't valid.
1508         (rdrand<mode>_1): New.
1510 2010-07-07  Richard Guenther  <rguenther@suse.de>
1512         PR middle-end/44790
1513         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
1514         for expanding the constant offset for MEM_REFs.
1516 2010-07-07  Richard Guenther  <rguenther@suse.de>
1518         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
1519         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
1520         * gimple.h (is_gimple_operand): Remove.
1521         * gimple.c (is_gimple_operand): Likewise.
1522         (walk_gimple_op): Fix wi->val_only setting for calls.
1523         * tree-cfg.c (verify_gimple_call): Fix argument validation.
1524         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
1525         invalid gimple calls.
1527 2010-07-06  Jan Hubicka  <jh@suse.cz>
1529         * lto-cgraph.c (output_cgraph): Add missing declaration.
1531 2010-07-06  Jan Hubicka  <jh@suse.cz>
1533         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
1534         partition.
1536 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
1538         * doc/gimple.texi (GIMPLE_DEBUG): Document.
1539         * doc/rtl.texi (Debug Information): New node.
1540         (NOTE_INSN_VAR_LOCATION): Document.
1541         (debug_insn): Likewise.
1542         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
1544 2010-07-07  Jan Hubicka  <jh@suse.cz>
1546         With parts by Richard Guenther.
1548         PR middle-end/44813
1549         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
1550         for functions passed by reference.
1551         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
1552         in memory when passed by reference.
1553         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
1554         beggining.
1555         * ipa-split.c (split_function): Cleanup way return value is passed;
1556         handle SSA DECL_BY_REFERENCE retvals.
1557         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
1558         DECL_BY_REFERENCE is set.
1559         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
1560         find_what_p_points_to): Handle RESULT_DECL.
1561         * tree-inline.c (declare_return_variable): Get new entry_block argument;
1562         when passing by reference ensure that RESULT_DECL is gimple_val.
1563         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
1564         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
1566 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1568         PR rtl-optimization/44787
1569         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
1570         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
1572 2010-07-06  Jan Hubicka  <jh@suse.cz>
1574         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
1575         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
1576         with body can prevail.
1577         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
1578         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
1579         * cgraph.c (cgraph_get_node_or_alias): New function.
1580         * cgraph.h (cgraph_get_node_or_alias): Declare.
1582 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
1584         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
1585         support.
1586         (ix86_expand_prologue): Likewise.
1587         (ix86_handle_fndecl_attribute): Likewise.
1588         (ix86_asm_declare_function_name): New function for
1589         ASM_DECLARE_FUNCTION_NAME.
1590         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
1591         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
1592         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
1593         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
1594         * doc/extend.texi: Adjust documentation about ms_hook_prologue
1595         attribute.
1597 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
1599         * config/i386/i386.md (immediate_operand): New mode attribute.
1601         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
1602         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
1603         using P mode iterator.
1604         (pro_epilogue_adjust_stack_di_2): Rename from
1605         pro_epilogue_adjust_stack_rex64_2.
1607         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
1609 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
1611         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
1612         through gen_mov_insv_1 function pointer.
1613         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
1614         gen_truncxf<mode>2 through gen_truncxf function pointer.
1615         (remainder<mode>3): Ditto.
1616         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
1617         (allocate_stack): Call gen_allocate_stack_worker_64 or
1618         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
1619         function pointer.
1620         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
1621         function pointer.
1623 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
1625         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
1626         operand constraint instead of <r><i>m.
1628 2010-07-06  Richard Guenther  <rguenther@suse.de>
1630         PR middle-end/44828
1631         * convert.c (convert_to_integer): Watch out for overflowing
1632         MULT_EXPR as well.
1634 2010-07-05  Jan Hubicka  <jh@suse.cz>
1636         * lto-streamer.c (write_symbol_vec): Rename to ...
1637         (write_symbol) ... this one; write only symbol given and when
1638         present in cache. Sanity check that what is defined is present
1639         in cgraph/varpool with body/finalized decl.
1640         (write_symbols_of_kind): Remove.
1641         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
1642         pairs to produce symtab.
1643         (produce_asm_for_decls): Update call of produce_symtab; don't do so
1644         when doing WPA streaming.
1646 2010-07-05  Jan Hubicka  <jh@suse.cz>
1648         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
1649         function is still available to fold into.
1651 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
1653         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
1654         * function.h (struct_function): Change type of local_decls field
1655         to a VEC.
1656         (add_local_decl): New function.
1657         (FOR_EACH_LOCAL_DECL): New macro.
1658         * cfgexpand.c (init_vars_expansion): Adjust for new type of
1659         cfun->local_decls.
1660         (estimated_stack_frame_size): Likewise.
1661         (expand_used_vars): Likewise.
1662         * cgraphbuild.c (build_cgraph_edges): Likewise.
1663         * function.c (instantiate_decls_1): Likewise.
1664         * ipa-struct-reorg.c (build_data_structure): Likewise.
1665         * ipa-type-escape.c (analyze_function): Likewise.
1666         * lto-streamer-in.c (input_function): Likewise.
1667         * lto-streamer-out.c (output_function): Likewise.
1668         * tree-ssa-live.c (remove_unused_locals): Likewise.
1669         * tree.c (free_lang_data_in_decl): Likewise.
1670         (find_decls_types_in_node): Likewise.
1671         * omp-low.c (remove_exit_barrier): Likewise.
1672         (expand_omp_taskreg): Likewise.
1673         (list2chain): Rename to...
1674         (vec2chain): ...this.  Adjust.
1675         * cgraphunit.c (assemble_thunk): Call add_local_decl.
1676         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
1677         * gimple-low.c (record_vars_into): Likewise.
1678         * tree-inline.c (remap_decls): Likewise.
1679         (declare_return_variable): Likewise.
1680         (declare_inline_vars): Likewise.
1681         (copy_forbidden): Adjust for new type of cfun->local_decls.
1682         (add_local_variables): New function.
1683         (expand_call_inline): Call it.
1684         (tree_function_versioning): Likewise.
1686 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1688         AVX Programming Reference (June, 2010)
1689         * config/i386/cpuid.h (bit_F16C): New.
1690         (bit_RDRND): Likewise.
1691         (bit_FSGSBASE): Likewise.
1693         * config/i386/i386-builtin-types.def: Add
1694         "DEF_FUNCTION_TYPE (UINT16)", function types for
1695         float16 <-> float conversions and
1696         "DEF_FUNCTION_TYPE (VOID, UINT64)".
1698         * config/i386/i386-c.c (ix86_target_macros_internal): Support
1699         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
1700         OPTION_MASK_ISA_F16C.
1702         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
1703         (OPTION_MASK_ISA_RDRND_SET): Likewise.
1704         (OPTION_MASK_ISA_F16C_SET): Likewise.
1705         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
1706         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
1707         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
1708         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
1709         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
1710         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
1711         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
1712         (override_options): Handle them.
1713         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
1714         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
1715         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
1716         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
1717         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
1718         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
1719         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
1720         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
1721         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
1722         (bdesc_args): Likewise.
1723         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
1724         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
1725         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
1726         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
1727         Handle non-memory store.
1729         * config/i386/i386.h (TARGET_FSGSBASE): New.
1730         (TARGET_RDRND): Likewise.
1731         (TARGET_F12C): Likewise.
1733         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
1734         (UNSPEC_VCVTPS2PH): Likewise.
1735         (UNSPECV_RDFSBASE): Likewise.
1736         (UNSPECV_RDGSBASE): Likewise.
1737         (UNSPECV_WRFSBASE): Likewise.
1738         (UNSPECV_WRGSBASE): Likewise.
1739         (UNSPECV_RDRAND): Likewise.
1740         (rdfsbase<mode>): Likewise.
1741         (rdgsbase<mode>): Likewise.
1742         (wrfsbase<mode>): Likewise.
1743         (wrgsbase<mode>): Likewise.
1744         (rdrand<mode>): Likewise.
1746         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
1748         * config/i386/immintrin.h (_rdrand_u16): New.
1749         (_rdrand_u32): Likewise.
1750         (_readfsbase_u32): Likewise.
1751         (_readfsbase_u64): Likewise.
1752         (_readgsbase_u32): Likewise.
1753         (_readgsbase_u64): Likewise.
1754         (_writefsbase_u32): Likewise.
1755         (_writefsbase_u64): Likewise.
1756         (_writegsbase_u32): Likewise.
1757         (_writegsbase_u64): Likewise.
1758         (_rdrand_u64): Likewise.
1759         (_cvtsh_ss): Likewise.
1760         (_mm_cvtph_ps): Likewise.
1761         (_mm256_cvtph_ps): Likewise.
1762         (_cvtss_sh): Likewise.
1763         (_mm_cvtps_ph): Likewise.
1764         (_mm256_cvtps_ph): Likewise.
1766         * config/i386/sse.md (vcvtph2ps): New.
1767         (*vcvtph2ps_load): Likewise.
1768         (vcvtph2ps256): Likewise.
1769         (vcvtps2ph): Likewise.
1770         (*vcvtps2ph): Likewise.
1771         (*vcvtps2ph_store): Likewise.
1772         (vcvtps2ph256): Likewise.
1774         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
1776         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
1778 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
1780         PR bootstrap/44512
1781         * genenums.c (main): Output include of insn-constants.h
1782         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
1784 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
1786         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
1787         (override_options): Initialize it.
1788         (ix86_expand_prologue): Use it.
1790 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
1792         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
1794 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
1796         * double-int.h (fit_double_type): Remove declaration.
1797         * double-int.c (fit_double_type): Remove function.
1798         * tree.h (int_fits_type_p): Adjust prototype.
1799         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
1800         instead of fit_double_type.
1801         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
1802         instead of fit_double_type and build_int_cst_wide.
1803         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
1804         instead of fit_double_type and build_int_cst_wide.
1805         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
1806         of fit_double_type.
1808 2010-07-05  Jan Hubicka  <jh@suse.cz>
1810         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
1811         in_other_partition.
1812         * lto-cgraph.c (referenced_from_other_partition_p,
1813         reachable_from_other_partition_p): Use in_other_partition flags.
1814         (output_node, output_varpool_node): COMDAT nodes always have private
1815         copies and thus are never used from other partition.
1817 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
1819         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
1820         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
1821         * config/ia64/ia64.c Include reload.h.
1822         (ia64_memory_move_cost): New function.
1823         (TARGET_MEMORY_MOVE_COST): Define.
1824         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
1825         memory_move_cost.
1827 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
1829         PR middle-end/42505
1830         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
1831         comments about cost model.
1832         (try_add_cand_for):  Add second strategy for choosing initial set
1833         based on original IVs, controlled by ORIGINALP argument.
1834         (get_initial_solution): Add ORIGINALP argument.
1835         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
1836         (find_optimal_iv_set): Try two different strategies for choosing
1837         the IV set, and return the one with lower cost.
1839 2010-07-05  Richard Guenther  <rguenther@suse.de>
1841         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
1843 2010-07-05  Richard Guenther  <rguenther@suse.de>
1845         * tree.c (reference_alias_ptr_type): New function.
1846         * tree.h (reference_alias_ptr_type): Declare.
1847         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
1848         allow non-TARGET_MEM_REF new refs.
1849         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
1850         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
1851         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
1852         (create_mem_ref): Get alias pointer type.  Adjust calls to
1853         create_mem_ref_raw.
1854         (maybe_fold_tmr): Likewise.
1855         * tree-flow.h (create_mem_ref): Adjust prototype.
1857 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
1859         PR c++/44808
1860         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
1861         *from_p is VAR_DECL.
1863 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
1865         * tree.h (build_call_list): Remove.
1866         * tree.c (build_call_list): Remove.
1868 2010-07-05  Richard Guenther  <rguenther@suse.de>
1870         * double-int.h (double_int_sub): Declare.
1871         * double-int.c (double_int_sub): New function.
1872         * dwarf2out.c (field_byte_offset): Use it.
1873         * fixed-value.c (do_fixed_add): Likewise.
1874         (do_fixed_multiply): Likewise.
1875         (do_fixed_divide): Likewise.
1876         * tree-predcom.c (add_ref_to_chain): Likewise.
1877         (determine_roots_comp): Likewise.
1878         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
1880 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
1882         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
1883         implementations.
1885 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
1887         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
1888         * arm-modes.def (CC_NOTB): Don't define.
1889         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
1890         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
1891         (LTUGEU): New code_iterator.
1892         (cnb, optab): New corresponding code_attrs.
1893         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
1894         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
1895         using LTUGEU.
1896         (addsi3_carryin_shift_<optab>): Likewise.
1897         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
1898         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
1899         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
1900         (subsi3_compare): Renamed from subsi3_compare0_c.
1901         Change CC_NOTB to CC.
1902         (arm_subsi3_insn): Allow constants for operand 0.
1903         (compare_scc peephole for eq case): New.
1904         (compare_scc splitters): Change CC_NOTB to CC.
1906 2010-07-05  Richard Guenther  <rguenther@suse.de>
1908         * tree-ssa-loop-im.c (for_each_index): Do not handle
1909         ALIGN_INDIRECT_REF.
1910         (gen_lsm_tmp_name): Likewise.
1911         * tree-dump.c (dequeue_and_dump): Likewise.
1912         * tree-pretty-print.c (dump_generic_node): Likewise.
1913         (op_code_prio): Likewise.
1914         (op_symbol_code): Likewise.
1915         * tree.c (staticp): Likewise.
1916         (build1_stat): Likewise.
1917         * tree.h (INDIRECT_REF_P): Likewise.
1918         * fold-const.c (maybe_lvalue_p): Likewise.
1919         (operand_equal_p): Likewise.
1920         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1921         (ao_ref_init_from_vn_reference): Likewise.
1922         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
1923         (find_interesting_uses_address): Likewise.
1924         * dwarf2out.c (loc_list_from_tree): Likewise.
1925         * gimplify.c (gimplify_expr): Likewise.
1926         * tree-eh.c (tree_could_trap_p): Likewise.
1927         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1928         * cfgexpand.c (expand_debug_expr): Likewise.
1929         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1930         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
1931         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
1932         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
1933         * tree-ssa-operands.c (get_expr_operands): Likewise.
1934         * expr.c (safe_from_p): Likewise.
1935         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
1936         * tree-vect-data-refs.c (vect_setup_realignment): Build
1937         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
1938         * tree-vect-stmts.c (vectorizable_load): Likewise.
1939         * tree.def (ALIGN_INDIRECT_REF): Remove.
1941 2010-07-05  Richard Guenther  <rguenther@suse.de>
1943         PR tree-optimization/44784
1944         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
1945         for inserted stmts.
1946         (find_or_generate_expression): Fix SCCVN insertion check.
1948 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
1950         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
1951         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
1952         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
1953         directives.
1955 2010-07-05  Ira Rosen  <irar@il.ibm.com>
1957         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
1958         statements that are not vectorized.
1959         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
1960         in INSIDE_COST.
1962 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
1964         PR bootstrap/44820
1965         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
1967 2010-07-05  Richard Guenther  <rguenther@suse.de>
1969         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
1970         RESULT_DECLs properly.
1972 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
1974         PR rtl-optimization/44695
1975         * config/i386/i386.md (extract_code): Removed.
1976         (<u>divmodqi4): Likewise.
1977         (divmodqi4): New.
1978         (udivmodqi4): Likewise.
1979         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
1980         (udivmodhiqi3): Likewise.
1982 2010-07-04  Jan Hubicka  <jh@suse.cz>
1984         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
1986 2010-07-04  Jan Hubicka  <jh@suse.cz>
1988         * cgraphunit.c (init_cgraph): Only initialize dump file if it
1989         is not already initialized.
1991 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
1993         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
1994         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
1995         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
1996         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
1997         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
1998         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
1999         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
2000         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
2001         (sync_new_nand_optab): Redefine as macros.
2002         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
2003         Delete.
2004         (direct_optab_index): New enum.
2005         (direct_optab_d): New structure.
2006         (direct_optab): New typedef.
2007         (direct_optab_table): Declare.
2008         (direct_optab_handler, set_direct_optab_handler): New functions.
2009         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
2010         (sync_lock_release_optab): New macros.
2011         * optabs.c (direct_optab_table): New variable.
2012         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
2013         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
2014         cmpstr_optab and cmpstrn_optab.
2015         (emit_conditional_move): Likewise for movcc_optab.
2016         (can_conditionally_move_p): Likewise for movcc_gen_code.
2017         (init_insn_codes): Clear direct_optab_table.
2018         (init_optabs): Don't initialize the new "direct optabs" here.
2019         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
2020         vcond_gen_code.
2021         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
2022         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
2023         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
2024         (expand_sync_operation): Likewise other sync_*_optabs.
2025         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
2026         to sync_compare_and_swap_optab.
2027         (expand_sync_lock_test_and_set): Use direct_optab_handler for
2028         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
2029         to the names of both.
2030         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
2031         cmpstr_optab and cmpstrn_optab.
2032         (expand_builtin_lock_release): Likewise sync_lock_release.
2033         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
2034         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
2035         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
2036         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
2037         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
2038         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
2039         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
2040         (sync_lock_test_and_set, sync_lock_release): Delete.
2041         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
2042         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
2043         * genopinit.c (optabs): Use set_direct_optab_handler for the new
2044         macro optabs.
2045         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
2046         the "optab" local variable.  Use direct_optab_handler for optab and
2047         sync_compare_and_swap_optab.
2048         * reload1.c (reload_in_optab, reload_out_optab): Delete.
2049         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
2050         reload_in_optab and reload_out_optab.
2051         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2052         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
2053         * config/pa/pa.c (pa_secondary_reload): Likewise.
2054         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
2055         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
2056         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
2057         (VMSupportsCS8_builtin): Likewise.
2059 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
2061         * optabs.h (optab_handlers): Change type of insn_code to int.
2062         (optab_handler, set_optab_handler, convert_optab_handler)
2063         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
2064         CODE_FOR_nothing".
2065         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
2066         (init_insn_codes): Zero both the above arrays.
2067         (init_optabs): Never call init_insn_codes first time around.
2069 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
2071         * optabs.h (optab_handler, convert_optab_handler): Turn into
2072         inline functions that return an insn code.
2073         (set_optab_handler, set_convert_optab_handler): New functions.
2074         * builtins.c: Replace optab_handler(X)->insn_code with
2075         optab_handler or set_optab_handler thoughout.  Likewise
2076         convert_optab_handler(X)->insn_code with convert_optab_handler
2077         and set_convert_optab_handler.
2078         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
2079         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
2080         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
2081         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
2082         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
2083         config/spu/spu.c: Likewise.
2085 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2087         PR target/44531
2088         * config.gcc (sh*-*-*): Use regular expressions instead of
2089         the 'i' modifier for sed substitutions.
2091 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
2093         * gimple.c (gimple_body): Comments added.
2095 2010-07-04  Richard Guenther  <rguenther@suse.de>
2097         PR middle-end/44809
2098         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
2099         of an INDIRECT_REF.
2101 2010-07-04  Richard Guenther  <rguenther@suse.de>
2103         PR tree-optimization/44479
2104         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
2105         extra SSA name copy statements which preserves points-to
2106         information.
2107         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2108         Copy points-to information for all pointers.  Properly handle
2109         MEM_REFs.
2110         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
2111         copy statements.
2112         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
2113         dependency.
2115 2010-07-04  Richard Guenther  <rguenther@suse.de>
2117         PR middle-end/44785
2118         * tree-inline.c (initialize_inlined_parameters): Do not
2119         re-use pointer-map slot over remap_type call.
2121 2010-07-04  Richard Guenther  <rguenther@suse.de>
2123         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
2125 2010-07-04  Richard Guenther  <rguenther@suse.de>
2127         PR tree-optimization/44656
2128         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
2129         again after value-replacing in the defintions lhs.
2131 2010-07-04  Ira Rosen  <irar@il.ibm.com>
2132             Revital Eres  <eres@il.ibm.com>
2134         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
2135         Document new arguments.
2136         * doc/tm.texi: Regenerate.
2137         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
2138         Handle unaligned store.
2139         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
2140         * target.def (builtin_vectorization_cost): Add new arguments.
2141         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
2142         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
2143         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
2144         (vect_vfa_segment_size): Fix indentation.
2145         * tree-vectorizer.h (struct _vect_peel_info): New.
2146         (struct _vect_peel_extended_info): New.
2147         (struct _loop_vec_info): Add new field for peeling hash table and a
2148         macro for its access.
2149         (VECT_MAX_COST): Define.
2150         (vect_get_load_cost): Declare.
2151         (vect_get_store_cost, vect_get_known_peeling_cost,
2152         vect_get_single_scalar_iteraion_cost): Likewise.
2153         (vect_supportable_dr_alignment): Add new argument.
2154         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
2155         field.
2156         (destroy_loop_vec_info): Free peeling hash table.
2157         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
2158         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
2159         vect_analyze_slp. Fix indentation.
2160         (vect_get_single_scalar_iteraion_cost): New function.
2161         (vect_get_known_peeling_cost): Likewise.
2162         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
2163         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
2164         statement. Move outside cost calculation inside unknown peeling case.
2165         Call vect_get_known_peeling_cost for known amount of peeling.
2166         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
2167         reference to the print message of forced alignment.
2168         (vect_verify_datarefs_alignment): Update call to
2169         vect_supportable_dr_alignment.
2170         (vect_get_data_access_cost): New function.
2171         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
2172         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
2173         vect_peeling_hash_choose_best_peeling): Likewise.
2174         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
2175         to store all the accesses in the loop and find best possible access to
2176         align using peeling for known alignment case. For unknown alignment
2177         check if stores are preferred or if peeling is worthy.
2178         (vect_find_same_alignment_drs): Analyze pairs of loads too.
2179         (vect_supportable_dr_alignment): Add new argument and check aligned
2180         accesses according to it.
2181         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
2182         (cost_for_stmt): Call vect_get_stmt_cost.
2183         (vect_model_simple_cost): Likewise.
2184         (vect_model_store_cost): Call vect_get_stmt_cost. Call
2185         vect_get_store_cost to calculate the cost of the statement.
2186         (vect_get_store_cost): New function.
2187         (vect_model_load_cost): Call vect_get_stmt_cost. Call
2188         vect_get_load_cost to calculate the cost of the statement.
2189         (vect_get_load_cost): New function.
2190         (vectorizable_store): Update call to vect_supportable_dr_alignment.
2191         (vectorizable_load): Likewise.
2192         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
2193         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
2194         arguments. Handle unaligned store.
2195         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
2196         (rs6000_builtin_support_vector_misalignment): Return true for word and
2197         double word alignments for VSX.
2198         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
2199         vect_supportable_dr_alignment and builtin_vectorization_cost.
2201 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2203         PR target/44597
2204         * config/pa/predicates.md (prefetch_cc_operand): Remove.
2205         (prefetch_nocc_operand): Likewise.
2206         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
2207         (prefetch_20): New insn.
2208         (prefetch_cc): Remove.
2209         (prefetch_nocc): Likewise.
2211 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2213         * expr.c (vector_mode_valid_p): Move to c-common.c.
2214         * expr.h (vector_mode_valid_p): Do not declare here.
2215         * system.h: Poison GCC_EXPR_H in front-ends.
2216         * Makefile.in: Update dependencies.
2218 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2220         PR target/44705
2221         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
2223 2010-07-03  Jan Hubicka  <jh@suse.cz>
2225         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
2226         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
2227         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
2228         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
2229         Likewise.
2231         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
2232         Update timevars.V
2233         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
2234         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
2235         TV_IPA_LTO_DECL_OUT): New.
2236         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
2238 2010-07-03  Jan Hubicka  <jh@suse.cz>
2240         * ipa-inline.c (update_edge_key): Break out from ...
2241         update_callers_keys): ... here;
2242         (update_callee_keys): Update only the edges from caller to callee.
2243         (update_all_calle_keys): Do what update_calle_keys did.
2244         (decide_inlining_of_small_functions): Avoid recomputing of all
2245         callees when badness increase.
2247 2010-07-03  Jie Zhang  <jie@codesourcery.com>
2249         * config/arm/arm.c (arm_attr_length_move_neon): New.
2250         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
2251         * config/arm/neon.md (define_mode_attr V_slen): Remove.
2252         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
2253         to compute length attribute.
2255 2010-07-03  Jie Zhang  <jie@codesourcery.com>
2257         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
2258         as predicate for operand 1 and remove its constraint.
2259         * config/arm/predicates.md (vfp_register_operand): New.
2260         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
2261         (*push_fp_multi): Likewise.
2263 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2265         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
2267 2010-07-03  Jan Hubicka  <jh@suse.cz>
2269         * config/i386/i386.c (override_options): Revert accidental commit.
2271 2010-07-02  Le-Chun Wu  <lcwu@google.com>
2273         PR c++/44128
2274         * doc/invoke.texi: Update documentation of -Wshadow.
2276 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
2277             Julian Brown  <julian@codesourcery.com>
2278             Sandra Loosemore <sandra@codesourcery.com>
2280         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
2281         comparisons.  Adjust to take both operands.
2282         (arm_select_cc_mode): Handle DImode comparisons.
2283         (arm_gen_compare_reg): Generate a scratch register for DImode
2284         comparisons which require one.  Use xor for Thumb equality checks.
2285         (arm_const_double_by_immediates): New.
2286         (arm_print_operand): Allow 'Q' and 'R' for constants.
2287         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
2288         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
2289         arm_canonicalize_comparison.
2290         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
2291         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
2292         prototype.
2293         (arm_const_double_by_immediates): Declare.
2294         * config/arm/constraints.md (Di): New constraint.
2295         * config/arm/predicates.md (arm_immediate_di_operand)
2296         (arm_di_operand, cmpdi_operand): New.
2297         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
2298         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
2299         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
2300         (cstoredi4): Handle non-Cirrus also.
2302 2010-07-02  Julian Brown  <julian@codesourcery.com>
2303             Sandra Loosemore <sandra@codesourcery.com>
2305         PR target/43703
2306         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
2307         (smax<mode>3): Disable for NEON float modes when
2308         flag_unsafe_math_optimizations is false.
2309         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
2310         (*mul<mode>3_neon)
2311         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
2312         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
2313         for NEON float modes when flag_unsafe_math_optimizations is false.
2314         (quad_halves_<code>v4sf): Only enable if
2315         flag_unsafe_math_optimizations is true.
2316         * doc/invoke.texi (ARM Options): Add note about floating point
2317         vectorization requiring -funsafe-math-optimizations.
2319 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2320             Julian Brown  <julian@codesourcery.com>
2322         * config/arm/neon.md (UNSPEC_VABA): Delete.
2323         (UNSPEC_VABAL): Delete.
2324         (UNSPEC_VABS): Delete.
2325         (UNSPEC_VMUL_N): Delete.
2326         (adddi3_neon): New.
2327         (subdi3_neon): New.
2328         (mul<mode>3add<mode>_neon): Make the pattern named.
2329         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
2330         (neon_vadd<mode>): Replace with define_expand, and move the remaining
2331         unspec parts...
2332         (neon_vadd<mode>_unspec): ...to this.
2333         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
2334         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
2335         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
2336         (neon_vaba<mode>): Rewrite in terms of vabd.
2337         (neon_vabal<mode>): Rewrite in terms of vabdl.
2338         (neon_vabs<mode>): Rewrite without unspec.
2339         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
2340         (*arm_subdi3): Likewise.
2341         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
2342         No_op attribute to disable assembly output checks.
2343         * config/arm/arm_neon.h: Regenerated.
2344         * doc/arm-neon-intrinsics.texi: Regenerated.
2346 2010-07-02  Jan Hubicka  <jh@suse.cz>
2348         * ipa-split.c (split_function): For aggregate values, set the return
2349         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
2350         *<retval> = fncall.part ().
2351         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
2353 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2355         * config/arm/neon.md (UNSPEC_VAND): Delete.
2356         (UNSPEC_VBIC): Delete.
2357         (UNSPEC_VCLZ): Delete.
2358         (UNSPEC_VCNT): Delete.
2359         (UNSPEC_VEOR): Delete.
2360         (UNSPEC_VORN): Delete.
2361         (UNSPEC_VORR): Delete.
2362         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
2363         core registers too.
2364         (anddi3_neon): Likewise.
2365         (orndi3_neon): Likewise.
2366         (bicdi3_neon): Likewise.
2367         (xordi3_neon): Likewise.
2368         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
2369         rid of unspec and handle unused operand.
2370         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
2371         * config/arm/predicates.md (imm_for_neon_logic_operand):
2372         Require TARGET_NEON.
2373         (imm_for_neon_inv_logic_operand): Likewise.
2374         * config/arm/arm.md (define_split for logical_binary_operator):
2375         Disable for NEON registers.
2376         (anddi3): Add new define_expand, and rename the insn.  Disable
2377         this insn for NEON, where anddi3_neon now applies.
2378         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
2379         (iordi3): As for anddi3.
2380         (xordi3): Likewise.
2381         * config/arm/neon.ml (Vand): Split DImode variants and mark them
2382         as No_op to disable testing for exact instruction match.
2383         (Vorr): Likewise.
2384         (Veor): Likewise.
2385         (Vbic): Likewise.
2386         (Vorn): Likewise.
2387         * config/arm/arm_neon.h: Regenerated.
2388         * doc/arm-neon-intrinsics.texi: Regenerated.
2390 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2392         * expr.h (emit_stack_probe): Declare.
2393         * explow.c (emit_stack_probe): Make global.
2394         (anti_adjust_stack_and_probe): Fix comments.
2395         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2396         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2397         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2398         * config/sparc/sparc.c: Include except.h.
2399         (sparc_emit_probe_stack_range): New function.
2400         (output_probe_stack_range): Likewise.
2401         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
2402         built-in stack checking is enabled.
2403         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
2404         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2405         (probe_stack_range): New insn.
2407 2010-07-02  Richard Guenther  <rguenther@suse.de>
2409         PR target/43958
2410         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
2411         for argument alignment.
2413 2010-07-02  Jan Hubicka  <jh@suse.cz>
2415         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
2416         walk backwards from entry_bb to check only those basic block of header
2417         that might lead to execution of split part.
2418         (consider_split) ... here.
2419         (find_return_bb): Allow assignment in return BB.
2420         (find_retval): New.
2421         (split_function): Fix name of cloned function; take care of updating
2422         return value in return_bb containing move.
2424 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
2426         PR target/44771
2427         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
2428         used variable insn.
2430 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2432         * implicit-zee.c (combine_reaching_defs): Fix long lines.
2433         (is_set_with_extension_DI): Delete.
2434         (struct zero_extend_info): New structure.
2435         (add_removable_zero_extend): New function.
2436         (find_removable_zero_extends): Use note_stores to find SETs.
2437         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
2439 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
2441         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
2442         is_miss_rate_acceptable. Pull total_positions computation
2443         out of the loops.  Early return if miss_positions exceeds
2444         the acceptable threshold.
2445         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
2446         is_miss_rate_acceptable after renaming of compute_miss_rate.
2448 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
2450         PR middle-end/44576
2451         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
2452         of 1000) for miss rate if the address diference is greater than or
2453         equal to the cache line size (the two reference will never hit the
2454         same cache line).
2456 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
2458         PR target/42835
2459         * config/arm/arm-modes.def (CC_NOTB): New mode.
2460         * config/arm/arm.c (get_arm_condition_code): Handle it.
2461         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
2462         * config/arm/arm.md (subsi3_compare0_c): New pattern.
2463         (compare_scc): Now a define_and_split.  Add a number of extra
2464         splitters before it.
2466         PR target/42172
2467         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
2468         and ZERO_EXTEND.
2469         (arm_rtx_costs_1): Likewise.
2470         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
2471         * config/arm/arm.md (is_arch6): New attribute.
2472         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
2473         extendqisi2): Tighten the code somewhat, avoiding invalid
2474         RTL to occur in the expander patterns.
2475         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
2476         (thumb1_zero_extendhisi2_v6): Delete.
2477         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
2478         (thumb1_extendhisi2_v6): Delete.
2479         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
2480         (thumb1_extendqisi2_v6): Delete.
2481         (zero_extendhisi2 for register input splitter): New.
2482         (zero_extendqisi2 for register input splitter): New.
2483         (thumb1_extendhisi2 for register input splitter): New.
2484         (extendhisi2 for register input splitter): New.
2485         (extendqisi2 for register input splitter): New.
2486         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
2487         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
2488         and add support for a register alternative requiring a split.
2489         (thumb1_zero_extendqisi2): Likewise.
2490         (arm_zero_extendqisi2): Likewise.
2491         (arm_extendhisi2): Likewise.
2492         (arm_extendqisi2): Likewise.
2494 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2496         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
2497         instead of an unspec.
2498         (neon_expand_vector_init): Likewise.
2499         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
2500         (UNSPEC_VDUP_LANE): Delete.
2501         (UNSPEC VDUP_N): Delete.
2502         (UNSPEC_VGET_HIGH): Delete.
2503         (UNSPEC_VGET_LANE): Delete.
2504         (UNSPEC_VGET_LOW): Delete.
2505         (UNSPEC_VMVN): Delete.
2506         (UNSPEC_VSET_LANE): Delete.
2507         (V_double_vector_mode): New.
2508         (vec_set<mode>_internal): Make code emitted match that for the
2509         corresponding intrinsics.
2510         (vec_setv2di_internal): Likewise.
2511         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
2512         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
2513         (neon_vset_lane<mode>): Combine double and quad patterns and
2514         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
2515         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
2516         (neon_vdup_n<mode>): Rewrite RTL without unspec.
2517         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
2518         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
2519         with neon_vdup_lanev2di, adjusting the pattern from the latter
2520         to be predicable for consistency.
2521         (neon_vdup_lane<mode>_internal): New.
2522         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
2523         to avoid using an unspec.
2524         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
2525         (neon_vdup_lanev2di): Turn into a define_expand.
2526         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
2527         (neon_vget_high<mode>): Replace with....
2528         (neon_vget_highv16qi): New pattern using canonical RTL.
2529         (neon_vget_highv8hi): Likewise.
2530         (neon_vget_highv4si): Likewise.
2531         (neon_vget_highv4sf): Likewise.
2532         (neon_vget_highv2di): Likewise.
2533         (neon_vget_low<mode>): Replace with....
2534         (neon_vget_lowv16qi): New pattern using canonical RTL.
2535         (neon_vget_lowv8hi): Likewise.
2536         (neon_vget_lowv4si): Likewise.
2537         (neon_vget_lowv4sf): Likewise.
2538         (neon_vget_lowv2di): Likewise.
2540         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
2541         test for this emitting vmov.
2542         (Vset_lane): Likewise.
2543         (Vdup_n): Likewise.
2544         (Vmov_n): Likewise.
2546         * doc/arm-neon-intrinsics.texi: Regenerated.
2548 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2550         * config/arm/neon.md (vec_extractv2di): Correct error in register
2551         numbering to reconcile with neon_vget_lanev2di.
2553 2010-07-02  Richard Guenther  <rguenther@suse.de>
2555         * tree-ssa-structalias.c (pt_solution_set_var): New function.
2556         * tree-ssa-alias.h (pt_solution_set_var): Declare.
2557         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
2558         points-to information.
2560 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
2562         * config/s390/s390.c (override_options): Adopt prefetching
2563         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
2565 2010-07-02  Jan Hubicka  <jh@suse.cz>
2567         * df-problems.c (df_kill_notes): Do not collect dead  notes.
2568         (df_set_note): Just call add_reg_note.
2569         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
2570         df_create_unused_note): Do not deal with lists of old notes.
2571         (df_note_bb_compute): Likewise.
2573 2010-07-02  Richard Guenther  <rguenther@suse.de>
2575         * tree-ssa-structalias.c (find_func_aliases): Handle
2576         pointer alignment via BIT_AND_EXPR.
2577         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
2579 2010-07-02  Richard Guenther  <rguenther@suse.de>
2581         * tree-data-ref.c (initialize_data_dependence_relation): Handle
2582         mismatching number of dimensions properly.
2584 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2586         PR target/44707
2587         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
2588         (lo_sum (high ...) ...) patterns generated by earlier passes.
2590 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2592         * doc/install.texi (Prerequisites): Document Perl requirement on
2593         Solaris 2.
2594         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
2596 2010-07-02  Richard Guenther  <rguenther@suse.de>
2598         PR middle-end/44777
2599         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
2601 2010-07-02  Jan Hubicka  <jh@suse.cz>
2603         PR middle-end/44706
2604         * predict.c (predict_paths_for_bb): Handle case when control dependence
2605         BB has only abnormal edges.
2607 2010-07-02  Richard Guenther  <rguenther@suse.de>
2609         PR tree-optimization/44748
2610         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
2611         the embedded conversion in MEM_REFs.
2613 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
2615         * reload.c: Include toplev.h.
2616         * recog.c:  Likewise.
2617         * Makefile.in: Adjust dependencies.
2619 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
2621         PR debug/44694
2622         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
2623         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
2625 2010-07-01  Richard Guenther  <rguenther@suse.de>
2627         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
2628         types for offsets.
2630 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
2632         PR target/44732
2633         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
2634         Fix argument types.
2636 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
2638         PR target/44727
2639         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2640         Make sure operand 0 dies.
2642 2010-07-01  Richard Guenther  <rguenther@suse.de>
2644         PR middle-end/42834
2645         PR middle-end/44468
2646         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
2647         * doc/generic.texi (References to storage): Document MEM_REF.
2648         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
2649         (print_call_name): Likewise.
2650         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
2651         (build_simple_mem_ref_loc): New function.
2652         (mem_ref_offset): Likewise.
2653         * tree.h (build_simple_mem_ref_loc): Declare.
2654         (build_simple_mem_ref): Define.
2655         (mem_ref_offset): Declare.
2656         * fold-const.c: Include tree-flow.h.
2657         (operand_equal_p): Handle MEM_REF.
2658         (build_fold_addr_expr_with_type_loc): Likewise.
2659         (fold_comparison): Likewise.
2660         (fold_unary_loc): Fold
2661         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
2662         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
2663         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
2664         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
2665         (ptr_deref_may_alias_ref_p_1): Likewise.
2666         (ao_ref_base_alias_set): Properly differentiate base object for
2667         offset and TBAA.
2668         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
2669         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
2670         (indirect_refs_may_alias_p): Likewise.
2671         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
2672         chasing code.
2673         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
2674         (call_may_clobber_ref_p_1): Likewise.
2675         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
2676         * expr.c (expand_assignment): Handle MEM_REF.
2677         (store_expr): Handle MEM_REFs from STRING_CSTs.
2678         (store_field): If expanding a MEM_REF of a non-addressable
2679         decl use bitfield operations.
2680         (get_inner_reference): Handle MEM_REF.
2681         (expand_expr_addr_expr_1): Likewise.
2682         (expand_expr_real_1): Likewise.
2683         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
2684         * alias.c (ao_ref_from_mem): Handle MEM_REF.
2685         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
2686         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
2687         (dr_analyze_indices): Likewise.
2688         (dr_analyze_alias): Likewise.
2689         (object_address_invariant_in_loop_p): Likewise.
2690         * gimplify.c (mark_addressable): Handle MEM_REF.
2691         (gimplify_cond_expr): Build MEM_REFs.
2692         (gimplify_modify_expr_to_memcpy): Likewise.
2693         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
2694         (gimple_fold_indirect_ref): Adjust.
2695         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
2696         * tree.def (MEM_REF): New tree code.
2697         * tree-dfa.c: Include toplev.h.
2698         (get_ref_base_and_extent): Handle MEM_REF.
2699         (get_addr_base_and_unit_offset): New function.
2700         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
2701         * gimple-fold.c (may_propagate_address_into_dereference): Handle
2702         MEM_REF.
2703         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
2704         accesses if the array has just one dimension.  Remove always true
2705         parameter.  Do not require type compatibility here.
2706         (maybe_fold_offset_to_component_ref): Remove.
2707         (maybe_fold_stmt_indirect): Remove.
2708         (maybe_fold_reference): Remove INDIRECT_REF handling.
2709         Fold back to non-MEM_REF.
2710         (maybe_fold_offset_to_address): Simplify.  Deal with type
2711         mismatches here.
2712         (maybe_fold_reference): Likewise.
2713         (maybe_fold_stmt_addition): Likewise.  Also handle
2714         &ARRAY + I in addition to &ARRAY[0] + I.
2715         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
2716         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
2717         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
2718         * tree-ssa.c (useless_type_conversion_p): Make most pointer
2719         conversions useless.
2720         (warn_uninitialized_var): Handle MEM_REF.
2721         (maybe_rewrite_mem_ref_base): New function.
2722         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
2723         to SSA form.
2724         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
2725         INDIRECT_REF handling.
2726         (copy_tree_body_r): Handle MEM_REF.
2727         * gimple.c (is_gimple_addressable): Adjust.
2728         (is_gimple_address): Likewise.
2729         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
2730         invariant base are invariant.
2731         (is_gimple_min_lval): Adjust.
2732         (is_gimple_mem_ref_addr): New function.
2733         (get_base_address): Handle MEM_REF.
2734         (count_ptr_derefs): Likewise.
2735         (get_base_loadstore): Likewise.
2736         * gimple.h (is_gimple_mem_ref_addr): Declare.
2737         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
2738         * tree-cfg.c (verify_address): New function, split out from ...
2739         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
2740         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
2741         INDIRECT_REFs.
2742         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
2743         INDIRECT_REF.  Allow conversions.
2744         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
2745         a register does not change its size.
2746         (verify_types_in_gimple_reference): Verify MEM_REF.
2747         (verify_gimple_assign_single): Disallow INDIRECT_REF.
2748         Handle MEM_REF.
2749         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
2750         New.
2751         (mark_address_taken): Handle MEM_REF.
2752         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
2753         (get_asm_expr_operands): Pass opf_not_non_addressable.
2754         (get_expr_operands): Handle opf_[not_]non_addressable.
2755         Handle MEM_REF.  Remove INDIRECT_REF handling.
2756         * tree-vrp.c: (check_array_ref): Handle MEM_REF.
2757         (search_for_addr_array): Likewise.
2758         (check_array_bounds): Likewise.
2759         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
2760         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
2761         (ref_always_accessed_p): Likewise.
2762         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
2763         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
2764         Handle MEM_REF.
2765         * cgraphbuild.c (mark_load): Properly check for NULL result
2766         from get_base_address.
2767         (mark_store): Likewise.
2768         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
2769         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
2770         handling for MEM_REF.
2771         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
2772         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
2773         * builtins.c (stabilize_va_list_loc): Use the function ABI
2774         valist type if we couldn't canonicalize the argument type.
2775         Always dereference with the canonical va-list type.
2776         (maybe_emit_free_warning): Handle MEM_REF.
2777         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
2778         memmove to memcpy.
2779         * builtins.c (fold_builtin_memory_op): Use ref-all types
2780         for all memcpy foldings.
2781         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
2782         (build_outer_var_ref): Likewise.
2783         (scan_omp_1_op): Likewise.
2784         (lower_rec_input_clauses): Likewise.
2785         (lower_lastprivate_clauses): Likewise.
2786         (lower_reduction_clauses): Likewise.
2787         (lower_copyprivate_clauses): Likewise.
2788         (expand_omp_atomic_pipeline): Likewise.
2789         (expand_omp_atomic_mutex): Likewise.
2790         (create_task_copyfn): Likewise.
2791         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
2792         Remove old union trick.  Initialize constant offsets.
2793         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
2794         INDIRECT_REF.  Init base_alias_set properly.
2795         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
2796         (vn_reference_fold_indirect): Adjust for MEM_REFs.
2797         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
2798         for ARRAY_REFs.
2799         (may_insert): Remove.
2800         (visit_reference_op_load): Do not test may_insert.
2801         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
2802         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
2803         a field to store the constant offset this op applies.
2804         (run_scc_vn): Adjust prototype.
2805         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
2806         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
2807         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
2808         bother about volatile qualifiers on pointers.
2809         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
2810         * tree-ssa-loop-ivopts.c
2811         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
2812         (strip_offset_1): Likewise.
2813         (find_interesting_uses_address): Replace INDIRECT_REF handling with
2814         MEM_REF handling.
2815         (get_computation_cost_at): Likewise.
2816         * ipa-pure-const.c (check_op): Handle MEM_REF.
2817         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
2818         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
2819         and constants.
2820         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
2821         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
2822         (eliminate_local_variables_1): Likewise.
2823         (create_call_for_reduction_1): Likewise.
2824         (create_loads_for_reductions): Likewise.
2825         (create_loads_and_stores_for_name): Likewise.
2826         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
2827         (ssa_accessed_in_tree): Handle MEM_REF.
2828         (ssa_accessed_in_assign_rhs): Likewise.
2829         (update_type_size): Likewise.
2830         (analyze_accesses_for_call_stmt): Likewise.
2831         (analyze_accesses_for_assign_stmt): Likewise.
2832         (transform_access_sites): Likewise.
2833         (transform_allocation_sites): Likewise.
2834         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
2835         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
2836         not handle INDIRECT_REF.
2837         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
2838         (cond_store_replacement): Likewise.
2839         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
2840         MEM_REF, no not handle INDIRECT_REFs.
2841         (insert_into_preds_of_block): Properly initialize avail.
2842         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
2843         for ARRAY_REFs.  Properly handle reference lookups that
2844         require a bit re-interpretation.
2845         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
2846         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
2847         (build_ref_for_offset_1): Remove.
2848         (build_ref_for_offset): Build MEM_REFs.
2849         (gate_intra_sra): Disable for now.
2850         (sra_ipa_modify_expr): Handle MEM_REF.
2851         (ipa_early_sra_gate): Disable for now.
2852         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
2853         MEM_REF handling.
2854         (disqualify_base_of_expr): Likewise.
2855         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
2856         MEM_REF handling.
2857         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
2858         Use mem_ref_offset.  Remove bogus folding.
2859         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
2860         (make_fancy_name_1): Add support for MEM_REF.
2861         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
2862         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
2863         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
2864         (compute_complex_ancestor_jump_func): Likewise.
2865         (ipa_analyze_virtual_call_uses): Likewise.
2866         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
2867         INDIRECT_REF folding with more generalized MEM_REF folding.
2868         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
2869         (forward_propagate_addr_into_variable_array_index): Also handle
2870         &ARRAY + I in addition to &ARRAY[0] + I.
2871         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
2872         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
2873         creates assignments with overlap.
2874         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
2875         (get_frame_field): Likewise.
2876         (get_nonlocal_debug_decl): Likewise.
2877         (convert_nonlocal_reference_op): Likewise.
2878         (struct nesting_info): Add mem_refs pointer-set.
2879         (create_nesting_tree): Allocate it.
2880         (convert_local_reference_op): Insert to be folded mem-refs.
2881         (fold_mem_refs): New function.
2882         (finalize_nesting_tree_1): Perform defered folding of mem-refs
2883         (free_nesting_tree): Free the pointer-set.
2884         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
2885         (vectorizable_load): Likewise.
2886         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
2887         (propagate_with_phi): Likewise.
2888         * tree-object-size.c (addr_object_size): Handle MEM_REFs
2889         instead of INDIRECT_REFs.
2890         (compute_object_offset): Handle MEM_REF.
2891         (plus_stmt_object_size): Handle MEM_REF.
2892         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
2893         for &MEM_REF.
2894         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
2895         (symbol_marked_for_renaming): Likewise.
2896         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
2897         (fold-const.o): Add $(TREE_FLOW_H).
2898         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
2899         (find_func_clobbers): Likewise.
2900         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
2901         (decompose_access): Likewise.
2902         (replace_field_acc): Likewise.
2903         (replace_field_access_stmt): Likewise.
2904         (insert_new_var_in_stmt): Likewise.
2905         (get_stmt_accesses): Likewise.
2906         (reorg_structs_drive): Disable.
2907         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
2908         (ix86_canonical_va_list_type): Likewise.
2910 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
2912         PR other/44566
2913         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
2914         * target.def (struct gcc_target): Replace enum reg_class with
2915         reg_class_t in hook argument / return types.
2916         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
2917         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
2918         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2919         * targhooks.h (default_branch_target_register_class): Likewise.
2920         (default_ira_cover_classes, default_secondary_reload): Likewise.
2921         (default_memory_move_cost, default_register_move_cost): Likewise.
2922         * targhooks.c (default_branch_target_register_class): Likewise.
2923         (default_ira_cover_classes, default_secondary_reload): Likewise.
2924         (default_memory_move_cost, default_register_move_cost): Likewise.
2925         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
2926         * bt-load.c (branch_target_load_optimize): Likewise.
2927         * ira.c (setup_cover_and_important_classes): Likewise.
2928         * ira-costs.c (copy_cost): Likewise.
2929         * reload1.c (emit_input_reload_insns): Likewise.
2930         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2931         * config/frv/frv.c (frv_secondary_reload): Likewise.
2932         * config/s390/s390.c (s390_secondary_reload): Likewise.
2933         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
2934         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
2935         (ix86_register_move_cost): Likewise.
2936         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
2937         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
2938         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
2939         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
2940         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
2941         (rs6000_ira_cover_classes): Likewise.
2942         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
2943         * config/picochip/picochip-protos.h (picochip_secondary_reload):
2944         Likewise.
2945         * config/pa/pa.c (pa_secondary_reload): Likewise.
2946         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
2947         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
2948         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
2949         * doc/tm.texi: Regenerate.
2951 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
2953         PR bootstrrap/44726
2954         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
2955         use.
2956         (build_alias_set_optimal_p): Likewise.
2957         (build_base_obj_set_for_drs): Likewise.
2959 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
2961         * target.def: Remove comment about licensing problems of function
2962         declarations.
2964         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
2965         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
2966         * doc/tm.texi: Regenerate.
2968         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
2969         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
2971         * target.def (enum_va_list_p): Use DEFHOOK.
2972         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
2973         Rename ptype to ptree.
2974         * doc/tm.texi: Regenerate.
2976         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
2977         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
2978         * doc/tm.texi: Regenerate.
2980         * target.def (memory_move_cost): Use DEFHOOK.
2981         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
2982         Rename regclass AKA class to rclass.
2983         * doc/tm.texi: Regenerate.
2985         * target.def (pragma_parse): Use DEFHOOK.
2986         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
2987         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
2988         * doc/tm.texi: Regenerate.
2990         * target.def (pass_by_reference): Use DEFHOOK.
2991         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
2992         * doc/tm.texi: Regenerate.
2994         * target.def (resolve_overloaded_builtin): Rename params to arglist.
2995         Use DEFHOOK.
2996         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
2997         * doc/tm.texi: Regenerate.
2999         * target.def (return_pops_args): Use DEFHOOK.
3000         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
3001         Rename stack-size to size.
3002         * doc/tm.texi: Regenerate.
3004         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
3005         last-sched_cycle to last_clock, cur_cycle to clock.
3006         * doc/tm.texi.in: Use @hook.
3007         * doc/tm.texi: Regenerate.
3009         * target.def (print_operand, print_operand_address): Update comment.
3010         (print_operand_punct_valid_p): Likewise.
3012 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3014         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
3015         to rtl.h.
3016         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
3017         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
3018         * rtl-error.h: New.
3019         * regrename.c: Do not include toplev.h. Include rtl-error.h.
3020         * rtl-error.c: Likewise.
3021         * reload.c: Likewise.
3022         * recog.c:  Likewise.
3023         * sel-sched.c: Likewise.
3024         * function.c: Likewise.
3025         * reg-stack.c: Likewise.
3026         * cfgrtl.c: Likewise.
3027         * reload1.c: Likewise.
3028         * final.c: Include rtl-error.
3029         * Makefile.in: Adjust dependencies.
3031 2010-06-30  Jan Hubicka  <jh@suse.cz>
3033         PR middle-end/PR44706
3034         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
3035         to return the value.
3037 2010-06-30  Michael Matz  <matz@suse.de>
3039         PR bootstrap/44699
3040         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
3041         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
3042         a gimple reg, attach the original VDEF to the last store in the
3043         sequence.
3045 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
3047         PR other/44034
3048         * config/darwin.c (darwin_override_options): Use renamed
3049         targetm.asm_out.emit_unwind_label.
3051 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
3053         PR tree-optimization/39799
3054         * tree-inline.c (remap_ssa_name): Initialize variable only if
3055         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3057 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
3059         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
3061 2010-06-30  Richard Guenther  <rguenther@suse.de>
3063         PR target/44722
3064         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
3065         against oscillation with reverse peephole2.
3067 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
3069         PR target/44721
3070         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3071         Fix last commit.
3073 2010-06-30  Nick Clifton  <nickc@redhat.com>
3075         * config/rx/rx-modes.def: New file.
3076         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
3077         (CC_REGNUM): Define.
3078         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
3079         register.
3080         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
3081         (SELECT_CC_MODE): Define.
3082         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
3083         (reg:CC CC_REG) instead of (cc0).
3084         (attr "cc"): Delete.
3085         (cbranchsi4): Do not split compare and branch here. Instead move
3086         it to...
3087         (cbranchsi4_<code>): ... here.  New patterns.
3088         (cmpsi): Call rx-compare_redundant to find out if it is necessary
3089         to emit the compare instruction.
3090         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
3091         cc_status flags.
3092         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
3093         FIRST_PSEUDO_REGNUM.
3094         (rx_expand_prologue, rx_expand_epilogue): Likewise.
3095         (rx_notice_update_cc): Delete.
3096         (rx_cc_modes_compatible): New function.
3097         (flags_needed_for_conditional): New function.
3098         (flags_from_mode): New function.
3099         (rx_compare_redundant): New function - scans backwards through
3100         insn list to find out if condition flags are already set correctly.
3101         (TARGET_CC_MODES_COMPATIBLE): Define.
3102         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
3104         * config/rx/rx.h (BRANCH_COST): Define.
3105         (REGISTER_MOVE_COST): Define.
3106         * config/rx/predicates (rx_source_operand): Allow all constant types.
3107         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
3108         (tstsi4): New pattern.
3109         * config/rx/rx.c (rx_memory_move_cost): Define.
3110         (TARGET_MEMORY_MOVE_COST): Define.
3112 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3114         * tree.h (block_may_fallthru): Declare here.
3115         * tree-flow.h (block_may_fallthru): Do not declare here.
3116         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
3117         bitmap.h
3118         * Makefile.in (c-typeck.o): Update dependencies.
3120 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
3122         PR debug/44694
3123         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
3124         * cselib.c (cfa_base_preserved_regno): New static variable.
3125         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
3126         of REGNO (cfa_base_preserved_val->locs->loc).
3127         (cselib_preserve_cfa_base_value): Add regno argument, set
3128         cfa_base_preserved_regno to it.
3129         (cselib_invalidate_regno): Allow removal of registers other than
3130         cfa_base_preserved_regno from cfa_base_preserved_val.
3131         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
3132         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
3133         of MEM addresses, if not on LHS.
3134         (reverse_op): Don't add reverse ops for cfa_base_rtx.
3135         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
3137 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
3139         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
3140         static variables.
3141         (peep2_buf_position): New static function.
3142         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
3143         peephole2_optimize): Use it.
3144         (peep2_attempt, peep2_update_life): New static functions, broken out
3145         of peephole2_optimize.
3146         (peep2_fill_buffer): New static function.
3147         (peephole2_optimize): Change the main loop to try to fill the buffer
3148         with the maximum number of insns before matching them against
3149         peepholes.  Use a forward scan.  Remove special case for targets with
3150         conditional execution.
3151         * genrecog.c (change_state): Delete dead code.
3152         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3153         Rewrite so as not to expect the second insn to have had a peephole
3154         applied yet.
3156 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
3158         * genhooks.c (emit_findices): Cast field precision to int.
3159         (emit_documentation): Likewise.
3161 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
3163         PR tree-optimization/43801
3164         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
3165         if old_decl was DECL_ONE_ONLY.
3167         PR debug/44668
3168         * dwarf2out.c (add_accessibility_attribute): New function.
3169         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
3170         instead of adding DW_AT_accessibility manually.
3171         (gen_enumeration_type_die, gen_struct_or_union_type_die,
3172         gen_typedef_die): Use it.
3174 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
3176         * vmsdbgout.c (full_name): Just output the file name if not native.
3178 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
3180         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
3181         (funcnam_table): New static table.
3182         (funcnum_table): New static table.
3183         (write_rtnbeg): Write value saved in funcnum_table.
3184         (write_rtnend): Write value saved in funcnum_table.
3185         (vmsdbgout_begin_function): Save current function info in
3186         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
3187         (vmsdbgout_finish): Iterate over funcnum_table.
3189 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
3191         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
3192         (vmsdbgout_type_decl): Declare
3193         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
3194         (FUNC_EPILOGUE_LABEL): New macro
3195         (vmsdbgout_begin_epilogue): New function.
3196         (vmsdbgout_type_decl): New function.
3198 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
3200         * vmsdbg.h: Update copyright.
3202 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
3204         * vmsdbg.h (DST_K_TBG): New DST constant.
3205         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
3206         (write_modbeg): Cast module_language to avoid warning.
3207         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
3209 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
3211         PR other/44034
3212         * target.def, doc/tm.texi.in, genhooks.c: New files.
3213         * target.h: Instead of defining individual hook members,
3214         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
3215         include target.def.
3216         * target-def.h: Instead of defining individual hook initializers,
3217         include target-hooks-def.h.
3218         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
3219         targetm.live_on_entry -> targetm.extra_live_on_entry
3220         targetm.sched.md_finish ->targetm.sched.finish
3221         targetm.sched.md_init -> targetm.sched.init
3222         targetm.sched.md_init_global -> targetm.sched.init_global
3223         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
3224         targetm.asm_out.except_table_label ->
3225           targetm.asm_out.emit_except_table_label
3226         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
3227         targetm.target_help -> targetm.help
3228         targetm.vectorize.builtin_support_vector_misalignment ->
3229           targetm.vectorize.support_vector_misalignment
3230         targetm.file_start_app_off -> targetm.asm_file_start_app_off
3231         targetm.file_start_file_directive ->
3232          targetm.asm_file_start_file_directive
3233         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
3234         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
3235         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
3236         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
3237           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
3238         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
3239           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
3240         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
3241         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
3242         * Makefile.in (TARGET_H): Depend on target.def.
3243         (TARGET_DEF_H): Depend on target-hooks-def.h.
3244         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
3245         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
3246         * doc/tm.texi: Regenerate.
3248         * Makefile.in (s-tm-texi): Remove stray tab / rule.
3250         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
3251         (targetm.sched.init): Likewise.
3253 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
3255         PR bootstrap/44713
3256         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
3257         (function_arg_advance_32): Const-ify TYPE parameter.
3258         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
3259         (ix86_function_arg_advance): Change type of NAMED to bool.
3260         (function_arg_32): Const-ify CUM and TYPE parameters.
3261         (function_arg_64): Likewise.  Change type of NAMED to bool.
3262         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
3263         to bool.
3264         (ix86_function_arg): Change type of NAMED to bool.
3265         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
3266         last argument as a bool.
3268 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
3270         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
3271         (OVERRIDE_OPTIONS): Add note of obsolescence.
3272         Replace references with references to TARGET_OPTION_OVERRIDE.
3273         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
3274          the macro).
3275         * targhooks.c (default_target_option_override): New function.
3276         * targhooks.h (default_target_option_override): Declare.
3277         * target.h (struct gcc_target): Add override member to
3278         target_option member.
3279         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
3280         targetm.target_option.override call.
3281         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
3282         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
3284 2010-06-29  Jan Hubicka  <jh@suse.cz>
3286         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
3288 2010-06-29  Jan Hubicka  <jh@suse.cz>
3290         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
3291         unreachable.
3292         (rebuild_frequencies): New function.
3293         * predict.h (rebuild_frequencies): Declare.
3294         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
3295         entry block and edge reaching new_entry.
3296         (tree_function_versioning): When doing partial cloning, rebuild
3297         frequencies when done.
3298         * passes.c (execute_function_todo): Use rebild_frequencies.
3300 2010-06-29  Richard Guenther  <rguenther@suse.de>
3302         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
3303         * tree-flow.h (enum noalias_state): Remove.
3304         (struct var_ann_d): Remove noalias_state member.
3306 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
3308         PR target/43902
3309         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
3310         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
3311         (maddhidi4): Likewise.
3313         Revert parts of the change for PR25130.
3314         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3315         MEM_ALIAS_SET.
3317 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
3319         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
3320         targetm.calls.function_incoming_arg, and
3321         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
3322         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
3323         * target.h (struct gcc_target): Add function_arg_advance,
3324         function_arg, and function_incoming_arg fields.
3325         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
3326         (TARGET_FUNCTION_INCOMING_ARG): Define.
3327         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
3328         and TARGET_FUNCTION_INCOMING_ARG.
3329         * targhooks.h (default_function_arg_advance): Declare.
3330         (default_function_arg, default_function_incoming_arg): Declare.
3331         * targhooks.c (default_function_arg_advance): New function.
3332         (default_function_arg, default_function_incoming_arg): New function.
3333         * config/i386/i386.c (function_arg_advance): Rename to...
3334         (ix86_function_arg_advance): ...this.  Make static.
3335         (function_arg): Rename to...
3336         (ix86_function_arg): ...this.  Make static.
3337         (TARGET_FUNCTION_ARG_ADVANCE): Define.
3338         (TARGET_FUNCTION_ARG): Define.
3339         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
3340         (FUNCTION_ARG): Delete.
3341         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
3342         (function_arg): Delete prototype.
3344 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
3346         * reginfo.c (init_reg_sets_1): Adjust comments.
3347         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
3348         * calls.c (prepare_call_address): Likewise.
3349         (emit_call_1): Use targetm.calls.return_pops_args.
3350         (expand_call): Likewise.
3351         * function.c (assign_parms): Likewise.
3352         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
3353         * target.h (struct gcc_target) [struct calls]: Add
3354         return_pops_args field.
3355         * targhooks.h (default_return_pops_args): Declare.
3356         * targhooks.c (default_return_pops_args): Define.
3357         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
3358         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
3359         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
3360         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
3361         documentation.
3362         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
3363         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
3364         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
3365         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
3366         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
3367         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
3368         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
3369         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
3370         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
3371         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
3372         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
3373         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
3374         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
3375         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
3376         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
3377         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
3378         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
3379         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
3380         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
3381         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
3382         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
3383         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
3384         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
3385         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
3386         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
3387         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
3388         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
3389         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
3390         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
3391         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
3392         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
3393         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
3394         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
3395         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
3396         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
3397         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
3398         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
3399         * config/i386/i386.c (ix86_return_pops_args): Make static.
3400         Constify arguments.
3401         (TARGET_RETURN_POPS_ARGS): Define.
3402         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
3403         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
3404         (TARGET_RETURN_POPS_ARGS): Define.
3405         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
3406         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
3407         (TARGET_RETURN_POPS_ARGS): Define.
3409 2010-06-29  Richard Guenther  <rguenther@suse.de>
3411         PR middle-end/44667
3412         * tree-inline.c (initialize_inlined_parameters): Make sure
3413         to remap the inlined parameter variable substitutions types.
3415 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3417         PR rtl-optimization/44659
3418         * combine.c (make_compound_operation) <SUBREG>: Do not return the
3419         result of force_to_mode if it partially re-expanded the compound.
3421 2010-06-28  Jan Hubicka  <jh@suse.cz>
3423         PR middle-end/44671
3424         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
3425         RESULT_DECL.
3427 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
3429         * double-int.h (force_fit_type_double): Remove declaration.
3430         * double-int.c (force_fit_type_double): Move to tree.c.
3431         * tree.h (force_fit_type_double): Declare.
3432         * tree.h (force_fit_type_double): Moved from double-int.c. Use
3433         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
3434         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
3435         * convert.c (convert_to_pointer): Adjust call to
3436         force_fit_type_double.
3437         * tree-vrp.c (extract_range_from_assert,
3438         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
3439         * fold-const.c: Update comment.
3440         (int_const_binop, fold_convert_const_int_from_int,
3441         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
3442         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
3443         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
3444         round_up_loc): Adjust call to force_fit_type_double.
3446 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3448         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
3450 2010-06-28  Martin Jambor  <mjambor@suse.cz>
3452         * tree-sra.c (convert_callers): New parameter, change fndecls of
3453         recursive calls.
3454         (modify_function): Pass the old decl to convert_callers.
3456 2010-06-28  Martin Jambor  <mjambor@suse.cz>
3458         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
3459         ipa_check_create_node_params and ipa_initialize_node_params with
3460         checking asserts they are not necessary.
3462 2010-06-28  Jan Hubicka  <jh@suse.cz>
3464         PR tree-optimization/44687
3465         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
3467 2010-06-28  Martin Jambor  <mjambor@suse.cz>
3469         PR c++/44535
3470         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
3471         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
3472         instead of BINFO_BASE_BINFO.
3474 2010-06-28  Michael Matz  <matz@suse.de>
3476         PR middle-end/44592
3477         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
3478         proper VDEF chain for intermediate stores in the sequence.
3480 2010-06-28  Jan Hubicka  <jh@suse.cz>
3482         PR tree-optimization/44357
3483         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
3484         uninlinable functions.
3486 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3488         * config.gcc (powerpc*-*-*): Handle titan.
3489         * config/rs6000/rs6000.c (titan_cost): New costs.
3490         (rs6000_override_options): Add "titan" to processor_target_table.
3491         Add Titan to branch alignment logic.
3492         Correctly set rs6000_cost for titan.
3493         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
3494         * config/rs6000/titan.md: New file.
3495         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
3497 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
3499         * tree-browser.c (TB_history_stack): Convert to a VEC.
3500         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
3501         (TB_history_prev): Likewise.
3503 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
3505         * vec.h (vec_heap_free): Add parentheses around free.
3507 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
3509         * system.h: Poison GCC_EXCEPT_H for front-end files.
3511         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
3512         langhook.
3513         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
3514         Define to NULL by default.
3515         * except.h: Define GCC_EXCEPT_H.
3516         (doing_eh): Remove prototype.
3517         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
3518         (lang_protect_cleanup_actions): Remove.
3519         * except.c (lang_protect_cleanup_actions): Remove.
3520         (doing_eh): Remove.
3521         (gen_eh_region): Don't check doing_eh here.
3522         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
3523         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
3524         instead of lang_protect_cleanup_actions.
3525         * omp-low.c (maybe_catch_exception): Likewise.
3526         * Makefile.in: Update dependencies.
3528 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
3530         * cgraph.h (struct varpool_node): new used_from_object_file flag.
3531         (struct cgraph_local_info): new used_from_object_file flag.
3532         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
3533         (cgraph_clone_node): initialize used_from_object_file.
3534         (cgraph_create_virtual_clone): initialize used_from_object_file.
3535         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
3536         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
3537         when compiling with -fwhole-program.
3538         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
3539         internal resolver.
3540         * ipa.c (function_and_variable_visibility): Set externally_visible
3541         flag of varpool_node if used_from_object_file flag is set.
3542         (cgraph_externally_visible_p): check used_from_object_file flag.
3543         * doc/invoke.texi (-fwhole-program option): Change description of
3544         externally_visible attribute accordingly.
3545         * doc/extend.texi (externally_visible): Ditto.
3547 2010-06-27  Jan Hubicka  <jh@suse.cz>
3549         * params.def (max-inline-insns-auto): Default to 40.
3550         * doc/invoke.texi (max-inline-insns-auto): Document the change.
3552 2010-06-27  Jan Hubicka  <jh@suse.cz>
3554         PR middle-end/44671
3555         PR middle-end/44686
3556         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
3557         signature change.
3558         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
3559         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
3561 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
3563         * target.h (struct gcc_target): Add register_move_cost field.
3564         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
3565         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
3566         * targhooks.c (default_register_move_cost): New function.
3567         * targhooks.h (default_register_move_cost): Declare function.
3568         * defaults.h (REGISTER_MOVE_COST): Delete.
3569         * ira-int.h (ira_register_move_cost): Update comment.
3570         * ira.c: (ira_register_move_cost): Update comment.
3571         * reload.h (register_move_cost): Declare.
3572         * reginfo.c (register_move_cost): New function.
3573         (move_cost): Update comment.
3574         (init_move_cost, memory_move_secondary_cost): Replace
3575         REGISTER_MOVE_COST with register_move_cost.
3576         * postreload.c (reload_cse_simplify_set): (Ditto.).
3577         * reload.c (find_valid_class, find_reloads): (Ditto.).
3578         * reload1.c (choose_reload_regs): (Ditto.).
3579         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
3580         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
3581         * doc/md.texi (can_create_pseudo_p): Update documentation.
3583         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3584         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3585         * config/i386/i386.h (ix86_memory_move_cost): Make static.
3586         (TARGET_MEMORY_MOVE_COST): Define.
3588         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3589         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
3590         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
3591         (TARGET_MEMORY_MOVE_COST): Define.
3593 2010-06-27  Richard Guenther  <rguenther@suse.de>
3595         PR tree-optimization/44683
3596         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
3597         false edge from the inverted condition.
3599 2010-06-27  Richard Guenther  <rguenther@suse.de>
3601         PR middle-end/44684
3602         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
3603         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
3604         for register LHS.  Or non-store assignments.
3606 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3608         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
3609         (sparc_emit_set_const64): Likewise.  Remove disabled code.
3610         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
3611         (sparc_emit_set_const64): Likewise.
3613 2010-06-26  Catherine Moore  <clm@codesourcery.com>
3615         * config/mips/mips.md (alu_type): New attribute.
3616         (type): Infer type from alu_type.
3617         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
3618         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
3619         *subsi3_extended, negsi2, negdi2, *low<mode>,
3620         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
3621         xor<mode>3, *nor<mode>3,
3622         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
3623         *zero_extendhi_truncqi):  Set alu_type instead of type.
3625 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
3627         * config/alpha/alpha.c (alpha_need_linkage): Adjust
3628         splay_tree_new_ggc call.
3629         (alpha_use_linkage): Likewise.
3631 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
3633         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
3634         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
3635         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
3636         (static_specs): Remove switches_need_spaces.
3637         (process_command, do_self_spec): Hardcode handling "-o" instead of
3638         checking switches_need_spaces.
3639         * system.h (SWITCHES_NEED_SPACES): Poison.
3641 2010-06-26  Richard Guenther  <rguenther@suse.de>
3643         PR tree-optimization/44393
3644         * tree-loop-distribution.c (generate_loops_for_partition): Fix
3645         stmt removal and VOP renaming.
3646         (generate_memset_zero): Remove redundant stmt updating.
3647         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
3648         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
3650 2010-06-26  Jan Hubicka  <jh@suse.cz>
3652         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
3653         edges comming from header are equivalent.
3654         (visit_bb): Handle PHIs correctly.
3655         * tree-inline.c (copy_phis_for_bb): Be able to copy
3656         PHI from entry edge.
3657         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
3659 2010-06-26  Richard Guenther  <rguenther@suse.de>
3661         PR middle-end/44674
3662         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
3663         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
3665 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
3667         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
3668         add_infile, alloc_switch): New.
3669         (process_command): Remove variable lang_n_infiles.  Process
3670         options in a single pass.  Use new functions for allocating
3671         infiles and switches arrays.  Properly skip operands of
3672         -Xpreprocessor and -Xassembler.
3674 2010-06-26  Jan Hubicka  <jh@suse.cz>
3676         PR middle-end/44671
3677         * cgraphunit.c (cgraph_function_versioning): Remove wrong
3678         cgraph_make_decl_local call; fix typo copying RTL data.
3680 2010-06-25  DJ Delorie  <dj@redhat.com>
3682         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
3683         (m32c_output_aligned_common): Likewise.
3684         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3685         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3686         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
3687         (m32c_register_pragmas): Register it.
3688         * config/m32c/m32c.c (m32c_get_pragma_address): New.
3689         (m32c_insert_attributes): Set #pragma address decls volatile.
3690         (pragma_entry_eq): New.
3691         (pragma_entry_hash): New.
3692         (m32c_note_pragma_address): New.
3693         (m32c_get_pragma_address): New.
3694         (m32c_output_aligned_common): New.
3695         * doc/extend.texi: Document the new pragma.
3697         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
3698         also.
3699         * config/m32c/predicates.md (m32c_any_operand): Check the code
3700         instead of memory_operand so as to allow matching volatile MEMs.
3701         (m32c_nonimmediate_operand): Likewise.
3702         (mra_operand): Allow volatiles.
3704 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
3706         PR debug/44610
3707         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
3708         address if the offset is unknown.
3710 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
3712         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
3713         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
3714         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
3715         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
3716         to ia64_start_function. Invoke it.
3717         * config/ia64/ia64.c (ia64_start_function): Call new function
3718         dwarf2out_vms_debug_main_pointer.
3720 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3722         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
3723         statements computing the true predicate.
3725 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3727         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
3728         to boolean_true_node.
3729         (reset_bb_predicate): New.
3730         (predicate_bbs): Call reset_bb_predicate.
3732 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3734         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
3735         (tree_if_conversion): Returns true when something has been changed.
3736         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
3737         changed something.
3739 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3741         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
3742         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
3743         * tree-if-conv.c: Include dbgcnt.h.
3744         (tree_if_conversion): Use if_conversion_tree to count the number of
3745         if-convertible loops.
3747 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
3749         * common.opt (fprefetch-loop-arrays): Re-define
3750         -fprefetch-loop-arrays as a tri-state option with the initial
3751         value of -1.
3752         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
3753         pass only when flag_prefetch_loop_arrays > 0.
3754         * toplev.c (process_options): Note that, with tri-states,
3755         flag_prefetch_loop_arrays>0 means prefetching is enabled.
3756         * config/i386/i386.c (override_options): Enable prefetching at -O3
3757         for a set of CPUs that sw prefetching is helpful.
3758         (software_prefetching_beneficial_p): New.  Return TRUE if software
3759         prefetching is beneficial for the given CPU.
3761 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
3763         PR rtl-optimization/44326
3764         * implicit-zee.c (find_removable_zero_extends): Replace
3765         INSN_P with NONDEBUG_INSN_P.
3767 2010-06-25  Martin Jambor  <mjambor@suse.cz>
3769         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
3770         (struct ipa_node_params): Removed the modification_analysis_done flag.
3771         (ipa_is_param_modified): Removed.
3772         (ipa_analyze_node): Declare.
3773         (ipa_compute_jump_functions): Remove declaration.
3774         (ipa_count_arguments): Likewise.
3775         (ipa_detect_param_modifications): Likewise.
3776         (ipa_analyze_params_uses): Likewise.
3777         * ipa-prop.c (struct param_analysis_info): New type.
3778         (visit_store_addr_for_mod_analysis): Removed.
3779         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
3780         moved down in the file.
3781         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
3782         (ipa_count_arguments): Made static.
3783         (mark_modified): New function.
3784         (is_parm_modified_before_call): New function.
3785         (compute_pass_through_member_ptrs): New parameter parms_info, call
3786         is_parm_modified_before_call instead of ipa_is_param_modified.
3787         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
3788         it to compute_pass_through_member_ptrs.
3789         (ipa_compute_jump_functions): New parameter parms_info, pass it to
3790         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
3791         on the callee if it is analyzed.  Made static.
3792         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
3793         is_parm_modified_before_call instead of ipa_is_param_modified.
3794         (ipa_analyze_call_uses): New parameter parms_info, pass it to
3795         ipa_analyze_indirect_call_uses.
3796         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
3797         ipa_analyze_call_uses.
3798         (ipa_analyze_params_uses): New parameter parms_info, pass it to
3799         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
3800         (ipa_analyze_node): New function.
3801         (ipa_print_node_params): Do not dump the modified flag.
3802         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
3803         it.  Do not stream the modified parameter flag.
3804         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
3805         it.  Do not stream the modified parameter flag.
3806         * ipa-cp.c (ipcp_analyze_node): Removed.
3807         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
3808         with only a call to ipa_analyze_node.
3809         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
3810         node with only a call to ipa_analyze_node.
3812 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3814         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
3816 2010-06-25  Jan Hubicka  <jh@suse.cz>
3818         * tree-pass.h (pass_split_functions): Declare.
3819         * opts.c (decode_options): Enable function splitting at -O2
3820         * timevar.def (TV_IPA_FNSPLIT): New macro.
3821         * ipa-split.c: New file.
3822         * common.opt (-fpartial-inlining): New flag.
3823         * Makefile.in (ipa-split.o): New object file.
3824         * passes.c (init_optimization_passes): Add ipa-split.
3825         * params.def (partial-inlining-entry-probability): New parameters.
3826         * doc/invoke.texi (-fpartial-inlining): New.
3828 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3830         PR 44665
3831         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
3832         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
3833         (gimplify_expr): Likewise.
3835 2010-06-25  Martin Jambor  <mjambor@suse.cz>
3837         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
3838         statements instead of bailing out on them.
3839         (ipa_analyze_indirect_call_uses): Do not require that loads from the
3840         parameter are in the same BB as the condition.  Update comments.
3842 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
3844         PR middle-end/43866
3845         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
3846         true or always false, return NULL_TREE.
3847         (tree_unswitch_single_loop): Optimize conditions even when reaching
3848         max-unswitch-level parameter.  If num > 0, optimize first all conditions
3849         using entry checks, then do still reachable block discovery and consider
3850         only conditions in still reachable basic blocks in the loop.
3852         PR tree-optimization/44539
3853         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
3854         the call doesn't have LHS, but has VDEF.
3856 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
3858         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
3859         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
3860         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
3861         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
3862         * system.h (MODIFY_TARGET_NAME): Poison.
3864 2010-06-25  Alan Modra  <amodra@gmail.com>
3866         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
3867         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
3868         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3869         CMODEL_LARGE as default.
3870         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
3871         (offsettable_ok_by_alignment): Delete.
3872         (rs6000_emit_move): Remove mcmodel=medium optimization.
3874 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
3876         With large parts from Jim Wilson:
3877         PR target/43902
3878         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
3879         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3880         * optabs.c (optab_for_tree_code): Likewise.
3881         (expand_widen_pattern_expr): Likewise.
3882         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
3883         out of execute_optimize_widening_mul.
3884         (convert_plusminus_to_widen): New function.
3885         (execute_optimize_widening_mul): Use the two new functions.
3886         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
3887         Remove code to generate widening multiply-accumulate.  Add support
3888         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3889         * gimple-pretty-print.c (dump_ternary_rhs): New function.
3890         (dump_gimple_assign): Call it when appropriate.
3891         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
3892         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
3893         (expand_gimple_stmt_1): Likewise.
3894         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
3895         WIDEN_MULT_MINUS_EXPR.
3896         * tree-ssa-operands.c (get_expr_operands): Likewise.
3897         * tree-inline.c (estimate_operator_cost): Likewise.
3898         * gimple.c (extract_ops_from_tree_1): Renamed from
3899         extract_ops_from_tree.  Add new arg for a third operand; fill it.
3900         (gimple_build_assign_stat): Support operations with three operands.
3901         (gimple_build_assign_with_ops_stat): Likewise.
3902         (gimple_assign_set_rhs_from_tree): Likewise.
3903         (gimple_assign_set_rhs_with_ops_1): Renamed from
3904         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
3905         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
3906         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
3907         WIDEN_MULT_MINUS_EXPR.
3908         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
3909         (extract_ops_from_tree_1): Adjust declaration.
3910         (gimple_assign_set_rhs_with_ops_1): Likewise.
3911         (gimple_build_assign_with_ops): Pass NULL for last operand.
3912         (gimple_build_assign_with_ops3): New macro.
3913         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
3914         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
3915         functions.
3916         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
3917         (verify_gimple_assign): Call it.
3918         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
3919         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
3920         functions for dealing with three-operand statements.
3921         * tree.c (commutative_ternary_tree_code): New function.
3922         * tree.h (commutative_ternary_tree_code): Declare it.
3923         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
3924         ternary statements.
3925         (gimple_assign_nonzero_warnv_p): Likewise.
3926         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
3927         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
3928         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
3929         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
3930         (struct hashtable_expr): New member ternary in the union.
3931         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
3932         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
3933         (iterative_hash_hashable_expr): Likewise.
3934         (print_expr_hash_elt): Handle EXPR_TERNARY.
3935         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
3936         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
3937         statements.  Handle GIMPLE_TERNARY_RHS.
3939 2010-06-25  Jan Hubicka  <jh@suse.cz>
3941         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
3943 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
3945         PR c/44517
3946         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
3947         parameters are not good.
3948         (c_parser_parameter_declaration): Error unknown type name if the type
3949         name can't start declaration specifiers.
3951 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
3953         * gcc.c (translate_options): Don't mention +e in comment.
3954         (process_command): Don't handle +e specially.
3956 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
3958         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
3960         * ira-build.c (merge_hard_reg_conflicts): New function.
3961         (create_cap_allocno, copy_info_to_removed_store_destinations,
3962         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
3963         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
3964         (remove_unnecessary_allocnos, remove_low_level_allocnos)
3965         copy_nifo_to_removed_store_destination): Use them.
3966         * ira-lives.c (make_hard_regno_born): New function, split out of
3967         make_regno_born.
3968         (make_allocno_born): Likewise.
3969         (make_hard_regno_dead): New function, split out of make_regno_dead.
3970         (make_allocno_dead): Likewise.
3971         (inc_register_pressure): New function, split out of set_allocno_live.
3972         (dec_register_pressure): New function, split out of clear_allocno_live.
3973         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
3974         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
3975         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
3976         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
3977         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
3978         mark_pseudo_regno_live.
3979         (process_bb_node_lives): Use mark_pseudo_regno_live,
3980         make_hard_regno_born and make_allocno_dead.
3981         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
3982         set_allocno_live, clear_allocno_live): Delete functions.
3984         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
3985         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
3986         functions.
3987         (ira_flattening): Use ira_parent_allocno.
3988         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
3989         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
3991         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
3992         statement.
3994         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
3995         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
3996         minmax_set_iter_cond, minmax_set_iter_next,
3997         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
3998         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
3999         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
4000         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
4001         uses changed.
4003         * ira-int.h (struct live_range, live_range_t): Renamed from struct
4004         ira_allocno_live_range and allocno_live_range_t; all uses changed.
4005         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
4006         All uses changed.
4008 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
4010         * thumb2.md (thumb2_tlobits_cbranch): Delete.
4011         (peephole2 to convert zero_extract/compare of single bit to
4012          lshift/compare): New.
4014 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
4016         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
4017         recursive call and call to 'int_const_binop'.
4018         (build_range_check, fold_cond_expr_with_comparison, unextend,
4019         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
4020         multiple_of_p): Adjust call to const_binop.
4022 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
4024         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
4025         determine size of XFmode operand.
4026         (XFmode extended DFmode push splitter): Ditto.
4027         (XFmode extended SFmode push splitter): Ditto.
4029 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
4031         PR target/44588
4032         * config/i386/i386.md (extract_code): New.
4033         (<u>divmodqi4): Likewise.
4034         (divmodhiqi3): Likewise.
4035         (udivmodhiqi3): Likewise.
4036         (<u>divqi3): Remvoved.
4038 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
4040         PR middle-end/44492
4041         * recog.h (struct recog_data): Add is_asm field.
4042         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
4043         present in constraints of inline-asm operand and memory operand
4044         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
4045         (extract_insn): Initialize recog_data.is_asm.
4046         * doc/md.texi (Constraints): Document operand side-effect rules.
4048 2010-06-24  Andi Kleen  <ak@linux.intel.com>
4050         * c-parser.c (c_parser_conditional_expression): Call
4051         warn_for_omitted_condop.
4052         * doc/invoke.texi: Document omitted condop warning.
4054 2010-06-24  Nick Clifton<nickc@redhat.com>
4056         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
4057         insn in the sequence is a jump insn before setting its label.
4059 2010-06-24  Alan Modra  <amodra@gmail.com>
4061         * collect2.c (main): Match exactly --version and --help.
4063 2010-06-24  DJ Delorie  <dj@redhat.com>
4065         * config/m32c/m32c-pragma.c: Don't include rtl.h.
4067 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
4069         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
4070         using X87MODEF mode iterator.
4071         (pushsf splitter): Macroize splitter using P mode iterator.
4072         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
4073         mode iterator.
4075         (*movxf_internal): Rename from *movxf_integer.
4076         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
4077         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
4078         (*movdf_internal): Rename from *movdf_integer.
4079         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
4080         (*movsf_internal): Rename from *movdf_1.
4082 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
4084         * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
4085         (const_gimple_seq_node): Removed typedefs.
4087         * gimple.h: (gimple_seq_node_d, gimple_seq_node)
4088         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
4090 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
4092         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
4093         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
4094         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
4095         and CODE_FOR_vec_extract_lo_v4df.
4097         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
4098         Changed to define_insn_and_split.
4099         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
4100         (vec_extract_lo_v16hi): Likewise.
4101         (vec_extract_lo_v32qi): Likewise.
4102         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
4103         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
4105 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
4107         PR target/44640
4108         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
4109         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
4110         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
4111         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
4112         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
4114         PR target/44640
4115         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
4117         PR other/44644
4118         * df-core.c (struct df): Rename to df_d.
4119         * df.h (struct df): Likewise.
4120         * dse.h (struct df): Remove forward declaration.
4121         * recog.h (struct insn_data): Rename to:
4122         (struct_insn_data_d).  Adjusted all users.
4124 2010-06-23  Arnaud Charlet  <charlet@adacore.com
4126         PR ada/22220
4127         * doc/install.texi: Update requirements to build GNAT.
4129 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
4131         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
4132         enum type.
4133         (m68k_sched_attr_opx_type): Remove unreachable return.
4134         (m68k_sched_attr_opy_type): Likewise.
4135         (m68k_sched_attr_size): Likewise.
4136         (sched_get_opxy_mem_type): Likewise.
4137         (m68k_sched_attr_op_mem): Likewise.
4139 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
4141         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
4142         new statement and adjust VDEF only if necessary.  Remove superfluous
4143         call to maybe_clean_or_replace_eh_stmt.
4144         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
4145         copy the flags.
4146         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
4147         * tree-inline.c (copy_bb): ...and not there.
4149 2010-06-22  Cary Coutant  <ccoutant@google.com>
4151         * dwarf2out.c (is_nested_in_subprogram): New function.
4152         (should_move_die_to_comdat): Use it.
4153         (copy_ancestor_tree): Don't mark DIEs here.
4154         (copy_decls_walk): Start walk from root of newly-added tree;
4155         mark DIEs here instead.
4157 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
4159         * config/i386/i386.md (unit): Also check sseishft1.
4161 2010-06-22  Jan Hubicka  <jh@suse.cz>
4163         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
4164         enabled.
4166 2010-06-22  Jan Hubicka  <jh@suse.cz>
4168         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
4169         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
4170         Return true if something changed.
4171         * df.h (df_confluence_function_n): Return bool.
4172         * df-core.c (df_worklist_propagate_forward,
4173         df_worklist_propagate_backward): Track changes and ages.
4174         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
4175         track ages.
4176         * dse.c (dse_confluence_n): Return always true.
4178 2010-06-22  Jan Hubicka  <jh@suse.cz>
4180         * bitmap.c (bitmap_clear_bit): Micro optimize.
4182 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
4184         * config/i386/i386.md (SWI1248x): New mode iterator.
4185         (SWI48x): Ditto.
4186         (SWI12): Ditto.
4187         (SWI24): Ditto.
4189         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
4190         SWI1248x mode iterator.
4191         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
4192         using SWI124 mode iterator.
4193         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
4194         mode iterator.
4195         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
4196         *pushdi2_prologue_rex64 using P mode iterator.
4197         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
4198         using SWI48 mode iterator.
4199         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
4200         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
4201         using SWI1248x mode iterator.
4202         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
4203         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
4204         SWI48 mode iterator.
4205         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
4206         iterator.
4207         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
4208         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
4209         SWI12 mode iterator.
4210         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
4211         SWI12 mode iterator.
4212         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
4213         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
4214         SWI24 mode iterator.
4215         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
4216         SWI48 mode iterator.
4217         (mov<mode>_insn_1): New expander.
4218         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
4219         using SWI48x mode iterator.
4221         (*movoi_internal_avx): Rename from *movoi_internal.
4222         (*movti_internal_rex64): Rename from *movti_rex64.
4223         (*movti_internal_sse): Rename from *movti_sse.
4224         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
4225         (*movdi_internal): Rename from *movdi_2.
4226         (*movsi_internal): Rename from *movsi_1.
4227         (*movhi_internal): Rename from *movhi_1.
4228         (*movqi_internal): Rename from *movqi_1.
4230         (insv): Update the call to gen_movsi_insv_1 for rename.
4231         * config/i386/i386.c (promote_duplicated_reg): Ditto.
4233 2010-06-22  Jan Hubicka  <jh@suse.cz>
4235         * passes.c (execute_function_todo): Move call of statistics_fini_pass
4236         to ...
4237         (execute_todo) ... this one.
4239 2010-06-22  Alan Modra  <amodra@gmail.com>
4241         PR target/44364
4242         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4243         * caller-save.c (insert_restore, insert_save): Use non-validate
4244         form of adjust_address.
4246 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4248         PR target/39690
4249         * config/pa/pa.c (override_options): Disable
4250         -freorder-blocks-and-partition.
4252 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4254         PR target/44615
4255         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
4257         * config/i386/i386.md (type): Add sseishft1
4259         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
4260         (ppro_insn_load): Likewise.
4261         (ppro_insn_store): Likewise.
4262         (ppro_insn_both): Likewise.
4264         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
4265         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
4266         for type.
4267         (*vec_extractv2di_1_avx): Likewise.
4268         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
4269         type.  Remove atom_unit.
4270         (*vec_extractv2di_1_sse2): Likewise.
4272 2010-06-21  DJ Delorie  <dj@redhat.com>
4274         * diagnostic.h (diagnostic_classification_change_t): New.
4275         (diagnostic_context): Add history and push/pop list.
4276         (diagnostic_push_diagnostics): Declare.
4277         (diagnostic_pop_diagnostics): Declare.
4278         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
4279         from pragmas in a history chain instead of the global table.
4280         (diagnostic_push_diagnostics): New.
4281         (diagnostic_pop_diagnostics): New.
4282         (diagnostic_report_diagnostic): Scan history chain to find state
4283         of diagnostics as of the diagnostic location.
4284         * opts.c (set_option): Pass UNKNOWN_LOCATION to
4285         diagnostic_classify_diagnostic.
4286         (enable_warning_as_error): Likewise.
4287         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
4288         use in the history chain.
4289         * doc/extend.texi: Document pragma GCC diagnostic changes.
4291 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
4293         * dwarf2out.c (add_linkage_name): New function.  Don't add
4294         anything to DW_TAG_member DIEs.
4295         (add_name_and_src_coords_attributes): Use it.
4296         (gen_variable_die): Call it for C++ static data members if
4297         specification is DW_TAG_member.
4299         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
4300         C++ char16_t and char32_t.
4302         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
4303         * genattrtab.c: Include vecprim.h.
4304         (cached_attrs, cached_attr_count, attrs_seen_once,
4305         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
4306         attrs_cached_after): New variables.
4307         (find_attrs_to_cache): New function.
4308         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
4309         (write_test_expr): Add attrs_cached argument, return it too,
4310         attempt to cache non-const attributes used more than once in
4311         a single case handling.
4312         (write_attr_get): Use find_attrs_to_cache, for caching candidates
4313         emit cached_* variables.  Adjust write_attr_set callers.
4314         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
4315         to find attributes that should be cached in this block.  Adjust
4316         write_test_expr callers.
4317         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
4318         callers.
4319         (make_automaton_attrs): Adjust write_test_expr caller.
4321         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
4322         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
4323         (make_automaton_attrs): If find_tune_attr returns non-NULL,
4324         write separate internal_dfa_insn_code_* and insn_default_latency_*
4325         functions for each attribute's value and emit init_sched_attrs
4326         function and function pointers.
4327         * genattr.c (const_attrs, reservations): New variables.
4328         (gen_attr): Add const attributes to const_attrs vector.
4329         (check_tune_attr, find_tune_attr): New functions.
4330         (main): Add reservations to reservations vector.  If find_tune_attr
4331         returns true, add prototype for init_sched_attrs and make
4332         internal_dfa_insn_code and insn_default_latency function pointers,
4333         otherwise define init_sched_attrs as dummy macro.
4334         * cfgexpand.c: Include insn-attr.h.
4335         (gimple_expand_cfg): Call init_sched_attrs.
4337         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
4339         PR target/44575
4340         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
4341         va_arg from a set of register save slots into a temporary,
4342         if the container is bigger than type size, do the copying
4343         using smaller mode or using memcpy.
4345         PR bootstrap/44426
4346         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
4347         prototype.
4348         (sel_print_to_dot): Remove macro.
4349         (sel_print): Likewise.  New prototype.
4350         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
4351         (sel_print): New function.
4353 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4355         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
4356         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
4358 2010-06-21  Nick Clifton  <nickc@redhat.com>
4360         * config/rx/rx.h (PTRDIFF_TYPE): Define.
4361         (SMALL_REGISTER_CLASS): Define (to zero).
4362         (PRINT_OPERAND): Delete.
4363         (PRINT_OPERAND_ADDRESS): Delete.
4364         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
4365         (rx_print_operand_address): Delete prototype.
4366         * config/rx/rx.c (rx_print_operand): Make static.
4367         Allow %H and %L to handle CONST_DOUBLEs.
4368         (rx_print_operand_address): Make static.
4369         (rx_gen_move_template): Rename local variable 'template' to
4370         out_template.
4371         (rx_function_arg): Do not pass unknown sized objects in registers.
4372         (TARGET_PRINT_OPERAND): Define.
4373         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4375 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4377         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
4379 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
4381         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
4382         stack-alignment for simple leaf-functions.
4384 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
4386         * doc/install.texi: Document bootstrap-lto.
4388 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
4390         PR debug/44248
4391         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
4392         (input_function): Drop them here, if VTA is disabled.
4394 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
4396         PR target/44546
4397         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
4398         New predicate.
4399         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
4400         ix86_swapped_fp_comparsion_operator instead of
4401         ix86_fp_comparison_operator.
4403         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
4404         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
4405         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
4406         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
4407         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
4408         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
4410 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4412         PR other/32998
4413         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
4414         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
4415         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
4416         (decode_cmdline_option): Update for this return value.  Set
4417         orig_option_with_args_text field.  Set arg field for unknown
4418         options.  Make static.
4419         (decode_cmdline_options_to_array): New.
4420         (prune_options): Update handling of find_opt return value.
4421         * opts.c (read_cmdline_option): Take decoded option.  Return void.
4422         (read_cmdline_options): Take decoded options.
4423         (decode_options): Add parameters for decoded options.  Use
4424         decode_cmdline_options_to_array.  Use decoded options for -O
4425         scan.  Use integral_argument for -O parameters.  Update call to
4426         read_cmdline_options.
4427         (enable_warning_as_error): Update handling of find_opt return value.
4428         * opts.h: Update comment on unknown options.
4429         (struct cl_decoded_option): Update comments on opt_index and arg.
4430         Add orig_option_with_args_text.
4431         (decode_cmdline_option): Remove.
4432         (decode_cmdline_options_to_array): Declare.
4433         (decode_options): Update prototype.
4434         * toplev.c (save_argv): Remove.
4435         (save_decoded_options, save_decoded_options_count): New.
4436         (read_integral_parameter): Remove.
4437         (print_switch_values): Use decoded options.
4438         (toplev_main): Don't set save_argv.  Update call to decode_options.
4439         * toplev.h (read_integral_parameter): Remove.
4440         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
4442 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
4444         PR target/44072
4445         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
4446         immediate.
4447         * constraints.md (Pw, Px): New constraints.
4448         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
4450 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
4452         * config/i386/sse.md (fma4modesuffixf4): Removed.
4453         (ssemodesuffixf2s): Likewise.
4454         (ssemodesuffixf4): Likewise.
4455         (ssemodesuffixf2c): Likewise.
4456         (ssescalarmodesuffix2s): Likewise.
4457         (avxmodesuffixf2c): Likewise.
4458         (ssemodesuffix): New.
4459         (ssescalarmodesuffix): Likewise.
4460         Update patterns with ssemodesuffix and ssescalarmodesuffix.
4462 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
4464         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
4466 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4468         * stor-layout.c (debug_rli): Remove unused local variables.
4470 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
4472         PR rtl-optimization/40900
4473         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
4474         original expression for later reuse.
4475         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
4476         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
4478 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
4480         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
4481         double_int_fits_in_uhwi_p): Implement as static inline.
4482         (double_int_xor): New inline function.
4483         (double_int_lrotate, double_int_rrotate, double_int_max,
4484         double_int_umax, double_int_smax, double_int_min, double_int_umin,
4485         double_int_smin): Declare.
4486         (lrotate_double, rrotate_double): Remove declaration.
4487         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
4488         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
4489         (double_int_lrotate, double_int_rrotate, double_int_max,
4490         double_int_umax, double_int_smax, double_int_min, double_int_umin,
4491         double_int_smin): New function.
4492         * fold-const.c (int_const_binop): Clean up, use double_int_*
4493         functions.
4494         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
4495         double_int_* and immed_double_int_const functions.
4497 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4499         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
4500         * function.c (types_used_by_cur_var_decl): Likewise.
4501         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
4503 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4505         * tree.h (record_layout_info): Change type of pending_statics field
4506         to a VEC.
4507         * stor-layout.c (start_record_layout): Store NULL into
4508         pending_statics.
4509         (debug_rli): Call debug_vec_tree instead of debug_tree.
4510         (place_field): Likewise.
4511         (finish_record_layout): Likewise.
4513 2010-06-18  Alan Modra  <amodra@gmail.com>
4515         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
4517 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4519         PR target/43740
4520         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
4521         for SET source operand from SET destination operand.
4523 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
4525         PR rtl-optimization/39871
4526         * reload1.c (init_eliminable_invariants): For flag_pic, disable
4527         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
4528         (function_invariant_p): Rule out a plus of frame or arg pointer with
4529         a SYMBOL_REF.
4530         * ira.c (find_reg_equiv_invariant_const): Likewise.
4532 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
4534         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
4535         print_operand_address and puts to output the operand for CONST.
4537 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
4539         PR debug/44572
4540         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
4541         hook.
4543 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4545         * v850-protos.h (print_operand): Delete.
4546         (print_operand_address): Delete.
4547         * v850.h (PRINT_OPERAND): Delete.
4548         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4549         (PRINT_OPERAND_ADDRESS): Delete.
4550         * v850.c (print_operand_address): Rename to...
4551         (v850_print_operand_address): ...this.  Make static. Call
4552         v850_print_operand.
4553         (print_operand): Rename to...
4554         (v850_print_operand): ...this.  Make static.  Call
4555         v850_print_operand_address.
4556         (v850_print_operand_punct_valid_p): New function.
4557         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4558         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4560 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4562         * config/sh/sh-protos.h (print_operand): Delete.
4563         (print_operand_address): Delete.
4564         * config/sh/sh.h (PRINT_OPERAND): Delete.
4565         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4566         (PRINT_OPERAND_ADDRESS): Delete.
4567         * config/sh/sh.c (sh_print_operand_address): Make static.
4568         (sh_print_operand): Make static.  Call sh_print_operand_address
4569         and sh_print_operand.
4570         (sh_print_operand_punct_valid_p): New function.
4571         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4572         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4574 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4576         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
4577         (mcore_print_operand_address): Delete.
4578         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
4579         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4580         (PRINT_OPERAND_ADDRESS): Delete.
4581         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
4582         (mcore_print_operand): Make static.
4583         (mcore_print_operand_punct_valid_p): New function.
4584         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
4585         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4587 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4589         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
4590         (print_operand_address): Delete.
4591         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
4592         (PRINT_OPERAND_ADDRESS): Delete.
4593         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
4594         static.
4595         (m68hc11_print_operand): Make static.
4596         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4598 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4600         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
4601         (m32r_print_operand_address): Delete.
4602         * config/m32r/m32r.h (m32r_punct_chars): Delete.
4603         (PRINT_OPERAND): Delete.
4604         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4605         (PRINT_OPERAND_ADDRESS): Delete.
4606         * config/m32r/m32r.c (m32r_punct_chars): Make static.
4607         (m32r_print_operand_address): Make static.
4608         (m32r_print_operand): Make static.
4609         (m32r_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/iq2000/iq2000-protos.h (print_operand): Delete.
4616         (print_operand_address): Delete.
4617         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
4618         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4619         (PRINT_OPERAND_ADDRESS): Delete.
4620         (iq2000_print_operand_punct): Delete.
4621         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
4622         (iq2000_print_operand_address): Make static.
4623         (iq2000_print_operand): Make static.
4624         (iq2000_print_operand_punct_valid_p): New function.
4625         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4626         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4628 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4630         * config/frv/frv-protos.h (frv_print_operand): Delete.
4631         (frv_print_operand_address): Delete.
4632         * config/frv/frv.h (PRINT_OPERAND): Delete.
4633         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4634         (PRINT_OPERAND_ADDRESS): Delete.
4635         * config/frv/frv.c (frv_print_operand_address): Make static.
4636         (frv_print_operand): Make static.
4637         (frv_print_operand_punct_valid_p): New function.
4638         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4639         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4641 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4643         * tree.h (vec_member): Declare.
4644         * tree.c (vec_member): Define.
4646 2010-06-17  Richard Guenther  <rguenther@suse.de>
4648         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
4649         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
4651 2010-06-17  Richard Guenther  <rguenther@suse.de>
4653         * tree-inline.c (declare_return_variable): Remove bogus code.
4655 2010-06-17  Richard Guenther  <rguenther@suse.de>
4657         * gimplify.c (gimplify_bind_expr): Always promote complex
4658         and vector variables to registers if possible.
4660 2010-06-17  Richard Guenther  <rguenther@suse.de>
4662         * expr.c (get_inner_reference): Use double_int for bit_offset
4663         calculation.
4665 2010-06-16  DJ Delorie  <dj@redhat.com>
4667         * common.opt (-fstrict-volatile-bitfields): new.
4668         * doc/invoke.texi: Document it.
4669         * fold-const.c (optimize_bit_field_compare): For volatile
4670         bitfields, use the field's type to determine the mode, not the
4671         field's size.
4672         * expr.c (expand_assignment): Likewise.
4673         (get_inner_reference): Likewise.
4674         (expand_expr_real_1): Likewise.
4675         * expmed.c (store_fixed_bit_field): Likewise.
4676         (extract_bit_field_1): Likewise.
4677         (extract_fixed_bit_field): Likewise.
4679 2010-06-16  Richard Guenther  <rguenther@suse.de>
4681         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
4683 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
4685         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
4686         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
4687         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
4688         * debug.c: Likewise.
4689         * sdbout.c: Likewise.
4690         * vmsdbgout.c: Likewise.
4691         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
4692         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
4693         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
4694         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
4695         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
4696         * dwarf2out.c (dw_fde_struct): New fields
4697         dw_fde_vms_{end,begin}_prologue.
4698         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
4699         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
4700         (dwarf2out_vms_end_prologue): New function.
4701         (dwarf2out_vms_begin_epilogue): New function.
4702         (dw_val_struct): New value dw_val_class_vms_delta.
4703         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
4704         begin_epilogue for VMS.
4705         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
4706         new static functions.
4707         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
4708         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
4709         static functions.
4710         (print_die): New case dw_val_class_vms_delta.
4711         (attr_checksum): Likewise.
4712         (same_dw_val_p: Likewise.
4713         (size_of_die): Likewise.
4714         (value_format): Likewise.
4715         (output_die): Likewise.
4716         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
4717         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
4718         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
4719         dwarf2out_cfi_begin_epilogue
4720         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
4722 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
4724         * config/cris/cris-protos.h (cris_print_operand): Delete.
4725         (cris_print_operand_address): Delete.
4726         * config/cris/cris.h (PRINT_OPERAND): Delete.
4727         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4728         (PRINT_OPERAND_ADDRESS): Delete.
4729         * config/cris/cris.c (cris_print_operand_address): Make static.
4730         (cris_print_operand): Make static.
4731         (cris_print_operand_punct_valid_p): New function.
4732         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4733         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4735 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
4737         * config/arm/arm-protos.h (arm_print_operand): Delete.
4738         (arm_print_operand_address): Delete.
4739         * config/arm/arm.h (PRINT_OPERAND): Delete.
4740         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4741         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
4742         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
4743         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
4744         (arm_print_operand): Make static.
4745         (arm_print_operand_punct_valid_p): New function.
4746         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4747         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4749 2010-06-16  Nick Clifton  <nickc@redhat.com>
4751         * config/rx/constraints.md (NEGint4): New constraint.
4752         * config/rx/rx.md (attr cc): Add set_zsc.
4753         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
4754         initialised.
4755         (cmpsf): Likewise.
4756         (call_internal): Clobber the cc0 register.
4757         (call_value_internal): Likewise.
4758         (cstoresi4): Likewise.
4759         (movsieq): Likewise.
4760         (movsine): Likewise.
4761         (addsi3): Add alternative to handle small negative constants.
4762         (sunsi3): Likewise.
4763         (addsi3): Do not set the O bit in the cc0 register.
4764         (adddi3): Likewise.
4765         (subsi3): Likewise.
4766         (subdi3): Likewise.
4767         (andsi3): Reorder alternatives to prefer shorter forms.
4768         (mulsi3): Likewise.
4769         (iorsi3): Likewise.
4770         (negsi2): Note that the cc0 flags are set.
4771         (rotlsi3): Note that only the Z and S bits are set in cc0.
4772         (lshrsi3): Likewise.
4773         (ashlsi3): Likewise.
4774         (subsf3): Use %Q for the MEM operand.
4775         (fix_truncsfsi2): Likewise.
4776         (floatsisf2): Likewise.
4777         (bitset): Remove early clobber from destination.
4778         (bitset_in_memory): Likewise.
4779         (lrintsf2): Clobber the cc0 register.
4780         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
4781         (rx_print_operand): Handle %N.
4783 2010-06-16  Jan Hubicka  <jh@suse.cz>
4785         * df-core.c (df_compact_blocks): Free problem_temps vector.
4787 2010-06-16  Martin Jambor  <mjambor@suse.cz>
4789         PR tree-optimization/43905
4790         * tree-sra.c: Include tree-inline.h.
4791         (create_abstract_origin): Removed.
4792         (modify_function): Version the call graph node instead of creating
4793         abstract origins and dealing with same_body aliases.
4794         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
4795         function is versionable.
4796         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
4798 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
4800         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
4801         (CHOOSE_DYNAMIC_LINKER): Update.
4803 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
4805         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
4806         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
4807         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
4808         *prefetch_3dnow_rex.
4810 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
4812         * target.h (struct asm_out):Add declare_constant_name field.
4813         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4814         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
4815         * output.h (default_asm_declare_constant_name): Declare.
4816         (assemble_label): Update prototype.
4817         * varasm.c (assemble_constant_contents): Use
4818         targetm.asm_out.declare_constant_name target hook.
4819         (assemble_label): Add 'file' argument.
4820         (default_asm_declare_constant_name): New function.
4821         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
4822         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
4823         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
4825         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
4826         * config/darwin.c (darwin_asm_declare_constant_name): New function.
4827         (machopic_output_indirection): Update assemble_label argument list.
4828         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
4829         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4831 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
4833         PR middle-end/44391
4834         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
4835         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
4837 2010-06-15  Richard Guenther  <rguenther@suse.de>
4839         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
4841 2010-06-15  Paul Brook  <paul@codesourcery.com>
4843         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
4844         hard-float ABI.
4846 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
4848         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
4849         don't get a vector type for output.
4851 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
4853         PR fortran/44536
4854         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
4855         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
4856         (LANG_HOOKS_DECLS): Add it.
4857         * gimplify.c (omp_notice_variable): Call
4858         lang_hooks.decls.omp_report_decl.
4860 2010-06-15  Martin Jambor  <mjambor@suse.cz>
4862         PR lto/44464
4863         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
4864         on the newly dead SSA name.
4866 2010-06-15  Alan Modra  <amodra@gmail.com>
4868         * doc/invoke.texi: Add mcmodel to powerpc options.
4869         * configure.ac: Add HAVE_LD_LARGE_TOC test.
4870         * configure: Regenerate.
4871         * config.in: Regenerate.
4872         * config/rs6000/linux64.opt (mcmodel): New.
4873         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
4874         (TARGET_CMODEL, SET_CMODEL): Define.
4875         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
4876         select CMODEL_MEDIUM default.
4877         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
4878         (TARGET_CMODEL): Define default.
4879         * config/rs6000/rs6000.c (cmodel): New variable.
4880         (rs6000_explicit_options): Add cmodel field.
4881         (rs6000_handle_option): Handle -mcmodel.
4882         (create_TOC_reference): Add largetoc_reg param.  Generate high,
4883         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
4884         (rs6000_delegitimize_address): Recognise new toc reference rtl
4885         and minimal-toc rtl.
4886         (rs6000_legitimize_reload_address): Handle new toc references.
4887         (print_operand_address): Handle legitimate_constant_pool_address_p
4888         match before lo_sum.
4889         (rs6000_eliminate_indexed_memrefs): Tidy.
4890         (rs6000_emit_move): Tweak threshold for inlining constants.
4891         Keep rs6000_emit_allocate_stack large stack frame offsets
4892         loaded into r0 inline.
4893         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
4894         (tocrel_base, tocrel_offset): New variables.
4895         (toc_relative_expr_p): Set them here.
4896         (print_operand_address): Skip over any offset on constant pool address.
4897         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
4898         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
4899         (offsettable_ok_by_alignment): New function.
4900         (rs6000_emit_move): Address suitably aligned local symbol_refs
4901         relative to the toc pointer for -mcmodel=medium.
4902         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
4903         strict param.  Allow lo_sum version of addressing.  Verify reg
4904         used for -mminimal-toc and -mcmodel != small.  Update all callers.
4905         * config/rs6000/constraints.md: Update for above change.
4906         * config/rs6000/predicates.md: Likewise.
4907         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
4908         code.
4909         (tls_gd): Split for -mcmodel=medium/large.
4910         (tls_gd_high, tls_gd_low): New.
4911         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
4912         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
4913         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
4914         (largetoc_high, largetoc_low): New.
4915         (cmptf_internal2): Add clobber.
4916         * config/rs6000/rs6000-protos.h: Update.
4918 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
4920         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
4921         true if no prefetch is going to be generated for a given group.
4922         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
4923         estimate the prefetch_count.
4924         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
4925         prefetch count by considering the unroll_factor and prefetch_mod
4926         for is_loop_prefetching_profitable.
4928 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
4930         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
4931         anything if the argument is not a MEM.
4933 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
4935         PR debug/43650
4936         PR debug/44181
4937         PR debug/44247
4938         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
4939         debug stmts.
4940         (canonicalize_loop_ivs): Likewise.
4942 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
4944         PR debug/43656
4945         * haifa-sched.c (setup_insn_reg_pressure_info,
4946         update_register_pressure): Reject debug insns.
4947         (ready_sort): Don't setup reg pressure for debug insns.
4948         (schedule_insn): Don't update reg pressure for debug insns.
4950 2010-06-14  Richard Guenther  <rguenther@suse.de>
4952         * lto-streamer.c (cached_bp): Remove.
4953         (bitpack_delete): Likewise.
4954         (bitpack_create): Likewise.
4955         (bp_get_next_word): Likewise.
4956         (bp_pack_value, bp_unpack_value): Move ...
4957         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
4958         Re-implement.
4959         (struct bitpack_d): Likewise.
4960         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
4961         New inline functions.
4962         * lto-streamer-out.c (lto_output_bitpack): Remove.
4963         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
4964         (pack_value_fields): Adjust.
4965         (lto_write_tree): Likewise.
4966         (output_gimple_stmt): Likewise.
4967         (output_function): Likewise.
4968         * lto-streamer-in.c (input_gimple_stmt): Adjust.
4969         (input_function): Likewise.
4970         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
4971         (lto_input_bitpack): Remove.
4972         (lto_materialize_tree): Adjust.
4973         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
4974         * lto-cgraph.c (lto_output_edge): Adjust.
4975         (lto_output_node): Likewise.
4976         (lto_output_varpool_node): Likewise.
4977         (lto_output_ref): Likewise.
4978         (input_node): Likewise.
4979         (input_varpool_node): Likewise.
4980         (input_ref): Likewise.
4981         (input_edge): Likewise.
4982         (output_node_opt_summary): Likewise.
4983         (input_node_opt_summary): Likewise.
4984         * ipa-pure-const.c (pure_const_write_summary): Likewise.
4985         (pure_const_read_summary): Likewise.
4986         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
4987         (ipa_read_indirect_edge_info): Likewise.
4988         (ipa_write_node_info): Likewise.
4989         (ipa_read_node_info): Likewise.
4991 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4993         PR target/44534
4994         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
4995         (vec_extract_lo_v16hi): Likewise.
4996         (vec_extract_lo_v32qi): Likewise.
4998 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
5000         PR bootstrap/44426
5001         * tree.h (build_call_expr): Don't define as vararg macro, instead
5002         add a prototype.
5003         * builtins.c (build_call_nofold): Remove.
5004         (expand_builtin_int_roundingfn, expand_builtin_pow,
5005         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
5006         expand_builtin_memset_args, expand_builtin_strcmp,
5007         expand_builtin_strncmp, expand_builtin_memory_chk): Use
5008         build_call_nofold_loc instead of build_call_nofold.
5009         (build_call_expr): New function.
5011         PR tree-optimization/44508
5012         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
5013         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
5014         don't eliminate trivially dead stmts.
5015         * tree-vrp.c (vrp_finalize): Pass false as last argument
5016         to substitute_and_fold.
5017         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
5018         to substitute_and_fold.
5019         * tree-ssa-ccp.c (ccp_finalize): Likewise.
5021         PR bootstrap/44509
5022         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
5024 2010-06-14  Ira Rosen  <irar@il.ibm.com>
5026         PR tree-optimization/44507
5027         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
5028         to build initial vector for BIT_AND_EXPR.
5029         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
5031 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
5033         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
5034         adjust z10prop set_attr.
5036 2010-06-13  Jan Hubicka  <jh@suse.cz>
5038         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
5039         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
5040         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
5041         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
5042         datastructure checks into checking asserts.
5043         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
5044         * tree-ssa-sccvn.c (VN_INFO): Likewise.
5045         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
5046         df_ref_create_structure): Likewise.
5047         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
5048         pool_free): Use gcc_checking_assert.
5049         * alias.c (get_alias_set): Likewise.
5050         * var-tracking.c (variable_htab_free, shared_hash_copy,
5051         canonicalize_values_mark, variable_merge_over_cur): Likewise.
5052         * lto-streamer.c (bp_unpack_value): Likewise.
5054 2010-06-13  Richard Guenther  <rguenther@suse.de>
5056         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
5057         Do not stream but initialize TYPE_CANONICAL to NULL.
5058         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
5059         * gimple.c (gimple_types_compatible_p): Disregard
5060         TYPE_STRUCTURAL_EQUALITY_P.
5061         (gimple_register_type): Use TYPE_CANONICAL as cache.
5062         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
5063         before registering common types.
5064         * config/i386/i386.c (ix86_function_arg_boundary): Do not
5065         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
5066         * tree.h (TYPE_CANONICAL): Clarify documentation.
5068 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
5070         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5071         LIBCALL_VALUE): Remove macros.
5072         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
5073         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5074         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5075         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
5076         (ia64_function_value): Make static. Handle receiving the function
5077         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
5079 2010-06-12  Jan Hubicka  <jh@suse.cz>
5081         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
5082         at correct place.
5084 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
5086         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
5088 2010-06-12  Jan Hubicka  <jh@suse.cz>
5090         * df-core.c (df_clear_bb_info): New function.
5091         (df_set_blocks): bb_info is always allocated.
5092         (df_get_bb_info): Use block_info_elt_size.
5093         (df_set_bb_info): Likewise.
5094         (df_compact_blocks): Update for new block_info.
5095         (grow_bb_info): New function.
5096         * df-problems.c (df_grow_bb_info): Move to df-core.c
5097         (df_rd_set_bb_info): Remove.
5098         (df_rd_free_bb_info): Do not free block pool.
5099         (df_rd_alloc): Do not create pool, use check for
5100         obstack presence instead of NULL pointer for new blocks.
5101         (df_rd_free): DO not free alloc pool; clear block_info.
5102         (problem_RD): Add size of block info structure.
5103         (df_lr_set_bb_info): Remove.
5104         (df_lr_free_bb_info): Do not free block pool.
5105         (df_lr_alloc): Do not create pool, use check for
5106         obstack presence instead of NULL pointer for new blocks.
5107         (df_lr_free): DO not free alloc pool; clear block_info.
5108         (problem_LR): Add size of block info structure.
5109         (df_live_set_bb_info): Remove.
5110         (df_live_free_bb_info): Do not free block pool.
5111         (df_live_alloc): Do not create pool, use check for
5112         obstack presence instead of NULL pointer for new blocks.
5113         (df_live_free): DO not free alloc pool; clear block_info.
5114         (problem_LIVE): Add size of block info structure.
5115         (problem_CHAIN): Add size of block info structure.
5116         (df_byte_lr_set_bb_info): Remove.
5117         (df_byte_lr_free_bb_info): Do not free block pool.
5118         (df_byte_lr_alloc): Do not create pool, use check for
5119         obstack presence instead of NULL pointer for new blocks.
5120         (df_byte_lr_free): DO not free alloc pool; clear block_info.
5121         (problem_BYTE_LR): Add size of block info structure.
5122         (problem_NOTE): Add size of block info structure.
5123         (df_byte_MD_set_bb_info): Remove.
5124         (df_byte_MD_free_bb_info): Do not free block pool.
5125         (df_byte_MD_alloc): Do not create pool, use check for
5126         obstack presence instead of NULL pointer for new blocks.
5127         (df_byte_MD_free): DO not free alloc pool; clear block_info.
5128         (problem_BD): Add size of block info structure.
5129         * df-scan.c (df_scan_free_internal): Free block pool.
5130         (df_scan_set_bb_info): Remove.
5131         (df_scan_free_bb_info): Check for artificial_defs instead
5132         of bb_info being non-NULL.
5133         (df_scan_alloc): DO not create df_scan_block pool.
5134         (problem_SCAN): Set size of block info.
5135         (df_bb_refs_record): Do not allocate bb_info.
5136         * df.h (df_problem): Add block_info_elt_size.
5137         (struct dataflow): Change block_info to void *.
5138         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
5139         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
5140         in-line structures.
5142 2010-06-12  Jan Hubicka  <jh@suse.cz>
5144         PR tree-optimize/44485
5145         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
5146         containing use of return value of noreturn function.
5148 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
5150         * targhooks.c (default_function_value): Don't use
5151         FUNCTION_OUTGOING_VALUE.
5152         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
5153         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
5155 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
5157         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
5158         Add crtfastmath.o to extra_parts.
5159         * config/mips/crtfastmath.c: New.
5160         * config/mips/linux.h (ENDFILE_SPEC): New.
5162 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
5164         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
5165         old_type in parameter.
5166         (gcc_type_for_value): Update call to gcc_type_for_interval.
5167         (compute_type_for_level_1): Renamed compute_type_for_level.
5168         Update call to gcc_type_for_interval.
5170 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
5172         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
5173         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
5175 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
5177         * opts-common.c: Include options.h.
5178         (integral_argument): Move from opts.c.
5179         (decode_cmdline_option): New.  Based on read_cmdline_option.
5180         * opts.c (integral_argument): Move to opts-common.c.
5181         (read_cmdline_option): Move most contents to
5182         decode_cmdline_option.  Use %qs in diagnostics.
5183         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
5184         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
5185         decode_cmdline_option): New.
5187 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
5189         PR target/44481
5190         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
5191         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
5192         (partiysi2_cmp): Ditto.
5193         (*partiyhi2_cmp): Ditto.
5194         (*parityqi2_cmp): Remove.
5196 2010-06-11  Jan Hubicka  <jh@suse.cz>
5198         * bitmap.h (bmp_iter_next_bit): New.
5199         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
5201 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
5202             Eric Botcazou  <ebotcazou@adacore.com>
5204         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
5205         computed cost.
5207 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
5209         * config/i386/i386.md (unspec): New define_c_enum.
5210         (unspecv): Ditto.
5212 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
5214         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
5216 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
5218         PR middle-end/44483
5219         * tree-if-conv.c (bb_predicate_s): New struct.
5220         (bb_predicate_p): New.
5221         (bb_has_predicate): New.
5222         (bb_predicate): New.
5223         (set_bb_predicate): New.
5224         (bb_predicate_gimplified_stmts): New.
5225         (set_bb_predicate_gimplified_stmts): New.
5226         (add_bb_predicate_gimplified_stmts): New.
5227         (init_bb_predicate): New.
5228         (free_bb_predicate): New.
5229         (is_predicated): Use bb_predicate.
5230         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
5231         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
5232         before processing their successors.
5233         (clean_predicate_lists): Removed.
5234         (find_phi_replacement_condition): Use bb_predicate.
5235         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
5236         computations.
5237         (insert_gimplified_predicates): New.
5238         (combine_blocks): Call insert_gimplified_predicates.
5239         (tree_if_conversion): Call free_bb_predicate instead of
5240         clean_predicate_lists.
5242 2010-10-11  Paul Brook  <paul@codesourcery.com>
5244         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
5245         * config/arm/arm.c (all_architectures): Change v7e-m default to
5246         cortexm4.
5247         * config/arm/arm-cores.def: Add cortex-m4.
5248         * config/arm/arm-tune.md: Regenerate.
5250 2010-06-11  Jan Hubicka  <jh@suse.cz>
5252         * ipa-pure-const.c (special_builtlin_state): New function.
5253         (check_call): Use it instead of special casign BUILT_IN_RETURN.
5254         (propagate_pure_const): Use it.
5256 2010-06-11  Jan Hubicka  <jh@suse.cz>
5258         * df-problems.c (df_live_scratch): Convert to bitmap_head.
5259         (df_live_alloc): Initialize df_live_scratch when initializing
5260         problem_data.
5261         (df_live_transfer_function): Update uses of df_live_scratch.
5262         (df_live_free): Free problem_data; clear df_live_scratch before
5263         releasing the obstack.
5264         (df_md_free): Free problem data.
5266 2010-06-11  Jan Hubicka  <jh@suse.cz>
5268         * doc/invoke.texi (Wsuggest-attribute): Document.
5269         (Wmissing-noreturn): Remove.
5270         * ipa-pure-const.c (warn_function_noreturn): New function.
5271         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
5272         warn_missing_noreturn.
5273         * common.opt (Wsuggest-attribute=noreturn): New.
5274         * tree-flow.h (warn_function_noreturn): Declare.
5275         * tree-cfg.c (execute_warn_function_noreturn): Use
5276         warn_function_noreturn.
5277         (gate_warn_function_noreturn): New.
5278         (pass_warn_function_noreturn): Update.
5280 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5282         * c-typeck.c (handle_warn_cast_qual): Add loc
5283         parameter. Improve warning message.
5284         (build_c_cast): Pass location to handle_warn_cast_qual.
5286 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
5288         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
5289         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
5290         insn mnemonic.
5291         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
5293 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
5295         Fix bootstap on mips
5296         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
5297         be naming typedefs.
5299 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
5301         * system.h (helper_const_non_const_cast): New inline for
5302         gcc version <= 4.0.
5303         (CONST_CAST2): For gcc version <= 4.0 use
5304         new helper to do const/non-const casting.
5306 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5308         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
5309         * Makefile.in (OBJS-common): Include insn-enums.o.
5310         (insn-enums.o): New rule.
5311         (simple_generated_c): Add insn-enums.c.
5312         (build/genenums.o): New rule.
5313         (genprogmd): Add "enums".
5314         * genconstants.c (print_enum_type): Declare a C string array
5315         for each enum.
5316         * genenums.c: New file.
5317         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
5318         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
5319         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
5321 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5323         * doc/md.texi (define_enum_attr): Document.
5324         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
5325         * read-md.h (lookup_enum_type): Declare.
5326         * read-md.c (lookup_enum_type): New function.
5327         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
5328         * genattrtab.c (attr_desc): Add an enum_name field.
5329         (evaluate_eq_attr): Take the associated attribute as argument.
5330         Get the enum prefix from the enum_name field, if defined.
5331         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
5332         (simplify_test_exp): Pass attr to evaluate_eq_attr.
5333         (add_attr_value): New function, split out from...
5334         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
5335         (write_test_expr): Pass attr to evaluate_eq_attr.
5336         (write_attr_get): Use the enum_name as the enum tag, if defined.
5337         (write_attr_valueq): Use the enum_name as a prefix, if defined.
5338         (find_attr): Initialize enum_name.
5339         (main): Handle DEFINE_ENUM_ATTR.
5340         * gensupport.c (process_rtx): Likewise.
5341         * config/mips/mips.h (mips_tune_attr): Delete.
5342         * config/mips/mips.md (cpu): Use define_attr_enum.
5344 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5346         * doc/md.texi (define_c_enum, define_enum): Document.
5347         * read-md.h (md_constant): Add a parent_enum field.
5348         (enum_value, enum_type): New structures.
5349         (upcase_string, traverse_enum_types): Declare.
5350         * read-md.c (enum_types): New variable.
5351         (upcase_string, add_constant): New functions.
5352         (handle_constants): Don't create the hash table here.
5353         Use add_constant.
5354         (traverse_md_constants): Don't check for a null md_constants.
5355         (decimal_string, handle_enum, traverse_enum_types): New functions.
5356         (read_md_files): Initialize md_constants and md_enums.
5357         * genconstants.c (print_md_constant): Ignore info argument.
5358         Only print constants that belong to no enum.
5359         (print_enum_type): New function.
5360         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
5361         for each defined enum type.
5362         * config/mips/mips.md (processor): New define_enum.
5363         (unspec): New define_c_enum.
5364         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
5365         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
5366         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
5367         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
5368         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
5369         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
5370         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
5371         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
5372         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
5373         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
5374         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
5375         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
5376         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
5377         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
5378         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
5379         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
5380         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
5381         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
5382         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
5383         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
5384         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
5385         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
5386         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5387         (UNSPEC_RDDSP): Move to mips-dsp.md.
5388         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
5389         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
5390         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
5391         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
5392         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
5393         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
5394         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
5395         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
5396         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
5397         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
5398         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
5399         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
5400         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
5401         Moved to mips-dspr2.md.
5402         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
5403         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
5404         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
5405         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
5406         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
5407         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
5408         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5409         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5410         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5411         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5412         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5413         UNSPEC_LOONGSON_PSADBH)
5414         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5415         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5416         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
5417         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5418         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5419         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5420         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
5421         (cpu): Update comment.
5422         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
5423         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
5424         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
5425         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
5426         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
5427         UNSPEC_LOONGSON_PCMPEQ)
5428         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
5429         UNSPEC_LOONGSON_PINSR_0)
5430         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5431         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5432         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5433         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5434         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5435         UNSPEC_LOONGSON_PSADBH)
5436         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5437         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5438         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
5439         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5440         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5441         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5442         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
5443         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
5444         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
5445         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
5446         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
5447         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
5448         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
5449         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
5450         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
5451         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
5452         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
5453         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
5454         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
5455         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
5456         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
5457         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
5458         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
5459         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
5460         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
5461         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
5462         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5463         (UNSPEC_RDDSP): Moved from mips.md.
5464         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
5465         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
5466         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
5467         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
5468         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
5469         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
5470         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
5471         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
5472         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
5473         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
5474         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
5475         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
5476         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
5477         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
5478         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
5479         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
5480         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
5481         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
5482         (UNSPEC_SCC): Moved from mips.md.
5483         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
5484         "processor_type" to "processor".
5485         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
5486         * config/mips/mips.h (processor_type): Delete.
5487         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
5488         "processor_type" to "processor".
5490 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5492         * configure.ac (tm_include_list): Add insn-constants.h.
5493         * configure: Regenerate.
5494         * Makefile.in (GTM_H): Move insn-constants.h here from...
5495         (TM_H): ...here.
5496         * mkconfig.sh: Remove special handling for insn-constants.h.
5498 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5500         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
5501         (BUILD_MD): ...this new variable.
5502         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
5503         that include the old contents of simple_generated_h and
5504         simple_generated_c.
5505         (simple_generated_h, simple_generated_c): Include them.  Add
5506         insn-constants.h.
5507         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
5508         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
5509         Remove these dependencies from the main rule and include
5510         insn-conditions.md in the command line only if it appears
5511         in the dependency list.
5512         (insn-constants.h, s-constants): Delete.
5513         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
5514         or gensupport.h.
5515         (build/genmddeps.o): Likewise.
5516         (genprogrtl): New variable that contains everything from genprogmd
5517         except mddeps and constants.
5518         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
5519         depend on $(BUILD_MD)
5520         (genprog): New variable.  Make these programs depend on
5521         $(BUILD_ERRORS).
5522         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
5523         (main): Use read_md_files instead of init_rtx_reader_args.
5524         * genconstants.c: As for genmddeps.c.
5525         * read-md.h (read_skip_construct): Declare.
5526         * read-md.c (read_skip_construct): New function.
5527         (handle_file): Allow a null handle_directive, skipping the
5528         construct if so.
5529         (parse_include): Update the comment accordingly.
5531 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5533         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
5534         * genmddeps.c: Include read-md.h.
5535         (main): Call init_rtx_reader_args instead of init_md_reader_args.
5536         * genattr.c (main): Likewise.
5537         * genattrtab.c (main): Likewise.
5538         * genautomata.c (main): Likewise.
5539         * gencodes.c (main): Likewise.
5540         * genconditions.c (main): Likewise.
5541         * genconfig.c (main): Likewise.
5542         * genconstants.c (main): Likewise.
5543         * genemit.c (main): Likewise.
5544         * genextract.c (main): Likewise.
5545         * genflags.c (main): Likewise.
5546         * genopinit.c (main): Likewise.
5547         * genoutput.c (main): Likewise.
5548         * genpeep.c (main): Likewise.
5549         * genrecog.c (main): Likewise.
5550         * genpreds.c (main): Likewise.
5551         * gensupport.h (in_fname): Move to read-md.h.
5552         (init_md_reader_args_cb): Rename to...
5553         (init_rtx_reader_args_cb): ...this and return a bool.
5554         (init_md_reader_args): Rename to...
5555         (init_rtx_reader_args): ...this and return a bool.
5556         (include_callback): Move to read-md.h.
5557         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
5558         (file_name_list, first_dir_md_include): Move to read-md.c
5559         (first_bracket_include): Delete unused variable.
5560         (last_dir_md_include): Move to read-md.c.
5561         (process_include): Delete, moving code to read-md.c:handle_include.
5562         (process_rtx): Don't handle INCLUDE.
5563         (save_string): Delete.
5564         (rtx_handle_directive): New function.
5565         (init_md_reader_args_cb): Rename to...
5566         (init_rtx_reader_args_cb): ...this and return a boolean success value.
5567         Use read_md_args.
5568         (init_md_reader_args): Rename to...
5569         (init_rtx_reader_args): ...this and return a boolean success value.
5570         * rtl.def (INCLUDE): Delete.
5571         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
5572         argument.
5573         * read-rtl.c (read_conditions): Don't gobble ')' here.
5574         (read_mapping): Likewise.
5575         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
5576         Handle top-level non-rtx constructs here rather than in read_rtx_1.
5577         Store the whole queue in *X.  Remove call to init_md_reader.
5578         (read_rtx_1): Rename to...
5579         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
5580         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
5581         here.
5582         (read_nested_rtx): New function.  Handle (nil) here rather than
5583         in read_rtx_code.
5584         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
5585         gobble ')' here.
5586         * read-md.h (directive_handler_t): New type.
5587         (in_fname, include_callback): Moved from read-md.h.
5588         (read_constants, init_md_reader): Delete.
5589         (read_md_files): Declare.
5590         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
5591         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
5592         from gensupport.c.
5593         (read_constants): Rename to...
5594         (handle_constants): ...this.  Don't gobble ')' here.
5595         (handle_include, handle_file, handle_toplevel_file)
5596         (parse_include): New functions, mostly taken from gensupport.c.
5597         (init_md_reader): Subsume into...
5598         (read_md_files): ...this new function.
5600 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5602         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
5603         (unread_char): Decrement read_md_lineno after putting back '\n'.
5604         * read-md.c (fatal_with_file_and_line): Push back any characters
5605         that we decide not to add to the context.
5606         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
5607         fatal_expected_char in cases where '/' ends a line (for example).
5608         (read_name): Don't increment read_md_lineno here.
5609         (read_escape): Likewise.
5610         (read_quoted_string): Likewise.
5611         (read_braced_string): Likewise.
5613 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5615         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
5616         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
5617         * genconstants.c: Include read-md.h.
5618         * read-rtl.c (md_constants): Move to read-md.c.
5619         (md_name): Move to read-md.h.
5620         (initialize_iterators): Use leading_string_hash instead of def_hash
5621         and leading_string_eq_p instead of def_name_eq_p.
5622         (read_name): Move to read-md.c.
5623         (def_hash, def_name_eq_p): Delete.
5624         (read_constants, traverse_md_constants): Move to read-md.c.
5625         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
5626         * read-md.h: Include hashtab.h.
5627         (md_name): Moved from read-rtl.c.
5628         (md_constant): Moved from read-md.h.
5629         (leading_string_hash, leading_string_eq_p, read_name)
5630         (read_constants, traverse_md_constants): Declare.
5631         * read-md.c (md_constants): Moved from read-rtl.c.
5632         (leading_string_hash, leading_string_eq_p): New functions.
5633         (read_name, read_constants, traverse_md_constants): Moved from
5634         read-rtl.c.
5636 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5638         * read-rtl.c (md_name): New structure.
5639         (read_name): Take an md_name instead of a buffer pointer.
5640         Use the "string" field instead of strcpy when expanding constants.
5641         (read_constants): Remove the tmp_char argument.  Update the calls
5642         to read_name, using two local name buffers instead of the tmp_char
5643         argument.  Merge the constant-creation code.
5644         (read_conditions): Remove the tmp_char argument.  Update the calls
5645         to read_name, using a local name buffer instead of the tmp_char
5646         argument.
5647         (read_mapping): Replace tmp_char variable with a local name buffer.
5648         Update the calls to read_name.
5649         (read_rtx_1): Likewise.  Update the calls to read_constants and
5650         read_conditions.
5652 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5654         * Makefile.in (build/read-md.o): Depend on errors.h.
5655         * read-md.h (error_with_line): Declare.
5656         * read-md.c: Include errors.h.
5657         (message_with_line_1): New function, extracted from...
5658         (message_with_line): ...here.
5659         (error_with_line): New function.
5660         * genattrtab.c: If a call to message_with_line is followed by
5661         "have_error = 1;", replace both statements with a call to
5662         error_with_line.
5663         * genoutput.c: Likewise.
5664         * genpreds.c: Likewise.
5665         * genrecog.c: If a call to message_with_line is followed by
5666         "error_count++;", replace both statements with a call to
5667         error_with_line.
5668         (errorcount): Delete.
5669         (main): Don't check it.
5670         * gensupport.c: If a call to message_with_line is followed by
5671         "errors = 1;", replace both statements with a call to error_with_line.
5672         (errors): Delete.
5673         (process_define_cond_exec): Check have_error instead of errors.
5674         (init_md_reader_args_cb): Likewise.  Don't set errors.
5676 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5678         * read-md.h (read_md_file): Declare.
5679         (read_char, unread_char): New functions.
5680         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5681         (read_quoted_string, read_string): Remove FILE * argument.
5682         * read-md.c (read_md_file): New variable.
5683         (read_md_filename, read_md_lineno): Update comments and remove
5684         unnecessary initialization.
5685         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5686         (read_escape, read_quoted_string, read_braced_string, read_string):
5687         Remove FILE * argument.  Update calls accordingly, using read_char
5688         and unread_char instead of getc and ungetc.
5689         * rtl.h (read_rtx): Remove FILE * argument.
5690         * read-rtl.c (iterator_group): Remove FILE * argument from
5691         "find_builtin".
5692         (iterator_traverse_data): Remove "infile" field.
5693         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
5694         (add_mapping, read_name, read_constants, read_conditions)
5695         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
5696         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
5697         Remove file arguments from all calls, using read_char and unread_char
5698         instead of getc and ungetc.
5699         * gensupport.c (process_include): Preserve read_md_file around
5700         the include.  Set read_md_file to the handle of the included file.
5701         Update call to read_rtx.
5702         (init_md_reader_args_cb): Set read_md_file to the handle of the file
5703         and remove local FILE *.  Update calls to read_rtx.
5705 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5707         * read-md.h (read_rtx_lineno): Rename to...
5708         (read_md_lineno): ...this.
5709         (read_rtx_filename): Rename to...
5710         (read_md_filename): ...this.
5711         (copy_rtx_ptr_loc): Rename to...
5712         (copy_md_ptr_loc): ...this.
5713         (print_rtx_ptr_loc): Rename to...
5714         (print_md_ptr_loc): ...this.
5715         * read-md.c: Likewise.  Update references after renaming.
5716         (string_obstack): Replace RTL with MD in comment.
5717         (set_rtx_ptr_loc): Rename to...
5718         (set_md_ptr_loc): ...this.
5719         (get_rtx_ptr_loc): Rename to...
5720         (get_md_ptr_loc): ...this.
5721         * genconditions.c: Update references after renaming.
5722         * genemit.c: Likewise.
5723         * genoutput.c: Likewise.
5724         * genpreds.c: Likewise.
5725         * gensupport.c: Likewise.
5726         * read-rtl.c: Likewise.
5728 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5730         * Makefile.in (READ_MD_H): New variable.
5731         (BUILD_RTL): Add build/read-md.o.
5732         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
5733         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
5734         (build/genattrtab.o, build/genconditions.o build/genemit.o)
5735         (build/genextract.o, build/genflags.o, build/genoutput.o)
5736         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
5737         (build/read-md.o): New rule.
5738         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
5739         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
5740         * coretypes.h: ...here.
5741         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
5742         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
5743         * genattr.c: Include read-md.h.
5744         * genattrtab.c: Likewise.
5745         * genconditions.c: Likewise.
5746         * genemit.c: Likewise.
5747         * genextract.c: Likewise.
5748         * genflags.c: Likewise.
5749         * genoutput.c: Likewise.
5750         * genpreds.c: Likewise.
5751         * genrecog.c: Likewise.
5752         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
5753         (join_c_conditions, print_c_condition, read_rtx_filename)
5754         (read_rtx_lineno): Move to read-md.h.
5755         * read-rtl.c: Include read-md.h.
5756         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
5757         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
5758         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
5759         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
5760         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
5761         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
5762         (read_braced_string, read_string): Move to read-md.c.
5763         (read_rtx): Move some initialization to init_md_reader and call
5764         init_md_reader here.
5765         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
5766         Move to read-md.h.
5767         * gensupport.c: Include read-md.h.
5768         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
5769         * read-md.h, read-md.c: New files.
5771 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
5773         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5774         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5775         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
5776         * config/moxie/moxie.c (moxie_function_value): Make static.
5777         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
5778         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5780 2010-06-10  Martin Jambor  <mjambor@suse.cz>
5782         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
5783         * dbgcnt.def (tree_sra): New counter.
5784         * tree-sra.c: Include dbgcnt.h.
5785         (gate_intra_sra): Check tree_sra debug counter.
5787 2010-06-10  Martin Jambor  <mjambor@suse.cz>
5789         PR tree-optimization/44258
5790         * tree-sra.c (build_access_subtree): Return false iff there is a
5791         partial overlap.
5792         (build_access_trees): Likewise.
5793         (analyze_all_variable_accesses): Disqualify candidates if
5794         build_access_trees returns true for them.
5796 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
5798         PR debug/41371
5799         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
5800         tail-recurse into canonical node.  Fast-forward over
5801         non-canonical VALUEs.
5803 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
5805         PR boostrap/44470
5806         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
5807         (*addsi_1_zext) <TYPE_LEA>: Likewise.
5808         (add lea splitter): Likewise.
5809         (add_zext lea splitter): Likewise.
5811 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
5813         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
5815 2010-06-10  Jan Hubicka  <jh@suse.cz>
5817         * df-problems.c (df_live_problem_data): Add live_bitmaps.
5818         (df_live_alloc): Initialize problem data and live_osbtacks.
5819         (df_live_finalize): Remove obstack, problem data; do not
5820         clear all bitmaps.
5821         (df_live_top_dump, df_live_bottom_dump): Do not dump old
5822         data when not allocated.
5823         (df_live_verify_solution_start): Do not allocate problem data.
5824         (df_live_verify_solution_end): Check if out is allocated.
5825         (struct df_md_problem_data): New structure.
5826         (df_md_alloc): Allocate problem data.
5827         (df_md_free): Free problem data; do not clear bitmaps.
5829 2010-06-10  Jan Beulich  <jbeulich@novell.com>
5831         PR bootstrap/37304
5832         * configure.ac: Replace $() with ${} when intending to expand
5833         variables rather than invoking commands.
5834         * configure: Re-generate.
5836 2010-06-10  Jan Hubicka  <jh@suse.cz>
5838         PR rtl-optimization/44460
5839         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5840         TYPE_NEEDS_CONSTRUCTING sanity check.
5842 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
5844         * doc/include/fdl.texi: Move to GFDL version 1.3.
5846         * doc/cpp.texi: Move to GFDL version 1.3.
5847         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
5848         * doc/gccint.texi: Move to GFDL version 1.3.
5849         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
5850         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
5851         * doc/invoke.texi: Move to GFDL version 1.3.
5853 2010-06-09  Jan Hubicka  <jh@suse.cz>
5855         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
5856         Break out from ...
5857         (propagate) ... here; swap the order.
5859 2010-06-09  Jan Hubicka  <jh@suse.cz>
5861         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
5862         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
5863         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
5864         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
5866 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
5868         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
5869         Do not the gather memory reference in the outer loop if the step
5870         is not a constant.
5872 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
5874         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
5875         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
5876         8 to 4.  Minor change of the related comments.
5878 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5880         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
5881         the scev analysis when the variable is not used outside the loop
5882         in a close phi node: call compute_overall_effect_of_inner_loop.
5884 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5886         * graphite-sese-to-poly.c (single_pred_cond): Renamed
5887         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
5888         (build_sese_conditions_before): Renamed call to single_pred_cond.
5889         (build_sese_conditions_after): Same.
5891 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5893         * graphite-poly.h: Fix comments and indentation.
5894         * graphite-sese-to-poly.c: Same.
5895         (build_sese_conditions_before): Compute stmt and gbb only when needed.
5896         * tree-chrec.c: Fix comments and indentation.
5897         (tree-ssa-loop-niter.c): Same.
5899 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
5901         PR rtl-optimization/42461
5902         * dce.c (deletable_insn_p): Return true for const or pure calls again.
5903         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
5905 2010-06-09  Jan Hubicka  <jh@suse.cz>
5907         * bitmap.c (bitmap_and): Walk array forward.
5908         (bitmap_and_compl_into): Likewise.
5909         (bitmap_xor): Likewise.
5910         (bitmap_xor_into):  Likewise.
5911         (bitmap_equal_p): Likewise.
5912         (bitmap_intersect_p): Likewise.
5913         (bitmap_intersect_compl_p): Likewise.
5914         (bitmap_ior_and_into): Likewise.
5915         (bitmap_elt_copy): Likewise.
5916         (bitmap_and_compl): Likewise.
5917         (bitmap_elt_ior): Likewise.
5919 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
5921         * opts-common.c (prune_options): Ensure replacement argv array
5922         is correctly terminated by a NULL entry.
5924 2010-06-09  Jan Hubicka  <jh@suse.cz>
5926         * cgraph.h (varpool_first_static_initializer,
5927         varpool_next_static_initializer): Make checking only when
5928         checking enabled.
5929         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
5930         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
5931         gcc_assert to gcc_checking_assert.
5932         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
5933         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
5934         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
5935         op_iter_init_phiuse, op_iter_init_phidef,
5936         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
5937         gcc_checking_assert.
5938         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
5939         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
5940         partition_is_global, live_on_entry, live_on_exit,
5941         live_merge_and_clear): Likewise.
5942         * system.h (gcc_checking_assert): New macro.
5943         * gimple.h (set_bb_seq): Use gcc_checking_assert.
5945 2010-06-09  Jason Merrill  <jason@redhat.com>
5947         * Makefile.in (TAGS): Collect tags info from c-family.
5949 2010-06-09  Jan Hubicka  <jh@suse.cz>
5951         * gimple.h (gcc_gimple_checking_assert): New macro.
5952         (gimple_set_def_ops, gimple_set_use_ops,
5953         gimple_set_vuse, gimple_set_vdef,
5954         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
5955         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
5956         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
5957         gimple_asm_output_op, gimple_asm_output_op_ptr,
5958         gimple_asm_set_output_op, gimple_asm_clobber_op,
5959         gimple_asm_set_clobber_op, gimple_asm_label_op,
5960         gimple_asm_set_label_op, gimple_try_set_kind,
5961         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
5962         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
5963         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
5964         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
5965         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
5966         gimple_omp_for_set_initial, gimple_omp_for_final,
5967         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
5968         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
5969         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
5970         conditional with ENABLE_GIMPLE_CHECKING.
5971         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
5973 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
5975         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
5976         (get_computation_cost_at): Use it.
5977         (determine_use_iv_cost_condition): Likewise.
5978         (determine_iv_cost): Likewise.
5980 2010-06-09  Richard Guenther  <rguenther@suse.de>
5982         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
5983         replace constants.
5985 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
5987         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
5989 2010-06-09  Martin Jambor  <mjambor@suse.cz>
5991         PR tree-optimization/44423
5992         * tree-sra.c (dump_access): Dump also grp_assignment_read.
5993         (analyze_access_subtree): Pass negative allow_replacements to children
5994         if the current type is scalar.
5996 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5998         PR testsuite/42843
5999         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
6000         * doc/plugins.texi (Plugin license check): Update information
6001         on type of plugin_is_GPL_compatible.
6002         * Makefile.in (PLUGINCC): Define as $(COMPILER).
6003         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
6005 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
6007         * config/arm/arm.c (thumb2_reorg): New function.
6008         (arm_reorg): Call it.
6009         * config/arm/thumb2.md (define_peephole2 for flag clobbering
6010         arithmetic operations): Delete.
6012 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
6014         PR target/44067
6015         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
6016         e500v2 target.
6018 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
6020         PR plugins/44459
6021         * gcc-plugin.h: Encapsulate all declarations in extern "C".
6023 2010-06-08  Jan Hubicka  <jh@suse.cz>
6025         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
6026         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
6028 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
6030         PR tree-optimization/39874
6031         PR middle-end/28685
6032         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
6033         Declare.
6034         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
6035         same_bool_result_p): New.
6036         (and_var_with_comparison, and_var_with_comparison_1,
6037         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
6038         (or_var_with_comparison, or_var_with_comparison_1,
6039         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
6040         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
6041         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
6042         of combine_comparisons.
6043         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
6045 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
6047         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6048         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6049         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
6050         pdp11_function_value_regno_p): New functions.
6051         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6052         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6054 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
6056         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
6057         Thumb-2 in the MINUS case.
6059 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6061         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
6063         * doc/gty.texi (GTY Options): Document typed GC allocation and
6064         variable_size GTY option.
6066         * ggc-internal.h: New.
6068         * ggc.h: Update copyright year.
6069         (digit_string): Move to stringpool.c.
6070         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
6071         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
6072         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
6073         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
6074         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
6075         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
6076         (ggc_force_collect, ggc_get_size, ggc_statistics)
6077         (ggc_print_common_statistics): Move to ggc-internal.h.
6078         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
6079         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
6080         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
6081         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
6082         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
6083         (ggc_alloc_zone_pass_stat): Remove.
6084         (ggc_internal_alloc_stat, ggc_internal_alloc)
6085         (ggc_internal_cleared_alloc_stat): New.
6086         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
6087         (ggc_internal_vec_alloc_stat)
6088         (ggc_internal_cleared_vec_alloc_stat)
6089         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
6090         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
6091         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
6092         (ggc_cleared_alloc_ptr_array_two_args): New.
6093         (htab_create_ggc, splay_tree_new_ggc): Redefine.
6094         (ggc_splay_alloc): Change the type of the first argument to
6095         enum gt_types_enum.
6096         (ggc_alloc_string): Make macro.
6097         (ggc_alloc_string_stat): New.
6098         (ggc_strdup): Redefine.
6099         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
6100         (ggc_alloc_rtvec_sized): New.
6101         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
6102         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
6103         (ggc_internal_cleared_alloc_zone_stat)
6104         (ggc_internal_zone_alloc_stat)
6105         (ggc_internal_zone_cleared_alloc_stat)
6106         (ggc_internal_zone_vec_alloc_stat)
6107         (ggc_alloc_zone_rtx_def_stat)
6108         (ggc_alloc_zone_tree_node_stat)
6109         (ggc_alloc_zone_cleared_tree_node_stat)
6110         (ggc_alloc_cleared_gimple_statement_d_stat): New.
6112         * ggc-common.c: Include ggc-internal.h.
6113         (ggc_internal_cleared_alloc_stat): Rename from
6114         ggc_alloc_cleared_stat.
6115         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
6116         (ggc_calloc): Remove.
6117         (ggc_cleared_alloc_htab_ignore_args): New.
6118         (ggc_cleared_alloc_ptr_array_two_args): New.
6119         (ggc_splay_alloc): Add obj_type parameter.
6120         (init_ggc_heuristics): Formatting fixes.
6122         * ggc-none.c: Update copyright year.
6123         (ggc_alloc_stat): Rename to ggc_alloc_stat.
6124         (ggc_alloc_cleared_stat): Rename to
6125         ggc_internal_cleared_alloc_stat.
6126         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6128         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
6129         Remove references to ggc_alloc in comments.
6130         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
6131         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
6132         (new_ggc_zone, destroy_ggc_zone): Remove.
6133         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6135         * ggc-zone.c: Include ggc-internal.h.  Remove references to
6136         ggc_alloc in comments.
6137         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
6138         (ggc_internal_alloc_zone_pass_stat): New.
6139         (ggc_internal_cleared_alloc_zone_stat): New.
6140         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
6141         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
6142         (new_ggc_zone, destroy_ggc_zone): Remove.
6144         * stringpool.c: Update copyright year.  Include ggc-internal.h
6145         (digit_vector): Make static.
6146         (digit_string): Moved from ggc.h.
6147         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
6148         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
6150         * Makefile.in (GGC_INTERNAL_H): New.
6151         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
6152         $(GGC_INTERNAL_H) to dependencies.
6154         * gentype.c: Update copyright year.
6155         (walk_type): Accept variable_size GTY option.
6156         (USED_BY_TYPED_GC_P): New macro.
6157         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
6158         whitespace at the end of strings.
6159         (get_type_specifier, variable_size_p): New functions.
6160         (alloc_quantity, alloc_zone): New enums.
6161         (write_typed_alloc_def): New function.
6162         (write_typed_struct_alloc_def): Likewise.
6163         (write_typed_typed_typedef_alloc_def): Likewise.
6164         (write_typed_alloc_defns): Likewise.
6165         (output_typename, write_splay_tree_allocator_def): Likewise.
6166         (write_splay_tree_allocators): Likewise.
6167         (main): Call write_typed_alloc_defns and
6168         write_splay_tree_allocators.
6170         * lto-streamer.h (lto_file_decl_data_ptr): New.
6172         * passes.c (order): Define using cgraph_node_ptr.
6174         * strinpool.c (struct string_pool_data): Declare nested_ptr using
6175         ht_identifier_ptr.
6177         * gimple.h (union gimple_statement_d): Likewise.
6179         * rtl.h (struct rtx_def): Likewise.
6180         (struct rtvec_def): Likewise.
6182         * tree.h (union tree_node): Likewise.
6184         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
6186         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
6188         * tree-scalar-evolution.c (scev_initialize): Likewise.
6190         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
6192         * dwarf2asm.c (dw2_force_const_mem): Likewise.
6194         * omp-low.c (lower_omp_critical): Likewise.
6196         * bitmap.h (struct bitmap_head_def): Update comment to not
6197         reference ggc_alloc.
6199         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
6201         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
6203         * ipa-prop.c (duplicate_ggc_array): Rename to
6204         duplicate_ipa_jump_func_array.  Use typed GC allocation.
6205         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
6207         * gimple.c (gimple_alloc_stat): Use
6208         ggc_alloc_cleared_gimple_statement_d_stat.
6210         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
6212         * tree.c (make_node_stat): Use
6213         ggc_alloc_zone_cleared_tree_node_stat.
6214         (make_tree_vec_stat): Likewise.
6215         (build_vl_exp_stat): Likewise.
6216         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
6217         (make_tree_binfo_stat): Likewise.
6218         (tree_cons_stat): Likewise.
6220         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
6221         (shallow_copy_rtx_stat): Likewise.
6222         (make_node_stat): Likewise.
6224         * lto-symtab.c: Fix comment.
6226         * tree-cfg.c (create_bb): Update comment to not reference
6227         ggc_alloc_cleared.
6228         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
6230         * varpool.c (varpool_node): Use typed GC allocation.
6231         (varpool_extra_name_alias): Likewise.
6233         * varasm.c (emutls_decl): Likewise.
6234         (get_unnamed_section): Likewise.
6235         (get_noswitch_section): Likewise.
6236         (get_section): Likewise.
6237         (get_block_for_section): Likewise.
6238         (build_constant_desc): Likewise.
6239         (create_constant_pool): Likewise.
6240         (force_const_mem): Likewise.
6242         * tree.c (build_vl_exp_stat): Likewise.
6243         (build_real): Likewise.
6244         (build_string): Likewise.
6245         (decl_debug_expr_insert): Likewise.
6246         (decl_value_expr_insert): Likewise.
6247         (type_hash_add): Likewise.
6248         (build_omp_clause): Likewise.
6250         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
6252         * tree-ssa.c (init_tree_ssa): Likewise.
6254         * tree-ssa-structalias.c (heapvar_insert): Likewise.
6256         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
6258         * tree-ssa-loop-niter.c (record_estimate): Likewise.
6260         * tree-ssa-alias.c (get_ptr_info): Likewise.
6262         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
6264         * tree-phinodes.c (allocate_phi_node): Likewise.
6266         * tree-iterator.c (tsi_link_before): Likewise.
6267         (tsi_link_after): Likewise.
6269         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
6271         * tree-dfa.c (create_var_ann): Likewise.
6273         * tree-cfg.c (create_bb): Likewise.
6275         * toplev.c (alloc_for_identifier_to_locale): Likewise.
6276         (general_init): Likewise.
6278         * stringpool.c (stringpool_ggc_alloc): Likewise.
6279         (gt_pch_save_stringpool): Likewise.
6281         * sese.c (if_region_set_false_region): Likewise.
6283         * passes.c (do_per_function_toporder): Likewise.
6285         * optabs.c (set_optab_libfunc): Likewise.
6286         (set_conv_libfunc): Likewise.
6288         * lto-symtab.c (lto_symtab_register_decl): Likewise.
6290         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
6291         (input_eh_region): Likewise.
6292         (input_eh_lp): Likewise.
6293         (make_new_block): Likewise.
6294         (unpack_ts_real_cst_value_fields): Likewise.
6296         * lto-section-in.c (lto_new_in_decl_state): Likewise.
6298         * lto-cgraph.c (input_node_opt_summary): Likewise.
6300         * loop-init.c (loop_optimizer_init): Likewise.
6302         * lambda.h (lambda_vector_new): Likewise.
6304         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
6306         * ira.c (update_equiv_regs): Likewise.
6308         * ipa.c (cgraph_node_set_new): Likewise.
6309         (cgraph_node_set_add): Likewise.
6310         (varpool_node_set_new): Likewise.
6311         (varpool_node_set_add): Likewise.
6313         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
6314         (duplicate_ipa_jump_func_array): Likewise.
6315         (ipa_read_node_info): Likewise.
6317         * ipa-cp.c (ipcp_create_replace_map): Likewise.
6319         * integrate.c (get_hard_reg_initial_val): Likewise.
6321         * gimple.c (gimple_alloc_stat): Likewise.
6322         (gimple_build_omp_for): Likewise.
6323         (gimple_seq_alloc): Likewise.
6324         (gimple_copy): Likewise.
6326         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
6327         (gsi_insert_after_without_update): Likewise.
6329         * function.c (add_frame_space): Likewise.
6330         (insert_temp_slot_address): Likewise.
6331         (assign_stack_temp_for_type): Likewise.
6332         (allocate_struct_function): Likewise.
6333         (types_used_by_var_decl_insert): Likewise.
6335         * except.c (init_eh_for_function): Likewise.
6336         (gen_eh_region): Likewise.
6337         (gen_eh_region_catch): Likewise.
6338         (gen_eh_landing_pad): Likewise.
6339         (add_call_site): Likewise.
6341         * emit-rtl.c (get_mem_attrs): Likewise.
6342         (get_reg_attrs): Likewise.
6343         (start_sequence): Likewise.
6344         (init_emit): Likewise.
6346         * dwarf2out.c (new_cfi): Likewise.
6347         (queue_reg_save): Likewise.
6348         (dwarf2out_frame_init): Likewise.
6349         (new_loc_descr): Likewise.
6350         (find_AT_string): Likewise.
6351         (new_die): Likewise.
6352         (add_var_loc_to_decl): Likewise.
6353         (clone_die): Likewise.
6354         (clone_as_declaration): Likewise.
6355         (break_out_comdat_types): Likewise.
6356         (new_loc_list): Likewise.
6357         (loc_descriptor): Likewise.
6358         (add_loc_descr_to_each): Likewise.
6359         (add_const_value_attribute): Likewise.
6360         (tree_add_const_value_attribute): Likewise.
6361         (add_comp_dir_attribute): Likewise.
6362         (add_name_and_src_coords_attributes): Likewise.
6363         (lookup_filename): Likewise.
6364         (store_vcall_insn): Likewise.
6365         (dwarf2out_init): Likewise.
6367         * dbxout.c (dbxout_init): Likewise.
6369         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6371         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
6373         * config/score/score7.c (score7_output_external): Likewise.
6375         * config/score/score3.c (score3_output_external): Likewise.
6377         * config/s390/s390.c (s390_init_machine_status): Likewise.
6379         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
6380         (rs6000_init_machine_status): Likewise.
6381         (output_toc): Likewise.
6383         * config/pa/pa.c (pa_init_machine_status): Likewise.
6384         (get_deferred_plabel): Likewise.
6386         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
6388         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
6390         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
6392         * config/mep/mep.c (mep_init_machine_status): Likewise.
6393         (mep_note_pragma_flag): Likewise.
6395         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
6397         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
6399         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
6401         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
6402         (i386_pe_maybe_record_exported_symbol): Likewise.
6404         * config/i386/i386.c (get_dllimport_decl): Likewise.
6405         (ix86_init_machine_status): Likewise.
6406         (assign_386_stack_local): Likewise.
6408         * config/frv/frv.c (frv_init_machine_status): Likewise.
6410         * config/darwin.c (machopic_indirection_name): Likewise.
6412         * config/cris/cris.c (cris_init_machine_status): Likewise.
6414         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
6416         * config/avr/avr.c (avr_init_machine_status): Likewise.
6418         * config/arm/arm.c (arm_init_machine_status): Likewise.
6420         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
6421         (alpha_need_linkage): Likewise.
6422         (alpha_use_linkage): Likewise.
6424         * cgraph.c (cgraph_allocate_node): Likewise.
6425         (cgraph_create_edge_1): Likewise.
6426         (cgraph_create_indirect_edge): Likewise.
6427         (cgraph_add_asm_node): Likewise.
6429         * cfgrtl.c (init_rtl_bb_info): Likewise.
6431         * cfgloop.c (alloc_loop): Likewise.
6432         (rescan_loop_exit): Likewise.
6434         * cfg.c (init_flow): Likewise.
6435         (alloc_block): Likewise.
6436         (unchecked_make_edge): Likewise.
6438         * c-parser.c (c_parse_init): Likewise.
6439         (c_parse_file): Likewise.
6441         * c-decl.c (bind): Likewise.
6442         (record_inline_static): Likewise.
6443         (push_scope): Likewise.
6444         (make_label): Likewise.
6445         (lookup_label_for_goto): Likewise.
6446         (finish_struct): Likewise.
6447         (finish_enum): Likewise.
6448         (c_push_function_context): Likewise.
6450         * bitmap.c (bitmap_element_allocate): Likewise.
6451         (bitmap_gc_alloc_stat): Likewise.
6453         * alias.c (record_alias_subset): Likewise.
6454         (init_alias_analysis): Likewise.
6456 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
6458         * fold-const.c (fold_comparison): Remove redundant parenthesis.
6459         * tree-inline.c (expand_call_inline): Pass translated return value of
6460         cgraph_inline_failed_string to diagnostic function.
6462 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
6463             Shujing Zhao  <pearly.zhao@oracle.com>
6465         PR c/37724
6466         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
6467         implicit bad conversions is initialization.
6468         (error_init): Use gmsgid instead of msgid for argument name and change
6469         the call for error.
6470         (pedwarn_init): Use gmsgid instead of msgid for argument name and
6471         change the call for pedwarn.
6472         (warning_init): Use gmsgid instead of msgid for argument name and
6473         change the call for warning.
6475 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
6477         * config/mips/mips-protos.h (mips_print_operand): Delete.
6478         (mips_print_operand_address): Delete.
6479         * config/mips/mips.h (mips_print_operand_punct): Delete.
6480         (PRINT_OPERAND): Delete.
6481         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6482         (PRINT_OPERAND_ADDRESS): Delete.
6483         * config/mips/mips.c (mips_print_operand_punct): Make static.
6484         (mips_print_operand_address): Make static.
6485         (mips_print_operand): Make static.  Call
6486         mips_print_operand_punct_valid_p.
6487         (mips_print_operand_punct_valid_p): New function.
6488         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6489         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6491 2010-06-07  Jan Hubicka  <jh@suse.cz>
6493         PR middle-end/44454
6494         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
6495         are allocated.
6497 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
6499         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
6500         name of RECORD.
6502 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6504         * doc/sourcebuild.texi (Effective-Target Keywords, Other
6505         attributes): Document gas.
6507 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
6509         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
6510         <TYPE_LEA>: Split instruction.
6511         <default>: Remove alternative 2 handling.
6512         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
6513         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
6514         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
6516         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
6517         (ashift_zext lea splitter): Use DImode for multiplication.
6519         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
6520         to generate addition.
6522 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
6524         * common.opt (fira-verbose): Use Var.
6525         (fpcc-struct-return): Use Init instead of VarExists.
6526         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
6527         toplev.c.
6528         * flags.h (flag_signed_char, flag_short_enums,
6529         flag_pcc_struct_return, flag_ira_verbose,
6530         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
6531         * toplev.c (flag_detailed_statistics, flag_signed_char,
6532         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
6533         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
6534         * toplev.h (flag_crossjumping, flag_if_conversion,
6535         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
6536         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
6537         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
6538         flag_cprop_registers, time_report, flag_ira_loop_pressure,
6539         flag_ira_coalesce, flag_ira_move_spills,
6540         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
6542 2010-06-07  Jan Hubicka  <jh@suse.cz>
6544         * df-core.c (df_analyze_problem): Do verification after allocation.
6546         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
6547         (df_lr_alloc): Initialize problem data; move bitmaps to
6548         lr_bitmaps obstack.
6549         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
6550         (df_lr_verify_solution_start): Do not initialize problem data;
6551         allocate bitmaps in lr_bitmaps.
6552         (df_lr_verify_solution_end): Do not free problem data.
6554 2010-06-07  Jan Hubicka  <jh@suse.cz>
6556         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
6557         if caller is noreturn.
6558         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
6559         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
6560         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
6561         * ipa-pure-const.c (check_decl): Add IPA parameter.
6562         (state_from_flags): New function.
6563         (better_state, worse_state): New functions.
6564         (check_call): When in IPA mode, do not care about callees.
6565         (check_load, check_store): Update.
6566         (check_ipa_load, check_ipa_store): New.
6567         (check_stmt): When in IPA mode, use IPA checkers.
6568         (analyze_function): Use state_from_flags.
6569         (propagate): Check indirect edges and references.
6571 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
6573         PR rtl-optimization/44404
6574         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
6575         of count_occurrences to see if it's safe to modify mem_insn.
6577 2010-06-07  Richard Guenther  <rguenther@suse.de>
6579         * gimplify.c (gimplify_cleanup_point_expr): For empty body
6580         and EH-only cleanup drop the cleanup instead of inserting it
6581         unconditionally.
6583 2010-06-07  Ira Rosen  <irar@il.ibm.com>
6585         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
6586         documentation.
6587         * targhooks.c (default_builtin_vectorization_cost): New function.
6588         * targhooks.h (default_builtin_vectorization_cost): Declare.
6589         * target.h (enum vect_cost_for_stmt): Define.
6590         (builtin_vectorization_cost): Change argument and comment.
6591         * tree-vectorizer.h: Remove cost model macros.
6592         * tree-vect-loop.c: Include target.h.
6593         (vect_get_cost): New function.
6594         (vect_estimate_min_profitable_iters): Replace cost model macros with
6595         calls to vect_get_cost.
6596         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
6597         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
6598         default implementation.
6599         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
6600         calls to target hook builtin_vectorization_cost.
6601         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
6602         Likewise.
6603         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
6604         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
6605         implementation to return costs.
6606         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
6607         * config/spu/spu.h: Remove vectorizer cost model macros.
6608         * config/i386/i386.h: Likewise.
6609         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
6610         a call to target hook builtin_vectorization_cost.
6612 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
6614         PR target/44319
6615         * config/i386/i386.c (override_options): Turn zee pass on for level 2
6616         and above and defer till target is known.
6617         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
6618         turn off otherwise.
6620 2010-05-25  Jan Hubicka  <jh@suse.cz>
6622         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
6623         (df_compact_blocks): Likewise.
6624         * df.h (struct df): Turn hardware_regs_used,
6625         regular_block_artificial_uses, eh_block_artificial_uses,
6626         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
6627         bitmap_head.
6628         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
6629         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
6630         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
6631         df_scan_blocks, df_insn_delete, df_insn_rescan,
6632         df_insn_rescan_debug_internal, df_insn_rescan_all,
6633         df_process_deferred_rescans, df_process_deferred_rescans,
6634         df_notes_rescan, df_get_call_refs, df_get_call_refs,
6635         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
6636         df_record_entry_block_defs, df_record_exit_block_uses,
6637         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
6638         df_scan_verify): Update.
6640 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
6642         PR c++/44188
6643         * c-common.c (is_typedef_decl): Move this definition ...
6644         * tree.c (is_typedef_decl): ... here.
6645         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6646         * c-common.h (is_typedef_decl): Move this declaration ...
6647         * tree.h (is_typedef_decl): ... here.
6648         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6649         * dwarf2out.c (is_naming_typedef_decl): New function.
6650         (gen_tagged_type_die): Split out of ...
6651         (gen_type_die_with_usage): ... this function. When an anonymous
6652         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6653         is emitted for the typedef.
6654         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6655         anonymous tagged types.
6657 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6659         PR c/20000
6660         * c-decl.c (grokdeclarator): Delete warning.
6662 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
6664         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
6665         newly built CALL_EXPR.
6666         * tree-profile.c (tree_profiling): Don't profile functions produced
6667         for built-in stuff.
6669 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
6671         PR bootstrap/44427
6672         PR bootstrap/44428
6673         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
6674         endianness-independent.
6676 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
6678         * c-common.c: Move to c-family/.
6679         * c-common.def: Likewise.
6680         * c-common.h: Likewise.
6681         * c-cppbuiltin.c: Likewise.
6682         * c-dump.c: Likewise.
6683         * c-format.c: Likewise.
6684         * c-format.h : Likewise.
6685         * c-gimplify.c: Likewise.
6686         * c-lex.c: Likewise.
6687         * c-omp.c: Likewise.
6688         * c.opt: Likewise.
6689         * c-opts.c: Likewise.
6690         * c-pch.c: Likewise.
6691         * c-ppoutput.c: Likewise.
6692         * c-pragma.c: Likewise.
6693         * c-pragma.h: Likewise.
6694         * c-pretty-print.c: Likewise.
6695         * c-pretty-print.h: Likewise.
6696         * c-semantics.c: Likewise.
6697         * stub-objc.c: Likewise.
6699         * gengtype.c (get_file_langdir): Special-case files in c-family/.
6700         (get_output_file_with_visibility): Fix name for c-common.h.
6701         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
6703         * c-tree.h: Update include path for moved files.
6704         * c-lang.c: Likewise.
6705         * c-lang.h: Likewise.
6706         * c-parser.c: Likewise.
6707         * c-convert.c: Likewise.
6708         * c-decl.c: Likewise.
6709         * c-objc-common.c: Likewise.
6710         * configure.ac: Make sure c-family/ exists in the build directory.
6711         * configure: Regenerate.
6712         * Makefile.in: Update paths for moved files.  Regroup files per
6713         location and update dependencies.  Move generated_files down after
6714         ALL_GTFILES_H.
6716         * config/spu/spu-c.c: Update paths for moved files.
6717         * config/mep/mep-pragma.c: Likewise.
6718         * config/darwin-c.c: Likewise.
6719         * config/i386/msformat-c.c: Likewise.
6720         * config/i386/i386-c.c: Likewise.
6721         * config/avr/avr-c.c: Likewise.
6722         * config/sol2-c.c: Likewise.
6723         * config/ia64/ia64-c.c: Likewise.
6724         * config/rs6000/rs6000-c.c: Likewise.
6725         * config/arm/arm.c: Likewise.
6726         * config/arm/arm-c.c: Likewise.
6727         * config/h8300/h8300.c: Likewise.
6728         * config/v850/v850-c.c: Likewise.
6730         * config/t-darwin: Fix dependencies for moved files.
6731         * config/t-sol2: Fix dependencies for moved files.
6732         * config/mep/t-mep: Fix dependencies for moved files.
6733         * config/ia64/t-ia64: Fix dependencies for moved files.
6734         * config/rs6000/t-rs6000: Fix dependencies for moved files.
6735         * config/v850/t-v850: Fix dependencies for moved files.
6736         * config/v850/t-v850e: Fix dependencies for moved files.
6738         * config/m32c/m32c-pragma.c
6740         * po/exgettext: Look in c-family/ also.
6742 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
6744         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
6745         (mark_control_dependent_edges_necessary): Call it instead of marking
6746         the last statement manually.
6747         (propagate_necessity): Likewise.
6749 2010-06-05  Jan Hubicka  <jh@suse.cz>
6751         * basic-block.h (compute_dominance_frontiers): Updated.
6752         (compute_idf): Likewise.
6754         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
6755         for dominance frontiers.
6756         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
6757         (insert_updated_phi_nodes_for): Likewise.
6758         (update_ssa): Likewise.
6759         * cfganal.c (compute_dominance_frontiers_1): Likewise.
6760         (compute_dominance_frontiers): Likewise.
6761         (compute_idf): Likewise.
6762         * df-problems.c (df_md_local_compute): Likewise.
6764 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
6766         * target.h (struct gcc_target): Add memory_move_cost field.
6767         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
6768         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
6769         * targhooks.c (default_memory_move_cost): New function.
6770         * targhooks.h (default_memory_move_cost): Declare function.
6771         * reload.h (memory_move_cost): Declare.
6772         (memory_move_secondary_cost): Change type of 'in' argument to bool.
6773         * reginfo.c (memory_move_cost): New function.
6774         (memory_move_secondary_cost): Change type of 'in' argument to bool.
6775         * ira.h (ira_memory_move_cost): Update comment.
6776         * ira.c: (ira_memory_move_cost): Update comment.
6777         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
6778         with memory_move_cost.
6779         * postreload.c (reload_cse_simplify_set): (Ditto.).
6780         * reload1.c (choose_reload_regs): (Ditto.).
6781         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
6782         (MEMORY_MOVE_COST):  Revise documentation.
6784         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
6785         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
6786         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
6787         type of 'in' argument to bool.
6788         (TARGET_MEMORY_MOVE_COST): Define.
6790 2010-06-05  Jan Hubicka  <jh@suse.cz>
6792         * ipa-pure-const.c (propagate): Fix typo in handling of functions
6793         that cannot return.  Be more careful when merging the results with
6794         previously known ones.
6796 2010-06-05  Matthias Klose  <doko@ubuntu.com>
6798         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
6799         function to add the -iplugindir option.
6800         (find_plugindir_spec_function): Add new declaration and function.
6801         (static_spec_func): Use it for "find-plugindir".
6803 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
6805         PR c++/44361
6806         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
6807         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
6808         statement expression.
6810 2010-06-05  Jan Hubicka  <jh@suse.cz>
6812         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
6813         (df_rd_problem_data): Convert sparse_invalidated_by_call,
6814         dense_invalidated_by_call to bitmap head.
6815         (df_rd_alloc, df_rd_bb_local_compute_process_def,
6816         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
6817         df_rd_start_dump, df_lr_verify_transfer_functions,
6818         df_live_verify_transfer_functions, df_chain_create_bb,
6819         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
6820         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
6821         df_simulate_one_insn_forwards, df_md_alloc,
6822         df_md_bb_local_compute_process_def,
6823         df_md_bb_local_compute_process_def, df_md_local_compute,
6824         df_md_transfer_function df_md_free): Update.
6826 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
6828         PR c/44322
6829         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
6830         target type for ADDR_EXPR; require no changes to qualifiers except
6831         for function types.
6832         * c-tree.h (c_build_type_variant): Remove.
6834 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
6836         * genautomata.c (get_excl_set): Do work per element, not per char.
6837         (check_presence_pattern_sets): Similar.
6838         (check_absence_pattern_sets): Similar.
6840 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
6842         * genautomata.c (curr_state_pass_num): Delete.
6843         (min_issue_delay_pass_states): Delete.
6844         (min_issue_delay): Delete.
6845         (initiate_min_issue_delay_pass_states): Delete.
6846         (output_min_issue_delay_table): Compute min_issue_delay_vect
6847         using a breadth-first search variant.
6848         (output_tables): Don't call initiate_min_issue_delay_pass_states.
6850 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6852         PR boostrap/44421
6853         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
6854         (df_byte_lr_bb_local_compute): Likewise.
6856 2010-06-03  Jason Merrill  <jason@redhat.com>
6858         Implement noexcept operator (5.3.7)
6859         * c-common.c (c_common_reswords): Add noexcept.
6860         * c-common.h (enum rid): Add RID_NOEXCEPT.
6862 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
6864         * config/darwin-driver.c (darwin_default_min_version): Use
6865         GCC-specific formats in diagnostics.
6866         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
6867         diagnostics.
6868         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
6869         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
6870         eval_spec_function, handle_braces, process_brace_body, main,
6871         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
6872         getenv_spec_function, compare_version_strings,
6873         version_compare_spec_function): Use GCC-specific formats in
6874         diagnostics.
6876 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
6878         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
6879         that operand 0 and operand 1 are equal.
6880         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
6881         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
6882         and operand 1 are equal.
6883         <default>: Ditto.  Remove ??? comment.
6884         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
6885         and operand 1 are equal.
6886         <default>: Ditto.  Remove ??? comment.
6887         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
6888         are equal.
6889         (*add<mode>_4) <default>: Ditto.
6890         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
6892 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
6894         * config/i386/i386-protos.h (ix86_print_operand): Declare.
6895         * config/i386/i386.c (ix86_print_operand): Make non-static.
6896         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
6897         * output.h (output_operand): Declare.
6898         * final.c (output_operand): Make non-static.
6900 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
6902         PR rtl-optimization/44013
6903         * sched-deps.c (add_dependence_list_and_free): Don't free lists
6904         when processing debug insns.
6906         PR debug/41371
6907         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
6908         recursing.  Check that recursion is bounded.  Rename inner var
6909         to avoid hiding incoming argument.
6911 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
6913         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
6914         operands[2] == 255.
6915         (*addqi_3): Ditto.
6916         (*addqi_4): Ditto.
6917         (*addqi_5): Ditto.
6918         (*addqi_ext_1_rex64): Ditto.
6919         (*addqi_ext_1): Ditto.
6921         (*addqi_4): Check for incdec_operand in QImode.
6923         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
6924         using SWI mode iterator.
6925         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
6926         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
6927         mode iterator.
6928         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
6929         using SWI mode iterator.
6931 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6933         PR c/25880
6934         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
6935         * c-format.c (gcc_diag_flag_specs): Add hash.
6936         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
6937         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
6938         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
6939         pp_c_cv_qualifiers. Handle qualifiers spelling here.
6940         (pp_c_type_qualifier_list): Call the function above.
6941         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
6942         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
6943         (WARN_FOR_QUALIFIERS): New macro.
6944         (convert_for_assignment): Use it.
6946 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
6948         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
6950 2010-06-04  Jan Hubicka  <jh@suse.cz>
6952         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
6953         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
6954         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
6955         DF_BYTE_LR_OUT): Update for embedded bitmaps.
6956         * fwprop.c (single_def_use_enter_block): Likewise.
6957         * ddg.c (create_ddg_dep_from_intra_loop_link,
6958         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
6959         * loop-iv.c (latch_dominating_def): Likewise.
6960         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
6961         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
6962         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
6963         df_rd_transfer_function, df_rd_top_dump,
6964         df_rd_bottom_dump): Update.
6965         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
6966         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
6967         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
6968         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
6969         df_lr_verify_solution_start, df_lr_verify_solution_end,
6970         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
6971         df_live_free_bb_info, df_live_alloc, df_live_reset,
6972         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
6973         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
6974         df_live_verify_solution_start, df_live_verify_solution_end,
6975         df_live_verify_transfer_functions, df_chain_create_bb,
6976         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
6977         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6978         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6979         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
6980         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
6981         df_byte_lr_transfer_function, df_byte_lr_top_dump,
6982         df_byte_lr_bottom_dump, df_create_unused_note,
6983         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
6984         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
6985         df_md_transfer_function, df_md_init, df_md_confluence_0,
6986         df_md_confluence_n,
6987         df_md_top_dump, df_md_bottom_dump): Update.
6988         (struct df_lr_problem_data): Embedd bitmap headers.
6990 2010-06-04  Jan Hubicka  <jh@suse.cz>
6992         * dce.c (dce_process_block): Do not re-scan already marked
6993         instructions.
6995 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
6997         PR rtl-optimization/39871
6998         PR rtl-optimization/40615
6999         PR rtl-optimization/42500
7000         PR rtl-optimization/42502
7001         * ira.c (init_reg_equiv_memory_loc: New function.
7002         (ira): Call it twice.
7003         * reload.h (calculate_elim_costs_all_insns): Declare.
7004         * ira-costs.c: Include "reload.h".
7005         (regno_equiv_gains): New static variable.
7006         (init_costs): Allocate it.
7007         (finish_costs): Free it.
7008         (ira_costs): Call calculate_elim_costs_all_insns.
7009         (find_costs_and_classes): Take estimated elimination costs
7010         into account.
7011         (ira_adjust_equiv_reg_cost): New function.
7012         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
7013         * reload1.c (init_eliminable_invariants, free_reg_equiv,
7014         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
7015         (elim_bb): New static variable.
7016         (reload): Move code out of here into init_eliminable_invariants and
7017         free_reg_equiv.  Call them.
7018         (calculate_elim_costs_all_insns): New function.
7019         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
7020         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
7021         but call note_reg_elim_costly if we turned a valid memory address
7022         into an invalid one.
7023         * Makefile.in (ira-costs.o): Depend on reload.h.
7025 2010-06-04  Julian Brown  <julian@codesourcery.com>
7027         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
7028         for pool ranges.
7030 2010-06-04  Richard Guenther  <rguenther@suse.de>
7032         PR lto/41584
7033         * cgraph.h (struct varpool_node): Add lto_file_data field.
7034         * lto-cgraph.c (input_varpool_node): Initialize it.
7036 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
7038         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
7039         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
7040         predicate in "type" attribute calculation.
7041         (*addsi_1_zext): Ditto.
7042         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
7043         (*addsi_2_zext): Ditto.
7044         (*add<mode>_3): Ditto.
7045         (*addsi_3_zext): Ditto.
7046         (*add<mode>_5): Ditto.
7048 2010-06-03  Jan Hubicka  <jh@suse.cz>
7050         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
7051         of bitmap_bit_p.
7052         * cfganal.c (compute_dominance_frontiers_1): Likewise.
7054 2010-06-03  Jan Hubicka  <jh@suse.cz>
7056         * df-problems.c (df_create_unused_note, df_note_bb_compute):
7057         micro-optimize the checks when to add new note.
7059 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
7061         * final.c (output_asm_insn): Call
7062         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
7063         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
7064         (output_address): Call targetm.asm_out.print_operand_address.
7065         Update comments.
7066         * target.h (struct gcc_target): Add print_operand,
7067         print_operand_address, and print_operand_punct_valid_p fields.
7068         * targhooks.h (default_print_operand): Declare.
7069         (default_print_operand_address): Declare.
7070         (default_print_operand_punct_valid_p): Declare.
7071         * targhooks.c (default_print_operand): Define.
7072         (default_print_operand_address): Define.
7073         (default_print_operand_punct_valid_p): Define.
7074         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
7075         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
7076         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
7077         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
7078         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
7079         * vmsdbgout.c (addr_const_to_string): Update comment.
7080         * config/i386/i386.c (print_operand): Rename to...
7081         (ix86_print_operand): ...this.  Make static.
7082         (print_operand_address): Rename to...
7083         (ix86_print_operand_address): ...this.  Make static.  Call
7084         ix86_print_operand instead of PRINT_OPERAND.
7085         (ix86_print_operand_punct_valid_p): New function.
7086         (TARGET_PRINT_OPERAND): Define.
7087         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7088         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7089         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
7090         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7091         (PRINT_OPERAND): Delete.
7092         (PRINT_OPERAND_ADDRESS): Delete.
7093         * config/i386/i386-protos.h (print_operand): Delete prototype.
7094         (print_operand_address): Delete prototype.
7096 2010-06-03  Richard Guenther  <rguenther@suse.de>
7098         PR tree-optimization/44403
7099         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7100         Preserve pointer qualifiers.
7101         (vect_create_data_ref_ptr): Likewise.
7103 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
7105         PR c++/44294
7106         * defaults.h (MAX_FIXED_MODE_SIZE): New.
7108         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
7110 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
7112         PR debug/44375
7113         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
7114         return false if merging the bbs would lead to goto_locus
7115         location being lost from the IL.
7117 2010-06-03  Jan Hubicka  <jh@suse.cz>
7118             Jakub Jelinek  <jakub@redhat.com>
7120         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
7121         set->regs[i] is NULL or has just one entry.
7123 2010-06-03  Jan Hubicka  <jh@suse.cz>
7125         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
7126         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
7128 2010-06-03  Paul Brook  <paul@codesourcery.com>
7130         * config/arm/arm.c (FL_TUNE): Define.
7131         (arm_default_cpu, arm_cpu_select): Remove.
7132         (all_cores): Populate core field.
7133         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
7134         (arm_find_cpu): New function.
7135         (arm_handle_option): Lookup cpu/architecture names.
7136         (arm_override_options): Cleanup mcpu/march/mtune handling.
7137         (arm_file_start): Ditto.
7139 2010-06-03  Alan Modra  <amodra@gmail.com>
7141         PR target/44169
7142         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
7143         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
7144         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
7145         (rs6000_emit_load_toc_table): Likewise.
7147 2010-06-02  Jan Hubicka  <jh@suse.cz>
7149         * passes.c (init_optimization_passes): Put ipa reference
7150         after ipa pure-const.
7152 2010-06-02  Jan Hubicka  <jh@suse.cz>
7154         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
7155         calls_read_all and calls_write_all.
7156         (get_reference_optimization_summary): Fix formatting.
7157         (is_proper_for_analysis): Check that decl is not readonly.
7158         (propagate_bits): Check CONST/PURE/noreturn flags.
7159         (ipa_init): Move all_module_statics to optimization_summary_obstack.
7160         (analyze_function): Ignore indirect edges.
7161         (copy_global_bitmap): For all module statics, do nothing.
7162         (generate_summary): Do not print calls_read_all/calls_write_all.
7163         (read_write_all_from_decl): Take node as argument; check
7164         cgraph_node_cannot_return.
7165         (propagate): Reorganize read_all/write_all computation;
7166         check indirect edges; check ecf flags; use all_module_statics
7167         in the results; do not free all_module_statics.
7168         (stream_out_bitmap): Handle all_module_statics.
7169         (ipa_reference_write_optimization_summary): Likewise; use
7170         varpool/cgraph encoders to get boundaries.
7171         (ipa_reference_read_optimization_summary): Read in all_module_statics;
7172         use it when possible.
7174 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
7176         PR target/44218
7177         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
7178         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
7180         * doc/extend.texi (powerpc builtins): Document vec_recip,
7181         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
7183         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
7184         (rs6000_emit_swrsqrt): Ditto.
7185         (rs6000_emit_swdivsf): Delete.
7186         (rs6000_emit_swdivdf): Ditto.
7187         (rs6000_emit_swrsqrtsf): Ditto.
7189         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
7190         describe the reciprocal estimate support for each type.
7191         (recip_options): Map -mrecip=<opt> into option bits.
7192         (gen_2arg_fn_t): New typedef for binary rtx gen function.
7193         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
7194         reciprocal estimate instructions.
7195         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
7196         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
7197         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
7198         cost information if -mdebug=cost or -mdebug=reg.
7199         (rs6000_override_options): Set -mrecip-precision for power6, and
7200         power7 machines.  If -mvsx or -mdfp, enable various options that
7201         came in previous instruction set ISAs, unless the option was
7202         explicitly disabled by the command line option.  Parse
7203         -mrecip=<opt> options.
7204         (rs6000_builtin_vectorized_function): Add support for vectorizing
7205         the reciprocal estimate builtins and expansions.
7206         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
7207         (bdesc_2arg): Add reciprocal estimate builtins.
7208         (bdesc_1arg): Add reciprocal square root estimate builtins.
7209         (rs6000_expand_builtin): Rewrite to use a switch statement,
7210         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
7211         (rs6000_init_builtins): Create declarations for reciprocal
7212         estimate builtins.
7213         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
7214         sized, prefer traditional floating point registers, if integer
7215         vector types, prefer altivec registers.  Don't actually look at
7216         the memory address any more.
7217         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
7218         builtins.
7219         (rs6000_load_constant_and_splat): New helper function to load up
7220         the constant for reciprocal estimate instructions.
7221         (rs6000_emit_madd): New helper function for generating
7222         multiply/add type instructions, based on the current switches.
7223         (rs6000_emit_msub): Ditto.
7224         (rs6000_emit_mnsub): Ditto.
7225         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
7226         replace a divide with a reciprocal estimate and fixup, adding
7227         support for machines with high precision and vectors.
7228         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
7229         low precision machines.
7230         (rs6000_emit_swdiv): New common function to be called to replace a
7231         division with reciprocal estimate and fixup.
7232         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
7233         for double and vector types.  Add support for high precision machines.
7235         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
7236         the reciprocal estimate instructions can be generated.
7237         (TARGET_FRE): Ditto.
7238         (TARGET_FRSQRTES): Ditto.
7239         (TARGET_FRSQRTE): Ditto.
7240         (RS6000_RECIP_*): New macros for reciprocal estimate support.
7242         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
7243         square root estimate on vectors.
7244         (re<mode>2): New insn for reciprocal division estimate on vectors.
7246         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
7247         New builtin.
7248         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
7249         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
7250         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
7251         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
7252         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
7253         (RS6000_BUILTIN_RSQRT): Ditto.
7254         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
7255         floating point builtin.
7257         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7258         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
7259         __RECIP_PRECISION__ based on the command line switches.
7260         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
7262         * config/rs6000/rs6000.opt (-mrecip): Document add support for
7263         replacing division instructions with reciprocal estimate and fixup.
7264         (-mrecip=<opt>): New option.
7265         (-mrecip-precision): Ditto.
7267         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
7268         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
7269         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
7270         precision scalar.
7272         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
7273         (UNSPEC_VREFP): Ditto.
7274         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
7275         conterparts with regard to support of -mno-fused-madd and -ffast-math.
7276         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
7277         reciprocal estimate instructions to be generated.
7278         (altivec_vrefp): Ditto.
7280         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
7281         estimate support.
7282         (rreg): New mode attribute for reciprocal estimate support.
7283         (recip<mode>3): New insn for division using reciprocal estimate
7284         and fixup builtins.
7285         (divide define_split): New define_split to convert floating point
7286         division to use reciprocal estimate if the user used the
7287         appropriate options and the split is run when we can add new
7288         pseudo registers for the fixup.
7289         (rsqrt<mode>2): New insn for reciprocal square root support.
7290         (recipsf3): Move into recip<mode>3.
7291         (recipdf3): Ditto.
7292         (fres): Use TARGET_FRES.
7293         (rsqrtsf2): Move into rsqrt<mode>2.
7294         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
7295         (copysignsf3): Add support for VSX.
7296         (fred): Use TARGET_FRE.
7297         (fred_fpr): Ditto.
7298         (rsqrtdf_internal1): New function for frsqrte instruciton.
7300         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
7301         (vec_rsqrt): Ditto.
7303 2010-06-03  Richard Guenther  <rguenther@suse.de>
7305         PR middle-end/44291
7306         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
7307         (set_user_assembler_libfunc): Likewise.
7309 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
7311         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
7312         defaults.h.
7313         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
7314         to defaults.h
7315         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
7316         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
7317         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
7318         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
7319         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
7320         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
7321         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
7322         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
7323         * defaults.h: Updated for above mentioned changes.
7325 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
7327         * c-common.c: Remove header include of tm_p.h.
7328         * Makefile.in (c-common.o): Remove TM_P_H dependency.
7330 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
7332         * tree.h (struct tree_decl_map): New type.
7333         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
7334         (tree_decl_map_hash): New prototype.
7335         (debug_expr_for_decl, value_expr_for_decl): Change into
7336         tree_decl_map hashtab from tree_map.
7337         (init_ttree): Adjust initialization.
7338         (tree_decl_map_hash): New function.
7339         (decl_debug_expr_lookup, decl_debug_expr_insert,
7340         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
7342 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7344         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
7345         linker emulations.
7346         * configure: Regenerate.
7347         * config.in: Regenerate.
7349         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
7350         (X86_64_EMULATION): Define.
7351         (TARGET_LD_EMULATION): Use them.
7353         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
7354         (SPARC64_EMULATION): Define.
7355         (LINK_ARCH_SPEC): Use them.
7357 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
7359         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
7360         smallest_mode_for_size for computing the precision types of new
7361         graphite IVs.  Do not call lang_hooks.types.type_for_size.
7363 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
7365         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
7366         information.
7367         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
7369 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
7371         PR middle-end/44363
7372         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
7373         return false instead.
7375 2010-06-02  Jan Hubicka  <jh@suse.cz>
7377         PR middle-end/44295
7378         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
7379         create new cgraph node to check callee.
7381 2010-06-02  Richard Guenther  <rguenther@suse.de>
7383         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
7385 2010-06-02  Richard Guenther  <rguenther@suse.de>
7387         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
7388         (lto_wrapper_cleanup): ... this.  Do not exit.
7389         (fatal): Adjust.  Exit here.
7390         (fatal_perror): Likewise.
7391         (fatal_signal): New function.
7392         (main): Set up signal handlers to cleanup temporary files.
7393         * Makefile.in (lto-wrapper.o): Adjust dependencies.
7395 2010-06-02  Richard Guenther  <rguenther@suse.de>
7397         PR tree-optimization/44377
7398         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
7400 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7402         * config/s390/2097.md (z10_fhex): Remove insn reservation.
7403         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
7404         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
7405         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
7406         instruction.
7407         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
7409 2010-06-02  Jan Hubicka  <jh@suse.cz>
7411         * bitmap.c (bitmap_descriptor): Add search_iter.
7412         (bitmap_find_bit): Increment it.
7413         (print_statistics): Print it.
7415 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
7417         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
7418         instead of gimple_build_call_vec.  Delete unnecessary local variable.
7420 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
7422         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
7423         change from yesterday.
7425 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
7427         * c-ada-spec.c: Clean up redundant includes.
7429 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
7431         * gimplify.c: Do not include except.h and optabs.h.
7432         (gimplify_body): Do not initialize RTL profiling.
7433         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
7434         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
7435         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
7436         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
7437         langhooks.h.
7439         * tree-pretty-print.h: Include pretty-print.h.
7440         * gimple-pretty-print.h: Include pretty-print.h.
7442         * tree-pretty-print.c: Do not include diagnostic.h.
7443         * tree-vrp.c: Likewise.
7444         * tree-tailcall.c: Likewise
7445         * tree-scalar-evolution.c: Likewise
7446         * tree-ssa-dse.c: Likewise
7447         * tree-chrec.c: Likewise
7448         * tree-ssa-sccvn.c: Likewise
7449         * tree-ssa-copyrename.c: Likewise
7450         * tree-nomudflap.c: Likewise
7451         * tree-call-cdce.c: Likewise
7452         * tree-stdarg.c: Likewise
7453         * tree-ssa-math-opts.c: Likewise
7454         * tree-nrv.c: Likewise
7455         * tree-ssa-sink.c: Likewise
7456         * tree-browser.c: Likewise
7457         * tree-ssa-loop-ivcanon.c: Likewise
7458         * tree-ssa-loop.c: Likewise
7459         * tree-parloops.c: Likewise
7460         * tree-ssa-address.c: Likewise
7461         * tree-ssa-ifcombine.c: Likewise
7462         * tree-if-conv.c: Likewise
7463         * tree-data-ref.c: Likewise
7464         * tree-affine.c: Likewise
7465         * tree-ssa-phiopt.c: Likewise
7466         * tree-ssa-coalesce.c: Likewise
7467         * tree-ssa-pre.c: Likewise
7468         * tree-ssa-live.c: Likewise
7469         * tree-predcom.c: Likewise
7470         * tree-ssa-forwprop.c: Likewise
7471         * tree-ssa-dce.c: Likewise
7472         * tree-ssa-ter.c: Likewise
7473         * tree-ssa-loop-prefetch.c: Likewise
7474         * tree-optimize.c: Likewise
7475         * tree-ssa-phiprop.c: Likewise
7476         * tree-object-size.c: Likewise
7477         * tree-outof-ssa.c: Likewise
7478         * tree-ssa-structalias.c: Likewise
7479         * tree-switch-conversion.c: Likewise
7480         * tree-ssa-reassoc.c: Likewise
7481         * tree-ssa-operands.c: Likewise
7482         * tree-vectorizer.c: Likewise
7483         * tree-vect-data-refs.c: Likewise
7484         * tree-vect-generic.c: Likewise
7485         * tree-vect-stmts.c: Likewise
7486         * tree-vect-patterns.c: Likewise
7487         * tree-vect-slp.c: Likewise
7488         * tree-vect-loop.c: Likewise
7489         * tree-ssa-loop-ivopts.c: Likewise
7490         * tree-ssa-loop-im.c: Likewise
7491         * tree-ssa-loop-niter.c: Likewise
7492         * tree-ssa-loop-unswitch.c: Likewise
7493         * tree-ssa-loop-manip.c: Likewise
7494         * tree-ssa-loop-ch.c: Likewise
7495         * tree-dump.c: Likewise
7496         * tree-complex.c: Likewise
7498         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
7499         * tree-ssa-uninit.c: Likewise
7500         * tree-ssa-threadupdate.c: Likewise
7501         * tree-ssa-uncprop.c: Likewise
7502         * tree-ssa-ccp.c: Likewise
7503         * tree-ssa-dom.c: Likewise
7504         * tree-ssa-propagate.c: Likewise
7505         * tree-ssa-alias.c: Likewise
7506         * tree-dfa.c: Likewise
7507         * tree-cfgcleanup.c: Likewise
7508         * tree-sra.c: Likewise
7509         * tree-ssa-copy.c: Likewise
7510         * tree-ssa.c: Likewise
7511         * tree-profile.c: Likewise
7512         * tree-cfg.c: Likewise
7513         * tree-ssa-threadedge.c: Likewise
7514         * tree-vect-loop-manip.c: Likewise
7516         * tree-inline.c: Do not include diagnostic.h and expr.h.
7517         Include rtl.h.
7518         (copy_decl_for_dup_finish): Do not use NULL_RTX.
7520         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
7521         * tree-loop-distribution.c: Likewise.
7523 2010-06-01  Jan Hubicka  <jh@suse.cz>
7525         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
7527 2010-06-01  Jan Hubicka  <jh@suse.cz>
7529         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
7530         remove return value.
7531         (split_bbs_on_noreturn_calls) .... here.
7532         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
7533         * tree-flow.h (fixup_noreturn_call): New.
7535 2010-06-01  Jan Hubicka  <jh@suse.cz>
7537         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
7539 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
7541         * tree.h (build_nt_call_list): Delete.
7542         * tree.c (build_nt_call_list): Delete.
7544 2010-06-01  Jan Hubicka  <jh@suse.cz>
7546         * fwprop.c: Make emit-rtl.h include last.
7547         * rtlanal.c: Include emit-rtl.h.
7548         * genautomata.c: Output emit-rtl include into insn-automata.c
7549         * df-scan.c: Include emit-rtl.h.
7550         * haifa-sched.c: Indlude emit-rtl.h.
7551         * mode-switching.c: Indlude emit-rtl.h.
7552         * graph.c: Indlude emit-rtl.h.
7553         * sel-sched.c: Include emit-rtl.h.
7554         * sel-sched-ir.c: Include emit-rtl.h.
7555         * ira-build.c: Include emit-rtl.h.
7556         * emit-rtl.c: (first_insn, last_insn): Remove defines.
7557         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
7558         Move to emit-rtl.h.
7559         (set_new_first_and_last_insn, get_last_insn_anywhere,
7560         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
7561         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
7562         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
7563         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
7564         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
7565         Use accessor functions.
7566         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7567          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7568         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7569         mem_expr_equal_p): Move here from rtl.h.
7570         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
7571         Move here from emit-rtl.c; make inline.
7572         * cfglayout.h: Include emit-rtl.h.
7573         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7574          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7575         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7576         mem_expr_equal_p, get_insns, set_first-insn,
7577         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
7578         * reg-stack.c: Include emit-rtl.h.
7579         * dce.c: Likewise.
7581 2010-06-01  Jan Hubicka  <jh@suse.cz>
7583         * cgraph.h (tree_function_versioning): Update prototype.
7584         (cgraph_function_versioning): Update prototype.
7585         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
7586         bitmap.
7587         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
7588         (cgraph_materialize_clone, save_inline_function_body): Update use of
7589         tree_function_versioning.
7590         * tree-inline.c (copy_bb): Look for previous copied block to link
7591         after; fix debug output.
7592         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
7593         (copy_body): Likewise.
7594         (expand_call_inline): Update use of copy_body.
7595         (tree_function_versioning): Update use of copy body; accept
7596         blocks_to_copy and new_entry.
7598 2010-06-01  Jan Hubicka  <jh@suse.cz>
7600         * gegenrtl.c: Remove unnecesary prototypes.
7601         (gendecl): Remove.
7602         (gendef): Produce static inline.
7603         (gencode): Remove.
7604         (main): Do not decode parameters; generate header only.
7605         * Makefile.in (genrtl.c): Remove.
7607 2010-06-01  Jan Hubicka  <jh@suse.cz>
7609         * tree-switch-conversion.c (build_one_array): Make it readonly.
7611 2010-06-01  Richard Guenther  <rguenther@suse.de>
7613         * optabs.c (init_optabs): Guard all accesses to reinit.
7614         * ipa-pure-const.c (propagate): Fix another typo.
7615         * opts.c (common_handle_option): Split assignment to bool.
7616         * c-opts.c (c_common_handle_option): Likewise.
7618 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
7619             Matthew Gingell  <gingell@adacore.com>
7621         * doc/invoke.texi: Mention -fdump-ada-spec.
7622         * tree-dump.c (dump_files): Add ada-spec.
7623         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
7624         * tree-pass.h (tree_dump_index): Add TDI_ada.
7625         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
7626         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
7627         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
7628         * c-decl.c: Include c-ada-spec.h.
7629         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
7630         functions.
7631         (c_write_global_declarations): Add handling of -fdump-ada-spec.
7632         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
7633         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
7634         * c-ada-spec.h, c-ada-spec.c: New files.
7636 2010-06-01  Richard Guenther  <rguenther@suse.de>
7638         PR lto/43853
7639         * ipa-pure-const.c (get_function_state): Hand back varying state
7640         if we do not have one.
7641         (has_function_state): New function.
7642         (duplicate_node_data): Adjust.
7643         (remove_node_data): Likewise.
7644         (pure_const_write_summary): Likewise.
7645         (propagate): Likewise.  Fix typo.
7647 2010-06-01  Jan Hubicka  <jh@suse.cz>
7649         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
7650         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
7651         (execute_all_ipa_transforms): Do not play with the states.
7653 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
7655         * config/arm/t-linux-androideabi: New.
7656         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
7658 2010-06-01  Jan Hubicka  <jh@suse.cz>
7660         * tree-inline.c (estimate_num_insns): For stdarg functions look
7661         into call statement to count cost of argument passing.
7663 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
7665         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
7666         argument for fprintf.
7667         (ix86_output_addr_diff_elt): Likewise.
7668         (x86_function_profiler): Likewise.
7669         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
7670         (LPREFIX): Likewise.
7671         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
7673 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
7675         PR target/44338
7676         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
7677         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
7678         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
7679         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
7680         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
7681         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
7682         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
7683         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
7684         TARGET_FUSED_MADD.
7686 2010-05-31  Jan Hubicka  <jh@suse.cz>
7688         * tree.h (tree_range_check_failed): Declare noreturn.
7690 2010-05-31  Jan Hubicka  <jh@suse.cz>
7692         * gimple.c (gimple_call_builtin_p): New function.
7693         * gimple.h (gimple_call_builtin_p): Declare.
7694         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
7695         to exit.
7696         (execute_warn_function_return): BUILT_IN_RETURN is return.
7697         (split_critical_edges): Return edges are not critical.
7698         (is_ctrl_altering_stmt): Builtin_in_return is altering.
7699         (gimple_verify_flow_info): Handle built_in_return.
7700         (execute_warn_function_return): Handle built_in_return.
7701         * ipa-pure-const.c (check_call): Ignore builtin_return.
7703 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
7705         PR middle-end/44337
7706         * expr.c (expand_assignment): Don't store anything for out-of-bounds
7707         array accesses with non-MEM.
7709         PR tree-optimization/44182
7710         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
7711         newly needs to end a bb is followed by debug stmts, instead return
7712         true from the function at the end.
7713         (maybe_move_debug_stmts_to_successors): New function.
7714         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
7716 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
7718         PR target/44161
7719         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
7721 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
7723         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
7724         for nested functions in non-optimized compilation.
7726 2010-05-31  Richard Guenther  <rguenther@suse.de>
7728         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
7730 2010-05-30  Jan Hubicka  <jh@suse.cz>
7732         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
7734 2010-05-30  Richard Guenther  <rguenther@suse.de>
7736         PR lto/42975
7737         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
7738         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
7739         no longer needed.
7741 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
7743         * config/darwin.c (output_objc_section_asm_op): Add comment.
7744         (name_needs_quotes): Add '_' to list of valid comment chars.
7745         (machopic_output_function_base_name): Remove unneeded quotes.
7746         (darwin_encode_section_info): Adjust asm whitespace.
7747         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
7748         (ASM_OUTPUT_LOCAL): Ditto.
7749         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
7750         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
7751         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
7753 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
7755         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
7756         RS6000_OUTPUT_BASENAME unconditionally.
7757         (rs6000_output_function_epilogue): Likewise.
7759 2010-05-30  Jan Hubicka  <jh@suse.cz>
7761         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
7762         nodes.
7764 2010-05-30  Richard Guenther  <rguenther@suse.de>
7766         * tree-cfg.c (verify_gimple_assign_single): Implement
7767         verification for COND_EXPR rhs.
7769 2010-05-30  Jan Hubicka  <jh@suse.cz>
7771         * cgraph.h (cgraph_dump_file): Declare.
7772         * cgraphunit.c (cgraph_dump_file): Export.
7773         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
7775 2010-05-30  Jan Hubicka  <jh@suse.cz>
7777         * dwarf2out.c (reference_to_unused,
7778         premark_types_used_by_global_vars_helper): Avoid creation of new
7779         varpool nodes.
7781 2010-05-30  Jan Hubicka  <jh@suse.cz>
7783         * cgraph.h (cgraph_node_cannot_return,
7784         cgraph_edge_cannot_lead_to_return): New functions.
7785         * cgraph.c (cgraph_node_cannot_return,
7786         cgraph_edge_cannot_lead_to_return): Use them.
7787         * ipa-pure-const.c (pure_const_names): New static var.
7788         (check_call): Handle calls not leading to return.
7789         (pure_const_read_summary): Dump info read.
7790         (propagate): Dump info about propagation process; ignore side effects
7791         of functions not leading to exit; fix handling of pure functions.
7793 2010-05-30  Jan Hubicka  <jh@suse.cz>
7795         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
7796         for tail call epilogues.
7798 2010-05-30  Jan Hubicka  <jh@suse.cz>
7800         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
7801         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
7802         dump files.
7804 2010-05-29  Jan Hubicka  <jh@suse.cz>
7806         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
7807         node; remove references in node we no longer keep in cgrpah but need
7808         body of.
7810 2010-05-29  Jan Hubicka  <jh@suse.cz>
7812         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
7814 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7816         PR target/44165
7817         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
7819 2010-05-29  Jan Hubicka  <jh@suse.cz>
7821         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
7822         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
7823         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
7824         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
7825         debug_names_replaced_by, debug_update_ssa): Likewise.
7826         * sbitmap.c (debug_sbitmap): Likewise.
7827         * genrecog.c (debug_decision, debug_decision_list): Likewise.
7828         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
7829         debug_tree_chain): Likewise.
7830         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
7831         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
7832         * optabs.c  (debug_optab_libfuncs): Likewise.
7833         (verify_loop_closed_ssa): Likewise.
7834         * value-prof.c (verify_histograms): Likewise.
7835         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
7836         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
7837         * cfghooks.c (verify_flow_info): Likewise.
7838         * fold-const.c (debug_fold_checksum): Likewise.
7839         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
7840         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
7841         Likewise.
7842         * omega.c (debug_omega_problem): Likewise.
7843         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
7844         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
7845         * dominance.c (verify_dominators, debug_dominance_info,
7846         debug_dominance_tree): Likewise.
7847         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
7848         * df_regno_debug, df_ref_debug,
7849         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
7850         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
7851         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
7852         * sel-sched.c (debug_state): Likewise.
7853         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
7854         Likewise.
7855         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
7856         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
7857         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
7858         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
7859         Likewise.
7860         * c-pretty-print.c (debug_c_tree): Likewise.
7861         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
7862         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
7863         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
7864         * ebitmap.c (debug_ebitmap): Likewise.
7865         * function.c (debug_find_var_in_block_tree): Likewise.
7866         * print-rtl.c (debug_rtx): Likewise.
7867         (debug_rtx_count): Likewise.
7868         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
7869         * stor-layout.c (debug_rli): Likewise.
7870         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
7871         * tree-data-ref.c (debug_data_references,
7872         debug_data_dependence_relations, debug_data_reference,
7873         debug_data_dependence_relation, debug_rdg_vertex,
7874         debug_rdg_component, debug_rdg): Likewise.
7875         * tree-affine.c (debug_aff): Likewise.
7876         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
7877         Likewise.
7878         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
7879         * emit-rtl.c (verify_rtl_sharing): Likewise.
7880         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
7881         debug_value_expressions): Likewise.
7882         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
7883         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
7884         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
7885         * cfglayout.c (verify_insn_chain): Likewise.
7886         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
7887         debug_clast_stmt, debug_generated_program): Likewise.
7888         * ggc-page.c (debug_print_page_list): Likewise.
7889         * tree-ssa-ter.c (debug_ter): Likewise.
7890         * graphite-dependences.c (debug_pddr): Likewise.
7891         * sched-deps.c (debug_ds): Likewise.
7892         * tree-ssa.c (verify_ssa): Likewise.
7893         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
7894         debug_scattering_functions, debug_iteration_domains, debug_pdr,
7895         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
7896         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
7897         * tree-inline.c (debug_find_tree): Likewise.
7898         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
7899         debug_ppl_powerset_matrix): Likewise.
7900         * var-tracking.c (debug_dv): Likewise.
7901         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
7902         * cfgloop.c (verify_loop_structure): Likewise.
7903         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
7904         * c-common.c (verify_sequence_points): Likewise.
7905         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
7906         debug_candidates, debug_rgn_dependencies): Likewise.
7907         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
7908         * debug_constraint_graph, debug_solution_for_var,
7909         debug_sa_points_to_info): Likewise.
7910         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
7911         Likewie.
7912         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
7913         debug_loops, debug_loop, debug_loop_num): Likewise.
7914         * passes.c (debug_pass): Likewise.
7915         (dump_properties): Likewise; add cfglayout property.
7916         (debug_properties): Likewise.
7917         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
7918         * varpool.c (debug_varpool): Likewise.
7919         * regcprop.c (debug_value_data): Likewise.
7920         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
7921         debug_immediate_uses_for): Likewise.
7923 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
7925         PR bootstrap/44315
7926         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
7927         Filter out insn-flags.h.
7929 2010-05-29  Jan Hubicka  <jh@suse.cz>
7931         * cgraph.h (struct varpool_node_set_def,
7932         struct cgraph_node_set_def): Remove unused AUX pointer.
7933         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
7934         VEC_empty macro.
7936 2010-05-29  Jan Hubicka  <jh@suse.cz>
7938         PR middle-end/44324
7939         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
7941 2010-05-29  Richard Guenther  <rguenther@suse.de>
7943         * lto-streamer.c (cached_bp): New global variable.
7944         (bitpack_create): Return the cached bitpack, if available.
7945         (bitpack_delete): Clear and cache the bitpack, if appropriate.
7946         (bp_pack_value): Remove redundant asserts.
7948 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
7950         PR middle-end/44306
7951         * tree-if-conv.c (is_true_predicate): New.
7952         (is_predicated): Use is_true_predicate.
7953         (add_to_predicate_list): Same.  Do not use unshare_expr.
7954         (add_to_dst_predicate_list): Same.
7956 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
7958         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
7959         field on edges.
7960         (predicate_bbs): Same.
7961         (clean_predicate_lists): Same.
7962         (find_phi_replacement_condition): Do not AND the predicate from
7963         edge->aux.
7965 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
7967         PR bootstrap/44315
7968         * Makefile.in (build/gencondmd.o): Add a missing `\'.
7970 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7972         PR target/44261
7973         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
7974         (negdf2): Adjust expander pattern and use negdf2_slow.
7975         (negsf2): Likewise.
7977 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
7979         * basic-block.h (struct control_flow_graph): Move last_label_uid field
7980         up.
7981         * df.h (struct df_base_ref): Move regno field up.
7982         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
7983         * expr.h (struct separate_ops): Move location field up.
7984         * optabs.h (struct optab_d): Move libcall_basename field down.
7985         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
7986         * config/i386/i386.h (struct machine_function): Convert call_abi field
7987         into a bitfield.  Move cfa field to the end of the structure.
7989 2010-05-29  Jan Hubicka  <jh@suse.cz>
7991         * varpool.c (varpool_get_node): Fix lookup.
7993 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7995         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
7996         RTL specific prototypes with #ifdef RTX_CODE.
7997         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
7998         * config/spu/t-spu-elf: Fix dependencies.
8000         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
8002 2010-05-29  Mike Stump  <mikestump@comcast.net>
8004         PR bootstrap/44315
8005         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
8006         TM_H when building to avoid dependency loops.
8008 2010-05-29  Jan Hubicka  <jh@suse.cz>
8010         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
8011         refs and body; not the whole node for masters of materialized clones.
8013 2010-05-29  Mike Stump  <mikestump@comcast.net>
8015         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
8017 2010-05-29  Jan Hubicka  <jh@suse.cz>
8019         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
8020         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
8021         use of clone_function_name.
8022         * cgraph.h (cgraph_create_virtual_clone,
8023         cgraph_function_versioning): update prototypes.
8024         (clone_function_name): Declare.
8025         * ipa-cp.c (ipcp_insert_stage): Update call of
8026         cgraph_create_virtual_clone.
8027         * omp-low.c (create_omp_child_function_name): Use
8028         cgraph_create_virtual_clone.
8029         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
8030         (cgraph_function_versioning): Take SUFFIX argument; produce new name
8031         and make decl local.
8033 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
8035         * vec.h: Include statistics.h
8036         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
8037         with VEC_H.
8039 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
8041         * c-lex.c: Do not include c-tree.h.
8042         * c-pretty-print.c: Likewise.
8043         * c-opts.c: Likewise.
8044         * c-gimplify.c: Likewise.
8045         * c-common.c: Likewise.
8046         * c-dump.c: Likewise.  Include c-common.h.
8048 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
8050         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
8051         before including diagnostic-core.h.
8052         (c_cpp_error): New prototype moved from c-tree.h.
8053         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
8054         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
8055         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
8056         (c_cpp_error): Prototype moved to c-common.h.
8057         * Makefile.in: Update dependency for C_COMMON_H.
8059 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
8061         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
8062         * c-common.c (c_register_addr_space): Remove here.
8063         * c-decl.c (c_register_addr_space): Re-add here.
8065 2010-05-28  Mike Stump  <mikestump@comcast.net>
8067         * config/darwin-c.c: Remove c-tree.h include.
8069 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
8071         * gcc.c: Include diagnostic.h.
8072         (error_count): Remove.  All users changed to use errorcount.
8073         (programname): Remove.  All users changed to use progname.
8074         (fancy_abort, internal_error, fatal_error, error, warning, inform,
8075         fnotice): Remove.
8076         (execute): Don't include "Internal error" and bug reporting
8077         information in argument of internal_error call.
8078         (process_command): Don't increment error_count after calling
8079         perror_with_name.
8080         (input_filename): Rename to gcc_input_filename.  All users
8081         changed.
8082         (main): Call diagnostic_initialize.  Register delete_temp_files
8083         with atexit.  Use seen_error to test for errors.
8084         * gcc.h: Include diagnostic-core.h.
8085         (fatal_error, error, warning): Remove.
8086         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
8087         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
8088         (gcc.o): Update dependencies.
8090 2010-05-28  Jeff Law  <law@redhat.com>
8092         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
8093         functions.
8094         * ira.h (ira_bad_reload_regno): Declare
8095         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
8097         * ira-color.c (update_curr_costs): Free updated hard reg costs.
8098         (ira_reassign_conflict_allocnos): Remove bogus asserts.
8099         (allocno_reload_assign): Likewise.
8101 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
8103         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
8104         build1_stat.
8106 2010-05-28  Richard Guenther  <rguenther@suse.de>
8108         PR lto/44312
8109         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
8110         Stream fixed-point constants mode.
8111         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
8112         and TYPE_PRECISION.
8113         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
8114         Stream fixed-point constants mode.
8115         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
8116         and TYPE_PRECISION.
8118 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
8120         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
8121         only place it was called from.
8122         (number_of_latch_executions): Do not return chrec_dont_know when the
8123         may_be_zero is a runtime condition: instead, return a COND_EXPR
8124         including the may_be_zero condition.
8125         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
8126         of nb_iterations.
8127         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
8128         COND_EXPRs.
8130 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
8132         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
8133         generate COND_EXPRs for degenerate_phi_result.
8135 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
8137         PR middle-end/44293
8138         * tree-if-conv.c (if_convertible_loop_p): Check the
8139         if-convertibility of phi nodes in non predicated BBs.
8141 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
8143         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
8145 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
8147         PR driver/15303
8148         * gcc.c (inform, warning, inform): New functions.
8149         (fatal_ice): Rename to internal_error; change cmsgid parameter to
8150         gmsgid.  All callers changed.
8151         (notice): Rename to fnotice; add parameter fp.  All callers changed.
8152         (fatal_error): Rename to fatal_signal.  All users changed.
8153         (fatal): Rename to fatal_error; change cmsgid parameter to
8154         gmsgid.  All callers changed.
8155         (process_command): Use warning instead of error for warnings.
8156         (end_going_arg): Don't use _() around argument of error.
8157         (do_spec_1): Use inform for message from %n specs.  Use warning
8158         instead of error for warnings.
8159         (main): Use inform for comparison messages.  Use warning for
8160         message about unused linker input.
8161         (error): Increment error_count.  Print "error: ".
8162         * gcc.h (fatal): Change to fatal_error.
8163         (warning): Declare.
8164         * config/darwin-driver.c (darwin_default_min_version): Use warning
8165         instead of fprintf for warnings.
8166         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
8168 2010-05-28  Julian Brown  <julian@codesourcery.com>
8170         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
8171         (*thumb2_addsi3_compare0_scratch): New.
8172         * config/arm/constraints.md (Pv): New.
8173         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
8174         for ARM mode only.
8175         (*addsi3_compare0_scratch): Likewise.
8177 2010-05-28  Jan Hubicka  <jh@suse.cz>
8179         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
8180         check.
8181         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
8182         only on local statics.
8184 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
8186         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
8188 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
8190         PR bootstrap/44314
8191         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
8192         (OPTION_GLIBC): Define.
8194 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
8196         PR debug/41048
8197         * dwarf2out.c (double_int_type_size_in_bits): New function.
8198         (round_up_to_align): Change first argument and return value to
8199         double_int.
8200         (field_byte_offset): Work internally on double_ints.
8202         PR target/43636
8203         * builtins.c (expand_movstr): Use a temporary pseudo instead
8204         of target even when target is not NULL and not const0_rtx, but
8205         fails movstr predicate.
8206         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
8208 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
8210         * final.c (rest_of_clean_state): Use %m in errors instead of
8211         strerror (errno).
8212         * gengtype.c (read_input_list, close_output_files): Use xstrerror
8213         instead of strerror.
8214         * toplev.c (process_options): Use %m in errors instead of strerror
8215         (errno).
8216         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
8217         (errno).
8219 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
8221         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
8222         (ix86_canonical_va_list_type): Make static.  Add declaration.
8223         (ix86_enum_va_list): Make static.  Reindent.
8224         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
8225         (ix86_canonical_va_list_type): Ditto.
8226         (ix86_enum_va_list): Ditto.
8228 2010-05-28  Richard Guenther  <rguenther@suse.de>
8230         * lto-wrapper.c (run_gcc): With -save-temps generate a
8231         user-visible ltrans filename.  Fixup ltrans unit numbering.
8233 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
8235         * c-common.c (c_common_nodes_and_builtins): Replace use
8236         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
8237         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
8238         to ix86_enum_va_list.
8239         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
8240         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
8241         (TARGET_ENUM_VA_LIST_P): Add hook description.
8242         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
8243         * target.h (gcc_target): Add enum_va_list hook.
8245         PR bootstrap/44299
8246         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
8247         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
8248         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
8250 2010-05-28  Alan Modra  <amodra@gmail.com>
8252         PR target/44266
8253         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8254         emit_library_call machinery to set up __tls_get_addr calls.
8256 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8258         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
8260 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
8262         Revert fix for PR c++/44188
8263         * c-common.c (is_typedef_decl): Revert the moving of  this
8264         definition ...
8265         * tree.c (is_typedef_decl): ... here.
8266         (typdef_variant_p): Revert the moving of this  definition
8267         here from gcc/cp/tree.c.
8268         * c-common.h (is_typedef_decl): Revert the moving of this
8269         declaration ...
8270         * tree.h (is_typedef_decl): ... here.
8271         (typedef_variant_p): Revert the moving of this  declaration here
8272         from gcc/cp/cp-tree.h
8273         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
8274         (gen_tagged_type_die): Revert the splitting out of ...
8275         (gen_type_die_with_usage): ... this function. Revert the anonymous
8276         tagged type handling.
8277         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
8278         typedefs naming anonymous tagged types.
8280 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
8282         * config/rs6000/rs6000-modes.def (PSImode): Delete.
8284 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
8286         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
8287         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
8288         throughout.
8289         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
8290         "xer" to "ca".
8291         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
8292         XER_REGS to CA_REGS throughout.
8293         * config/rs6000/rs6000.h: Same.
8294         (ADDITIONAL_REGISTER_NAMES): Add "xer".
8295         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
8296         that mode_iterator "P" is the size for arithmetic carries as well.
8297         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
8299 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
8301         PR bootstrap/44255
8302         * combine.c (struct rtx_subst_pair): Define unconditionally.
8303         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
8304         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
8305         Call make_compound_operation on pair->to.
8306         (propagate_for_debug): Don't call make_compound_operation here.
8307         Always use simplify_replace_fn_rtx.
8309 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
8311         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
8312         * config/xtensa/xtensa.c (override_options): Check
8313           TARGET_FORCE_NO_PIC and set flag_pic.
8314         * config/xtensa/xtensa.opt: Document -mforce-no-pic
8316 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
8318         PR bootstrap/44299
8319         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
8320         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
8322 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
8324         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
8325         toplev.h.
8326         * diagnostic.c: Don't include toplev.h.
8327         (progname): Define.  Moved from toplev.c.
8328         (seen_error): New function.
8329         * diagnostic.h: Include diagnostic-core.h.
8330         (diagnostic_t, emit_diagnostic): Don't declare here.
8331         * toplev.c (progname): Move to toplev.c.
8332         (emit_debug_global_declarations, compile_file, finalize,
8333         do_compile, toplev_main): Use seen_error.
8334         * toplev.h: Include diagnostic-core.h.
8335         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
8336         internal_error, warning, warning_at, error, error_n, error_at,
8337         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
8338         verbatim, fnotice, progname): Move to diagnostic-core.h.
8339         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
8340         (expand_builtin_expect): Use seen_error.
8341         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
8342         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
8343         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
8344         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
8345         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
8346         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
8347         errorcount for errors.
8348         * c-opts.c (c_common_finish): Use seen_error.
8349         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8350         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
8351         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
8352         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
8353         (get_coverage_counts): Use seen_error.
8354         * dwarf2out.c (dwarf2out_finish): Use seen_error.
8355         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
8356         gimplify_body): Use seen_error.
8357         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
8358         * ipa-pure-const.c (gate_pure_const): Use seen_error.
8359         * ipa-reference.c (gate_reference): Use seen_error.
8360         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
8361         * lambda-code.c: Include diagnostic-core.h instead of
8362         diagnostic.h.
8363         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8364         * lto-compress.c: Include diagnostic-core.h instead of
8365         diagnostic.h.
8366         * lto-section-in.c: Include diagnostic-core.h instead of
8367         diagnostic.h.
8368         * lto-streamer-out.c: Include diagnostic-core.h instead of
8369         diagnostic.h.
8370         * lto-streamer.c: Include diagnostic-core.h instead of
8371         diagnostic.h.
8372         (gate_lto_out): Use seen_error.
8373         * matrix-reorg.c: Include diagnostic-core.h instead of
8374         diagnostic.h.
8375         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
8376         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
8377         (gate_expand_omp, lower_omp_1): Use seen_error.
8378         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
8379         (rest_of_decl_compilation, rest_of_type_compilation,
8380         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
8381         * tree-cfg.c (label_to_block_fn): Use seen_error.
8382         * tree-inline.c (optimize_inline_calls): Use seen_error.
8383         * tree-mudflap.c (mudflap_finish_file): Use
8384         seen_error.
8385         * tree-optimize.c (gate_all_optimizations,
8386         gate_all_early_local_passes, gate_all_early_optimizations): Use
8387         seen_error.
8388         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
8389         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
8390         (varpool_remove_unreferenced_decls,
8391         varpool_assemble_pending_decls): Use seen_error.
8392         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
8393         (TOPLEV_H, DIAGNOSTIC_H): Update.
8394         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
8395         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
8396         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
8397         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
8398         coverage.o, lambda-code.o): Update dependencies.
8400 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
8402         PR c++/44188
8403         * c-common.c (is_typedef_decl): Move this definition ...
8404         * tree.c (is_typedef_decl): ... here.
8405         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
8406         * c-common.h (is_typedef_decl): Move this declaration ...
8407         * tree.h (is_typedef_decl): ... here.
8408         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
8409         * dwarf2out.c (is_naming_typedef_decl): New function.
8410         (gen_tagged_type_die): Split out of ...
8411         (gen_type_die_with_usage): ... this function. When an anonymous
8412         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
8413         is emitted for the typedef.
8414         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
8415         anonymous tagged types.
8417 2010-05-27  Jason Merrill  <jason@redhat.com>
8419         * print-tree.c (debug_vec_tree): New fn.
8420         (print_vec_tree): New fn.
8421         * tree.h: Declare them.
8422         * gdbinit.in (pvt): New command.
8424         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
8426         * gdbinit.in (pdd): New command.
8428 2010-05-27  Jan Hubicka  <jh@suse.cz>
8430         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
8431         (update_caller_keys): Return early if there are no callers;
8432         only update fibheap when decresing the key.
8433         (update_callee_keys): Avoid recursion.
8434         (decide_inlining_of_small_functions): When badness does not match;
8435         re-insert into fibheap.
8437 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
8439         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
8440         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
8441         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
8442         (ALL_HOST_OBJS): Now a union of the above two.
8443         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
8444         all files in ALL_HOST_FRONTEND_OBJS.
8445         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
8447         * c-common.c: Pretend to be a backend file by undefining
8448         IN_GCC_FRONTEND (still need rtl.h here).
8450 2010-05-27  Jan Hubicka  <jh@suse.cz>
8452         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
8453         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
8455 2010-05-27  Jan Hubicka  <jh@suse.cz>
8457         * sched-ebb.c: Rename struct deps to struct deps_desc.
8458         * ddg.c: Likewise.
8459         * sel-sched-ir.c: Likewise.
8460         * sched-deps.c: Likewise.
8461         * sched-int.h: Likewise.
8462         * sched-rgn.c: Likewise.
8464 2010-05-27  Jon Beniston  <jon@beniston.com>
8466         PR 43726
8467         * config/lm32/lm32.h: Remove definition of
8468         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
8470 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
8472         PR lto/44230
8473         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
8475 2010-05-27  Richard Guenther  <rguenther@suse.de>
8477         PR tree-optimization/44284
8478         * tree-vect-stmts.c (vectorizable_assignment): Handle
8479         sign-changing conversions as simple copy.
8481 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8483         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
8484         Bionic C library.
8485         (__gthread_active_p): Check for pthread_create if compiling against
8486         Bionic C library.
8488 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8490         Support compilation for Android platform.  Reimplement -mandroid.
8492         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
8493         (*android*): Set ANDROID_DEFAULT.
8494         (arm*-*-linux*): Include linux-android.h.
8495         (arm*-*-eabi*): Don't include previous -mandroid implementation.
8496         * config/arm/eabi.h: Remove, move Android-specific parts ...
8497         * config/linux-android.h: ... here.  New file.
8498         * config/arm/eabi.opt: Rename to ...
8499         * config/linux-android.opt: ... this.
8500         (mandroid): Allow -mno-android option.  Initialize based on
8501         ANDROID_DEFAULT.
8502         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
8503         Move logic to corresponding LINUX_TARGET_* macros.
8504         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
8505         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
8506         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
8507         Android definitions.
8508         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
8509         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
8510         Document.
8512 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8514         Add support for Bionic C library
8516         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
8517         macro.
8518         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
8519         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
8521         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
8522         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
8523         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
8524         to support multiple C libraries.  Handle Bionic.
8525         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
8526         (BIONIC_DYNAMIC_LINKER64): Define.
8527         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
8528         Update.
8529         (TARGET_HAS_SINCOS): Enable for Bionic.
8531         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
8532         the last option specified on command line take effect.
8533         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
8534         (mbionic): New.
8535         (mglibc, muclibc): Update.
8537         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
8538         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
8539         DEFAULT_LIBC.
8541         * doc/invoke.texi (-mglibc, -muclibc): Update.
8542         (-mbionic): Document.
8544 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8546         * c-common.h (c_register_addr_space): Add prototype.
8547         (ADDR_SPACE_KEYWORD): Remove.
8548         * c-common.c (c_register_addr_space): New function.
8549         (c_addr_space_name): Reimplement.
8550         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
8552         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
8553         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
8555         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
8556         Remove TARGET_ADDR_SPACE_KEYWORDS.
8558 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
8560         * input.c: New file.
8561         * input.h (main_input_filename): Move declaration to toplev.h.
8562         * toplev.c (input_location, line_table): Move to input.c
8563         * toplev.h (main_input_filename): Move declaration from input.h.
8564         * tree.c (expand_location): Move to input.c.
8565         * Makefile.in (OBJS-common): Add input.o.
8566         (input.o): Add dependencies.
8568 2010-05-27  Richard Guenther  <rguenther@suse.de>
8570         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
8571         for non-existant files.
8572         (fork_execute): Mark args_name file as deleted.
8574 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
8576         PR bootstrp/44287
8577         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
8578         (narrow_signed_type): Likewise.
8580 2010-05-26  Jan Hubicka  <jh@suse.cz>
8582         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
8583         edge only when checking is enabled; check using former_clone_of;
8584         check inline clones too.
8585         (cgraph_materialize_clone): Record former_clone_of pointer.
8586         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
8587         combining redirections; dump args_to_skip bitmap
8588         (cgraph_materialize_all_clones): Do no redirection here.
8589         * ipa-inline.c (inline_transform): Do redirection here.
8590         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
8591         cheking only).
8593 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8595         * config/avr/avr-c.c: Do not include regs.h.
8596         Include cpplib.h for cpp_define and tree.h for c-common.h.
8597         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
8598         * config/avr/t-avr: Fix dependencies for avr-c.o.
8600 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8602         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
8603         string instead of SYMBOL_REF rtx.
8604         * rtl.h (set_stack_check_libfunc): Move prototype from here...
8605         * libfuncs.h: ...to here.  Adjust for explow.c change.
8607 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
8609         * pretty-print.c: Don't include ggc.h.
8610         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
8611         (identifier_to_locale): Use them for allocation.
8612         * pretty-print.h (identifier_to_locale_alloc,
8613         identifier_to_locale_free): Declare.
8614         * toplev.c (alloc_for_identifier_to_locale): New.
8615         (general_init): Set identifier_to_locale_alloc and
8616         identifier_to_locale_free.
8617         * Makefile.in (pretty-print.o): Update dependencies.
8619 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
8621         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
8622         pointer types if they have different alignment or mode.
8624 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
8626         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8627         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8628         * config/sparc/sparc-protos.h (function_value): Remove declaration.
8629         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
8630         sparc_function_value_regno_p): New functions.
8631         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8632         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8633         (function_value): Rename to...
8634         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
8635         argument to 'outgoing'.
8636         (function_arg_record_value, function_arg_union_value,
8637         function_arg_vector_value): Update comment.
8639 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
8641         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
8642         (fde_needed_for_eh_p): New predicate.
8643         (output_call_frame_info): Use it throughout to decide whether FDEs
8644         are needed for EH purpose.
8645         (dwarf2out_begin_prologue): Reorder assignments.
8647 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8649         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
8650         special case loop->header.
8651         (is_predicated): New.
8652         (if_convertible_loop_p): Call it.
8654 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8656         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
8657         iterator in parameter.  Do not generate code during the analysis.
8658         (tree_if_convert_cond_stmt): Removed.
8659         (tree_if_convert_stmt): Removed.
8660         (predicate_bbs): New.
8661         (if_convertible_loop_p): Call predicate_bbs.
8662         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
8663         now contains all the analysis part.
8665 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8667         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
8668         statements in the analysis part.
8669         (tree_if_convert_stmt): Update comment.
8670         (remove_conditions_and_labels): New.
8671         (combine_blocks): Call remove_conditions_and_labels.
8672         (tree_if_conversion): Update comment.
8674 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8676         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
8677         than 2 predecessors or more than 2 successors.
8679 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8681         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
8682         of loops in which the data dependence analysis fails.
8684 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8686         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
8687         CDI_POST_DOMINATORS.
8688         (tree_if_conversion): Same.
8690 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8692         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
8694 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8696         * tree-if-conv.c: Update copyright years.  Fix comments.
8697         Fix indentation.
8699 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
8701         * builtin-types.def (BT_INT128): New primitive type.
8702         (BT_UINT128): Likewise.
8703         * c-common.c (c_common_r): Add __int128 keyword.
8704         (c_common_type_for_size): Handle __int128.
8705         (c_common_type_for_mode): Likewise.
8706         (c_common_signed_or_unsigned_type): Likewise.
8707         (c_common_nodes_and_builtins): Add builtin type
8708         if target supports 128-bit integer scalar.
8709         * c-common.h (enum rid): Add RID_INT128.
8710         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
8711         if target supports 128-bit integer scalar.
8712         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
8713         (finish_declspecs): Likewise.
8714         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
8715         (c_token_starts_declspecs): Likewise.
8716         (c_parser_declspecs): Likewise.
8717         (c_parser_attributes): Likewise.
8718         (c_parser_objc_selector): Likewise.
8719         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
8720         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
8721         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
8722         * tree.c (make_or_reuse_type): Likewise.
8723         (make_unsigned_type): Likewise.
8724         (build_common_tree_nodes_2): Likewise.
8725         * tree.h (enum integer_type_kind): Add itk_int128 and
8726         itk_unsigned_int128.
8727         (int128_integer_type_node): New define.
8728         (int128_unsigned_type_node): New define.
8729         * doc/extend.texi: Add documentation about __int128 type.
8731 2010-05-26  Richard Guenther  <rguenther@suse.de>
8733         * tree-ssa-sccvn.c (copy_nary): Adjust.
8734         (copy_phis): Rename to ...
8735         (copy_phi): ... this.  Adjust.
8736         (copy_references): Rename to ...
8737         (copy_reference): ... this.  Adjust.
8738         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
8739         result into the valid table.
8741 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8743         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
8744         insn-config.h, insn-codes.h, recog.h, and optabs.h.
8746 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8748         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
8750 2010-05-26  Richard Guenther  <rguenther@suse.de>
8752         * opts.c (common_handle_option): Handle OPT_Ofast.
8754 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
8756         * diagnostic.c: Don't include opts.h.
8757         (permissive_error_option): Define.
8758         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
8759         for classify_diagnostic.  Don't use memset for
8760         classify_diagnostic.  Initialize new and recently added fields.
8761         (diagnostic_classify_diagnostic): Use context->n_opts instead of
8762         N_OPTS.
8763         (diagnostic_report_diagnostic): Pass context parameter to
8764         diagnostic_report_warnings_p.  Use option_enabled and option_name
8765         hooks from context.
8766         (emit_diagnostic): Use permissive_error_option.
8767         (permerror): Likewise.
8768         * diagnostic.h: Don't include options.h.
8769         (struct diagnostic_context): Add n_opts, opt_permissive,
8770         inhibit_warnings, warn_system_headers, option_enabled and
8771         option_name fields.  Change classify_diagnostic to a pointer.
8772         * opts-diagnostic.h: New file.
8773         * opts.c: Include opts-diagnostic.h.
8774         (common_handle_option): Set global_dc fields for -Wfatal-errors,
8775         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
8776         (option_name): New function.
8777         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
8778         (c_common_handle_option): Set global_dc->permissive for
8779         -fpermissive.
8780         * c-common.c (c_cpp_error): Save and restore
8781         global_dc->warn_system_headers, not variable warn_system_headers.
8782         * toplev.c: Include opts-diagnostic.h.
8783         (general_init): Update call to diagnostic_initialize.  Set
8784         global_dc->show_column, global_dc->option_enabled and
8785         global_dc->option_name.
8786         (process_options): Don't set global_dc fields here.
8787         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
8788         (diagnostic.o, opts.o, toplev.o): Update dependencies.
8790 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
8792         * config/picochip/picochip.md (movsi): Split a movsi from a
8793         const after reload.
8795 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8797         * ggc-zone.c: Update copyright year.
8798         (poison_region): Mark memory for Valgrind as undefined before
8799         memset () call and inaccessible afterwards.
8800         (ggc_pch_total_size): Change type of i to int.
8802 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8804         * ggc-common.c (ggc_free_overhead): Allow empty slot.
8806 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8808         * ggc-common.c: Update copyright year.
8809         (ggc_rlimit_bound): Remove prototype.  Compile only if
8810         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
8811         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
8812         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
8813         (ggc_min_heapsize_heuristic): Likewise.
8815 2010-05-26  Richard Guenther  <rguenther@suse.de>
8817         PR rtl-optimization/44164
8818         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
8819         no-common access-path disambiguation.
8820         (indirect_ref_may_alias_decl_p): Adjust.
8821         (indirect_refs_may_alias_p): Likewise.
8822         (refs_may_alias_p_1): Likewise.
8824 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8826         * c-typeck.c: Do not include expr.h.
8828 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8830         * rtl.h (decl_default_tls_model): Move prototype from here...
8831         * output.h: ...to here.
8832         * c-decl.c: Do not include rtl.h.
8833         * c-pragma.c: Likewise.
8834         * c-parser.c: Likewise.
8835         * c-gimplify.c: Likewise.  And also not hard-reg-set.
8836         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
8837         FIXME note for it.  Add a FIXME note for expr.h.
8838         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
8839         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
8840         defined.
8842 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
8844         PR target/44199
8845         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
8846         or total_size is larger than red zone size for non-V4 ABI, emit a
8847         stack_tie resp. frame_tie insn before stack pointer restore.
8848         * config/rs6000/rs6000.md (frame_tie): New insn.
8850 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8852         * function.h (struct function): Add can_throw_non_call_exceptions bit.
8853         * lto-streamer-in.c (input_function): Stream it in.
8854         * lto-streamer-out.c (output_function): Stream it out.
8855         * function.c (allocate_struct_function): Set it.
8856         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
8857         for flag_non_call_exceptions.
8858         * cfgbuild.c (control_flow_insn_p): Likewise.
8859         (make_edges): Likewise.
8860         * cfgexpand.c (expand_stack_alignment): Likewise.
8861         * combine.c (distribute_notes): Likewise.
8862         * cse.c (cse_extended_basic_block): Likewise.
8863         * except.c (insn_could_throw_p): Likewise.
8864         * gcse.c (simple_mem): Likewise.
8865         * ipa-pure-const.c (check_call): Likewise.
8866         (check_stmt ): Likewise.
8867         * lower-subreg.c (lower-subreg.c): Likewise.
8868         * optabs.c (emit_libcall_block): Likewise.
8869         (prepare_cmp_insn): Likewise.
8870         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
8871         * postreload.c (rest_of_handle_postreload): Likewise.
8872         * reload1.c (reload_as_needed): Likewise.
8873         (emit_input_reload_insns): Likewise.
8874         (emit_output_reload_insns): Likewise.
8875         (fixup_abnormal_edges): Likewise.
8876         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
8877         * store-motion.c (find_moveable_store): Likewise.
8878         * tree-eh.c (stmt_could_throw_p): Likewise.
8879         (tree_could_throw_p): Likewise.
8880         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8881         * config/arm/arm.c (arm_expand_prologue): Likewise.
8882         (thumb1_expand_prologue): Likewise.
8883         * config/rx/rx.md (cbranchsf4): Likewise.
8884         (cmpsf): Likewise.
8885         * config/s390/s390.c (s390_emit_prologue): Likewise.
8886         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
8887         (inline_forbidden_into_p): New predicate.
8888         (expand_call_inline): Use it to forbid inlining.
8889         (tree_can_inline_p): Likewise.
8891 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
8893         * config/i386/i386-c.c: Do not include rtl.h.
8894         * config/i386/t-i386: Update dependencies.
8896 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
8898         * attribs.c: Do not include rtl.h.
8899         * Makefile.in: Update dependencies.
8901 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
8903         * double-int.h (double_int_and): New.
8904         * combine.c (try_combine): Clean up, use double_int_* and
8905         immed_double_int_const functions.
8907 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8909         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
8910         stderr to /dev/null instead of grep -q.
8911         * configure: Regenerate.
8913 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
8915         * Makefile.in (EXCEPT_H): Fix typo.
8917 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
8919         * ira-build.c (update_conflict_hard_reg_costs): New.
8920         (ira_build): Call update_conflict_hard_reg_costs.
8922 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
8924         PR debug/41371
8925         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
8926         ENABLE_CHECKING.
8927         (intersect_loc_chains): Walk the s2var's loc_chain together
8928         with s1node chain as long as the locations are equal, don't
8929         call find_loc_in_1pdv in that case.
8931         PR debug/42801
8932         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
8933         (copy_bind_expr): ... instead of here.
8934         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
8935         if the block hasn't been remapped.
8936         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
8937         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
8939 2010-05-25  Richard Guenther  <rguenther@suse.de>
8941         PR middle-end/44069
8942         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
8943         out-of-bounds array accesses.
8945 2010-05-25  Richard Guenther  <rguenther@suse.de>
8947         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
8948         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
8949         (run_gcc): Re-organize to make cleanup easier.
8951 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8953         * config/s390/s390.c (optimization_options): Fix and move the
8954         flag_prefetch_loop_arrays override ...
8955         (override_options): ... here.
8957 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
8959         * diagnostic.c: Don't include plugin.h.
8960         (diagnostic_report_diagnostic): Don't handle plugins specially
8961         here.  Pass context to internal_error callback.
8962         * diagnostic.h (struct diagnostic_context): Add context parameter
8963         to internal_error callback.
8964         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
8965         * plugin.h (struct diagnostic_context): Declare.
8966         (warn_if_plugins, plugins_internal_error_function): Declare.
8967         * toplev.c (general_init): Set global_dc->internal_error.
8968         * Makefile.in (diagnostic.o): Update dependencies.
8970 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
8972         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
8973         * config/rs6000/t-darwin64: New.
8974         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
8975         build crt2.
8977 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
8979         PR 44203
8980         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
8981         match the original (and intended) behaviour before r159557.  This
8982         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
8983         in two ways.
8985 2010-05-25  Richard Guenther  <rguenther@suse.de>
8987         * doc/invoke.texi: Document -Ofast.
8988         * target.h (struct gcc_target): Add handle_ofast.
8989         * target-def.h (TARGET_HANDLE_OFAST): Add.
8990         (TARGET_INITIALIZER): Adjust.
8991         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
8992         * common.opt (Ofast): Add.
8994 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
8996         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
8997         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
8999 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
9001         PR target/43610
9002         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
9003         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
9004         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
9005         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
9007 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
9009         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
9010         DW_OP_minus with negated offset instead of DW_OP_plus.
9011         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
9013 2010-05-25  Wei Guozhi  <carrot@google.com>
9015         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
9016         tst instruction and a new alternative.
9017         * config/arm/constraints.md (Pu): New constraint.
9019 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
9021         * function.c (assign_stack_local_1): Initialize variable
9022         to avoid warning when bootstrapping at -O3.
9024 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
9026         * configure.ac (all_lang_makefiles): Remove everything related to it.
9027         * configure: Regenerate.
9028         * Makefile.in: Fix reference to ada Make-lang.in.
9029         Remove support for LANG_MAKEFILES.
9031 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
9032             Sandra Loosemore  <sandra@codesourcery.com>
9034         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
9035         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
9036         description.  Add arm_neon_fp16_ok.
9037         (Add Options): Add arm_neon and arm_neon_fp16.
9039 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
9041         * diagnostic.c: Don't include flags.h.
9042         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
9043         context parameters.  Check flags in the context passed as a parameter.
9044         (diagnostic_build_prefix): Add context parameter.  Check
9045         show_column flag in context.
9046         (diagnostic_action_after_output): Check fatal_errors flag in context.
9047         (diagnostic_report_current_module): Check show_column flag in context.
9048         (default_diagnostic_starter): Update call to
9049         diagnostic_build_prefix.
9050         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
9051         (emit_diagnostic): Pass context to permissive_error_kind.
9052         (permerror): Pass context to permissive_error_kind.
9053         * diagnostic.h (struct diagnostic_context): Add show_column,
9054         pedantic_errors, permissive and fatal_errors fields.
9055         (diagnostic_build_prefix): Update prototype.
9056         * langhooks.c
9057         * toplev.c (process_options): Set flags in global_dc from
9058         flag_show_column, flag_pedantic_errors, flag_permissive,
9059         flag_fatal_errors.
9060         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
9061         to diagnostic_build_prefix.
9062         * Makefile.in (diagnostic.o): Update dependencies.
9064 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
9066         * config/i386/ia32intrin.h (__crc32q): Define only if
9067         __SSE4_2__ is defined.
9069 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
9071         PR target/44132
9072         PR middle-end/43602
9073         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
9074         DECL_VISIBILITY_SPECIFIED.
9075         (emutls_decl): Set DECL_PRESERVE_P and copy
9076         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
9077         (emutls_finalize_control_var): New callback.
9078         (emutls_finish): Finalize emutls control variables.
9079         * toplev.c (compile_file): Move the call to emutls_finish ()
9080         before varpool_assemble_pending_decls ().
9082 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
9084         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
9085         added to the preprocessor condition.
9087 2010-05-24  Paul Brook  <paul@codesourcery.com>
9089         * gengtype-lex.l: Add HARD_REG_SET.
9090         * expr.c (expand_expr_real_1): Record writes to hard registers.
9091         * function.c (rtl_data): Add asm_clobbers.
9092         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
9093         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
9094         Use crtl->asm_clobbers.
9096 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9098         * doc/makefile.texi (Makefile): Mention stages 'profile'
9099         and 'feedback' for profiledbootstrap.
9101 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
9103         PR target/44245
9104         * config/i386/i386.c (def_builtin): Properly check
9105         OPTION_MASK_ISA_64BIT.
9107 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
9109         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
9110         typedefs with different but compatible types.  Allow duplicate
9111         typedefs with the same type except for pedantic non-C1X, but give
9112         warning for variably modified types.
9113         * c-typeck.c (tagged_types_tu_compatible_p,
9114         function_types_compatible_p, type_lists_compatible_p,
9115         comptypes_internal): Add parameter different_types_p; set
9116         *different_types_p for different but compatible types.  All
9117         callers changed.
9118         (comptypes_check_different_types): New.
9119         * c-tree.h (comptypes_check_different_types): Declare.
9121 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
9123         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
9124         * jump.c: Include basic-block.h.
9125         * profile.c: Likewise.
9126         * tree-profile.c: Likewise.
9127         * coverage.c: Likewise.
9128         * basic-block.h (optimize_function_for_size_p): Move to function.h.
9129         (optimize_function_for_speed_p): Likewise.
9130         * function.h (optimize_function_for_size_p,
9131         optimize_function_for_speed_p): Moved here from basic-block.h.
9132         * Makefile.in: Update dependencies.
9134 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9136         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
9137         before calling make; allow override through $MAKE.
9138         * doc/invoke.texi (Optimize Options): Document override.
9140 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
9142         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
9143         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9144         (rs6000_mode_dependent_address_ptr): Make static.
9145         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9146         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
9147         Remove.
9149 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
9151         PR target/43869
9152         * config/i386/i386.c: Make sure that the correct regparm is passed.
9154 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
9156         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
9157         * sbitmap.c: ...to here to internalize sbitmap element access.
9158         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
9159         Explain why basic-block.h is included.
9160         * function.h: Include tm.h for CUMULATIVE_ARGS.
9161         * Makefile.in: Update dependencies.
9163 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
9165         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
9166         New core types.
9167         * sbitmap.h (struct sbitmap_def): Do not typedef here.
9168         * sbitmap.c: Include sbitmap.h.
9169         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
9170         hard-reg-set.h.  Split everything related to regsets out from here...
9171         * regset.h: ...to here.  New file.
9172         * df.h: Include regset.h and sbitmap.h.
9173         * tree-flow.h: Likewise.
9174         * cfgloop.h: Likewise.
9175         * except.h: Do not include sbitmap.h.  Include hashtab.h.
9176         * cgraph.h: Include vec.h and function.h.
9177         * reload.h (struct insn_chain): Change types of live_throughout
9178         and dead_or_set from regset_head to bitmap_head.
9179         (compute_use_by_pseudos): Be defined also if regset.h is not included.
9180         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
9181         spilled_regs from regset_head to bitmap_head to avoid dependency
9182         in regset.h.
9183         * sel-sched-ir.h: Include regset.h.
9184         * reload.c: Include df.h before reload.h.
9185         * caller-save.c: Likewise.
9186         * reload1.c: Likewise.
9187         * ira.c: Likewise.
9188         (mark_elimination): Update type of r to bitmap, consistent with
9189         DF_LR_IN.
9190         * dominance.c: Include bitmap.h.
9191         * modulo-sched.c: Include df.h.
9192         * cfganal.c: Include bitmap.h and sbitmap.h.
9193         * cfgbuild.c: Include sbitmap.h.
9194         * lcm.c: Include sbitmap.h.
9195         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
9196         * domwalk.c: Include sbitmap.h, exclude ggc.h.
9197         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
9198         * cselib.c: Include bitmap.h.
9199         * tree-optimize.c: Include regset.h.
9200         * stmt.c: Include bitmap.h.
9201         * Makefile.in: Update dependencies.
9203 2010-05-22  Jan Hubicka  <jh@suse.cz>
9205         * cgraph.h (struct varpool_node): Add same_comdat_group.
9206         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
9207         pointer.
9208         (output_varpool): Update call of lto_output_varpool_node.
9209         (input_varpool): Read same_comdat_group pointer.
9210         (input_varpool_1): Fixup same_comdat_group pointer.
9211         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
9212         group is needed, all are.
9213         * varpool.c (varpool_remove_node): Remove node from same comdat group
9214         linklist too.
9215         (varpool_analyze_pending_decls): Walk same comdat groups.
9217 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
9219         * rtl.h (union rtunion_def): Remove rt_bit member.
9220         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
9221         * print-rtl (print_rtx): Do not print the member.
9222         * gengtype.c (adjust_field_rtx_def): Do not handle it.
9223         * gengenrtl.c (type_from_format): Likewise.
9224         (accessor_from_format): Likewise.
9226 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
9228         * dbgcnt.c: Include toplev.h instead of errors.h.
9229         * ira-emit.c: Don't include errors.h.
9230         * ira.c: Include toplev.h instead of errors.h.
9231         * lto-compress.c: Include toplev.h instead of errors.h.
9232         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
9233         ira.o, dbgcnt.o): Update dependencies.
9235 2010-05-22  Richard Guenther  <rguenther@suse.de>
9237         * gimple.c (gimple_types_compatible_p): Check type qualifications
9238         before merging pointer to complete and pointer to incomplete type.
9239         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
9240         we use our own resolution algorithm.  The gold linker plugin
9241         doesn't do the job we want it to do here.
9243 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
9245         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9246         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9247         (sparc_mode_dependent_address_p): New function.
9249 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
9251         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
9253         * timevar.c: Do not include any core headers.
9254         (timevar_print): De-i18n-ize.
9255         (print_time): Likewise.
9256         * timevar.h (timevar_push, timevar_pop): Make inline functions.
9258 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
9260         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
9261         langhooks-def.h.
9262         (diagnostic_initialize): Initialize x_data not last_function.
9263         (diagnostic_report_current_function): Move to tree-diagnostic.c.
9264         (default_diagnostic_starter): Call
9265         diagnostic_report_current_module not
9266         diagnostic_report_current_function.
9267         (diagnostic_report_diagnostic): Initialize x_data not
9268         abstract_origin.
9269         (verbatim): Likewise.
9270         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
9271         x_data.
9272         (struct diagnostic_context): Change last_function to x_data.
9273         (diagnostic_auxiliary_data): Replace with
9274         diagnostic_context_auxiliary_data and
9275         diagnostic_info_auxiliary_data.
9276         (diagnostic_last_function_changed, diagnostic_set_last_function,
9277         diagnostic_report_current_function): Move to tree-diagnostic.h.
9278         (print_declaration, dump_generic_node, print_generic_stmt,
9279         print_generic_stmt_indented, print_generic_expr,
9280         print_generic_decl, debug_c_tree, dump_omp_clauses,
9281         print_call_name, debug_generic_expr, debug_generic_stmt,
9282         debug_tree_chain, default_tree_printer): Move to
9283         tree-pretty-print.h.
9284         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
9285         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
9286         gimple-pretty-print.h.
9287         * pretty-print.c: Don't include tree.h
9288         (pp_base_format): Don't handle %K here.
9289         (pp_base_tree_identifier): Move to tree-pretty-print.c.
9290         * pretty-print.h (text_info): Change abstract_origin to x_data.
9291         (pp_tree_identifier, pp_unsupported_tree,
9292         pp_base_tree_identifier): Move to tree-pretty-print.h.
9293         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
9294         tree-pretty-print.h: New files.
9295         * tree-pretty-print.c: Include tree-pretty-print.h.
9296         (percent_K_format): New.  Moved from pretty-print.c.
9297         (pp_base_tree_identifier): Move from pretty-print.c.
9298         * c-objc-common.c: Include tree-pretty-print.h.
9299         (c_tree_printer): Handle %K here.
9300         * langhooks.c: Include tree-diagnostic.h.
9301         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
9302         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
9303         (default_tree_printer): Handle %K using percent_K_format.
9304         (general_init): Use default_tree_diagnostic_starter.
9305         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
9306         (free_lang_data): Use default_tree_diagnostic_starter.
9307         * c-pretty-print.c: Include tree-pretty-print.h.
9308         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9309         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9310         * dwarf2out.c: Include tree-pretty-print.h.
9311         * except.c: Include tree-pretty-print.h.
9312         * gimple-pretty-print.c: Include tree-pretty-print.h and
9313         gimple-pretty-print.h.
9314         * gimplify.c: Include tree-pretty-print.h.
9315         * graphite-poly.c: Include tree-pretty-print.h and
9316         gimple-pretty-print.h.
9317         * ipa-cp.c: Include tree-pretty-print.h.
9318         * ipa-inline.c: Include gimple-pretty-print.h.
9319         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9320         * ipa-pure-const.c: Include gimple-pretty-print.h.
9321         * ipa-struct-reorg.c: Include tree-pretty-print.h and
9322         gimple-pretty-print.h.
9323         * ipa-type-escape.c: Include tree-pretty-print.h.
9324         * print-rtl.c: Include tree-pretty-print.h.
9325         * print-tree.c: Include gimple-pretty-print.h.
9326         * sese.c: Include tree-pretty-print.h.
9327         * tree-affine.c: Include tree-pretty-print.h.
9328         * tree-browser.c: Include tree-pretty-print.h.
9329         * tree-call-cdce.c: Include gimple-pretty-print.h.
9330         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9331         * tree-chrec.c: Include tree-pretty-print.h.
9332         * tree-data-ref.c: Include tree-pretty-print.h and
9333         gimple-pretty-print.h.
9334         * tree-dfa.c: Include tree-pretty-print.h.
9335         * tree-if-conv.c: Include tree-pretty-print.h and
9336         gimple-pretty-print.h.
9337         * tree-inline.c: Include tree-pretty-print.h.
9338         * tree-into-ssa.c: Include tree-pretty-print.h and
9339         gimple-pretty-print.h.
9340         * tree-nrv.c: Include tree-pretty-print.h.
9341         * tree-object-size.c: Include tree-pretty-print.h and
9342         gimple-pretty-print.h.
9343         * tree-outof-ssa.c: Include tree-pretty-print.h and
9344         gimple-pretty-print.h.
9345         * tree-parloops.c: Include tree-pretty-print.h and
9346         gimple-pretty-print.h.
9347         * tree-predcom.c: Include tree-pretty-print.h and
9348         gimple-pretty-print.h.
9349         * tree-scalar-evolution.c: Include tree-pretty-print.h and
9350         gimple-pretty-print.h.
9351         * tree-sra.c: Include tree-pretty-print.h.
9352         * tree-ssa-address.c: Include tree-pretty-print.h.
9353         * tree-ssa-alias.c: Include tree-pretty-print.h.
9354         * tree-ssa-ccp.c: Include tree-pretty-print.h and
9355         gimple-pretty-print.h.
9356         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
9357         * tree-ssa-copy.c: Include tree-pretty-print.h and
9358         gimple-pretty-print.h.
9359         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
9360         * tree-ssa-dce.c: Include tree-pretty-print.h and
9361         gimple-pretty-print.h.
9362         * tree-ssa-dom.c: Include tree-pretty-print.h and
9363         gimple-pretty-print.h.
9364         * tree-ssa-dse.c: Include gimple-pretty-print.h.
9365         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
9366         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
9367         * tree-ssa-live.c: Include tree-pretty-print.h and
9368         gimple-pretty-print.h.
9369         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
9370         gimple-pretty-print.h.
9371         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
9372         gimple-pretty-print.h.
9373         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
9374         gimple-pretty-print.h.
9375         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
9376         gimple-pretty-print.h.
9377         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
9378         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
9379         * tree-ssa-operands.c: Include tree-pretty-print.h and
9380         gimple-pretty-print.h.
9381         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
9382         gimple-pretty-print.h.
9383         * tree-ssa-pre.c: Include tree-pretty-print.h and
9384         gimple-pretty-print.h.
9385         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
9386         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
9387         gimple-pretty-print.h.
9388         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
9389         gimple-pretty-print.h.
9390         * tree-ssa-sink.c: Include gimple-pretty-print.h.
9391         * tree-ssa-ter.c: Include tree-pretty-print.h and
9392         gimple-pretty-print.h.
9393         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
9394         * tree-ssa.c: Include tree-pretty-print.h and
9395         gimple-pretty-print.h.
9396         * tree-stdarg.c: Include gimple-pretty-print.h.
9397         * tree-switch-conversion.c: Include gimple-pretty-print.h.
9398         * tree-tailcall.c: Include tree-pretty-print.h and
9399         gimple-pretty-print.h.
9400         * tree-vect-data-refs.c: Include tree-pretty-print.h and
9401         gimple-pretty-print.h.
9402         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
9403         gimple-pretty-print.h.
9404         * tree-vect-loop.c: Include tree-pretty-print.h and
9405         gimple-pretty-print.h.
9406         * tree-vect-patterns.c: Include gimple-pretty-print.h.
9407         * tree-vect-slp.c: Include tree-pretty-print.h and
9408         gimple-pretty-print.h.
9409         * tree-vect-stmts.c: Include tree-pretty-print.h and
9410         gimple-pretty-print.h.
9411         * tree-vectorizer.c: Include tree-pretty-print.h.
9412         * tree-vrp.c: Include tree-pretty-print.h and
9413         gimple-pretty-print.h.
9414         * value-prof.c: Include tree-pretty-print.h and
9415         gimple-pretty-print.h.
9416         * var-tracking.c: Include tree-pretty-print.h.
9417         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
9418         (tree-diagnostic.o): New dependencies.
9419         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
9420         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
9421         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
9422         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
9423         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
9424         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
9425         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
9426         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
9427         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
9428         tree-ssa-address.o, tree-ssa-loop-niter.o,
9429         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
9430         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
9431         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
9432         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
9433         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
9434         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
9435         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
9436         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
9437         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
9438         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
9439         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
9440         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
9441         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
9442         tree-switch-conversion.o, var-tracking.o, value-prof.o,
9443         cfgexpand.o, pretty-print.o): Update dependencies.
9445 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
9447         * tree-ssa-structalias.c: Remove tm_p.h from include.
9449 2010-05-21  Jeff Law  <law@redhat.com>
9451         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
9453 2010-05-21  Jason Merrill  <jason@redhat.com>
9455         * tree-eh.c (cleanup_is_dead_in): New.
9456         (lower_try_finally): Don't generate a dead cleanup region.
9457         (lower_cleanup): Likewise.
9459 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
9461         PR debug/44223
9462         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
9463         unchain each use from the cyclic next_regno_use chain first.
9465 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
9467         * real: Do not include gmp.h, mpfr.h, and mpc.h.
9468         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
9469         (real_value_negate, real_value_abs): New prototypes.
9470         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
9471         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
9472         new include file for interface between MPFR and REAL_VALUE_TYPE.
9473         * real.c: Include realmpfr.h.
9474         (real_arithmetic2): Remove legacy function.
9475         (real_value_negate): New.
9476         (real_value_abs): New.
9477         (mfpr_from_real, real_from_mpfr): Move from here...
9478         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
9479         * builtins.c: Include realmpfr.h.
9480         * fold-const.c: Include realmpfr.h.
9481         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
9482         (fold_negate_const): Likewise.
9483         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
9484         * toplev.c: Include realmpfr.h.
9485         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
9486         and real_value_negate.
9487         * fixed-value.c (check_real_for_fixed_mode): Likewise.
9488         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
9489         (vfp3_const_double_index): Likewise.
9490         (arm_print_operand): Likewise.
9491         * Makefile.in: Update dependencies.
9493 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9495         * config/s390/s390.c (override_options): Increase the default
9496         of max-completely-peel-times.
9498 2010-05-21  Julian Brown  <julian@codesourcery.com>
9499             Mark Mitchell  <mark@codesourcery.com>
9501         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
9502         sibling calls for Thumb-1.
9503         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
9504         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
9505         Thumb-2.
9506         (*call_insn, *call_value_insn): Don't use for Thumb-2.
9507         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
9508         for Thumb-2.
9509         (return): New expander.
9510         (*arm_return): New name for ARM return insn.
9511         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
9513 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
9515         * config.gcc (sparc64-*-rtems*): New target.
9517 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
9519         * tree.c (build_function_decl_skip_args): Fix grammar.
9520         (build_function_type_list_1): Fix typos, adjust formatting.
9522 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
9524         * tree.h: Include real.h and fixed-value.h as basic datatypes.
9525         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
9526         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
9527         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
9528         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
9529         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
9530         tree-pretty-print.c, tree-loop-distribution.c,
9531         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
9532         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
9533         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
9534         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
9535         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
9536         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
9537         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
9538         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
9539         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
9540         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
9541         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
9542         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
9543         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
9544         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
9545         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
9546         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
9547         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
9548         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
9549         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
9550         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
9551         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
9552         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
9553         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
9554         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
9555         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
9556         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
9557         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
9558         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
9559         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
9560         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
9561         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
9562         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
9563         config/score/score7.c, config/score/score.c, config/arm/arm.c,
9564         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
9565         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
9566         config/bfin/bfin.c: Clean up redundant includes.
9567         * Makefile.in: Update accordingly.
9569 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
9571         PR middle-end/44204
9572         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
9573         statement has no arguments.
9575 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
9577         PR/44139
9578         * varasm.c (emutls_decl): Merge attributes to new decl.
9580 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
9582         PR middle-end/44101
9583         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
9584         around the uniquized constructor if its type requires a conversion.
9586 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
9588         PR debug/44205
9589         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
9590         at -O0 goto_locus of any of the incoming edges differs from
9591         goto_locus of outgoing edge, or gimple_location of any of the
9592         labels differs.
9594 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
9596         * ira.c (ira_non_ordered_class_hard_regs): Define.
9597         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
9598         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
9599         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
9600         cost of unaligned hard regs when allocating multi-reg pseudos.
9602 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
9604         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
9605         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
9606         for TARGET_NO_FLOAT.
9607         * config/mips/mips.c (mips_file_start): Expand conditional expression
9608         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
9609         (mips_override_options): Move -mno-float override -msoft-float and
9610         -mhard-float.
9611         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
9612         Condition(TARGET_SUPPORTS_NO_FLOAT).
9613         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
9614         __mips_no_float here.
9615         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
9616         (TARGET_SUPPORTS_NO_FLOAT): Define.
9617         * config/mips/sdemtk.opt: Delete.
9619 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
9621         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
9623 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
9625         PR target/43733
9626         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
9627         * configure: Regenerate.
9628         * config.in: Regenerate.
9629         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
9630         instead of sahf only for 64bit targets.
9632 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
9634         PR debug/44178
9635         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
9636         setup_ref_regs for DEBUG_INSNs.
9638 2010-05-20  Jan Hubicka  <jh@suse.cz>
9640         PR middle-end/44197
9641         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
9643 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
9645         PR bootstrap/43870
9646         * df-scan.c (df_ref_compare): Stabilize sort.
9648 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
9650         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
9651         argument.  Don't use DW_OP_piece if offset is non-zero,
9652         put offset into second DW_OP_bit_piece argument.
9653         (dw_sra_loc_expr): Adjust callers.  For memory expressions
9654         compute offset.
9656 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
9658         PR target/44202
9659         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
9660         settings for 16-bit-constant "addo" alternative.
9662 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
9664         * config/mips/mips-dsp.md (add<DSPV:mode>3,
9665         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
9667         PR target/43764
9668         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
9669         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
9670         Use it.
9672 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
9674         * diagnostic.c (FLOAT, FFS): Don't undefine.
9675         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
9676         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
9677         include ordering.
9679 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
9681         * combine.c (propagate_for_debug): Call make_compound_operation
9682         on the source value.
9683         (try_combine): When implementing a split chosen by find_split_point,
9684         either copy i2src or set it to null.  Assert that i2src is not null
9685         before substituting into CALL_INSN_FUNCTION_USAGE.
9687 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
9689         * double-int.h (double_int_ior): New function.
9690         * tree.h (build_int_cst_wide_type): Remove.
9691         * tree.c (build_int_cst_wide_type): Remove.
9692         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
9693         of build_int_cst_wide_type.
9694         * stor-layout.c (set_sizetype): (Ditto.).
9695         * dojump.c (do_jump): Use build_int_cstu instead of
9696         build_int_cst_wide_type.
9698 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
9700         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
9701         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
9702         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
9703         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
9704         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
9705         propagate the 'data' argument to copy_tree_r.
9706         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
9707         Propagate 'data' argument to walk_tree.
9708         (copy_if_shared): New function.
9709         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
9710         (unmark_visited): New function.
9711         (unshare_body): Call copy_if_shared instead of doing it manually.
9712         (unvisit_body): Call unmark_visited instead of doing it manually.
9714 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
9716         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
9717         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
9718         * hooks.c: Likewise.
9719         * target-def.h (TARGET_FOLD_BUILTIN): Define to
9720         hook_tree_tree_int_treep_bool_null.
9721         * target.h (struct gcc_target): Update signature of fold_builtin
9722         field.
9723         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
9724         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
9725         instead of the call expression.
9726         (fold_builtin_call_array): Pass n and argarray directly.
9727         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
9728         consing a list.
9729         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
9730         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
9731         `i' and use it in place of `arity'.
9732         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
9733         Dereference `args' directly.
9734         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
9736 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9738         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9739         3dnow, sse3, sse2.
9740         (Directives): Document optional dg-require-effective-target
9741         selector.
9743 2010-05-19  Richard Guenther  <rguenther@suse.de>
9745         PR lto/44196
9746         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
9748 2010-05-19  Richard Guenther  <rguenther@suse.de>
9750         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
9751         * common.opt (fwhopr=): New.
9752         * opts.c (common_handle_option): Handle OPT_fwhopr.
9753         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
9754         * collect2.c (main): Match -fwhopr*.
9755         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
9756         Execute ltrans stage in parallel when jobs is bigger than 1.
9758 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9760         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
9761         pentiumpro on Solaris 8/x86 with Sun as.
9762         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
9763         hidden alias bug.
9764         (gcc_cv_as_ix86_quad): Check for .quad directive.
9765         * configure: Regenerate.
9766         * config.in: Regenerate.
9767         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
9769 2010-05-19  Martin Jambor  <mjambor@suse.cz>
9771         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
9772         also for indirect edges.  Actual printing moved...
9773         (ipa_print_node_jump_functions_for_edge): ...here.
9774         (ipa_compute_jump_functions): Renamed to
9775         ipa_compute_jump_functions_for_edge and made static.
9776         (ipa_compute_jump_functions): New function.
9777         (make_edge_direct_to_target): Check if the number of arguments on
9778         the newly direct edge is the same as the number of parametrs of
9779         the callee.
9780         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
9781         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
9782         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9783         analysis functions unconditionally, call the new
9784         ipa_analyze_params_uses on the node instead of every edge.
9786 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
9788         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
9789         to tree.
9790         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
9791         also checks for a constant int vs.  non-constant but
9792         loop-invariant steps.
9793         (find_or_create_group): Change the sort algorithm to only consider
9794         steps that are constant ints.
9795         (idx_analyze_ref): Adopt code to handle a tree instead of a
9796         HOST_WIDE_INT for step.
9797         (gather_memory_references_ref): Handle tree instead of int and be
9798         prepared to see a NULL_TREE.
9799         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
9800         prefetches if the step cannot be calculated at compile time.
9801         (issue_prefetch_ref): Issue prefetches for non-constant but
9802         loop-invariant steps.
9804 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
9806         Revert:
9807         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
9809         * tree.h (build_call_list): Remove.
9810         * tree.c (build_call_list): Remove.
9812 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
9814         * tree.h (build_call_list): Remove.
9815         * tree.c (build_call_list): Remove.
9817 2010-05-18  Jan Hubicka  <jh@suse.cz>
9819         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
9821 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
9823         PR rtl-optimization/43332
9824         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
9826 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
9828         * tree.h (build_int_cstu): Implement as static inline.
9829         * tree.c (build_int_cstu): Remove function.
9830         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
9831         sign extended.
9833 2010-05-18  Richard Guenther  <rguenther@suse.de>
9835         PR lto/44143
9836         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
9837         (debug): Initialize from -save-temps.
9838         (collect_execute): Print command-line when verbose.
9839         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
9840         for ltrans invocation.  Produce -dumpbase flag again.
9841         (process_args): Remove.
9842         (main): Simplify.
9843         * collect2.c (maybe_run_lto_and_relink): Only pass object
9844         files to lto-wrapper.
9845         * gcc.c (LINK_COMMAND_SPEC): Likewise.
9847 2010-05-18  Jan Hubicka  <jh@suse.cz>
9849         * opts.c (decode_options): Do not disable whopr at ipa_cp.
9850         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
9852 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
9854         PR lto/44184
9855         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
9856         in a GIMPLE_ASM.
9857         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
9858         in a GIMPLE_ASM.
9860 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
9862         PR debug/41371
9863         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
9864         rtx_equal_p inline.
9866 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
9868         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
9869         lto-macho as lto_binary_reader.
9871         * darwin.c (darwin_asm_named_section): Do not add assembler comment
9872         after .section directive; just print it before the directive instead.
9874 2010-05-17  Jan Hubicka  <jh@suse.cz>
9876         * cgraph.c (cgraph_create_virtual_clone): Only check
9877         versionable_function_p when not in wpa and checking is enabled.
9878         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
9879         there are no more functions to materialize.
9881 2010-05-17  Jan Hubicka  <jh@suse.cz>
9883         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
9884         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
9885         New functions.
9886         (output_cgraph): Call output_cgraph_opt_summary.
9887         (input_cgrpah): Call input_cgraph_opt_summary.
9888         (output_cgraph_opt_summary_p, output_node_opt_summary,
9889         input_node_opt_summary, input_cgraph_opt_section): New functions.
9890         * lto-section-in.c (lto_section_name): Add cgraphopt.
9891         * tree-inline.c (tree_function_versioning): Handle parm_num.
9892         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
9893         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
9895 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
9897         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
9898         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
9899         the insn to prefetch ratio heuristic to loops with known trip count.
9901 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
9903         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
9904         (schedule_prefetches): Do not generate a prefetch if the unroll factor
9905         is far from what is required by the prefetch.
9907 2010-05-17  Jan Hubicka  <jh@suse.cz>
9909         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
9910         (ipcp_estimate_growth): Likewise.
9911         (ipcp_const_param_count): Likewise.
9912         (ipcp_insert_stage): Likewise.
9913         * ipa-prop.c (visit_load_for_mod_analysis): New function.
9914         (visit_store_addr_for_mod_analysis): Set used flag.
9915         (ipa_detect_param_modifications): Set used flag for SSE params;
9916         update use of walk_stmt_load_store_addr_ops.
9917         (ipa_print_node_params): Print used flag.
9918         (ipa_write_node_info): Stream used flag.
9919         (ipa_read_node_info): Likewise.
9920         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
9921         (ipa_is_param_used): New function.
9922         (lto_ipa_fixup_call_notes): Remove unused declaration.
9924 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9926         PR target/44074
9927         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
9928         * configure: Regenerate.
9929         * config.in: Regenerate.
9930         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
9931         !HAVE_AS_IX86_REP_LOCK_PREFIX.
9932         Don't emit whitespace.
9933         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
9934         (*rep_movsi): Likewise.
9935         (*rep_movsi_rex64): Likewise.
9936         (*rep_movqi): Likewise.
9937         (*rep_movqi_rex64): Likewise.
9938         (*rep_stosdi_rex64): Likewise.
9939         (*rep_stossi): Likewise.
9940         (*rep_stossi_rex64): Likewise.
9941         (*rep_stosqi): Likewise.
9942         (*rep_stosqi_rex64): Likewise.
9943         (*cmpstrnqi_nz_1): Use {%;} after repz.
9944         (*cmpstrnqi_nz_rex_1): Likewise.
9945         (*cmpstrnqi_1): Likewise.
9946         (*cmpstrnqi_rex_1): Likewise.
9947         (*strlenqi_1): Use {%;} after repnz.
9948         (*strlenqi_rex_1): Likewise.
9949         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
9950         (*sync_compare_and_swap<mode>): Likewise.
9951         (sync_double_compare_and_swap<mode>): Likewise.
9952         (*sync_double_compare_and_swapdi_pic): Likewise.
9953         (sync_old_add<mode>): Likewise.
9954         (sync_add<mode>): Likewise.
9955         (sync_sub<mode>): Likewise.
9956         (sync_<code><mode>): Likewise.
9958 2010-05-17  Martin Jambor  <mjambor@suse.cz>
9960         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
9961         otr_token and polymorphic.
9962         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
9963         (cgraph_clone_edge): Copy the above fields.
9964         * tree.c (get_binfo_at_offset): New function.
9965         * tree.h (get_binfo_at_offset): Declare.
9966         * ipa-prop.h (enum jump_func_type): Added known_type jump function
9967         type, reordered items, updated comments.
9968         (union jump_func_value): Added base_type field, reordered fields.
9969         (enum ipa_lattice_type): Moved down in the file.
9970         (struct ipa_param_descriptor): New field polymorphic.
9971         (ipa_is_param_polymorphic): New function.
9972         * ipa-prop.c: Include gimple.h and gimple-fold.h.
9973         (ipa_print_node_jump_functions): Print known type jump functions.
9974         (compute_complex_pass_through): Renamed to...
9975         (compute_complex_assign_jump_func): this.
9976         (compute_complex_ancestor_jump_func): New function.
9977         (compute_known_type_jump_func): Likewise.
9978         (compute_scalar_jump_functions): Create known type and complex ancestor
9979         jump functions.
9980         (ipa_note_param_call): New parameter polymorphic, set the corresponding
9981         flag in the call note accordingly.
9982         (ipa_analyze_call_uses): Renamed to...
9983         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
9984         variable var only in the block where it is used.
9985         (ipa_analyze_virtual_call_uses): New function.
9986         (ipa_analyze_call_uses): Likewise.
9987         (combine_known_type_and_ancestor_jfs): Likewise.
9988         (update_jump_functions_after_inlining): Implemented handling of a
9989         number of new jump function types combination.
9990         (print_edge_addition_message): Removed.
9991         (make_edge_direct_to_target): New function.
9992         (try_make_edge_direct_simple_call): Likewise.
9993         (try_make_edge_direct_virtual_call): Likewise.
9994         (update_call_notes_after_inlining): Renamed to...
9995         (update_indirect_edges_after_inlining): this.  Moved edge creation for
9996         indirect calls to try_make_edge_direct_simple_call, also calls
9997         try_make_edge_direct_virtual_call for virtual calls.
9998         (ipa_print_node_params): Changed the header message.
9999         (ipa_write_jump_function): Stream also known type jump functions.
10000         (ipa_read_jump_function): Likewise.
10001         (ipa_write_indirect_edge_info): Stream new fields in
10002         cgraph_indirect_call_info.
10003         (ipa_read_indirect_edge_info): Likewise.
10004         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
10005         GIMPLE_FOLD_H.
10007 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10009         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
10011 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
10013         * tree.h (CALL_EXPR_ARGS): Delete.
10014         (call_expr_arglist): Delete.
10015         * tree.c (call_expr_arglist): Delete.
10016         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
10017         targetm.fold_builtin.
10018         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
10019         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
10020         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
10021         arglist parameter.  Use CALL_EXPR_ARG.
10022         (picochip_expand_builtin_3op): Likewise.
10023         (picochip_expand_builtin_2opvoid): Likewise.
10024         (picochip_expand_array_get): Likewise.
10025         (picochip_expand_array_put): Likewise.
10026         (picochip_expand_array_testport): Likewise.
10027         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
10028         rather than arglist.
10029         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
10030         CALL_EXPR_ARGS.
10031         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
10032         than TREE_VALUE and TREE_CHAIN.
10033         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
10034         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
10035         the arglist.
10037 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
10039         PR bootstrap/42347
10040         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
10041         to have no fallthru edge.
10043         PR middle-end/44102
10044         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
10045         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
10046         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
10047         add BARRIER after previous bb if needed.
10049 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
10051         * tree.c (build_function_type_list_1): Remove bogus assert condition.
10053 2010-05-17  Alan Modra  <amodra@gmail.com>
10055         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
10056         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
10057         with copy_reg rtx param.
10058         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
10059         Correct cases where code for ABI_V4 did not initialise the reg
10060         used to access frame.  Also leave frame_reg_rtx as sp for large
10061         frames that save no regs.
10063 2010-05-17  Martin Jambor  <mjambor@suse.cz>
10065         PR middle-end/44133
10066         * tree-sra.c (create_access_replacement): New parameter rename, mark
10067         the replaement for renaming only when it is true.
10068         (get_access_replacement): Pass true in the rename parameter of
10069         create_access_replacement.
10070         (get_unrenamed_access_replacement): New function.
10071         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
10072         replacement declaration from it.
10074 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
10076         * function.c (try_fit_stack_local, add_frame_space): New static
10077         functions.
10078         (assign_stack_local_1): Use them.  Look for opportunities to use
10079         space previously wasted on alignment.
10080         * function.h (struct frame_space): New.
10081         (struct rtl_data): Add FRAME_SPACE_LIST member.
10082         * reload1.c (something_was_spilled): New static variable.
10083         (alter_reg): Set it.
10084         (reload): Test it in addition to testing if the frame size changed.
10086 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
10088         * config/s390/s390.c: Define sane prefetch settings and activate
10089         flag_prefetch_loop_arrays on -O3.
10090         * config/s390/s390.h: Declare that read can use write prefetch.
10092 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
10094         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
10095         build.
10097 2010-05-16  Jan Hubicka  <jh@suse.cz>
10099         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
10100         function body; do not check stdarg field of struct function.
10102 2010-05-16  Jan Hubicka  <jh@suse.cz>
10104         * cgraph.c (dump_cgraph_node): Dump versionable flag.
10105         * cgraph.h (cgraph_local_info): Add versionable flag.
10106         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
10107         (ipcp_versionable_function_p): Use it.
10108         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
10109         versionable flag.
10111 2010-05-16  Jan Hubicka  <jh@suse.cz>
10113         * cgraph.c (cgraph_clone_node): Take decl argument and insert
10114         clone into hash when it is different from orig.
10115         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
10116         * cgraph.h (cgraph_clone_node): Update prototype.
10117         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
10118         (lto_cgraph_encoder_delete): Delete body map.
10119         (lto_cgraph_encoder_size): Move to header.
10120         (lto_cgraph_encoder_encode_body_p,
10121         lto_set_cgraph_encoder_encode_body): New.
10122         (lto_output_node): Do not take written_decls argument; output clone_of
10123         pointer.
10124         (add_node_to): Add include_body_argument; call
10125         lto_set_cgraph_encoder_encode_body on master of the clone.
10126         (add_references): Update use of add_node_to.
10127         (compute_ltrans_boundary): Likewise.
10128         (output_cgraph): Do not create written_decls bitmap.
10129         (input_node): Take nodes argument; stream in clone_of correctly.
10130         (input_cgraph_1): Update use of input_node.
10131         * lto-streamer-out.c (lto_output): Use encoder info to decide
10132         what bodies to output.
10133         * ipa-inline.c (cgraph_clone_inlined_nodes,
10134         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
10135         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
10136         (lto_cgraph_encoder_size): Define here.
10137         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
10138         Declare.
10140 2010-05-16  Richard Guenther  <rguenther@suse.de>
10142         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
10143         -fipa-type-escape.
10144         * ipa-type-escape.c (gate_type_escape_vars): Run when
10145         -fipa-struct-reorg runs.
10146         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
10147         * common.opt (fipa-type-escape): Remove.
10149 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
10151         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
10152         (decode_options): Likewise.
10153         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
10155 2010-05-16  Jan Hubicka  <jh@suse.cz>
10157         * ipa.c (function_and_variable_visibility): Also bring local all
10158         aliases.
10160 2010-05-16  Richard Guenther  <rguenther@suse.de>
10162         * alias.c (nonoverlapping_memrefs_p): Remove use of
10163         IPA type-escape information.
10165 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
10167         * c-common.c (c_common_reswords): Add _Static_assert for C.
10168         * c-parser.c (c_token_starts_declaration,
10169         c_parser_next_token_starts_declaration,
10170         c_parser_static_assert_declaration_no_semi,
10171         c_parser_static_assert_declaration): New.
10172         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
10173         Handle static assertions if static_assert_ok.
10174         (c_parser_external_declaration, c_parser_declaration_or_fndef,
10175         c_parser_compound_statement_nostart, c_parser_label,
10176         c_parser_for_statement, c_parser_objc_methodprotolist,
10177         c_parser_omp_for_loop): All callers of
10178         c_parser_declaration_or_fndef changed.
10179         (c_parser_struct_declaration): Handle static assertions.
10180         (c_parser_compound_statement_nostart): Use
10181         c_parser_next_token_starts_declaration and
10182         c_token_starts_declaration to detect start of declarations.
10183         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
10184         Likewise.
10186 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
10188         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10189         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10190         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10191         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10192         (mmix_function_outgoing_value): Rename to...
10193         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
10194         (mmix_function_value_regno_p): Make static.
10195         (mmix_libcall_value): New function.
10196         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
10197         mmix_function_value_regno_p): Remove declaration.
10199 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
10201         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
10202         BUILT_IN_ALLOCA if stack checking is enabled.
10204 2010-05-16  Richard Guenther  <rguenther@suse.de>
10206         * var-tracking.c (vars_copy_1): Inline ...
10207         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
10208         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
10209         (variable_merge_over_cur): Adjust.  Merge asserts.
10210         (variable_merge_over_src): Likewise.
10211         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
10212         (variable_post_merge_new_vals): Merge asserts.
10213         (variable_post_merge_perm_vals): Likewise.
10214         (find_mem_expr_in_1pdv): Likewise.
10215         (dataflow_set_different_value): Remove.
10216         (onepart_variable_different_p): Merge asserts.
10217         (variable_different_p): Likewise.
10218         (dataflow_set_different_1): Inline ...
10219         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
10220         (emit_notes_for_differences_1): Merge asserts.
10222 2010-05-16  Richard Guenther  <rguenther@suse.de>
10224         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
10225         * optabs.c (libfunc_decl_hash): Likewise.
10226         * varasm.c (emutls_decl): Likewise.
10228 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
10230         * c-decl.c: Don't include gimple.h.
10231         (merge_decls): Do not copy gimple_body.
10233 2010-05-15  Jason Merrill  <jason@redhat.com>
10235         * c.opt: Add -fnothrow-opt.
10237 2010-05-15  Jan Hubicka  <jh@suse.cz>
10239         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
10240         analyzed.
10241         * passes.c (ipa_write_summaries): Write all analyzed nodes.
10243 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
10245         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
10246         * Makefile.in: Add it.
10247         Fix all other Makefile dependencies for changes below.
10248         * tree.h: Include it instead of defining VEC primitives here.
10249         * gimple.h: Likewise.
10250         * rtl.h: Likewise.
10251         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
10252         * except.h: Include vecir.h, break dependence on tree.h.
10254         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
10255         Move from here...
10256         * tree-iterator.c: ...to here.
10257         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
10259         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
10260         tm_p.h.
10261         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
10262         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
10263         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
10264         tree-mudflap.h, and target.h.
10265         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
10266         predict.h, tree-inline.h, gimple.h, and langhooks.h.
10267         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
10268         Add FIXME for why gimple.h is still included (should be unnecessary
10269         since GCC 4.5 gimplification unit-at-a-time).
10270         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
10271         * c-pragma.c: Add FIXME for why function.h needs to be included just
10272         for cfun, at front-end level.
10273         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
10274         Do not include ggc.h, but include vecprim.h for VEC(char).
10275         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
10276         Explain why target.h is included.
10277         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
10278         Explain why gimple.h is included.
10279         * c-ppoutput.c: Do not include tm.h.
10280         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
10281         * c-parses.c: Explain why rtl.h is included, and that this (and only
10282         this) is also why tm.h must be included.
10283         Do not include except.h.
10284         * c-lang.c: Do not include ggc.h.
10286 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
10288         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
10290 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
10292         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
10293         unions by default if those structs and unions have no tags.  Do
10294         not condition anonymous struct and unions handling on flag_iso.
10295         Allow anonymous structs and unions for C1X.
10296         (finish_struct): Do not diagnose lack of named fields when
10297         anonymous structs and unions present for C1X.  Accept flexible
10298         array members in structure with anonymous structs or unions but no
10299         directly named fields.
10300         * doc/extend.texi (Unnamed Fields): Update.
10302 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
10304         * gimple.h (compare_field_offset): Rename into...
10305         (gimple_compare_field_offset): ...this.
10306         * gimple.c (compare_field_offset): Rename into...
10307         (gimple_compare_field_offset): ...this.  Compare the full access if
10308         the offset is self-referential.
10309         (gimple_types_compatible_p): Adjust for above renaming.
10310         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
10311         DECL_NONADDRESSABLE_P flag of fields before merging them.
10313 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
10315         * tree.h (ctor_to_list): Delete.
10316         * tree.c (ctor_to_list): Delete.
10318 2010-05-15  Jan Hubicka  <jh@suse.cz>
10320         * ipa-reference.c: Include toplev.h
10321         (is_proper_for_analysis): Only add to all_module_statics
10322         if it is allocated.
10323         (write_node_summary_p, stream_out_bitmap,
10324         ipa_reference_write_optimization_summary,
10325         ipa_reference_read_optimization_summary): New.
10326         (struct ipa_opt_pass_d pass_ipa_reference): Add
10327         optimization summary streaming.
10328         * lto-cgraph.c (referenced_from_this_partition_p,
10329         reachable_from_this_partition_p): New functions.
10330         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10331         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
10332         * opts.c (decode_options): Enable ipa_reference.
10333         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
10334         * lto-streamer.h (referenced_from_this_partition_p,
10335         reachable_from_this_partition_p): Declare.
10337 2010-05-15  Richard Guenther  <rguenther@suse.de>
10339         PR tree-optimization/44038
10340         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
10341         taking the address of a V_C_E of a constant.
10343 2010-05-14  Jan Hubicka  <jh@suse.cz>
10345         * tree.h (memory_identifier_string): Remove.
10346         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
10347         (ipa_reference_global_vars_info_d): Remove statics_not_read and
10348         statics_not_written.
10349         (ipa_reference_optimization_summary_d): New structure.
10350         (ipa_reference_optimization_summary_t): New type and vector.
10351         (ipa_reference_vars_info_d): Embedd structures instead of using
10352         pointers.
10353         (reference_vars_to_consider): Remove out of GGC space.
10354         (module_statics_escape): Remove.
10355         (global_info_obstack): Rename to ...
10356         (optimization_summary_obstack): ... this one.
10357         (initialization_status_t): Remove.
10358         (memory_identifier_string): Remove.
10359         (get_reference_vars_info): Fix indenting.
10360         (set_reference_vars_info): Likewise.
10361         (get_reference_optimization_summary): New.
10362         (set_reference_optimization_summary): New.
10363         (get_global_reference_vars_info): Remove.
10364         (ipa_reference_get_read_global): Remove.
10365         (ipa_reference_get_written_global): Remove.
10366         (ipa_reference_get_not_read_global): Update.
10367         (ipa_reference_get_not_written_global): Update.
10368         (is_proper_for_analysis): Outlaw addressable.
10369         (propagate_bits): Update for new datastructures.
10370         (analyze_variable): Remove.
10371         (init_function_info): Update for new datastructures.
10372         (clean_function_local_data): Remove.
10373         (clean_function): Remove.
10374         (copy_global_bitmap): Use optimizations_summary_obstack.
10375         (duplicate_node_data): Duplicate optimization summary only.
10376         (remove_node_data): Remove optimization summary only.
10377         (generate_summary): Do not analyze variables; do not compute
10378         module_statics_escape; do not prune solutions by it.
10379         (read_write_all_from_decl): Fix typos in comments.
10380         (propagate): Doscover readonly and nonaddressable first;
10381         update for new datastructures; share global bitmaps.
10382         * ipa-reference.h (ipa_reference_get_read_global,
10383         ipa_reference_get_written_global): Remove.
10384         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
10385         * Makefile.in: Remove ipa-refereference from GT files.
10387 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
10389         PR debug/44112
10390         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
10391         for all SYMBOL_REF_DECLs.
10393 2010-05-14  Jan Hubicka  <jh@suse.cz>
10395         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
10396         (varpool_all_refs_explicit_p): New inline function.
10397         * ipa-reference.c: Update comment.
10398         (module_statics_written): Remove.
10399         (get_static_decl): Remove.
10400         (ipa_init): Do not initialize module_statics_written.
10401         (analyze_function): Likewise.
10402         (generate_summary): Likewise; do not compute module_statics_readonly
10403         and do not update variable flags.
10404         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
10405         * ipa.c: Inlucde flags.h
10406         (cgraph_local_node_p): New.
10407         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
10408         promote functions to local.
10409         (ipa_discover_readonly_nonaddressable_vars): New function.
10410         (function_and_variable_visibility): Use cgraph_local_node_p.
10411         * varpool.c (varpool_finalize_decl): Set force_output for
10412         DECL_PRESERVE_P vars.
10414 2010-05-14  Jan Hubicka  <jh@suse.cz>
10416         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
10418 2010-05-14  Richard Guenther  <rguenther@suse.de>
10420         PR tree-optimization/44119
10421         * tree-ssa-pre.c (eliminate): Properly mark replacement of
10422         a PHI node necessary.
10424 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
10426         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
10428 2010-05-14  Jason Merrill  <jason@redhat.com>
10430         PR c++/44127
10431         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
10432         (gimple_call_set_nothrow): New.
10433         * gimple.c (gimple_build_call_from_tree): Call it.
10434         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
10436         PR c++/44127
10437         * gimplify.c (gimplify_seq_add_stmt): No longer static.
10438         * gimple.h: Declare it.
10439         * gimple.c (gimple_build_eh_filter): No ops.
10441 2010-05-14  Jan Hubicka  <jh@suse.cz>
10443         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
10444         nodes already in queue.
10445         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
10446         re-enqueueing node.
10448 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
10450         PR debug/44136
10451         * cfgexpand.c (expand_debug_expr): If non-memory op0
10452         has BLKmode, return NULL.
10454 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
10456         * config.gcc: Add support for --with-cpu option for bdver1.
10457         * config/i386/i386.h (TARGET_BDVER1): New macro.
10458         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
10459         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10460         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
10461         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10462         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
10463         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
10464         (processor_type): Add PROCESSOR_BDVER1.
10465         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
10466         processor_type in config/i386/i386.h.
10467         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
10468         movaps <reg, reg> instead of movapd <reg, reg> when replacing
10469         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
10470         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
10471         to emit packed xor instead of packed double/packed integer
10472         xor for SSE and AVX when moving a zero value.
10473         * config/i386/sse.md: Add check for
10474         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
10475         movapd/movdqa for SSE and AVX.
10476         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
10477         single logical operations i.e and, or and xor instead of packed double
10478         logical operations for SSE and AVX.
10479         * config/i386/i386-c.c (ix86_target_macros_internal):
10480         Add PROCESSOR_BDVER1.
10481         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
10482         (has_fma4, has_xop): New.
10483         * config/i386/i386.c (bdver1_cost): New variable.
10484         (m_BDVER1): New macro.
10485         (m_AMD_MULTIPLE): Add m_BDVER1.
10486         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
10487         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
10488         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
10489         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
10490         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
10491         x86_tune_sse_partial_reg_dependency,
10492         x86_tune_sse_unaligned_load_optimal,
10493         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
10494         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
10495         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
10496         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
10497         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
10498         Enable/disable for bdver1.
10499         (processor_target_table): Add bdver1_cost.
10500         (cpu_names): Add bdver1.
10501         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
10502          processor_alias_table.
10503         (ix86_expand_vector_move_misalign): Change.
10504         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
10505         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
10506         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
10507         of movupd/movdqu for SSE and AVX.
10508         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
10509         (ix86_tune_adjust_cost): Add code for bdver1.
10510         (standard_sse_constant_opcode): Add check for
10511         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
10512         of packed double xor for SSE and AVX.
10514 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
10516         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
10517         result to unsigned.
10519 2010-05-14  Tristan Gingold  <gingold@adacore.com>
10521         * toplev.c (default_debug_hooks): Remove this variable.
10522         (process_options): Remove assignments to default_debug_hooks.
10524 2010-05-14  Martin Jambor  <mjambor@suse.cz>
10526         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
10527         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
10528         * langhooks.h (struct lang_hooks_for_decls): Removed field
10529         fold_obj_type_ref.
10530         * tree.c (free_lang_data): Remove assignment to
10531         lang_hooks.fold_obj_type_ref.
10532         * tree.def (OBJ_TYPE_REF): Update comment.
10534 2010-05-14  Richard Guenther  <rguenther@suse.de>
10536         PR tree-optimization/44124
10537         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
10539 2010-05-14  Alan Modra  <amodra@gmail.com>
10541         PR target/44075
10542         * config/rs6000/rs6000.c (struct machine_function): Reorder
10543         fields for better packing.  Add lr_save_state.
10544         (rs6000_ra_ever_killed): Return lr_save_state if set.
10545         (rs6000_emit_eh_reg_restore): Set lr_save_state.
10547 2010-05-13  Jan Hubicka  <jh@suse.cz>
10549         * varpool.c (decide_is_variable_needed): Drop code checking
10550         TREE_SYMBOL_REFERENCED.
10552 2010-05-13  Jan Hubicka  <jh@suse.cz>
10554         * final.c (output_addr_const): Do not call mark_decl_referenced.
10555         * cgraphunit.c (process_function_and_variable_attributes): Use
10556         mark_needed_node dirrectly.
10557         (assemble_thunk): Do not call mark_decl_referenced.
10559 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
10561         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
10563 2010-05-13  Jeff Law  <law@redhat.com>
10565         * ira-conflicts.c (print_allocno_conflicts): New function broken out
10566         from...
10567         (print_conflicts): Call print_allocno_conflicts.
10569 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
10571         PR debug/44104
10572         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
10573         if it is NULL.
10575 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
10577         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
10578         t-mingw-w64 or t-mingw-w32 for multilib configuration.
10579         * config/i386/t-mingw-w32: New.
10580         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
10582 2010-05-13  Martin Jambor  <mjambor@suse.cz>
10584         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
10585         gimple-fold.c).
10586         * gimple-fold.c (get_base_binfo_for_type): New function.
10587         (gimple_get_relevant_ref_binfo): Likewise.
10588         (gimple_fold_obj_type_ref_known_binfo): Likewise.
10589         (gimple_fold_obj_type_ref): Likewise.
10590         (fold_gimple_call): Simplify condition for folding virtual calls
10591         and call gimple_fold_obj_type_ref.
10592         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
10593         (gimple_fold_obj_type_ref_known_binfo): Likewise.
10595 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
10597         * config/rs6000/rs6000-protos.h
10598         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
10599         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
10600         (rs6000_debug_mode_dependent_address)
10601         (rs6000_mode_dependent_address_ptr): Likewise.
10603 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
10605         PR debug/43983
10606         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
10607         by SRA.
10608         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
10609         * tree-sra.c (create_access_replacement): Call unshare_expr before
10610         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
10611         * dwarf2out.c: Include tree-flow.h.
10612         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
10613         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10614         Handle DW_OP_bit_piece.
10615         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
10616         construct_piece_list, adjust_piece_list): New functions.
10617         (add_var_loc_to_decl): Handle SRA optimized variables.
10618         Adjust for var_loc_note to loc field renaming.
10619         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
10620         in VAR_LOCATION note.
10621         (new_loc_descr_op_bit_piece): New function.
10622         (dw_sra_loc_expr): New function.
10623         (dw_loc_list): Use it.  Don't handle the last range after the
10624         loop, handle it inside of the loop.  Adjust for var_loc_note
10625         to loc field renaming.
10626         (add_location_or_const_value_attribute): Only special case
10627         single entry loc lists if loc is NOTE_P.  Adjust for
10628         var_loc_note to loc field renaming.
10629         (dwarf2out_var_location): Don't set newloc->var_loc_note
10630         and newloc->next here.
10632 2010-05-12  Jan Hubicka  <jh@suse.cz>
10634         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
10635         flag.
10636         * cgraph.h (cgraph_only_called_directly_p,
10637         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
10638         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
10639         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
10640         (assemble
10641         * ipa.c (cgraph_remove_unreachable_nodes): Use
10642         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
10643         flags.
10644         * tree-inline.c (copy_bb): Check address_taken flag.
10645         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
10646         externally_visible flag.
10648 2010-05-12  Jason Merrill  <jason@redhat.com>
10650         PR bootstrap/44048
10651         PR target/44099
10652         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
10653         * sdbout.c (plain_type_1): Likewise.
10654         * dwarf2out.c (is_base_type): Likewise.
10655         (gen_type_die_with_usage): Likewise.  Generate
10656         DW_TAG_unspecified_type for any LANG_TYPE.
10658 2010-05-12  Jan Hubicka  <jh@suse.cz>
10660         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
10661         indrect edges too.
10662         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
10663         (cgraph_clone_edge): Update.
10664         (cgraph_node_remove_callees): Remove indirect calls too.
10665         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
10666         (cgraph_create_indirect_edge): Update prototype.
10667         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
10668         is_proper_for_analysis.
10669         (add_new_function, visited_nodes, function_insertion_hook_holder,
10670         get_local_reference_vars_info, mark_address_taken, mark_address,
10671         mark_load, mark_store, check_asm_memory_clobber, check_call,
10672         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
10673         (ipa_init): Do not initialize visited_nodes;
10674         function_insertion_hook_holder.
10675         (analyze_variable): Rewrite.
10676         (analyze_function): Rewrite.
10677         (copy_local_bitmap): Remove.
10678         (duplicate_node_dat): Do not duplicate local info.
10679         (generate_summary): Simplify to only walk cgraph.
10680         (write_node_summary_p, ipa_reference_write_summary,
10681         ipa_reference_read_summary): Remove.
10682         (propagate): Do not remove function insertion;
10683         generate summary.
10684         (pass_ipa_reference): NULLify summary handling fields.
10685         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
10686         (input_edge): Input ecf_flags.
10687         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
10688         (update_indirect_edges_after_inlining): Ignore edges with unknown
10689         param.
10691 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
10693         * implicit-zee.c: New file.
10694         * tree-pass.h (pass_implicit_zee): Declare.
10695         * passes.c (init_optimization_passes): Add zee pass.
10696         * common.opt (fzee): New flag.
10697         * timevar.def (TV_ZEE): Define.
10698         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
10699         and beyond.
10700         * Makefile.in (implicit-zee.o): Add new build file.
10702 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
10703             Nathan Froyd  <froydnj@codesourcery.com>
10705         * c-common.c (sync_resolve_params): Remove write-only variable.
10707 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
10709         * target.h (struct gcc_target): Add mode_dependent_address_p field.
10710         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10711         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
10712         * targhooks.c (default_mode_dependent_address_p): New function.
10713         * targhooks.h (default_mode_dependent_address_p): Declare function.
10714         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10715         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
10716         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
10717         target hook. Change return type to bool.
10718         * recog.h (mode_dependent_address_p): Change return type to bool.
10720 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
10721             Nathan Froyd  <froydnj@codesourcery.com>
10723         * tree-mudflap.c (build_function_type_0, build_function_type_1,
10724         build_function_type_2, build_function_type_3): Remove.
10725         (mudflap_init): Use build_function_type_list.
10727 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
10728             Nathan Froyd  <froydnj@codesourcery.com>
10730         * coverage.c (build_fn_info_value): Call build_constructor instead of
10731         build_constructor_from_list.
10732         (build_ctr_info_value): Likewise.
10733         (build_gcov_info): Likewise.
10735 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
10737         * tree.c (build_constructor): Compute TREE_CONSTANT for the
10738         resultant constructor.
10739         (build_constructor_single): Don't set TREE_CONSTANT.
10740         (build_constructor_from_list): Don't compute TREE_CONSTANT.
10742 2010-05-12  Jan Hubicka  <jh@suse.cz>
10744         * cgraph.h (struct varpool_node): Add aux.
10745         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
10746         * varpool.c (varpool_remove_node): Do not remove initializer.
10747         (varpool_reset_queue): Export.
10748         (varpool_finalize_decl): Volatile vars are forced to be output.
10749         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
10750         replaced decl.
10751         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
10752         process_references, varpool_can_remove_if_no_refs): New functions.
10753         (cgraph_remove_unreachable_nodes): Handle variables too.
10755 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
10757         PR target/44088
10758         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
10760 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
10762         PR middle-end/44085
10763         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
10764         change value of ORT_TASK.
10765         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
10766         (omp_notice_threadprivate_variable): New function.
10767         (omp_notice_variable): Call it for threadprivate variables.
10768         If enclosing ctx is a task, print enclosing task rather than
10769         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
10770         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
10771         if task has untied clause.
10773         PR debug/42278
10774         * dwarf2out.c (base_type_die): Don't add name attribute here.
10775         (modified_type_die): Instead of sizetype use
10776         its underlying original type.  If a DW_TAG_base_type doesn't
10777         have name added, add __unknown__.
10778         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
10779         always call force_type_die instead.
10781 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
10783         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
10784         for __stack_chk_guard.
10786 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
10788         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
10789         don't call start_source_file debug hook here...
10790         (finish_options): ... but here, after outputting predefined and
10791         command line defines and undefs.
10793         PR middle-end/44071
10794         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
10795         no fallthru edge.
10796         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
10797         optimizing away empty bb with no successors, move over its
10798         footer chain to fallthru predecessor.
10799         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
10800         (rtl_split_edge): For asm goto call patch_jump_insn even if
10801         splitting fallthru edge.
10803         PR c++/44059
10804         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
10805         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
10806         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
10807         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
10808         on DW.ref.* decls.
10810         PR c++/44062
10811         * c-parser.c (c_parser_expression): Mark LHS of a comma
10812         expression as read if it is a decl, handled component or
10813         COMPOUND_EXPR with that on the RHS.
10814         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
10815         if it is a decl or handled component.
10817 2010-05-11  Jan Hubicka  <jh@suse.cz>
10819         * lto-symtab.c (lto_symtab_free): New function.
10820         * lto-streamer.h (lto_symtab_free): Declare.
10822 2010-05-11  Jan Hubicka  <jh@suse.cz>
10824         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
10825         that if function is needed it is reachable.
10826         (lto_output_node): See if it the function is reachable or referenced.
10827         (output_cgraph): Update call of lto_output_node.
10828         * lto-streamer.h (reachable_from_other_partition_p): Declare.
10830 2010-05-11  Jan Hubicka  <jh@suse.cz>
10832         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
10833         Mark as used.
10835 2010-05-11  Jan Hubicka  <jh@suse.cz>
10837         PR tree-optimize/44063
10838         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
10839         queue.
10840         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
10841         limits.
10842         (estimate_function_body_sizes): Compute sizes even when disregarding.
10844 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
10846         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
10848 2010-05-11  Jan Hubicka  <jh@suse.cz>
10850         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
10851         into every boundary.
10853 2010-05-11  Jan Hubicka  <jh@suse.cz>
10855         * matrix-reorg.c (matrix_reorg): Rebuild edges.
10857 2010-05-11  Jan Hubicka  <jh@suse.cz>
10859         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
10860         lto_streamer_cache_delete): Put nodes into heap.
10861         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
10862         heap.
10864 2010-05-11  Jan Hubicka  <jh@suse.cz>
10866         * cgraphbuild.c (cgraph_rebuild_references): New.
10867         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
10868         out extern inlines.
10869         * cgraph.h (cgraph_rebuild_references): Declare.
10870         * tree-inline.c (tree_function_versioning): Use it.
10871         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
10873 2010-05-11  Jan Hubicka  <jh@suse.cz>
10875         * cgraph.c: Include ipa-utils.h
10876         (cgraph_create_virtual_clone): Update references.
10877         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
10879 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
10881         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
10882         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
10883         cache size.
10885 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
10887         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
10889 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
10891         * gcc.c (execute): For -### don't quote arguments that
10892         contain just alphanumerics and _/-. characters.
10893         * doc/invoke.texi: Document that change for -###.
10895         PR debug/44023
10896         * df-problems.c (struct dead_debug): Add to_rescan field.
10897         (dead_debug_init): Clear to_rescan field.
10898         (dead_debug_finish): Rescan all debug insns in to_rescan
10899         bitmap and free the bitmap.
10900         (dead_debug_insert_before): Instead of rescanning debug insns
10901         immediately queue their rescanning until dead_debug_finish.
10902         (df_note_bb_compute): After dead_debug_add do continue instead
10903         of break.
10905 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
10907         PR debug/44028
10908         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
10909         clear also INSN_REG_USE_LIST.
10911 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10913         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
10915 2010-05-10  Jan Hubicka  <jh@suse.cz>
10917         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
10918         commited change.
10920 2010-05-10  Jan Hubicka  <jh@suse.cz>
10922         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
10923         Allocate encoders.
10924         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
10925         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
10926         (lto_streamer_cache_create): Init alloc pool.
10927         (lto_streamer_cache_delete): Free alloc pool.
10928         * lto-streamer.h: Include alloc pool.
10929         (lto_streamer_cache_d): Use alloc pool.
10930         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
10932 2010-05-10  Jan Hubicka  <jh@suse.cz>
10934         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
10935         * cgraphbuild.c: Include except.h
10936         (record_type_list, record_eh_tables): New function.
10937         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
10939 2010-05-10  Jan Hubicka  <jh@suse.cz>
10941         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
10942         __frame_dummy_init_array_entry, force_to_data): Attribute as used
10943         rather than unused.
10945 2010-05-10  Michael Matz  <matz@suse.de>
10947         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
10948         (can_reassociate_p): Use FLOAT_TYPE_P.
10949         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
10950         (vect_force_simple_reduction): ... this.
10951         * tree-parloops.c (gather_scalar_reductions): Use
10952         vect_force_simple_reduction.
10953         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
10954         vect_is_simple_reduction, add modify argument, if true rewrite
10955         "a-b" into "a+(-b)".
10956         (vect_is_simple_reduction, vect_force_simple_reduction): New
10957         functions.
10958         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
10960 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
10961             Vladimir Makarov  <vmakarov@redhat.com>
10963         PR rtl-optimization/44012
10964         * ira-build.c (remove_unnecessary_allocnos): Nullify
10965         regno_allocno_map of the removed allocno.
10967 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10969         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
10970         to /dev/null.
10971         * configure: Regenerate.
10973 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10975         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
10976         unused.
10977         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
10978         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
10979         support in Sun ld.
10980         * configure: Regenerate.
10982 2010-05-10  Richard Guenther  <rguenther@suse.de>
10984         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
10985         marked if the entry identifier is marked.
10987 2010-05-10  Richard Guenther  <rguenther@suse.de>
10989         * c-common.c (struct c_common_attributes): Add fnspec attribute.
10990         (handle_fnspec_attribute): New function.
10991         * gimple.h (gimple_call_return_flags): Declare.
10992         (gimple_call_arg_flags): Likewise.
10993         * gimple.c (gimple_call_arg_flags): New function.
10994         (gimple_call_return_flags): Likewise.
10995         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
10996         New argument flags.
10997         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
10998         return value flags.
10999         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
11000         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
11001         main work to ...
11002         (make_heapvar_for): ... this new function.
11003         (handle_rhs_call): Handle fnspec attribute argument specifiers.
11004         (handle_lhs_call): Likewise.
11005         (find_func_aliases): Adjust.
11007 2010-05-10  Richard Guenther  <rguenther@suse.de>
11009         PR tree-optimization/44050
11010         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
11012 2010-05-10  Wei Guozhi  <carrot@google.com>
11014         PR target/42879
11015         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
11017 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
11019         PR c/10676
11020         * c-typeck.c (lookup_field): Take a type directly.  Update
11021         recursive calls.
11022         (build_component_ref): Update call to lookup_field.
11023         (set_init_label): Use lookup_field to find initialized field.
11024         Handle returned list of fields like a sequence of designators.
11026 2010-05-09  Richard Guenther  <rguenther@suse.de>
11028         PR middle-end/44024
11029         * fold-const.c (tree_single_nonzero_warnv_p): Properly
11030         handle &FUNCTION_DECL.
11032 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
11034         PR c/4784
11035         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
11036         structures and unions recursively.
11037         (detect_field_duplicates): Move duplicate detection with a hash to
11038         detect_field_duplicates_hash.  Always use a hash if anonymous
11039         structures or unions are present.
11040         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
11041         give errors.
11043 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
11045         PR target/44046
11046         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
11047         detect Atom, Core 2 and Core i7.
11049 2010-05-09  Richard Guenther  <rguenther@suse.de>
11051         * gcc.c (store_arg): Handle temporary file deletion for
11052         joined arguments.
11054 2010-05-09  Richard Guenther  <rguenther@suse.de>
11056         PR middle-end/44043
11057         * ipa-inline.c (estimate_function_body_sizes): Return after
11058         disregarding inline limits.
11060 2010-05-09  Richard Guenther  <rguenther@suse.de>
11062         * gcc.c (store_arg): Revert last change.
11064 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
11066         PR middle-end/28685
11067         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
11068         (optimize_ops_list): Call it.
11070 2010-05-08  Richard Guenther  <rguenther@suse.de>
11072         PR tree-optimization/44030
11073         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
11074         NECESSARY flag if we propagate from a inserted expression.
11076 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
11078         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
11079         domain types as equal if they are both PLACEHOLDER_EXPRs.
11081 2010-05-08  Richard Guenther  <rguenther@suse.de>
11083         * lto-wrapper.c (run_gcc): Remove linker output from
11084         command line for LTRANS invocation.
11086 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
11088         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
11089         lto-macho as lto_binary_reader.
11090         * target.h (struct gcc_target): New hooks lto_start and lto_end.
11091         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
11092         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
11093         in lto_start and lto_end calls.
11094         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
11095         magic numbers.
11096         (scan_prog_file): Update is_elf_or_coff call.
11097         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
11099         * collect2.c (main): Fix enum comparison.
11101         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
11102         Add prototypes.
11103         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
11104         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
11105         and TARGET_ASM_LTO_END.
11106         * darwin.c: Include obstack.h and lto-streamer.h.
11107         (lto_section_names_offset, lto_section_names_obstack,
11108         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
11109         global variables.
11110         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
11111         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
11112         to a temporary file.
11113         (darwin_asm_lto_end): New function.  Restore asm_out_file.
11114         (darwin_asm_named_section): For LTO sections, replace the name with
11115         the offset of the section name in a string table, and build this
11116         table.
11117         (darwin_file_start): Initialize global vars for LTO support.
11118         (darwin_file_end): If output to asm_out_file was redirected, append it
11119         to the proper asm_out_file here.  Add the section names section.
11121 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
11123         * c-pragma.c (pending_weak_d, pending_weak): New.
11124         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
11125         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
11126         handle_pragma_weak): Update the uses of pending_weaks.
11128 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11130         PR documentation/44016
11131         * doc/standards.texi (Standards): Link to unversioned
11132         cxx0x_status.html page.
11134 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
11136         PR target/43708
11137         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
11138         in addition to TREE_USED, to avoid "set but unused" warnings.
11140 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
11142         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
11143         (is_loop_prefetching_profitable): Do not insert prefetches
11144         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
11145         times the prefetch ahead distance.
11147 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
11149         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
11150         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
11151         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
11152         the unroll_factor.
11154 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
11156         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
11157         a diagnostic info when the insn-to-mem ratio is too small.
11159 2010-05-07  Richard Guenther  <rguenther@suse.de>
11161         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
11162         the linker plugin.
11163         (store_arg): Queue temp_filename for deletion instead of
11164         the whole argument.
11166 2010-05-07  Richard Guenther  <rguenther@suse.de>
11168         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
11169         (run_gcc): Handle LTRANS phase invocation.
11170         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
11172 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
11174         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
11175         this is also meaningful on PARM_DECLs and RESULT_DECLs.
11177 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11179         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
11181 2010-05-07  Richard Guenther  <rguenther@suse.de>
11183         PR tree-optimization/44020
11184         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
11185         code when PRE is not yet initialized.
11187 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11189         * config/mips/dbxmdebug.h: Remove.
11190         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
11192 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
11194         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
11195         with null pointer and also warn about ordered comparison of zero with
11196         pointer if -Wextra.
11198 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11200         * graphite-blocking.c
11201         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
11202         * graphite-clast-to-gimple.c
11203         (clast_to_gcc_expression): Same.
11204         (precision_for_value): Same.
11205         (precision_for_interval): Same.
11206         (gcc_type_for_interval): Same.
11207         (graphite_create_new_guard): Same.
11208         (compute_bounds_for_level): Same.
11209         (graphite_create_new_loop_guard): Same.
11210         * graphite-interchange.c
11211         (build_linearized_memory_access): Same.
11212         (pdr_stride_in_loop): Same.
11213         (memory_strides_in_loop_1): Same.
11214         (memory_strides_in_loop): Same.
11215         (extend_scattering): Same.
11216         (psct_scattering_dim_for_loop_depth): Same.
11217         (pbb_number_of_iterations): Same.
11218         * graphite-poly.h
11219         (debug_iteration_domains): Same.
11220         * graphite-ppl.c
11221         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11222         (ppl_set_inhomogeneous_gmp): Same.
11223         (ppl_strip_loop): Same.
11224         (ppl_lexico_compare_linear_expressions): Same.
11225         (ppl_read_polyhedron_matrix): Same.
11226         (ppl_max_for_le_pointset): Same.
11227         * graphite-ppl.h
11228         (ppl_read_polyhedron_matrix): Same.
11229         (tree_int_to_gmp): Same.
11230         (gmp_cst_to_tree): Same.
11231         (ppl_set_inhomogeneous): Same.
11232         (ppl_set_inhomogeneous_tree): Same.
11233         (ppl_set_coef): Same.
11234         (ppl_set_coef_tree): Same.
11235         * graphite-sese-to-poly.c
11236         (build_pbb_scattering_polyhedrons): Same.
11237         (build_scop_scattering): Same.
11238         (scan_tree_for_params_right_scev): Same.
11239         (scan_tree_for_params): Same.
11240         (find_params_in_bb): Same.
11241         (find_scop_parameters): Same.
11242         (add_upper_bounds_from_estimated_nit): Same.
11243         (build_loop_iteration_domains): Same.
11244         (add_condition_to_domain): Same.
11245         (pdr_add_memory_accesses): Same.
11247 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11249         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
11250         CLooG's value_* macros to their respective mpz_* counterparts.
11251         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
11252         (graphite_create_new_loop_guard): Same.
11253         * graphite-interchange.c (build_linearized_memory_access): Same.
11254         (pdr_stride_in_loop): Same.
11255         (memory_strides_in_loop_1): Same.
11256         (1st_interchange_profitable_p): Same.
11257         * graphite-poly.c (extend_scattering): Same.
11258         (psct_scattering_dim_for_loop_depth): Same.
11259         (pbb_number_of_iterations): Same.
11260         (pbb_number_of_iterations_at_time): Same.
11261         * graphite-poly.h (new_1st_loop): Same.
11262         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
11263         (oppose_constraint): Same.
11264         (insert_constraint_into_matrix): Same.
11265         (ppl_set_inhomogeneous_gmp): Same.
11266         (ppl_set_coef_gmp): Same.
11267         (ppl_strip_loop): Same.
11268         (ppl_lexico_compare_linear_expressions): Same.
11269         (ppl_max_for_le_pointset): Same.
11270         (ppl_min_for_le_pointset): Same.
11271         (ppl_build_realtion): Same.
11272         * graphite-ppl.h (gmp_cst_to_tree): Same.
11273         (ppl_set_inhomogeneous): Same.
11274         (ppl_set_inhomogeneous_tree): Same.
11275         (ppl_set_coef): Same.
11276         (ppl_set_coef_tree): Same.
11277         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
11278         (build_scop_scattering): Same.
11279         (add_value_to_dim): Same.
11280         (scan_tree_for_params_right_scev): Same.
11281         (scan_tree_for_params_int): Same.
11282         (scan_tree_for_params): Same.
11283         (find_params_in_bb): Same.
11284         (find_scop_parameters): Same.
11285         (add_upper_bounds_from_estimated_nit): Same.
11286         (build_loop_iteration_domains): Same.
11287         (create_linear_expr_from_tree): Same.
11288         (add_condition_to_domain): Same.
11289         (pdr_add_memory_accesses): Same.
11291 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
11292             Jason Merrill  <jason@redhat.com>
11294         * c-common.c (c_common_reswords): Add nullptr.
11295         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
11296         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
11297         (gen_type_die_with_usage): Likewise.
11298         * dbxout.c (dbxout_type): Likewise.
11299         * sdbout.c (plain_type_1): Likewise.
11301 2010-05-06  Jason Merrill  <jason@redhat.com>
11303         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
11304         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
11305         ret appropriately.
11306         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
11308         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
11309         stripping WITH_SIZE_EXPR.
11310         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
11311         change.
11313 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11315         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
11316         list of obsolete configurations.
11317         Disabled check for obsolete configurations.
11318         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
11319         Removed support for previous versions.
11320         * config/mips/iris.h: Removed.
11321         * config/mips/iris5.h: Removed.
11322         * config/mips/iris6.h: Merged old iris.h contents.
11323         (TARGET_IRIX): Removed.
11324         (DRIVER_SELF_SPECS): Removed mabi=32.
11325         (IDENT_ASM_OP): Removed undef.
11326         (STARTFILE_SPEC): Removed mabi=32.
11327         (ENDFILE_SPEC): Likewise.
11328         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
11329         (MACHINE_TYPE): Update for IRIX 6.5.
11330         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
11331         TARGET_IRIX by TARGET_IRIX6.
11332         (mips_file_start): Likewise.
11333         (mips_output_external): Remove IRIX 5/6 O32 support.
11334         (mips_output_function_prologue): Likewise.
11335         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
11336         TARGET_IRIX6.
11337         (TARGET_CPU_CPP_BUILTINS): Likewise.
11338         (TARGET_IRIX): Removed.
11339         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
11340         (MULTILIB_DIRNAMES): Removed 32.
11341         (MULTILIB_OSDIRNAMES): Removed ../lib.
11342         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
11343         (Specific, mips-sgi-irix5): Document removal.
11344         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
11345         Remove references to older IRIX 6 releases and the O32 ABI.
11347 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
11349         PR bootstrap/43994
11350         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
11351         instead of DF_REF_REAL_REG.
11353 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
11355         PR target/43888
11356         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
11357         handling to still return true for x64 targets.
11359 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
11361         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
11363 2010-05-06  Jan Hubicka  <jh@suse.cz>
11365         PR tree-optimization/43791
11366         * ipa-inline.c (update_caller_keys): Remove bogus
11367         disregard_inline_limits check.
11369 2010-05-06  Michael Matz  <matz@suse.de>
11371         PR tree-optimization/43984
11372         * tree-ssa-pre.c (inserted_phi_names): Remove.
11373         (inserted_exprs): Change to bitmap.
11374         (create_expression_by_pieces): Set bits, don't append to vector.
11375         (insert_into_preds_of_block): Don't handle inserted_phi_names.
11376         (eliminate): Don't look at inserted_phi_names, remove deleted
11377         insns from inserted_exprs.
11378         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
11379         (init_pre, fini_pre): Allocate and free bitmaps.
11380         (execute_pre): Insert insns on edges before elimination.
11382 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
11384         * tree.c (initializer_zerop): Handle STRING_CST.
11386 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11388         PR 40989
11389         * doc/invoke.texi (Wimplicit): Document as C only.
11390         * opts.c (common_handle_option): Add argument kind.
11391         (handle_option): Rename as read_cmdline_option. Factor out code to...
11392         (handle_option): ... here. New.
11393         (handle_options): Rename as read_cmdline_options.
11394         (decode_options): Update call.
11395         (set_option): Use option index instead of option pointer. Classify
11396         diagnostics correctly.
11397         (enable_warning_as_error): Call handle_option.
11398         * opts.h (set_option): Update declaration.
11399         (handle_option): Declare.
11400         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
11401         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
11402         * c-opts.c (set_Wimplicit): Delete.
11403         (c_family_lang_mask): New static constant.
11404         (c_common_handle_option): Add argument kind. Use handle_option
11405         instead of set_Wimplicit.
11406         (c_common_post_options): warn_implicit and warn_implicit_int
11407         are disabled by default.
11408         * c-common.c (warn_implicit): Do not define here.
11409         * c-common.h (warn_implicit): Do not declare here.
11410         (c_common_handle_option): Update declaration.
11411         * lto-opts.c (lto_reissue_options): Update call to set_option.
11413 2010-05-06  Richard Guenther  <rguenther@suse.de>
11415         PR tree-optimization/43571
11416         * domwalk.c (walk_dominator_tree): Walk the dominator
11417         sons in more optimal order.
11419 2010-05-06  Richard Guenther  <rguenther@suse.de>
11421         PR tree-optimization/43934
11422         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
11423         (stmt_cost): Likewise.
11424         (extract_true_false_args_from_phi): New helper.
11425         (determine_max_movement): For PHI nodes verify we can hoist them
11426         and compute their cost.
11427         (determine_invariantness_stmt): Handle PHI nodes.
11428         (move_computations_stmt): Likewise.  Hoist PHI nodes in
11429         if-converted form using COND_EXPRs.
11430         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
11431         (tree_ssa_lim): Likewise.
11432         * tree-flow.h (tree_ssa_lim): Adjust prototype.
11433         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
11435 2010-05-06  Richard Guenther  <rguenther@suse.de>
11437         PR tree-optimization/43987
11438         * tree-ssa-structalias.c (could_have_pointers): For possibly
11439         address-taken variables force pointers to be recorded.
11440         (create_variable_info_for_1): Likewise.
11441         (push_fields_onto_fieldstack): Pass in wheter all fields
11442         must have pointers.
11443         (find_func_aliases): Query types instead of vars whether
11444         they contain pointers where appropriate.
11446 2010-05-06  Jan Hubicka  <jh@suse.cz>
11448         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
11449         (record_reference, mark_address, mark_load, mark_store): Record
11450         references.
11451         (record_references_in_initializer): Update call of record_references.
11452         (rebuild_cgraph_edges): Remove all references before rebuiding.
11453         * cgraph.c (cgraph_create_node): Clear ref list.
11454         (cgraph_remove_node): Remove references.
11455         (dump_cgraph_node): Dump references.
11456         (cgraph_clone_node): Clone references.
11457         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
11458         (struct cgraph_node, varpool_node): Add ref_lst.
11459         * ipa-ref.c: New file.
11460         * ipa-ref.h: New file.
11461         * ipa-ref-inline.h: New file.
11462         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
11463         (referenced_from_other_partition_p): New function.
11464         (lto_output_varpool_node): Take set arugment; call
11465         referenced_from_other_partition.
11466         (lto_output_ref): New.
11467         (add_references): New.
11468         (output_refs): New.
11469         (output_cgraph): Compute boundary based on references; output refs.
11470         (output_varpool): Accept cgraph_node_set argument.
11471         (input_ref): New.
11472         (input_refs): New.
11473         (input_cgraph): Call input_refs.
11474         * lto-section-in.c (lto_section_name): Add refs.
11475         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
11476         (ipa-ref.o): New file.
11477         * varpool.c (varpool_node): Clear ipa ref list.
11478         (varpool_remove_node): Remove references.
11479         (dump_varpool_node): Dump references.
11480         (varpool_assemble_decl): Only compile finalized ones.
11481         (varpool_extra_name_alias): Initialize ref list.
11482         * lto-streamer.c (lto-get_section_name): Add .refs section.
11483         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
11484         (referenced_from_other_partition_p): Declared.
11486 2010-05-06  Ira Rosen  <irar@il.ibm.com>
11488         PR tree-optimization/43901
11489         * tree-vect-stmts.c (vectorizable_call): Assert that vector
11490         type is not NULL if it's transformation phase, and return
11491         FALSE if it's analysis.
11492         (vectorizable_conversion, vectorizable_operation,
11493         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
11495 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
11497         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11498         Delete.
11499         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11500         New define.
11501         * config/mips/mips-protos.h
11502         (mips_small_register_classes_for_mode_p): Delete prototype.
11504 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
11506         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
11507         * config/arm/arm.c (multiple_operation_profitable_p,
11508         compute_offset_order): New static functions.
11509         (load_multiple_sequence, store_multiple_sequence): Use them.
11510         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
11511         memory offsets, not register numbers.
11512         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
11514 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
11516         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
11517         (get_pending_sizes, put_pending_size, put_pending_sizes):
11518         Update the uses of pending_sizes.
11519         * c-decl.c (store_parm_decls): Likewise.
11520         * c-tree.h (struct c_arg_info): Likewise.
11521         * tree.h: Update the prototype for get_pending_sizes and
11522         put_pending_sizes.
11524 2010-05-05  Jason Merrill  <jason@redhat.com>
11526         PR debug/43370
11527         * c-common.c (handle_aligned_attribute): Respect
11528         ATTR_FLAG_TYPE_IN_PLACE.
11530         PR testsuite/43758
11531         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
11532         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11533         (TARGET_INITIALIZER): Use it.
11534         * c-common.c (attribute_takes_identifier_p): Call it.
11535         * c-common.h: Update prototype.
11536         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
11537         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11539 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
11541         PR debug/43950
11542         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
11543         DW_ID_down_case for Fortran compilation units.
11545 2010-05-05  Jan Hubicka  <jh@suse.cz>
11547         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
11548         handle aliases.
11550 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
11552         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
11553         a variable-sized RESULT_DECL.
11555 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
11557         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
11559 2010-05-05  Jason Merrill  <jason@redhat.com>
11561         PR c++/43787
11562         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
11563         returns GS_OK.
11564         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
11566 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
11567             Jakub Jelinek  <jakub@redhat.com>
11569         PR debug/43478
11570         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
11571         (dead_debug_init, dead_debug_finish): New functions.
11572         (dead_debug_add, dead_debug_insert_before): Likewise.
11573         (df_note_bb_compute): Initialize a dead_debug object, add dead
11574         debug uses to it, insert debug bind insns before death insns,
11575         reset debug insns that refer to pending uses at the end.
11576         * rtl.h (make_debug_expr_from_rtl): New prototype.
11577         * varasm.c (make_debug_expr_from_rtl): New function.
11579 2010-05-05  Jan Hubicka  <jh@suse.cz>
11581         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
11582         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
11583         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
11584         lto_varpool_encoder_deref, lto_varpool_encoder_size,
11585         lto_varpool_encoder_encode_initializer_p,
11586         lto_set_varpool_encoder_encode_initializer): New functions.
11587         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
11588         call output_varpool.
11589         (input_varpool_node): Do not always set analyzed.
11590         (input_cgraph_1): Return vector of cgraph nodes.
11591         (input_varpool_1): Return vector of varpools.
11592         (input_cgraph): Free the vectors.
11593         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11594         output only initializers needed.
11595         (lto_output): Only call output_cgraph.
11596         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
11597         * lto-section-out.c (lto_new_out_decl_state): Initialize
11598         state->varpool_node_encoder.
11599         * lto-streamer.h (lto_varpool_encoder_d): New.
11600         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
11601         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
11602         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
11603         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
11604         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
11605         Declare.
11606         (output_varpool, input_varpool): Remove declarations.
11608 2010-05-05  Jan Hubicka  <jh@suse.cz>
11610         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
11611         with body can prevail.
11613 2010-05-05  Jan Hubicka  <jh@suse.cz>
11615         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
11616         size.
11618 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11620         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
11622         * gengtype.h (erro_at_line): Constify pos argument.
11624         * gengtype.c: Include hashtab.h.
11625         (enum gc_used): Document GC_MAYBE_POINTED_TO.
11626         (error_at_line): Constify pos argument.
11627         (do_typedef): Initialize p->opt field.
11628         (get_file_gtfilename): Fix comment typo.
11629         (struct walk_type_data): Constify line field.
11630         (get_output_file_for_structure): New function.
11631         (write_local_func_for_structure): Constify orig_s argument.
11632         Use get_output_file_for_structure.
11633         (write_func_for_structure): Use get_output_file_for_structure.
11634         (INDENT): New define.
11635         (dump_pair, dump_type, dump_type_list, dump_typekind)
11636         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
11637         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
11638         functions.
11639         (seen_types): New variable.
11640         (main): New variable do_dump.  Process "-d" command line option.
11641         Call dump_everything if dump requested.
11643 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
11645         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
11646         in a temporary instead of invoking the macro multiple times.
11647         (track_expr_p): Likewise.
11649 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
11651         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
11652         per new semantics.
11653         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
11654         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
11655         conditions for printing notes.
11656         * common.opt (-Wcoverage-mismatch): Allow negative, default to
11657         true, update documentation.
11658         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
11660 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
11662         PR c/43981
11663         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
11664         on dimen.
11666 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
11668         PR target/43799
11669         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
11670         (*sse_prologue_save_insn1): Likewise.
11671         (SSE prologue save splitter): Likewise.
11673 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
11675         * tree.c (free_lang_data_in_one_sizepos): New inline function.
11676         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
11677         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
11678         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
11679         all decls.  Call it on DECL_FIELD_OFFSET of fields.
11680         (find_decls_types_r): Follow DECL_VALUE_EXPR.
11681         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
11683 2010-05-04  Martin Jambor  <mjambor@suse.cz>
11685         * tree-sra.c (build_access_from_expr_1): The first parameter type
11686         changed to simple tree.
11687         (build_access_from_expr): Likewise, gsi parameter was eliminated.
11688         (scan_assign_result): Renamed to assignment_mod_result, enum elements
11689         renamed as well.
11690         (build_accesses_from_assign): Removed all parameters except for a
11691         simple gimple statement.  Now returns a simple bool.
11692         (scan_function): All non-analysis parts moved to separate functions
11693         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
11694         parameters and updated both callers.
11695         (sra_modify_expr): Removed parameter data.
11696         (sra_modify_function_body): New function.
11697         (perform_intra_sra): Call sra_modify_function_body to modify the
11698         function body.
11699         (replace_removed_params_ssa_names): Parameter data changed into
11700         adjustments vector.
11701         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
11702         changed the parameter dont_convert to convert with the opposite
11703         meaning.
11704         (sra_ipa_modify_assign): Parameter data changed into adjustments
11705         vector, return value changed to bool.
11706         (ipa_sra_modify_function_body): New function.
11707         (sra_ipa_reset_debug_stmts): Updated a comment.
11708         (modify_function): Use ipa_sra_modify_function_body to modify function
11709         body.
11711 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
11713         PR middle-end/43671
11714         * alias.c (true_dependence): Handle the same VALUE in x and mem.
11715         (canon_true_dependence): Likewise.
11716         (write_dependence_p): Likewise.
11718 2010-05-04  Jan Hubicka  <jh@suse.cz>
11720         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
11721         * cgraphbuild.c: Include ipa-utils.h
11722         (record_reference_ctx): New struct.
11723         (record_reference): Simplify to work on initializers; not statements.
11724         (mark_address, mark_load, mark_store): New.
11725         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11726         walk PHI nodes too.
11727         (record_references_in_initializer): Update use of record_reference.
11728         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11729         walk PHI nodes too.
11731 2010-05-04  Jan Hubicka  <jh@suse.cz>
11733         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
11734         node will be removed anyway.
11735         (lto_varpool_replace_node): Allow also unanalyzed nodes;
11736         relink aliases of node into prevailing node.
11737         * varpool.c (varpool_remove_node): Remove aliases properly;
11738         when removing node, remove all its aliases too; remove DECL_INITIAL
11739         of removed node; ggc_free the varpool node.
11741 2010-05-04  Richard Guenther  <rguenther@suse.de>
11743         PR tree-optimization/43879
11744         * tree-ssa-structalias.c (alias_get_name): Use
11745         DECL_ASSEMBLER_NAME if available.
11746         (create_function_info_for): Return the varinfo node.
11747         (ipa_pta_execute): Associate same-body aliases and extra names
11748         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
11750 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11752         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
11754 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
11756         PR bootstrap/43964
11757         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
11758         only if HONOR_REG_ALLOC_ORDER is not defined.
11760 2010-05-04  Richard Guenther  <rguenther@suse.de>
11762         PR tree-optimization/43949
11763         * tree-vrp.c (extract_range_from_binary_expr): Only handle
11764         TRUNC_MOD_EXPR.
11766 2010-04-26  Jason Merrill  <jason@redhat.com>
11768         * c.opt (-fstrict-enums): New.
11769         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
11771 2010-05-03  David Ung  <davidu@mips.com>
11772             James E. Wilson  <wilson@codesourcery.com>
11774         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
11775         emit the trap instruction before the divide for TUNE_74K.
11777 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
11779         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
11780         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
11781         based on the above, for new target hook.
11783         * hooks.c (hook_bool_mode_true): New generic hook.
11784         * hooks.h (hook_bool_mode_true): Add prototype.
11786         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
11787         target hook.
11788         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
11789         target hook, set to hook_bool_mode_false.
11790         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
11791         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
11792         with targetm.small_register_classes_for_mode_p.
11793         (find_reusable_reload): Likewise.
11794         (combine_reloads): Likewise.
11795         * reload1.c (reload_as_needed): Likewise.
11796         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
11797         * ifcvt.c (noce_process_if_block, check_cond_move_block,
11798         dead_or_predicable): Likewise.
11799         * regmove.c (optimize_reg_copy_1): Likewise.
11800         * calls.c (prepare_call_address): Likewise.
11801         (precompute_register_parameters): Likewise.
11803         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
11804         hook definition.
11805         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
11806         implementation of the hook that considers all register classes
11807         small except for SH64.
11808         (sh_override_options): Use the new hook.
11809         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
11810         Add prototype.
11812         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
11813         hook definition.
11814         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
11815         implementation of the hook that considers all register classes
11816         small for THUMB1.
11817         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
11818         Add prototype.
11820         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
11821         hook definition.
11822         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
11823         implementation of the hook that considers all register classes
11824         small for MIPS16.
11825         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
11826         Add prototype.
11828         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
11829         hook definition.
11830         * config/m32c/m32c.h: Likewise.
11831         * config/pdp11/pdp11.h: Likewise.
11832         * config/avr/avr.h: Likewise.
11833         * config/xtensa/xtensa.h: Likewise.
11834         * config/m68hc11/m68hc11.h: Likewise.
11835         * config/mn10300/mn10300.h: Likewise.
11836         * config/mcore/mcore.h: Likewise.
11837         * config/h8300/h8300.h: Likewise.
11838         * config/bfin/bfin.h: Likewise.
11840         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
11841         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
11843 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
11845         * double-int.h (tree_to_double_int): Remove macro.
11846         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
11847         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11848         (tree_to_double_int): New function.
11849         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
11850         Move ...
11851         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11853 2010-05-03  Richard Guenther  <rguenther@suse.de>
11855         PR tree-optimization/43971
11856         * tree-ssa-structalias.c (get_constraint_for_1): Fix
11857         constraints in the !flag_delete_null_pointer_checks case.
11859 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
11861         PR debug/43972
11862         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
11863         result mode matches original rtl mode.
11865 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
11867         PR target/43888
11868         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
11870 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11872         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
11873         when processing flag options.
11875 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11877         * gcov-iov.c (main): Change format string placeholder
11878         from %#08x to 0x%08x.
11879         * genchecksum.c (dosum): Change format string placeholder
11880         from %#02x to 0x%02x.
11882 2010-05-02  Richard Guenther  <rguenther@suse.de>
11884         PR tree-optimization/43879
11885         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
11887 2010-05-02  Bruno Haible  <bruno@clisp.org>
11889         * doc/extend.texi (Function Attributes): Fix a typo.
11891 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11893         Revert:
11894         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
11895         placeholder from 0x%x to %#x.
11896         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11897         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11898         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11899         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11900         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11901         * config/i386/i386.c (ix86_target_string): Ditto.
11902         * config/i386/i386.c (output_pic_addr_const): Ditto.
11903         (print_operand): Ditto.
11905 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11907         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
11908         placeholder from 0x%x to %#x.
11909         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
11910         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
11911         (ASM_OUTPUT_DEBUG_DATA): Ditto.
11912         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
11913         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
11914         * optc-gen.awk: Ditto.
11915         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
11916         (HOST_WIDE_INT_PRINT_HEX): Ditto.
11917         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
11918         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11920 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
11922         * target.h (struct calls): Add function_value_regno_p field.
11923         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
11924         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
11925         * targhooks.c (default_function_value_regno_p): New function.
11926         * targhooks.h (default_function_value_regno_p): Declare function.
11927         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
11928         * builtins.c. (apply_result_size): (Ditto.).
11929         * combine.c. (likely_spilled_retval_p): (Ditto.).
11930         * mode-switching.c. Include 'target.h'.
11931         (create_pre_exit): Use function_value_regno_p hook.
11932         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
11933         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
11934         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
11936         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
11937         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
11938         (ix86_function_value_regno_p): Declare as static, change argument
11939         type to const unsigned int.
11940         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
11942 2010-05-01  Richard Guenther  <rguenther@suse.de>
11944         PR tree-optimization/43949
11945         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
11946         types.
11947         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
11949 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
11951         * rtl.h (CONST_DOUBLE_P): Define.
11952         (rtx_to_double_int): Declare.
11953         * emit-rtl.c (rtx_to_double_int): New function.
11954         * dwarf2out.c (insert_double): New function.
11955         (loc_descriptor, add_const_value_attribute): Clean up, use
11956         rtx_to_double_int and insert_double functions.
11958 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
11960         * doc/extend.texi (Inline): Add missing return keyword to examples.
11961         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
11962         "command-line".
11964 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
11966         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
11967         the variable part of the offset as well.  Use highest_pow2_factor for
11968         all alignment checks.
11970 2010-04-30  Richard Guenther  <rguenther@suse.de>
11972         PR tree-optimization/43879
11973         * tree-ssa-structalias.c (type_could_have_pointers): Functions
11974         can have pointers.
11976 2010-04-30  Jan Hubicka  <jh@suse.cz>
11978         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
11979         varpool.
11980         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
11982 2010-04-30  Jan Hubicka  <jh@suse.cz>
11984         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
11985         New.
11986         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
11987         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
11988         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
11989         cgraph_node_set_needs_ltrans_p): Remove.
11991 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
11993         * sdbout.c: Include vec.h, do not include varray.h.
11994         (deferred_global_decls, sdbout_global_decl,
11995         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
11996         * toplev.c: Do not include varray.h.
11997         (dump_memory_report): Do not dump VARRAY statistics.
11998         * gengtype.c (open_base_file): Ignore varray.h.
11999         * Makefile.in: Update for abovementioned changes.
12000         Remove all traces of varray.c and varray.h.
12001         * varray.c: Remove file.
12002         * varray.h: Remove file.
12004 2010-04-30  Jan Hubicka  <jh@suse.cz>
12006         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
12007         references.
12009 2010-04-30  Jan Hubicka  <jh@suse.cz>
12011         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
12012         needed.
12014 2010-04-30  Richard Guenther  <rguenther@suse.de>
12016         * tree-ssa-structalias.c (get_constraint_for_1): Generate
12017         constraints for CONSTRUCTOR.
12019 2010-04-30  Richard Guenther  <rguenther@suse.de>
12021         PR lto/43946
12022         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
12023         first after all lowering passes.
12025 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
12027         * toplev.c: Include varray.h for statistics dumping.
12028         * tree.h: Do not declare varray_head_tag.
12029         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
12030         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
12031         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
12032         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
12033         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
12034         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
12035         c-common.c, c-common.h, reg-stack.c, basic-block.h,
12036         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
12037         include varray.h.
12038         * Makefile.in: Update for abovementioned changes.
12040 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
12042         PR debug/43942
12043         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
12045 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
12047         * config/picochip/picochip.c (picochip_legitimize_address): Define.
12048         Use this function to do machine-specific conversion.
12049         (picochip_legitimize_reload_address): Likewise.
12050         (picochip_legitimate_address_p): Check valid base register only if
12051         strict.
12052         (picochip_check_conditional_copy): Check for modw only if opnd is
12053         register.
12054         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
12055         to call the function in c.
12056         * config/picochip/picochip-protos.h
12057         (picochip_legitimize_reload_address): Define.
12058         * config/picochip/picochip.md (supported_compare1): Define.
12060 2010-04-30  Jan Hubicka  <jh@suse.cz>
12062         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
12063         (cgraph_global_info): Remove inlined.
12064         (LTO_cgraph_tag_names): Remove.
12065         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
12066         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
12067         simplify cgraph tags and document.
12068         (lto_output_node): Use only LTO_cgraph_unavail_node and
12069         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
12070         for_functions_valid, global info, process and output flags.
12071         (input_overwrite_node): Initialize estimated stack size and
12072         estimated growth.  Do not read flags we no longer store.
12073         (input_node): Likewise do not read info no longer stored.
12074         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
12075         flag.
12077 2010-04-30  Richard Guenther  <rguenther@suse.de>
12079         PR tree-optimization/43879
12080         * tree-ssa-structalias.c (get_constraint_for_1): Properly
12081         handle non-zero initializers.
12083 2010-04-30  Richard Guenther  <rguenther@suse.de>
12085         * builtins.c (fold_builtin_1): Delete free (0).
12087 2010-04-29  Jan Hubicka  <jh@suse.cz>
12089         * gengtype.c (open_base_files): Add lto-streamer.h
12090         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
12091         (pass_ipa_cp): GGC collect.
12092         * toplev. (compile_file): Do not output symbols.
12093         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
12094         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
12095         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
12096         * lto-section-in.c: Include ggc.h
12097         (lto_new_in_decl_state): Alloc in GGC.
12098         (lto_delete_in_decl_state): Likewise.
12099         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
12100         Collect.
12102 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
12104         PR target/42895
12105         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
12106         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
12107         (HONOR_REG_ALLOC_ORDER): Describe new macro.
12108         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
12109         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
12110         account only if HONOR_REG_ALLOC_ORDER is not defined.
12111         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
12112         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
12114 2010-04-29  Jon Grant  <04@jguk.org>
12116         * collect2.c (vflag): Change type from int to bool.
12117         (debug): Likewise.
12118         (helpflag): New global bool.
12119         (main): Set vflag and debug with boolean, not integer truth values.
12120         Accept new "--help" option and output usage text if found.
12121         * collect2.h (vflag): Update prototype.
12122         (debug): Likewise.
12124 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
12126         PR bootstrap/43936
12127         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
12129 2010-04-29  Richard Guenther  <rguenther@suse.de>
12131         PR bootstrap/43935
12132         * plugin.h (invoke_plugin_callbacks): Annotate arguments
12133         with ATTRIBUTE_UNUSED.
12135 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
12137         PR target/43921
12138         * config/i386/i386.c (get_some_local_dynamic_name): Replace
12139         INSN_P with NONDEBUG_INSN_P.
12140         (distance_non_agu_define): Likewise.
12141         (distance_agu_use): Likewise.
12143 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
12145         From Dominique d'Humieres  <dominiq@lps.ens.fr>
12146         PR bootstrap/43858
12147         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
12148         test_set.
12150 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
12152         * plugin.h (invoke_plugin_callbacks): New inline function.
12153         * plugin.c (flag_plugin_added): New global flag.
12154         (add_new_plugin): Initialize above flag.
12155         (invoke_plugin_callbacks): Rename to ...
12156         (invoke_plugin_callbacks_full): ... this.
12158 2010-04-28  Jan Hubicka  <jh@suse.cz>
12160         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
12161         (lto_varpool_replace_node): New.
12162         (lto_symtab_resolve_symbols): Resolve varpool nodes.
12163         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
12164         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
12165         * cgraph.h (varpool_node_ptr): New type.
12166         (varpool_node_ptr): New vector.
12167         (varpool_node_set_def): New structure.
12168         (varpool_node_set): New type.
12169         (varpool_node_set): New vector.
12170         (varpool_node_set_element_def): New structure.
12171         (varpool_node_set_element, const_varpool_node_set_element): New types.
12172         (varpool_node_set_iterator): New type.
12173         (varpool_node): Add prev pointers, add used_from_other_partition,
12174         in_other_partition.
12175         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
12176         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
12177         varpool_get_node, varpool_remove_node): Declare.
12178         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
12179         varpool_node_set_size): New inlines.
12180         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
12181         * tree-pass.h (varpool_node_set_def): Forward declare.
12182         (ipa_opt_pass_d): Summary writting takes vnode sets too.
12183         (ipa_write_optimization_summaries): Update prototype.
12184         * ipa-cp.c (ipcp_write_summary): Update.
12185         * ipa-reference.c (ipa_reference_write_summary): Update.
12186         * lto-cgraph.c (lto_output_varpool_node): New static function.
12187         (output_varpool): New function.
12188         (input_varpool_node): New static function.
12189         (input_varpool_1): New function.
12190         (input_cgraph): Input varpool.
12191         * ipa-pure-const.c (pure_const_write_summary): Update.
12192         * lto-streamer-out.c (lto_output): Update, output varpool too.
12193         (write_global_stream): Kill WPA hack.
12194         (produce_asm_for_decls): Update.
12195         (output_alias_pair_p): Handle variables.
12196         (output_unreferenced_globals): Output only needed partition of varpool.
12197         * ipa-inline.c (inline_write_summary): Update.
12198         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
12199         cgraph.
12200         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
12201         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
12202         varpool_node_set_new, varpool_node_set_add,
12203         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
12204         debug_varpool_node_set): New functions.
12205         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
12206         (execute_one_pass): Process new decls too.
12207         (ipa_write_summaries_2): Pass around vsets.
12208         (ipa_write_summaries_1): Likewise.
12209         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
12210         to add.
12211         (ipa_write_optimization_summaries_1): Pass around vsets.
12212         (ipa_write_optimization_summaries): Likewise.
12213         * varpool.c (varpool_get_node): New.
12214         (varpool_node): Update doubly linked lists.
12215         (varpool_remove_node): New.
12216         (dump_varpool_node): More dumping.
12217         (varpool_enqueue_needed_node): Update doubly linked lists.
12218         (decide_is_variable_needed): Kill ltrans hack.
12219         (varpool_finalize_decl): Kill lto hack.
12220         (varpool_assemble_decl): Skip decls in other partitions.
12221         (varpool_assemble_pending_decls): Update doubly linkes lists.
12222         (varpool_empty_needed_queue): Likewise.
12223         (varpool_extra_name_alias): Likewise.
12224         * lto-streamer.c (lto_get_section_name): Add vars section.
12225         * lto-streamer.h (lto_section_type): Update.
12226         (output_varpool, input_varpool): Declare.
12228 2010-04-28  Mike Stump  <mikestump@comcast.net>
12230         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
12232 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
12234         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
12235         record or union type with RECORD_OR_UNION_TYPE_P predicate.
12236         (lto_input_ts_type_tree_pointers): Likewise.
12237         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
12238         (lto_output_ts_type_tree_pointers): Likewise.
12240 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
12242         Uniquization of constants at the Tree level
12243         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
12244         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
12245         bit to the end.
12246         (tree_output_constant_def): Declare.
12247         * gimplify.c (gimplify_init_constructor): When using block copy, first
12248         uniquize the constant constructor on the RHS.
12249         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
12250         DECL_IN_CONSTANT_POOL flag.
12251         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
12252         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
12253         constant pool.
12254         (assemble_variable): Deal with symbols belonging to the tree constant
12255         pool.
12256         (get_constant_section): Add ALIGN parameter and simplify.
12257         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
12258         (assemble_constant_contents): Use the expression of the VAR_DECL.
12259         (output_constant_def_contents): Use the alignment of the VAR_DECL.
12260         (tree_output_constant_def): New global function.
12261         (mark_constant): Use the expression of the VAR_DECL.
12262         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
12263         its expression.
12264         (output_object_block): Likewise and assemble the expression.
12266 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
12268         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
12269         hash_tree, eq_tree): New tree hash table.
12270         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
12271         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
12272         lto_orig_address_remove): Reimplement.
12274 2010-04-28  Xinliang David Li  <davidxl@google.com>
12276         PR c/42643
12277         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
12278         (compute_uninit_opnds_pos): New function.
12279         (is_non_loop_exit_postdominating): New function.
12280         (compute_control_dep_chain): New function.
12281         (find_pdom): New function.
12282         (convert_control_dep_chain_into_preds): New function.
12283         (find_predicates): New function.
12284         (find_control_equiv_block): New function.
12285         (collect_phi_def_edges): New function.
12286         (find_def_preds): New function.
12287         (find_dom): New function.
12288         (dump_predicates): New function.
12289         (get_cmp_code): New function.
12290         (is_value_included_in): New function.
12291         (find_matching_predicate_in_rest_chains): New function.
12292         (use_pred_not_overlap_with_undef_path_pred): New function.
12293         (is_use_properly_guarded): New function.
12294         (normalize_cond_1): New function.
12295         (is_and_or_or): New function.
12296         (normalize_cond): New function.
12297         (is_gcond_subset_of): New function.
12298         (is_subset_of_any): New function.
12299         (is_or_set_subset_of): New function.
12300         (is_and_set_subset_of): New function.
12301         (is_norm_cond_subset_of): New function.
12302         (is_pred_expr_subset_of): New function.
12303         (is_pred_chain_subset_of): New function.
12304         (is_included_in): New function.
12305         (is_superset_of): New function.
12306         (find_uninit_use): New function.
12307         (warn_uninitialized_phi): New function.
12308         (compute_possibly_undefined_names): New function.
12309         (ssa_undefined_value_p): New function.
12310         (execute_late_warn_uninitialized): New function.
12311         * tree-ssa.c (ssa_undefined_value_p): Removed.
12312         (warn_uninit): Changed to extern.
12313         (warn_uninitialized_phi): Removed.
12314         (warn_uninitialized_vars): Changed to extern.
12315         (execute_late_warn_uninitialized): Removed
12316         * tree-flow.h: Add new prototypes.
12317         * timevar.def: Add new time variable.
12318         * Makefile.in: Add new build file.
12320 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
12322         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
12323         type if available.
12325 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12327         PR target/22224
12328         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
12330 2010-04-28  Martin Jambor  <mjambor@suse.cz>
12332         * cgraph.h (struct cgraph_node): New field indirect_calls.
12333         (struct cgraph_indirect_call_info): New type.
12334         (struct cgraph_edge): Removed field indirect_call. New fields
12335         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
12336         (cgraph_create_indirect_edge): Declare.
12337         (cgraph_make_edge_direct): Likewise.
12338         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
12339         * ipa-prop.h (struct ipa_param_call_note): Removed.
12340         (struct ipa_node_params): Removed field param_calls.
12341         (ipa_create_all_structures_for_iinln): Declare.
12342         * cgraph.c: Described indirect edges and uids in initial comment.
12343         (cgraph_add_edge_to_call_site_hash): New function.
12344         (cgraph_edge): Search also among the indirect edges, use
12345         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
12346         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
12347         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
12348         site hash.
12349         (initialize_inline_failed): Assign a reason to indirect edges.
12350         (cgraph_create_edge_1): New function.
12351         (cgraph_create_edge): Moved some functionality to
12352         cgraph_create_edge_1.
12353         (cgraph_create_indirect_edge): New function.
12354         (cgraph_edge_remove_callee): Add an assert checking for
12355         non-indirectness.
12356         (cgraph_edge_remove_caller): Special-case indirect edges.
12357         (cgraph_remove_edge): Likewise.
12358         (cgraph_set_edge_callee): New function.
12359         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
12360         (cgraph_make_edge_direct): New function.
12361         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
12362         the declaration of the call statement matches.
12363         (cgraph_node_remove_callees): Special-case indirect edges.
12364         (cgraph_clone_edge): Likewise.
12365         (cgraph_clone_node): Clone also the indirect edges.
12366         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
12367         indirect_call, dump count of indirect_calls edges.
12368         * ipa-prop.c (iinlining_processed_edges): New variable.
12369         (ipa_note_param_call): Create indirect edges instead of
12370         creating notes.  New parameter node.
12371         (ipa_analyze_call_uses): New parameter node, pass it on to
12372         ipa_note_param_call.
12373         (ipa_analyze_stmt_uses): Likewise.
12374         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
12375         (print_edge_addition_message): Work on edges rather than on notes.
12376         (update_call_notes_after_inlining): Likewise, renamed to
12377         update_indirect_edges_after_inlining.
12378         (ipa_create_all_structures_for_iinln): New function.
12379         (ipa_free_node_params_substructures): Do not free notes.
12380         (ipa_edge_duplication_hook): Propagate bits within
12381         iinlining_processed_edges bitmap.
12382         (ipa_node_duplication_hook): Do not duplicate notes.
12383         (free_all_ipa_structures_after_ipa_cp): Renamed to
12384         ipa_free_all_structures_after_ipa_cp.
12385         (free_all_ipa_structures_after_iinln): Renamed to
12386         ipa_free_all_structures_after_iinln.
12387         (ipa_write_param_call_note): Removed.
12388         (ipa_read_param_call_note): Removed.
12389         (ipa_write_indirect_edge_info): New function.
12390         (ipa_read_indirect_edge_info): Likewise.
12391         (ipa_write_node_info): Do not stream notes, do stream information
12392         in indirect edges.
12393         (ipa_read_node_info): Likewise.
12394         (lto_ipa_fixup_call_notes): Removed.
12395         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
12396         * ipa-inline.c (pass_ipa_inline): Likewise.
12397         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
12398         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
12399         * tree-inline.c (copy_bb): Removed an unnecessary double check for
12400         is_gimple_call.
12401         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
12402         edges.
12403         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
12404         (output_cgraph): Stream also indirect edges.
12405         (lto_output_edge): Added capability to stream indirect edges.
12406         (input_edge): Likewise.
12407         (input_cgraph_1): Likewise.
12408         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
12409         of indirect edges.
12411 2010-04-28  Richard Guenther  <rguenther@suse.de>
12413         PR tree-optimization/43879
12414         PR tree-optimization/43909
12415         * tree-ssa-structalias.c (struct variable_info): Add
12416         only_restrict_pointers flag.
12417         (new_var_info): Initialize it.  Increment stats.total_vars here.
12418         (create_function_info_for): Do not increment stats.total_vars here.
12419         (get_function_part_constraint): Fix build with C++.
12420         (insert_into_field_list): Remove.
12421         (push_fields_onto_fieldstack): Properly merge fields.
12422         (create_variable_info_for): Split and simplify.
12423         (create_variable_info_for_1): New piece.
12424         (intra_create_variable_infos): Properly make restrict constraints
12425         from parameters.
12427 2010-04-28  Richard Guenther  <rguenther@suse.de>
12429         PR c++/43880
12430         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
12432 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12433             Jan Hubicka  <hubicka@ucw.cz>
12435         * doc/invoke.texi (-Wsuggest-attribute=const,
12436         -Wsuggest-attribute=pure): Document.
12437         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
12438         (function_always_visible_to_compiler_p,
12439         suggest_attribute, warn_function_pure, warn_function_const):
12440         New functions.
12441         (check_call): Improve debug info.
12442         (analyze_function): Do not check availability.
12443         (add_new_function): Check availability.
12444         (propagate): Output warnings.
12445         (skip_function_for_local_pure_const): New function.
12446         (local_pure_const): Use it; output warnings.
12447         * common.opt (Wsuggest-attribute=const,
12448         Wsuggest-attribute=pure): New.
12450 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
12452         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
12453         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
12454         or DW_CFA_def_cfa_offset{,_sf}.
12456 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
12458         * tree.h: Fix truncated long macros.
12460 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
12462         * collect2.c (TARGET_64BIT): Redefine to target's default.
12463         * tlink.c: Likewise.
12464         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
12465         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
12466         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
12467         for underscoring __USER_LABEL_PREFIX__.
12468         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
12469         (SUB_LINK_ENTRY32): New.
12470         (SUB_LINK_ENTRY64): New.
12471         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
12472         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
12473         (SUB_LINK_ENTRY64): New.
12474         (SUB_LINK_ENTRY): New.
12475         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
12476         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
12477         x64 target is choosen.
12478         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
12479         * configure: Regenerated.
12480         * configure.ac (leading-mingw64-underscores): Option added.
12482 2010-04-27  Jan Hubicka  <jh@suse.cz>
12484         * doc/invoke.texi (-fipa-profile): Document.
12485         * opts.c (decode_options): Enable ipa-profile at -O1.
12486         * timevar.def (TV_IPA_PROFILE): Define.
12487         * common.opt (fipa-profile): Add.
12488         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
12489         flag for clones.
12490         (cgraph_propagate_frequency): Handle only local ones.
12491         * tree-pass.h (pass_ipa_profile): Declare.
12492         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
12493         (pass_ipa_profile): Use TV_IPA_PROFILE.
12494         * ipa.c (ipa_profile): New function.
12495         (gate_ipa_profile): Likewise.
12496         (pass_ipa_profile): New global variable.
12497         * passes.c (pass_ipa_profile): New.
12499 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
12501         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
12503 2010-04-27  Martin Jambor  <mjambor@suse.cz>
12505         PR middle-end/43812
12506         * ipa.c (dissolve_same_comdat_group_list): New function.
12507         (function_and_variable_visibility): Call
12508         dissolve_same_comdat_group_list when comdat group contains external or
12509         newly local nodes.
12510         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
12511         lists are circular and that they contain only DECL_ONE_ONLY nodes.
12513 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
12515         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
12516         (const_hash_1) <VECTOR_CST>: New case.
12517         (compare_constant) <VECTOR_CST>: Likewise.
12518         <ADDR_EXPR>: Deal with LABEL_REFs.
12519         (copy_constant) <VECTOR_CST>: New case.
12521 2010-04-27  Jan Hubicka  <jh@suse.cz>
12523         * cgraph.c (cgraph_propagate_frequency): New function.
12524         * cgraph.h (cgraph_propagate_frequency): Declare.
12525         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
12526         cgraph_propagate_frequency.
12528 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
12530         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
12532 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
12534         PR target/40657
12535         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
12536         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
12537         here to determine which regs to push and how much stack to reserve.
12539 2010-04-27  Jie Zhang  <jie@codesourcery.com>
12541         * doc/gimple.texi (gimple_statement_with_ops): Remove
12542         addresses_taken field.
12543         (gimple_statement_with_memory_ops): Likewise.
12545 2010-04-27  Jan Hubicka  <jh@suse.cz>
12547         * tree-inline.c (eni_inlining_weights): Remove.
12548         (estimate_num_insns): Special case more builtins.
12550 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
12552         PR c/32207
12553         * c-typeck.c (build_binary_op): Move forward check for comparison
12554         pointer with null pointer constant and adjust the diagnostic message.
12556 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
12558         PR lto/42776
12559         * configure.ac (gcc_cv_as_section_has_align): Set if installed
12560         binutils supports extended .section directive needed by LTO, or
12561         warn if older binutils found.
12562         (LTO_BINARY_READER): New AC_SUBST'd variable.
12563         (LTO_USE_LIBELF): Likewise.
12564         * gcc/config.gcc (lto_binary_reader): New target-specific configure
12565         variable.
12566         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
12567         (LTO_USE_LIBELF): Likewise.
12568         * configure: Regenerate.
12570         * collect2.c (is_elf): Rename from this ...
12571         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
12572          object files in addition to ELF-formatted ones.
12573         (scan_prog_file): Caller updated.  Also allow for LTO info marker
12574         symbol to be prefixed or not by an extra underscore.
12576         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
12577         * config/i386/winnt.c: Also #include lto-streamer.h
12578         (i386_pe_asm_named_section): Specify 1-byte section alignment for
12579         LTO named sections.
12580         (i386_pe_asm_output_aligned_decl_common): Add comment.
12581         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
12583 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
12585         PR target/43889
12586         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
12587         Add missing earlyclobber for second alternative.
12589 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
12591         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
12592         bits for artificial defs at the top of the block.
12593         * fwprop.c (single_def_use_enter_block): Don't call it.
12595 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
12597         PR 43715
12598         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
12599         instead of "$gcc_cv_objdump -T".
12600         Use "-undefined dynamic_lookup" on darwin.
12601         * gcc/configure: Regenerate.
12603 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
12605         PR c/43893
12606         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
12608 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
12610         * c-parser.c (struct c_token): Move location field up.
12611         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
12612         (struct c_declspecs): Convert typespec_word, storage_class, and
12613         default_int_p into bitfields.
12614         (struct c_declarator): Move loc field up.
12616 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
12618         * cfgloop.h (struct loop): Move can_be_parallel field up.
12619         * ipa-prop.h (struct ip_node_params): Move bitfields up.
12620         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
12621         down.
12622         (struct iv_cand): Convert pos field into a bitfield.
12623         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
12624         field up.
12625         (struct _stmt_vec_info): Shuffle fields for better packing.
12627 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
12629         * varasm.c (IN_NAMED_SECTION): Remove guard.
12630         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
12631         (IN_NAMED_SECTION_P): ...this.
12632         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
12633         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
12635 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
12637         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
12638         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
12639         of shadowing it.  Fix comments.
12641 2010-04-26  Jan Hubicka  <jh@suse.cz>
12643         * cgraph.c (cgraph_create_node): Set node frequency to normal.
12644         (cgraph_clone_node): Copy function frequency.
12645         * cgraph.h (node_frequency): New enum
12646         (struct cgraph_node): Add.
12647         * final.c (rest_of_clean_state): Update.
12648         * lto-cgraph.c (lto_output_node): Output node frequency.
12649         (input_overwrite_node): Input node frequency.
12650         * tre-ssa-loop-ivopts (computation_cost): Update.
12651         * lto-streamer-out.c (output_function): Do not output function
12652         frequency.
12653         * predict.c (maybe_hot_frequency_p): Update and handle functions
12654         executed once.
12655         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
12656         attribute lookup.
12657         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
12658         (compute_function_frequency): Set noreturn functions to be executed
12659         once.
12660         (choose_function_section): Update.
12661         * lto-streamer-in.c (input_function): Do not input function frequency.
12662         * function.c (allocate_struct_function): Do not initialize function
12663         frequency.
12664         * function.h (function_frequency): Remove.
12665         (struct function): Remove function frequency.
12666         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
12667         (try_update): Update.
12668         * tree-inline.c (initialize_cfun): Do not update function frequency.
12669         * passes.c (pass_init_dump_file): Update.
12670         * i386.c (ix86_compute_frame_layout): Update.
12671         (ix86_pad_returns): Update.
12673 2010-04-26  Jie Zhang  <jie@codesourcery.com>
12675         PR tree-optimization/43833
12676         * tree-vrp.c (range_int_cst_p): New.
12677         (range_int_cst_singleton_p): New.
12678         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
12679         when both operands are constants.  Use range_int_cst_p in
12680         BIT_IOR_EXPR case.
12682 2010-04-26  Jan Hubicka  <jh@suse.cz>
12684         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
12686 2010-04-26  Richard Guenther  <rguenther@suse.de>
12688         PR lto/43080
12689         * gimple.c (gimple_decl_printable_name): Deal gracefully
12690         with a NULL DECL_NAME.
12692 2010-04-26  Richard Guenther  <rguenther@suse.de>
12694         PR lto/42425
12695         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
12696         if emitting debug information and it is either a function
12697         or a namespace decl.
12699 2010-04-26  Ira Rosen  <irar@il.ibm.com>
12701         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
12702         determine if the statement is vectorizable, and a macro to access it.
12703         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12704         Skip statements that can't be vectorized. If the analysis fails,
12705         mark the statement as unvectorizable if vectorizing basic block.
12706         (vect_compute_data_refs_alignment): Likewise.
12707         (vect_verify_datarefs_alignment): Skip statements marked as
12708         unvectorizable. Add print.
12709         (vect_analyze_group_access): Skip statements that can't be
12710         vectorized. If the analysis fails, mark the statement as
12711         unvectorizable if vectorizing basic block.
12712         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
12713         * tree-vect-stmts.c (vectorizable_store): Fix the number of
12714         generated stmts for SLP.
12715         (new_stmt_vec_info): Initialize the new field.
12716         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
12717         statements marked as unvectorizable.
12719 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
12721         * c-common.c (flag_isoc1x): New.
12722         (flag_isoc99): Update comment.
12723         * c-common.h (flag_isoc1x): New.
12724         (flag_isoc99): Update comment.
12725         * c-cppbuiltin.c (builtin_define_float_constants): Also define
12726         __<type>_DECIMAL_DIG__.
12727         * c-opts.c (set_std_c1x): New.
12728         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
12729         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
12730         * c.opt (-std=c1x, -std=gnu1x): New options.
12731         * doc/cpp.texi: Mention -std=c1x.
12732         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
12733         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
12734         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
12735         * doc/standards.texi: Mention C1X.
12736         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
12737         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
12738         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
12739         Define for C1X.
12741 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
12743         * config/i386/gmon-sol2.c (_mcleanup): Change format string
12744         placeholder from 0x%x to %#x.
12745         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12746         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12747         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12748         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12749         * config/i386/i386.c (ix86_target_string): Ditto.
12750         (output_pic_addr_const): Ditto.
12751         (print_operand): Ditto.
12753 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
12755         * combine.c (find_split_point): Add third argument.  Use it
12756         to find nested multiply-accumulate instructions.  Adjust calls.
12757         (try_combine): Adjust call to find_split_point.
12759 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
12761         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
12763 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
12765         PR tree-optimization/41442
12766         * fold-const.c (merge_truthop_with_opposite_arm): New function.
12767         (fold_binary_loc): Call it.
12769 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12771         * toplev.c (general_init): Set default for fdiagnostics-show-option.
12772         * opts.c (common_handle_option): Allow disabling it.
12773         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
12775 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
12777         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
12778         between modes if both types are integral.
12780 2010-04-23  Richard Guenther  <rguenther@suse.de>
12782         PR tree-optimization/43572
12783         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
12785 2010-04-23  Richard Guenther  <rguenther@suse.de>
12787         PR lto/43455
12788         * tree-inline.c (tree_can_inline_p): Also check compatibility
12789         of return types.
12791 2010-04-23  Martin Jambor  <mjambor@suse.cz>
12793         PR tree-optimization/43846
12794         * tree-sra.c (struct access): New flag grp_assignment_read.
12795         (build_accesses_from_assign): Set grp_assignment_read.
12796         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
12797         (enum mark_read_status): New type.
12798         (analyze_access_subtree): Propagate grp_assignment_read, create
12799         accesses also if both direct_read and root->grp_assignment_read.
12801 2010-04-23  Martin Jambor  <mjambor@suse.cz>
12803         PR middle-end/43835
12804         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
12805         function does not have type attributes.
12807 2010-04-23  Richard Guenther  <rguenther@suse.de>
12809         PR lto/42653
12810         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
12811         of FUNCTION_DECLs.
12813 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12815         * sese.h (create_if_region_on_edge): Remove.
12817         * sese.c (create_if_region_on_edge): Make static.
12819         * tree-inline.c: Do not include ggc.h.
12821         * expr.c: Do not include ggc.h.
12823         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
12824         dependencies.
12826 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12828         PR target/43744
12829         * config/sh/sh.c (find_barrier): Don't emit a constant pool
12830         in the middle of insns for casesi_worker_2.
12832 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
12834         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
12836 2010-04-22  Ira Rosen  <irar@il.ibm.com>
12838         PR tree-optimization/43842
12839         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
12840         loop unrolling in update of exit phis. Fix comment.
12841         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
12842         least two reduction statements in the loop before starting SLP
12843         analysis.
12845 2010-04-22  Nick Clifton  <nickc@redhat.com>
12847         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
12849 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
12851         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
12852         to simplify a + ~a.
12854 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12856         * tree-parloops.c (loop_parallel_p): New argument
12857         parloop_obstack.  Pass it down.
12858         (parallelize_loops): New variable parloop_obstack.  Initialize it,
12859         pass it down, free it.
12861         * tree-loop-linear.c (linear_transform_loops): Pass down
12862         lambda_obstack.
12864         * tree-data-ref.h (lambda_compute_access_matrices): New argument
12865         of type struct obstack *.
12867         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
12868         scratch_obstack.  Initialize it, pass down, free it.
12870         * lambda.h (lambda_loop_new): Remove.
12871         (lambda_matrix_new, lambda_matrix_inverse)
12872         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
12873         argument of type struct obstack *.
12875         * lambda-trans.c (lambda_trans_matrix_new): New argument
12876         lambda_obstack.  Pass it down, use obstack allocation for ret.
12877         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
12878         it down.
12880         * lambda-mat.c (lambda_matrix_get_column)
12881         (lambda_matrix_project_to_null): Remove.
12882         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
12883         allocation for mat.
12884         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
12885         lambda_obstack.
12887         * lambda-code.c (lambda_loop_new): New function.
12888         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
12889         (lambda_compute_auxillary_space, lambda_compute_target_space)
12890         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
12891         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
12892         (build_access_matrix): New argument lambda_obstack.  Use obstack
12893         allocation for am.
12894         (lambda_compute_step_signs, lambda_compute_access_matrices): New
12895         argument lambda_obstack.  Pass it down.
12897 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
12899         * optabs.h (expand_widening_mult): Declare.
12901 2010-04-22  Richard Guenther  <rguenther@suse.de>
12903         PR tree-optimization/43845
12904         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
12905         lookup the CALL_EXPR function and arguments.
12907 2010-04-22  Nick Clifton  <nickc@redhat.com>
12909         * config/stormy16/stormy16.c
12910         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
12911         * config/stormy16/stormy16.h: Tidy up formatting.
12912         (DONT_USE_BUILTIN_SETJMP): Remove definition.
12913         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
12914         (ineqbranchsi): Delete pattern.
12915         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
12916         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
12917         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
12918         stormy16-lib2-ucmpsi2.c.
12920 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
12922         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
12923         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
12924         extra set merge_set_noclobber, and use it to relax the final test
12925         slightly.
12926         * df.h (df_simulate_find_noclobber_defs): Declare.
12927         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
12928         conditional defs.
12929         (df_simulate_find_noclobber_defs): New function.
12931 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
12933         * config/i386/i386.md: Use {} around multi-line preparation statements.
12935 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12937         * c-tree.h (push_init_level, pop_init_level, set_init_index)
12938         (process_init_element): New argument of type struct obstack *.
12940         * c-typeck.c (push_init_level, pop_init_level, set_designator)
12941         (set_init_index, set_init_label, set_nonincremental_init)
12942         (set_nonincremental_init_from_string, find_init_member)
12943         (output_init_element, output_pending_init_elements)
12944         (process_init_element): New argument braced_init_obstack.  Pass it
12945         down.
12946         (push_range_stack, add_pending_init): New argument
12947         braced_init_obstack.  Use obstack allocation.
12949         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
12950         braced_init_obstack.  Pass it down.
12951         (c_parser_braced_init): New variables ret, braced_init_obstack.
12952         Initialize obstack, pass it down and finally free it.
12954 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
12956         PR middle-end/29274
12957         * tree-pass.h (pass_optimize_widening_mul): Declare.
12958         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
12959         gate_optimize_widening_mul): New static functions.
12960         (pass_optimize_widening_mul): New.
12961         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
12962         <case MULT_EXPR>: Remove support for widening multiplies.
12963         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
12964         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
12965         simplify_gen_unary rather than directly building extensions.
12966         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
12967         WIDEN_MULT_EXPR.
12968         * expmed.c (expand_widening_mult): New function.
12969         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
12971 2010-04-21  Jan Hubicka  <jh@suse.cz>
12973         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
12974         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
12975         * lto-wpa-fixup.c: Remove.
12976         * Makefile.in (lto-wpa-fixup.o): Remove.
12977         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
12978         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
12979         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
12981 2010-04-21  Jan Hubicka  <jh@suse.cz>
12983         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
12984         add write_optimization_summary, read_optimization_summary.
12985         (ipa_write_summaries_of_cgraph_node_set): Remove.
12986         (ipa_write_optimization_summaries): Declare.
12987         (ipa_read_optimization_summaries): Declare.
12988         * ipa-cp.c (pass_ipa_cp): Update.
12989         * ipa-reference.c (pass_ipa_reference): Update.
12990         * ipa-pure-const.c (pass_ipa_pure_const): Update.
12991         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
12992         Update.
12993         * ipa-inline.c (pass_ipa_inline): Update.
12994         * ipa.c (pass_ipa_whole_program): Update.
12995         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
12996         * passes.c (ipa_write_summaries_1): Do not test wpa.
12997         (ipa_write_optimization_summaries_1): New.
12998         (ipa_write_optimization_summaries): New.
12999         (ipa_read_summaries): Do not test ltrans.
13000         (ipa_read_optimization_summaries_1): New.
13001         (ipa_read_optimization_summaries): New.
13003 2010-04-21  Jan Hubicka  <jh@suse.cz>
13005         * lto-cgraph.c (lto_output_node): Do not output comdat groups
13006         for boundary nodes.
13007         (output_cgraph): Do not arrange comdat groups for boundary nodes.
13009 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
13011         PR debug/40040
13012         * dwarf2out.c (add_name_and_src_coords_attributes): Add
13013         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
13015 2010-04-21  Jan Hubicka  <jh@suse.cz>
13017         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
13019 2010-04-21  Jan Hubicka  <jh@suse.cz>
13021         * varpool.c (decide_is_variable_needed): Variable is always needed
13022         during ltrans.
13024 2010-04-21  Jan Hubicka  <jh@suse.cz>
13026         * opts.c (decode_options): Enable pure-const pass for whopr.
13028 2010-04-21  Jan Hubicka  <jh@suse.cz>
13030         * cgraph.c (dump_cgraph_node): Dump also assembler name.
13031         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
13032         at WPA dumping.
13033         (cgraph_decide_inlining): Do not expect callee to be removed in all
13034         cases.
13036 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
13038         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
13040 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
13042         * config/i386/i386.md (x86_shrd): Add athlon_decode and
13043         amdfam10_decode attributes.
13045 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
13047         PR middle-end/43570
13048         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
13049         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
13050         (lower_copyprivate_clauses): Use private var in outer
13051         context instead of original var.  Make sure the types
13052         are correct for VLAs.
13054 2010-04-21  Richard Guenther  <rguenther@suse.de>
13056         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
13057         to non-pointer objects.
13059 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
13061         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
13062         last chain entry if it starts with the still current label.
13063         (add_location_or_const_value_attribute): Check that
13064         loc_list->first->next is NULL instead of comparing ->first with ->last.
13065         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
13066         to add_var_loc_to_decl.
13068         * dwarf2out.c (output_call_frame_info): For dw_cie_version
13069         >= 4 add also address size and segment size fields into CIE header.
13071         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
13072         long as address size is the same as sizeof (void *) and
13073         segment size is 0.
13074         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
13075         address size or segment size is unexpected, return DW_EH_PE_omit.
13076         (classify_object_over_fdes): If get_cie_encoding returned
13077         DW_EH_PE_omit, return -1.
13078         (init_object): If classify_object_over_fdes returned -1,
13079         pretend there were no FDEs at all.
13081 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
13083         * config/i386/i386.md (bswap<mode>2): Macroize expander from
13084         bswap{si,di}2 using SWI48 mode iterator.
13085         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
13086         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
13087         set modrm attribute of bswap insn to 0 and remove length attribute.
13088         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
13089         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
13090         set mode attribute to <MODE> and remove length attribute.
13092 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
13094         PR rtl-optimization/43520
13095         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
13096         zero available registers.
13098 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13100         * builtins.c (fold_builtin_cproj): Fold more cases.
13102 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13104         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
13105         (fold_builtin_1): Fold builtin cproj.
13106         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
13107         Use ATTR_CONST_NOTHROW_LIST.
13109 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
13111         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
13112         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
13113         ffsi2_no_cmove for !TARGET_CMOVE.
13114         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
13115         (ffssi2): Remove expander.
13116         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
13117         mode iterator.
13118         (ctz<mode>2): Ditto from ctz{si,di}2.
13119         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
13120         mode iterator.
13121         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
13122         mode iterator.
13124 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
13126         * dwarf2out.c (AT_linkage_name): Define.
13127         (clone_as_declaration): Handle DW_AT_linkage_name.
13128         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
13129         of DW_AT_MIPS_linkage_name.
13130         (move_linkage_attr): Likewise.
13131         (dwarf2out_finish): Likewise.
13133 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
13135         PR middle-end/41952
13136         * fold-const.c (fold_comparison): New folding rule.
13138 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
13140         * double-int.h (double_int_setbit): Declare.
13141         * double-int.c (double_int_setbit): New function.
13142         * rtl.h (immed_double_int_const): Declare.
13143         * emit-rtl.c (immed_double_int_const): New function.
13144         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
13145         and immed_double_int_const functions.
13146         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
13147         expand_copysign_bit):  (Ditto.).
13148         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
13149         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
13150         * dojump.c (prefer_and_bit_test): (Ditto.).
13151         * expr.c (convert_modes, reduce_to_bit_field_precision,
13152         const_vector_from_tree): (Ditto.).
13153         * expmed.c (mask_rtx, lshift_value): (Ditto.).
13155 2010-04-20  Jan Hubicka  <jh@suse.cz>
13157         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
13158         (dump_cgraph_node): Dump new flags.
13159         * cgraph.h (struct cgraph_node): Add flags
13160         reachable_from_other_partition and in_other_partition.
13161         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
13162         other partition can not be removed.
13163         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
13164         the other partition must be output; silence sanity checking on
13165         leaking functions bodies from other paritition.
13166         * lto-cgraph.c (reachable_from_other_partition_p): New function.
13167         (lto_output_node): Output new flags; do not sanity check that inline
13168         clones are output; drop lto_forced_extern_inline_p code; do not mock
13169         visibility flags at partition boundaries.
13170         (add_node_to): New function.
13171         (output_cgraph): Use it to sort functions so masters appear before
13172         clones.
13173         (input_overwrite_node): Input new flags.
13174         * passes.c (ipa_write_summaries): Do not call
13175         lto_new_extern_inline_states.
13176         * lto-section-out.c (forced_extern_inline,
13177         lto_new_extern_inline_states lto_delete_extern_inline_states,
13178         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
13179         * lto-streamer.h (lto_new_extern_inline_states,
13180         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
13181         lto_forced_extern_inline_p): Kill.
13183 2010-04-20  Richard Guenther  <rguenther@suse.de>
13185         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
13186         from vars that can have pointers.
13187         (process_constraint): Dump useless constraints.
13189 2010-04-20  Richard Guenther  <rguenther@suse.de>
13191         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
13192         (dump_sa_points_to_info): Remove asserts.
13193         (init_base_vars): nothing_id isn't an escape point nor does it
13194         have pointers.
13196 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
13198         * tree.h (TYPE_REF_IS_RVALUE): Define.
13199         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
13200         should_move_die_to_comdat, prune_unused_types_walk): Handle
13201         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
13202         (modified_type_die, gen_reference_type_die): Emit
13203         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
13204         if TYPE_REF_IS_RVALUE and -gdwarf-4.
13206 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13208         PR target/43635
13209         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
13210         calls for -fpic -m31 if they have been sibcall optimized.
13212 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
13214         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
13215         ar.lc fixed and call-used.
13217         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
13219 2010-04-19  Jan Hubicka  <jh@suse.cz>
13221         * opts.c (decode_options): Disable whpr incompatible passes.
13222         * lto/lto.c (lto_1_to_1_map): Skip clones.
13223         (read_cgraph_and_symbols): Do not mark everything as needed.
13224         (do_whole_program_analysis): Do map only after optimizing;
13225         set proper cgraph_state; use passmanager.
13227 2010-04-19  DJ Delorie  <dj@redhat.com>
13229         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
13230         POINTER_PLUS_EXPR and fix them.
13232 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
13234         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
13235         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
13236         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
13237         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
13238         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
13239         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
13240         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
13241         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
13242         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
13243         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
13244         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
13246 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
13248         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
13249         (check_cond_move_block): Likewise.
13250         (cond_move_process_if_block): Likewise.
13251         (noce_find_if_block): Improve formatting.
13252         (find_if_header): Pass 0 to memset and tweak conditions.
13253         (cond_exec_find_if_block): Fix long lines and tweak conditions.
13255 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
13257         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
13258         for -gdwarf-4.
13260         PR middle-end/43337
13261         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
13262         with non-local decl doesn't need chain.
13264 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
13266         * ira-color.c (allocno_reload_assign): Avoid accumulating
13267         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
13269 2010-04-19  Martin Jambor  <mjambor@suse.cz>
13271         * gimple.h (create_tmp_reg): Declare.
13272         * gimplify.c (create_tmp_reg): New function.
13273         (gimplify_return_expr): Use create_tmp_reg.
13274         (gimplify_omp_atomic): Likewise.
13275         (gimple_regimplify_operands): Likewise.
13276         * tree-dfa.c (make_rename_temp): Likewise.
13277         * tree-predcom.c (predcom_tmp_var): Likewise.
13278         (reassociate_to_the_same_stmt): Likewise.
13279         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
13280         (get_replaced_param_substitute): Likewise.
13281         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
13282         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
13283         * tree-ssa-pre.c (get_representative_for): Likewise.
13284         (create_expression_by_pieces): Likewise.
13285         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
13286         (create_tailcall_accumulator): Likewise.
13288 2010-04-19  Martin Jambor  <mjambor@suse.cz>
13290         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
13291         new_stmt.
13292         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
13294 2010-04-19  Richard Guenther  <rguenther@suse.de>
13296         PR tree-optimization/43796
13297         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
13298         from SCEV in the lattice.
13299         (vrp_visit_phi_node): Dump change.
13301 2010-04-19  Richard Guenther  <rguenther@suse.de>
13303         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
13304         * configure: Re-generated.
13306 2010-04-19  Richard Guenther  <rguenther@suse.de>
13308         PR tree-optimization/43783
13309         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
13310         constant ARRAY_REF operands two and three if possible.
13312 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
13314         PR target/43766
13315         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
13317 2010-04-19  Jie Zhang  <jie@codesourcery.com>
13319         PR target/43662
13320         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
13322 2010-04-19  Ira Rosen  <irar@il.ibm.com>
13324         PR tree-optimization/37027
13325         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
13326         and macro to access it.
13327         (vectorizable_reduction): Add argument.
13328         (vect_get_slp_defs): Likewise.
13329         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
13330         statements for possible use in SLP.
13331         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
13332         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
13333         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
13334         add new argument.
13335         (vectorizable_reduction): Likewise.
13336         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
13337         vect_get_slp_defs.
13338         (vectorizable_type_demotion, vectorizable_type_promotion,
13339         vectorizable_store): Likewise.
13340         (vect_analyze_stmt): Update call to vectorizable_reduction.
13341         (vect_transform_stmt): Likewise.
13342         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
13343         (vect_build_slp_tree): Fix indentation. Check that there are no loads
13344         from different interleaving chains in same node.
13345         (vect_slp_rearrange_stmts): New function.
13346         (vect_supported_load_permutation_p): Allow load permutations for
13347         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
13348         inside SLP nodes if necessary.
13349         (vect_analyze_slp_instance): Handle reductions.
13350         (vect_analyze_slp): Try to build SLP instances originating from groups
13351         of reductions.
13352         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
13353         (vect_get_constant_vectors): Create initial vectors for reductions
13354         according to reduction code. Add new argument.
13355         (vect_get_slp_defs): Add new argument, pass it to
13356         vect_get_constant_vectors.
13357         (vect_schedule_slp_instance): Remove SLP tree root statements.
13359 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
13361         * tree.h (ENUM_IS_SCOPED): Define.
13362         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
13363         for ENUM_IS_SCOPED enums.
13365 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
13367         * fold-const.c (fold_comparison): Use ssizetype.
13368         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13369         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
13370         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
13371         * tree-object-size.c (compute_object_sizes): Use size_type_node.
13373         * tree.h (initialize_sizetypes): Remove parameter.
13374         (build_common_tree_nodes): Remove second parameter.
13375         * stor-layout.c (initialize_sizetypes): Remove parameter.
13376         Always create an unsigned type.
13377         (set_sizetype): Assert that the passed type is unsigned and simplify.
13378         * tree.c (build_common_tree_nodes): Remove second parameter.
13379         Adjust call to initialize_sizetypes.
13380         * c-decl.c (c_init_decl_processing): Remove second argument in call to
13381         build_common_tree_nodes.
13383 2010-04-18  Matthias Klose  <doko@ubuntu.com>
13385         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
13387 2010-04-18  Ira Rosen  <irar@il.ibm.com>
13389         PR tree-optimization/43771
13390         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
13391         load permutation doesn't have gaps.
13393 2010-04-18  Jan Hubicka  <jh@suse.cz>
13395         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
13396         (sse_prologue_save_insn expander): Use new pattern.
13397         (sse_prologue_save_insn1): New pattern and splitter.
13398         (sse_prologue_save_insn): Update to deal also with 64bit aligned
13399         blocks.
13400         * i386.c (setup_incoming_varargs_64): Do not compute jump
13401         destination here.
13402         (ix86_gimplify_va_arg): Update alignment needed.
13403         (ix86_local_alignment): Do not align all local arrays to 128bit.
13405 2010-04-17  Jan Hubicka  <jh@suse.cz>
13407         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
13409 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
13411         * arm.md (negdi2): Remove redundant code to force values into a
13412         register.
13414 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
13416         * arm/bpabi.S: Add EABI alignment attributes to objects.
13417         * arm/bpabi-v6m.S: Likewise.
13418         * arm/crti.asm: Likewise.
13419         * arm/crtn.asm: Likewise.
13420         * arm/lib1funcs.asm: Likewise.
13421         * arm/libunwind.S: Likewise.
13423 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
13425         * arm-protos.h (tune_params): New structure.
13426         * arm.c (current_tune): New variable.
13427         (arm_constant_limit): Delete.
13428         (struct processors): Add pointer to the tune parameters.
13429         (arm_slowmul_tune): New tuning option.
13430         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
13431         (all_cores): Adjust to pick up the tuning model.
13432         (arm_constant_limit): New function.
13433         (arm_override_options): Select the appropriate tuning model.  Delete
13434         initialization of arm_const_limit.
13435         (arm_split_constant): Use the new constant-limit model.
13436         (arm_rtx_costs): Pick up the current tuning model.
13437         * arm.md (is_strongarm, is_xscale): Delete.
13438         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
13439         for Xscale variant architectures.
13440         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
13442 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13444         * config/arm/arm.c (arm_gen_constant): Remove unused variable
13445         can_shift.
13446         (arm_rtx_costs_1): Remove unused variable extra_cost.
13447         (arm_unwind_emit_set): Use variable offset.
13448         (thumb1_output_casesi): Remove unused variable flags.
13450 2010-04-16  Jeff Law  <law@redhat.com>
13452         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
13453         needing assignment rather than doing a two-phase assignment.  Remove
13454         unused variable 'm'.
13456 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
13458         PR bootstrap/43767
13459         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
13461 2010-04-16  Doug Kwan  <dougkwan@google.com>
13463         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
13464         (next_operand_entry_id): New static variable.
13465         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
13466         (add_to_ops_vec): Assigned unique ID to operand entry.
13467         (struct oecount_s): New field ID.
13468         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
13469         (undistribute_ops_list): Assign unique IDs to oecounts.
13470         (init_reassoc): reset next_operand_entry_id.
13472 2010-04-16  Doug Kwan  <dougkwan@google.com>
13474         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
13475         missing left parenthesis.
13477 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
13479         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
13480         *btdi_rex64 using SWI48 mode iterator.
13481         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
13482         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
13483         *jcc_btdi_mask_rex64.
13485 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
13487         * double-int.h (tree_to_double_int): Convert to macro.
13488         * double-int.c (tree_to_double_int): Remove.
13490 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
13492         PR debug/43762
13493         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
13494         with want_address 2 and in case a single element list might be
13495         possible, call it again with want_address 0.
13497 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
13499         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
13500         case 'W' print operands for HI mode.
13501         * config/h8300/h8300.h (Y0, Y2) : New constraints.
13502         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
13503         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
13504         * config/h8300/predicate.md (bit_register_indirect_operand): New.
13506         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
13508         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
13509         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
13510         #xx:3 and #xx:4 mode.
13512         * config/h8300/h8300.md (inverted load with HImode dest): Add
13513         support for H8300SX.
13515         * config/h8300/predicate.md (bit_operand): Allow immediate values that
13516         satisfy 'U' constraint.
13518 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13520         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
13521         * configure: Regenerate.
13522         * config.in: Regenerate.
13523         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
13524         works.
13526 2010-04-16  Richard Guenther  <rguenther@suse.de>
13528         * tree.h (struct tree_decl_minimal): Move pt_uid ...
13529         (struct tree_decl_common): ... here.
13530         (DECL_PT_UID): Adjust.
13531         (SET_DECL_PT_UID): Likewise.
13532         (DECL_PT_UID_SET_P): Likewise.
13534 2010-04-16  Richard Guenther  <rguenther@suse.de>
13536         PR tree-optimization/43572
13537         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
13538         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
13539         * tree-flow.h (is_call_clobbered): Remove.
13540         * tree-flow-inline.h (is_call_clobbered): Likewise.
13541         * tree-dfa.c (dump_variable): Do not dump call clobber state.
13542         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
13543         (execute_return_slot_opt): Adjust.
13544         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
13545         check for call clobbered vars here.
13546         (find_tail_calls): Move tailcall verification to the
13547         proper place.
13549 2010-04-16  Diego Novillo  <dnovillo@google.com>
13551         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
13553 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
13555         PR target/40603
13556         * config/arm/arm.md (cbranchqi4): New pattern.
13557         * config/arm/predicates.md (const0_operand,
13558         cbranchqi4_comparison_operator): New predicates.
13560 2010-04-16  Richard Guenther  <rguenther@suse.de>
13562         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
13563         (dump_gimple_stmt): Likewise.
13565 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
13567         * recog.h (struct recog_data): New field is_operator.
13568         (struct insn_operand_data): New field is_operator.
13569         * recog.c (extract_insn): Set recog_data.is_operator.
13570         * genoutput.c (output_operand_data): Emit code to set the
13571         is_operator field.
13572         * reload.c (find_reloads): Use it rather than testing for an
13573         empty constraint string.
13575         PR target/41514
13576         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
13577         If the previous insn is a cbranchsi4_insn with the same arguments,
13578         omit the compare instruction.
13580         * config/arm/arm.md (addsi3_cbranch): If destination is a high
13581         register, inputs must be low registers and we need a low register
13582         scratch.  Handle alternative 2 like alternative 3.
13584 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
13586         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
13587         don't call get_addr on both.  If one expression is a VALUE and
13588         the other a REG, check VALUE's locs if the REG isn't among them.
13590 2010-04-16  Christian Bruel  <christian.bruel@st.com>
13592         * config/sh/sh.h (sh_frame_pointer_required): New function.
13593         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
13594         (flag_omit_frame_pointer) Set.
13595         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
13596         (rounded_frame_size): Adjust size with outgoing_args_size.
13597         (sh_set_return_address): Must return from stack pointer.
13598         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
13599         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
13600         (ACCUMULATE_OUTGOING_ARGS): Define.
13601         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
13602         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
13604 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
13606         PR target/43471
13607         * config/sh/sh.c (sh_legitimize_reload_address): Use
13608         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
13609         Remove a unneeded check for offset_base.
13611 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
13613         * configure: Regenerated.
13615 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13617         * config/s390/s390.c (s390_call_save_register_used): Switch back
13618         to HARD_REGNO_NREGS.
13620 2010-04-15  Richard Guenther  <rguenther@suse.de>
13622         * alias.c (alias_set_subset_of): Handle alias-set zero
13623         child properly.
13625 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
13626             Julian Brown  <julian@codesourcery.com>
13628         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
13629         alternatives according to use of high and low regs.
13630         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
13631         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
13632         optimizing for size on Thumb-2.
13634 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
13636         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
13638 2010-04-15  Richard Guenther  <rguenther@suse.de>
13640         * tree-ssa-structalias.c (struct variable_info): Add
13641         is_fn_info flag.
13642         (new_var_info): Initialize it.
13643         (dump_constraints): Support printing last added constraints.
13644         (debug_constraints): Adjust.
13645         (dump_constraint_graph): Likewise.
13646         (make_heapvar_for): Check for NULL cfun.
13647         (get_function_part_constraint): New function.
13648         (get_fi_for_callee): Likewise.
13649         (find_func_aliases): Properly implement IPA PTA constraints.
13650         (process_ipa_clobber): New function.
13651         (find_func_clobbers): Likewise.
13652         (insert_into_field_list_sorted): Remove.
13653         (create_function_info_for): Properly allocate vars for IPA mode.
13654         Do not use insert_into_field_list_sorted.
13655         (create_variable_info_for): Properly generate constraints for
13656         global vars in IPA mode.
13657         (dump_solution_for_var): Always dump the solution.
13658         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
13659         (find_what_var_points_to): Adjust.
13660         (pt_solution_set): Change.
13661         (pt_solution_ior_into): New function.
13662         (pt_solution_empty_p): Export.
13663         (pt_solution_includes_global): Adjust.
13664         (pt_solution_includes_1): Likewise.
13665         (pt_solutions_intersect_1): Likewise.
13666         (dump_sa_points_to_info): Check some invariants.
13667         (solve_constraints): Move constraint dumping ...
13668         (compute_points_to_sets): ... here.
13669         (ipa_pta_execute): ... and here.
13670         (compute_may_aliases): Do not re-compute points-to info
13671         locally if IPA info is available.
13672         (ipa_escaped_pt): New global var.
13673         (ipa_pta_execute): Properly implement IPA PTA.
13674         * tree-into-ssa.c (dump_decl_set): Support dumping
13675         decls not in referenced-vars.
13676         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
13677         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
13678         (dump_points_to_solution): Likewise.
13679         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
13680         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
13681         (remap_gimple_stmt): Reset call clobber/use information if necessary.
13682         (copy_decl_to_var): Copy DECL_PT_UID.
13683         (copy_result_decl_to_var): Likewise.
13684         * tree.c (make_node_stat): Initialize DECL_PT_UID.
13685         (copy_node_stat): Copy it.
13686         * tree.h (DECL_PT_UID): New macro.
13687         (SET_DECL_PT_UID): Likewise.
13688         (DECL_PT_UID_SET_P): Likewise.
13689         (struct tree_decl_minimal): Add pt_uid member.
13690         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
13691         (pt_solution_empty_p): Declare.
13692         (pt_solution_set): Adjust.
13693         (ipa_escaped_pt): Declare.
13694         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
13695         * gimple-pretty-print.c (pp_points_to_solution): New function.
13696         (dump_gimple_call): Dump call clobber/use information.
13697         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
13698         * tree-pass.h (TDF_ALIAS): New dump option.
13699         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
13700         * doc/invoke.texi (-fipa-pta): Update documentation.
13702 2010-04-15  Richard Guenther  <rguenther@suse.de>
13704         * Makefile.in (OBJS-common): Add gimple-fold.o.
13705         (gimple-fold.o): New rule.
13706         * tree.h (maybe_fold_offset_to_reference,
13707         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
13708         prototypes ...
13709         * gimple.h: ... here.
13710         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
13711         may_propagate_address_into_dereference): Move prototypes ...
13712         * gimple.h: ... here.
13713         * tree-ssa-ccp.c (get_symbol_constant_value,
13714         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
13715         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
13716         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
13717         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
13718         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
13719         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
13720         gimplify_and_update_call_from_tree): Move ...
13721         * gimple-fold.c: ... here.  New file.
13722         (ccp_fold_builtin): Rename to ...
13723         (gimple_fold_builtin): ... this.
13724         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
13726 2010-04-15  Richard Guenther  <rguenther@suse.de>
13728         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
13729         fit_double_type, force_fit_type_double, add_double_with_sign,
13730         neg_double, mul_double_with_sign, lshift_double, rshift_double,
13731         lrotate_double, rrotate_double, div_and_round_double): Move ...
13732         * double-int.c: ... here.
13733         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
13734         add_double, neg_double, mul_double_with_sign, mul_double,
13735         lshift_double, rshift_double, lrotate_double, rrotate_double,
13736         div_and_round_double): Move prototypes ...
13737         * double-int.h: ... here.
13739 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
13741         PR target/43742
13742         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
13743         matching constraints to ensure inputs match the output.
13745 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
13747         PR target/43742
13748         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
13749         in an input-only operand.
13751 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
13753         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
13754         (double_int_not, double_int_lshift, double_int_rshift): Declare.
13755         (double_int_negative_p): Convert to static inline function.
13756         * double-int.c (double_int_lshift, double_int_lshift): New functions.
13757         (double_int_negative_p): Remove.
13758         * tree.h (lshift_double, rshift_double):
13759         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
13760         * fold-const.c (fold_convert_const_int_from_real,
13761         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
13762         (lshift_double): Change type of arith argument to bool.
13763         (rshift_double): Change type of arith argument to bool. Correct
13764         comment.
13765         * expmed.c (mask_rtx, lshift_value): (Ditto.).
13767 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
13769         PR target/21803
13770         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
13771         at the start and end of the then/else blocks, and omit them from the
13772         conversion.
13773         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
13774         argument; all callers changed.  Pass zero to old_insns_match_p instead.
13775         (flow_find_head_matching_sequence): New function.
13776         (old_insns_match_p): Check REG_EH_REGION notes for calls.
13777         * basic-block.h (flow_find_cross_jump,
13778         flow_find_head_matching_sequence): Declare functions.
13780 2010-04-14  Jason Merrill  <jason@redhat.com>
13782         PR c++/36625
13783         * c-common.c (attribute_takes_identifier_p): New fn.
13784         * c-common.h: Declare it.
13786 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13788         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
13789         splitter condition.
13790         (*udivmod<mode>4): Ditto.
13792 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13794         * config/i386/i386.md (maxmin_int): Rename code attribute from
13795         maxminiprefix and update all users.
13796         (maxmin_float): Ditto from maxminfprefix.
13797         (logic): Ditto from logicprefix.
13798         (absneg_mnemonic): Ditto from absnegprefix.
13799         * config/i386/mmx.md: Update all users of maxminiprefix,
13800         maxminfprefix and logicprefix for rename.
13801         * config/i386/sse.md: Ditto.
13802         * config/i386/sync.md (sync_<code><mode>): Update for
13803         logicprefix rename.
13805 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13807         PR 42966
13808         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
13809         warnings converted to errors.
13811 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13813         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
13814         used insn_type variable.
13815         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
13816         to avoid set-but-not-used warning.
13818 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13820         * df-core.c (df_ref_debug): Change format string placeholder
13821         from 0x%x to %#x.
13822         * dwarf2asm.c (dw2_asm_output_data_raw,
13823         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
13824         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
13825         * dwarf2out.c (output_cfi, output_cfi_directive,
13826         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
13827         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
13828         Ditto.
13829         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
13830         * print-rtl.c (print_rtx): Ditto.
13832 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
13834         PR middle-end/42694
13835         * builtins.c (expand_builtin_pow_root): New function to expand pow
13836         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
13837         series of sqrt and cbrt calls under -ffast-math.
13838         (expand_builtin_pow): Call it.
13840 2010-04-14  Michael Matz  <matz@suse.de>
13842         PR tree-optimization/42963
13843         * tree-cfg.c (touched_switch_bbs): New static variable.
13844         (group_case_labels_stmt): New function broken out from ...
13845         (group_case_labels): ... here, use the above.
13846         (start_recording_case_labels): Allocate touched_switch_bbs.
13847         (end_recording_case_labels): Deallocate it, call
13848         group_case_labels_stmt.
13849         (gimple_redirect_edge_and_branch): Remember index of affected BB.
13851 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13853         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
13854         from insn template.
13856 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13858         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
13860 2010-04-13  Jan Hubicka  <jh@suse.cz>
13862         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
13863         of optimized out static functions.
13864         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
13865         cost computation.  Also sanity check for overflows.
13866         (update_caller_keys): Update cgraph_edge_badness call; properly
13867         update fibheap and sanity check that it is up to date.
13868         (add_new_edges_to_heap): Update cgraph_edge_badness.
13869         (cgraph_decide_inlining_of_small_function): Likewise;
13870         add sanity checking that badness in heap is up to date;
13871         improve dumping of reason; Update badness of calls to the
13872         offline copy of function currently inlined; dump badness
13873         of functions not inlined because of unit growth limits.
13875 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
13877         PR middle-end/32628
13878         * c-common.c (pointer_int_sum): Disregard overflow that occured only
13879         because of sign-extension change when converting to sizetype here...
13880         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
13882         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
13883         the folding to constants.  Remove redundant final conversion.
13884         (fold_binary) <associate>: Do not associate if the re-association of
13885         constants alone overflows.
13886         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
13887         to the end of the list.
13888         (multiple_of_p) <COND_EXPR>: New case.
13890 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13892         * opt-functions.awk (opt_sanitized_name): New.
13893         (opt_enum): New.
13894         * optc-gen.awk: Use it
13895         * opth-gen.awk: Use it.
13897 2010-04-13  Martin Jambor  <mjambor@suse.cz>
13899         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
13900         (sra_modify_assign): Delete stmts loading dead data even if racc has no
13901         children.  Call replace_uses_with_default_def_ssa_name to handle
13902         SSA_NAES on lhs.
13904 2010-04-13  Michael Matz  <matz@suse.de>
13906         PR middle-end/43730
13907         * builtins.c (expand_builtin_interclass_mathfn): Also create
13908         a register if the predicate doesn't match.
13910 2010-04-13  Diego Novillo  <dnovillo@google.com>
13912         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
13913         * c-pch.c: Include timevar.h.
13914         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
13915         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
13916         * ggc-common.c: Include timevar.h.
13917         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
13918         * timevar.def (TV_PCH_SAVE): Define.
13919         (TV_PCH_CPP_SAVE): Define.
13920         (TV_PCH_PTR_REALLOC): Define.
13921         (TV_PCH_PTR_SORT): Define.
13922         (TV_PCH_RESTORE): Define.
13923         (TV_PCH_CPP_RESTORE): Define.
13925 2010-04-13  Michael Matz  <matz@suse.de>
13927         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
13928         into MINUS_EXPRs.
13929         (can_reassociate_p): New function.
13930         (break_up_subtract_bb, reassociate_bb): Use it.
13932 2010-04-13  Richard Guenther  <rguenther@suse.de>
13934         PR bootstrap/43737
13935         * builtins.c (c_readstr): Fix assert.
13937 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
13939         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
13940         when generating cltd insn.
13942         (*ashl<mode>3_1): Remove special handling for register operand 2.
13943         (*ashlsi3_1_zext): Ditto.
13944         (*ashlhi3_1): Ditto.
13945         (*ashlhi3_1_lea): Ditto.
13946         (*ashlqi3_1): Ditto.
13947         (*ashlqi3_1_lea): Ditto.
13948         (*<shiftrt_insn><mode>3_1): Ditto.
13949         (*<shiftrt_insn>si3_1_zext): Ditto.
13950         (*<shiftrt_insn>qi3_1_slp): Ditto.
13951         (*<rotate_insn><mode>3_1): Ditto.
13952         (*<rotate_insn>si3_1_zext): Ditto.
13953         (*<rotate_insn>qi3_1_slp): Ditto.
13955 2010-04-13  Richard Guenther  <rguenther@suse.de>
13957         * tree-ssa-structalias.c (callused_id): Remove.
13958         (call_stmt_vars): New.
13959         (get_call_vi): Likewise.
13960         (lookup_call_use_vi): Likewise.
13961         (lookup_call_clobber_vi): Likewise.
13962         (get_call_use_vi): Likewise.
13963         (get_call_clobber_vi): Likewise.
13964         (make_transitive_closure_constraints): Likewise.
13965         (handle_const_call): Adjust to do per-call call-used handling.
13966         (handle_pure_call): Likewise.
13967         (find_what_var_points_to): Remove general callused handling.
13968         (init_base_vars): Likewise.
13969         (init_alias_vars): Initialize call_stmt_vars.
13970         (compute_points_to_sets): Process call-used and call-clobbered
13971         vars for call statements.
13972         (delete_points_to_sets): Free call_stmt_vars.
13974 2010-04-13  Richard Guenther  <rguenther@suse.de>
13976         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13977         Only add RW dependence for dependence distance zero.
13978         Adjust maximal vectorization factor according to dependences.
13979         Move alignment handling ...
13980         (vect_find_same_alignment_drs): ... here.  New function.
13981         (vect_analyze_data_ref_dependences): Adjust.
13982         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
13983         (vect_analyze_data_refs): Adjust minimal vectorization factor
13984         according to data references.
13985         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
13986         dependences before determining the vectorization factor.
13987         Analyze alignment after determining the vectorization factor.
13988         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
13989         dependences before alignment.
13990         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
13991         Adjust prototype.
13992         (vect_analyze_data_refs): Likewise.
13993         (MAX_VECTORIZATION_FACTOR): New define.
13995 2010-04-13  Duncan Sands  <baldrick@free.fr>
13997         * except.h (lang_eh_type_covers): Remove.
13998         * except.c (lang_eh_type_covers): Likewise.
14000 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14001             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14003         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
14004         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
14005         UNITS_PER_LONG where it is ABI relevant.
14006         (s390_return_addr_rtx): Likewise.
14007         (s390_back_chain_rtx): Likewise.
14008         (s390_frame_area): Likewise.
14009         (s390_frame_info): Likewise.
14010         (s390_initial_elimination_offset): Likewise.
14011         (save_gprs): Likewise.
14012         (s390_emit_prologue): Likewise.
14013         (s390_emit_epilogue): Likewise.
14014         (s390_function_arg_advance): Likewise.
14015         (s390_function_arg): Likewise.
14016         (s390_va_start): Likewise.
14017         (s390_gimplify_va_arg): Likewise.
14018         (s390_function_profiler): Likewise.
14019         (s390_optimize_prologue): Likewise.
14020         (s390_rtx_costs): Likewise.
14021         (s390_secondary_reload): Likewise.
14022         (s390_promote_function_mode): Likewise.
14023         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
14024         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
14025         registers available.
14026         (s390_unwind_word_mode): New function.
14027         (s390_function_value): Split 64 bit values into register pair if
14028         used as return value.
14029         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
14030         function call parameters.  Handle parallels.
14031         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
14032         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
14033         (DWARF_CIE_DATA_ALIGNMENT): New macro.
14034         (s390_expand_setmem): Remove unused variable src_addr.
14035         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
14036         deal with 64 bit registers.
14037         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
14038         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
14039         (UNITS_PER_LONG): New macro.
14040         * libjava/include/s390-signal.h: Define extended ucontext
14041         structure containing the upper halfs of the 64 bit registers.
14043 2010-04-13  Simon Baldwin  <simonb@google.com>
14045         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
14047 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
14049         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
14050         rvalue on the RHS if the LHS is of a non-renamable type.
14051         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
14053 2010-04-13  Matthias Klose  <doko@ubuntu.com>
14055         * gcc.c (cc1_options): Handle -iplugindir before processing
14056         the cc1 spec. Only add -iplugindir once.
14057         (cpp_unique_options): Add -iplugindir option if -fplugin* options
14058         found.
14059         * common.opt (iplugindir): Remove `Separate' property, initialize.
14060         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
14061         option.
14062         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
14063         (distclean): Remove plugin dir.
14064         * doc/invoke.texi: Document -iplugindir.
14066 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
14068         * doc/plugins.texi (Loading Plugins): Document short
14069         -fplugin=foo option.
14070         (Plugin API): Mention default_plugin_dir_name function.
14072         * gcc.c (find_file_spec_function): Add new declaration.
14073         (static_spec_func): Use it for "find-file".
14074         (find_file_spec_function): Add new function.
14075         (cc1_options): Add -iplugindir option if -fplugin* options found.
14077         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
14079         * plugin.c (add_new_plugin): Updated comment, and handle short
14080         plugin name.
14081         (default_plugin_dir_name): Added new function.
14083         * common.opt (iplugindir): New option to set the plugin directory.
14085 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
14087         * config/i386/i386.md (any_rotate): New code iterator.
14088         (rotate_insn): New code attribute.
14089         (rotate): Ditto.
14090         (SWIM124): New mode iterator.
14091         (<rotate_insn>ti3): New expander.
14092         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
14093         any_rotate code iterator.
14094         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
14095         using any_rotate code iterator and SWIM124 mode iterator.
14096         (ix86_rotlti3): New insn_and_split pattern.
14097         (ix86_rotrti3): Ditto.
14098         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
14099         ix86_rotl{di,ti}3 patterns.
14100         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
14101         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
14102         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
14103         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
14104         code iterator and SWI mode iterator.
14105         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
14106         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
14107         code iterator.
14108         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
14109         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
14110         (bswap rotatert splitter): Add splitter.
14111         (bswap splitter): Macroize splitter using any_rotate code iterator.
14112         Add insn predicate to split only for TARGET_USE_XCHGB or when
14113         optimizing function for size.
14115 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
14117         * config/pa/pa.c (emit_move_sequence): Remove use of
14118         deleted variable flag_argument_noalias.
14120 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14122         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
14123         configurations.
14124         Add to unsupported targets list.
14125         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
14126         sparc*-sun-solaris2.[567]* from target lists.
14127         * configure: Regenerate.
14128         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
14129         removal.
14130         Remove Solaris 7 patch references.
14131         (Specific, sparc-sun-solaris2.7): Removed.
14132         (sparc-sun-solaris2*): Update Solaris 7 example.
14133         (sparc64-*-solaris2*): Likewise.
14135 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14137         * config.build (alpha*-dec-osf4*): Remove.
14138         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
14139         of obsolete configurations.
14140         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
14141         support.
14142         * config/alpha/t-osf4: Renamed to ...
14143         * config/alpha/t-osf5: ... this.
14144         * config/alpha/osf.h: Renamed to ...
14145         * config/alpha/osf5.h: ... this.
14146         Merged old osf5.h contents.
14147         Update comments.
14148         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
14149         (EXTRA_SPECS): Removed.
14150         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
14151         reflect removal of Tru64 UNIX V4.0/V5.0 support.
14152         Document that.
14154 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14156         * doc/contrib.texi (Contributors, Rainer Orth): Update.
14158 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
14160         PR/43702
14161         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
14162         __thiscall convention.
14164 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
14166         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
14167         orig_base.
14168         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
14170 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
14172         * function.c (assign_parms_initialize_all): Add unused attribute
14173         to fntype.
14175 2010-04-12  Richard Guenther  <rguenther@suse.de>
14177         * gsstruct.def (GSS_CALL): New.
14178         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
14179         * gimple.h: Include tree-ssa-alias.h.
14180         (struct gimple_statement_call): New.
14181         (union gimple_statement_struct_d): Add gimple_call member.
14182         (gimple_call_reset_alias_info): Declare.
14183         (gimple_call_use_set): New function.
14184         (gimple_call_clobber_set): Likewise.
14185         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
14186         * gimple.c (gimple_call_reset_alias_info): New function.
14187         (gimple_build_call_1): Call it.
14188         * lto-streamer-in.c (input_gimple_stmt): Likewise.
14189         * tree-inline.c (remap_gimple_stmt): Likewise.
14190         (expand_call_inline): Remove callused handling.
14191         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
14192         * tree-dfa.c (dump_variable): Likewise.
14193         * tree-parloops.c (parallelize_loops): Likewise.
14194         * tree-ssa.c (init_tree_ssa): Likewise.
14195         (delete_tree_ssa): Likewise.
14196         * tree-flow-inline.h (is_call_used): Remove.
14197         * tree-flow.h (struct gimple_df): Remove callused member.
14198         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
14199         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
14200         (ref_maybe_used_by_call_p_1): Simplify.
14201         (call_may_clobber_ref_p_1): Likewise.
14202         * tree-ssa-structalias.c (compute_points_to_sets): Set
14203         the call stmt used and clobbered sets.
14204         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
14205         (find_tail_calls): Verify the tail call.
14207 2010-04-12  Richard Guenther  <rguenther@suse.de>
14209         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
14210         single-iteration always-inline inlining.
14211         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
14212         (cgraph_decide_inlining): Do not handle always-inline specially.
14213         (try_inline): Remove always-inline cycle detection special case.
14214         Do not recurse on always-inlines.
14215         (cgraph_early_inlining): Do not iterate if not optimizing.
14216         (cgraph_gate_early_inlining): remove.
14217         (pass_early_inline): Run unconditionally.
14218         (gate_cgraph_decide_inlining): New function.
14219         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
14220         not inlining or optimizing.
14221         (cgraph_decide_inlining_of_small_functions): Also consider
14222         always-inline functions.
14223         (cgraph_default_inline_p): Return true for nodes which should
14224         disregard inline limits.
14225         (estimate_function_body_sizes): Assume zero size and time for
14226         nodes which are marked as disregarding inline limits.
14227         (cgraph_decide_recursive_inlining): Do not perform recursive
14228         inlining on always-inline nodes.
14230 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
14232         PR bootstrap/43699
14233         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
14234         for exprs satisfying handled_component_p.
14236 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
14238         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
14239         non-constant aggregate elements.
14241         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
14242         is a real initialization.
14244 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
14246         PR c/36774
14247         * c-decl.c (start_function): Move forward check for nested function.
14249 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
14251         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
14252         * config/sh/sh.c: Include reload.h.
14253         (sh_legitimize_reload_address): New.
14254         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
14255         sh_legitimize_reload_address.
14257 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
14259         * config/sh/sh.md (*movqi_pop): New insn pattern.
14260         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
14262 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
14264         * config/i386/i386.md (any_shiftrt): New code iterator.
14265         (shiftrt_insn): New code attribute.
14266         (shiftrt): Ditto.
14267         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
14268         using any_shiftrt code iterator.
14269         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
14270         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
14271         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
14272         pattern from corresponding peephole2 patterns.
14273         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
14274         using any_shiftrt code iterator.
14275         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
14276         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
14277         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
14278         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
14279         *{ashr,lshr}<mode>3_cmp_zext.
14280         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
14282 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
14284         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
14285         scratch register.
14286         (*lshr<mode>3_cconly): Ditto.
14288 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
14290         * config/i386/i386.md (lshr<mode>3): Macroize expander from
14291         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14292         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
14293         pattern from *lshr{di,ti}3_1 and corresponding splitters using
14294         DWI mode iterator.
14295         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14296         from corresponding peephole2 patterns.
14297         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
14298         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
14299         and *lshrdi3_1_rex64 using SWI mode iterator.
14300         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
14301         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
14302         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
14303         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
14304         and *lshrdi3_cmp_rex64 using SWI mode iterator.
14305         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
14306         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
14307         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
14308         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
14309         SWI mode iterator.
14311 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
14313         * config/i386/i386.md (ashr<mode>3): Macroize expander from
14314         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14315         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
14316         pattern from *ashr{di,ti}3_1 and corresponding splitters using
14317         DWI mode iterator.
14318         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14319         from corresponding peephole2 patterns.
14320         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
14321         (ashrsi3_cvt): Rename from ashrsi3_31.
14322         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
14323         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
14324         and x86_64_shift_adj_3 using SWI48 mode iterator.
14325         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
14326         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
14327         and *ashrdi3_1_rex64 using SWI mode iterator.
14328         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
14329         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
14330         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
14331         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
14332         and *ashrdi3_cmp_rex64 using SWI mode iterator.
14333         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
14334         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
14335         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
14336         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
14337         SWI mode iterator.
14338         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
14339         * config/i386/i386.c (ix86_split_ashr): Update for renamed
14340         x86_shift<mode>_adj_3 expanders.
14342 2010-04-10  Wei Guozhi  <carrot@google.com>
14344         PR target/42601
14345         * config/arm/arm.c (arm_pic_static_addr): New function.
14346         (legitimize_pic_address): Call arm_pic_static_addr when it detects
14347         a static symbol.
14348         (arm_output_addr_const_extra): Output expression for new pattern.
14349         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
14351 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
14353         * ira-costs.c (record_reg_classes): Ignore alternatives that are
14354         not enabled.
14356         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
14357         * web.c: Include "insn-config.h" and "recog.h".
14358         (union_match_dups): New function.
14359         (web_main): Call it.
14360         (union_defs): Don't try to recognize match_dups.
14362         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
14363         if doing so would replace the entire pattern.
14365 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
14367         PR target/43707
14368         PR target/43709
14369         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
14370         and splitter pattern.  Change splitter operand 1 predicate to
14371         nonmemory_operand.
14373 2010-04-09  Martin Jambor  <mjambor@suse.cz>
14375         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
14376         lattices are addresses of CONST_DECLs with the same initial value.
14377         (ipcp_print_all_lattices): Print values of CONST_DECLs.
14378         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
14380 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
14381             Bernd Schmidt  <bernds@codesourcery.com>
14383         * loop-invariant.c (replace_uses): New static function.
14384         (move_invariant_reg): Use it to ensure we can replace the uses.
14386 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
14388         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
14389         function template.
14390         (picochip_override_options): Enable section anchors only above -O1.
14391         (picochip_reorg): Fixed a couple of build warnings.
14393 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14395         * configure.ac (plugin -rdynamic test): Log result.
14396         * configure: Regenerate.
14397         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
14398         (RDYNAMIC_SPEC): Define.
14399         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
14401 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14403         * configure.ac: Determine Sun ld version numbers.
14404         (comdat_group): Restrict GNU ld version checks to gld.
14405         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
14406         (enable_comdat): Support --enable-comdat.
14407         * configure: Regenerate.
14408         * doc/install.texi (Configuration): Document --enable-comdat.
14410 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14412         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
14413         * config/sol2-gld.h: ... here.
14414         * config.gcc (sparc*-*-solaris2*): Reflect this.
14415         (i[34567]86-*-solaris2*): Use it.
14417 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
14419         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
14420         setup_clocks_p.
14421         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
14423 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14425         PR 42965
14426         * diagnostic.c (diagnostic_initialize): Initialize
14427         some_warnings_are_errors.
14428         (diagnostic_finish): New.
14429         (diagnostic_action_after_output): Call it before exiting.
14430         (diagnostic_report_diagnostic): Do not print message here. Set
14431         some_warnings_are_errors.
14432         * diagnostic.h (diagnostic_context): Delete
14433         issue_warnings_are_errors_message. Add some_warnings_are_errors.
14434         (diagnostic_finish): Declare.
14435         * toplev.c (toplev_main): Call it before exit.
14437 2010-04-09  Jason Merrill  <jason@redhat.com>
14439         PR c++/42623
14440         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
14441         for incomplete type.
14443         PR c++/41788
14444         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
14445         based on a warning flag.
14447 2010-04-09  Richard Guenther  <rguenther@suse.de>
14449         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
14451 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
14453         PR bootstrap/43684
14454         * varasm.c (default_assemble_visibility): Wrap vars that are
14455         set, but unused, by targets without GAS.
14456         * config/rs6000/rs6000.c (paired_emit_vector_compare):
14457         Remove set, but unused, vars.
14458         (rs6000_legitimize_tls_address): Likewise.
14459         (altivec_expand_dst_builtin): Likewise.
14460         * config/darwin.c (machopic_classify_symbol): Likewise.
14461         (machopic_indirection_name): Likewise.
14463 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
14465         * config/i386/i386.md (DWI): New mode iterator.
14466         (S): New mode attribute.
14467         (shift_operand): Ditto.
14468         (shift_immediate_operand): Ditto.
14469         (ashl_input_operand): Ditto.
14470         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
14471         using SDWIM mode iterator.
14472         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
14473         pattern from *ashl{di,ti}3_1 and corresponding splitters using
14474         DWI mode iterator.
14475         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
14476         from corresponding peephole2 patterns.
14477         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
14478         and x86_64_shift_adj_1 using SWI48 mode iterator.
14479         (x86_shift<mode>_adj_2): Ditto.
14480         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
14481         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
14482         using SWI48 mode iterator.
14483         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
14484         *ashldi3_cmp_rex64 using SWI mode iterator.
14485         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
14486         *ashldi3_cconly_rex64 using SWI mode iterator.
14487         * config/i386/i386.c (ix86_split_ashl): Update for renamed
14488         x86_shift<mode>_adj_{1,2}.
14489         (ix86_split_ashr): Ditto.
14490         (ix86_split_lshr): Ditto.
14492 2010-04-09  Richard Guenther  <rguenther@suse.de>
14494         * target.h (builtin_conversion): Pass in input and output types.
14495         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
14496         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
14497         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
14498         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
14500         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
14501         Handle AVX modes.
14502         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
14504 2010-04-09  Richard Guenther  <rguenther@suse.de>
14506         PR target/43152
14507         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
14509 2010-04-09  Richard Guenther  <rguenther@suse.de>
14511         * tree-vectorizer.h (struct _stmt_vec_info): Document
14512         that vectype is the type of the LHS.
14513         (supportable_widening_operation, supportable_narrowing_operation):
14514         Get both input and output vector types as arguments.
14515         (vect_is_simple_use_1): Declare.
14516         (get_same_sized_vectype): Likewise.
14517         * tree-vect-loop.c (vect_determine_vectorization_factor):
14518         Set STMT_VINFO_VECTYPE to the vector type of the def.
14519         (vectorizable_reduction): Adjust.
14520         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
14521         Adjust.  Specify the output vector type.
14522         (vect_pattern_recog_1): Adjust.
14523         * tree-vect-stmts.c (get_same_sized_vectype): New function.
14524         (vectorizable_call): Adjust.
14525         (vectorizable_conversion): Likewise.
14526         (vectorizable_operation): Likewise.
14527         (vectorizable_type_demotion): Likewise.
14528         (vectorizable_type_promotion): Likewise.
14529         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
14530         the def.
14531         (vect_is_simple_use_1): New function.
14532         (supportable_widening_operation): Get both input and output
14533         vector types.
14534         (supportable_narrowing_operation): Likewise.
14535         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
14537 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
14539         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
14540         __thiscall and _thiscall as predefined macros.
14541         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
14542         thiscall attribute handling.
14543         (ix86_comp_type_attributes): Likewise.
14544         (ix86_function_regparm): Likewise.
14545         (ix86_return_pops_args): Likewise.
14546         (init_cumulative_args): Likewise.
14547         (find_drap_reg): Likewise.
14548         (ix86_static_chain): Likewise.
14549         (x86_this_parameter): Likewise.
14550         (x86_output_mi_thunk): Likewise.
14551         (ix86_attribute_table): Add description for thiscall attribute.
14552         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
14553         * doc/extend.texi: Add documentation for thiscall.
14555 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14557         PR c++/28584
14558         * c.opt (Wint-to-pointer-cast): Available in C++.
14559         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
14561 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
14563         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
14564         * calls.c (expand_call): Pass the function type to aggregate_value_p.
14565         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
14566         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
14567         function type instead.  Reorder and simplify checks.
14569         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
14571 2010-04-08  Jing Yu  <jingyu@google.com>
14572             Zdenek Dvorak  <ook@ucw.cz>
14574         PR tree-optimization/42720
14575         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
14576         loop unswitch conditions here from ...
14577         (tree_unswitch_single_loop): ... here.
14579 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
14581         * tree-if-conv.c: Fix comments and simplify logic.
14583 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
14585         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
14586         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
14587         (main_tree_if_conversion): Update call to tree_if_conversion.
14589 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14591         PR 42485
14592         * doc/invoke.texi (-b,-V): Delete.
14593         * doc/tm.texi: Do not mention -b.
14594         * gcc.c (display_help): Delete -b and -V.
14595         (process_command): Delete -b and -V.
14596         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
14598 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
14599             Wolfgang Gellerich  <gellerich@de.ibm.com>
14601         Implement target hook for loop unrolling
14602         * target.h (loop_unroll_adjust): Add a new target hook function.
14603         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
14604         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
14605         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
14606         (s390_loop_unroll_adjust): Implement the new target hook for s390.
14607         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
14608         target hook.
14609         (decide_unroll_stupid): Likewise.
14611 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14613         PR target/43643
14614         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
14616 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14618         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
14619         (Specific, *-*-solaris2*): Likewise.
14620         Don't prefer Sun as over GNU as.
14622 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
14624         * config/s390/s390.c (override_options): Adjust the z10 defaults
14625         for max-unroll-times, max-completely-peeled-insns
14626         and max-completely-peel-times.
14628 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14630         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
14631         instructions for z10.
14632         (s390_expand_setmem): Likewise.
14633         (s390_expand_cmpmem): Likewise.
14635 2010-04-08  Richard Guenther  <rguenther@suse.de>
14637         PR tree-optimization/43679
14638         * tree-ssa-pre.c (eliminate): Only propagate copies.
14640 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
14642         PR bootstrap/43681
14643         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
14644         set but not used variable warning.
14646 2010-04-08  Wei Guozhi  <carrot@google.com>
14648         PR target/41653
14649         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
14650         (arm_size_rtx_costs): Call the new function when optimized for size.
14652 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
14654         PR debug/43670
14655         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
14656         op0 is not a MEM, just return NULL instead of assertion
14657         failure.
14658         (discover_nonconstant_array_refs): Don't walk debug stmts.
14660 2010-04-08  Doug Kwan  <dougkwan@google.com>
14662         * configure.ac: Recognize gold and do not use its version number
14663         to test ld features.
14664         * configure: Regenerate.
14666 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
14668         PR middle-end/40815
14669         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
14670         (negate_value): Move code to push elements to broken_up_substracts ...
14671         (eliminate_plus_minus_pair): ... here.  Push operands that have no
14672         negative pair to plus_negates.
14673         (repropagate_negates, init_reassoc, fini_reassoc): Update.
14675 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14677         * doc/install.texi (Configuration): Move description of
14678         --enable-lto, --with-libelf*, --enable-gold from Java section to
14679         general section.
14681         * doc/generic.texi (Working with declarations)
14682         (Function Properties, C and C++ Trees): Fix typos.
14683         * doc/sourcebuild.texi (Top Level): Likewise.
14685 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
14687         PR c/18624
14688         * tree.h (DECL_READ_P): Define.
14689         (struct tree_decl_common): Add decl_read_flag.
14690         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
14691         a set but not used warning.
14692         (merge_decls): Merge DECL_READ_P flag.
14693         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
14694         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
14695         * c-common.c (handle_used_attribute, handle_unused_attribute):
14696         Likewise.
14697         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
14698         New prototypes.
14699         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
14700         New functions.
14701         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
14702         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
14703         c_parser_binary_expression, c_parser_cast_expression,
14704         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
14705         Call default_function_array_read_conversion instead of
14706         default_function_array_conversion where needed.
14707         (c_parser_unary_expression, c_parser_conditional_expression,
14708         c_parser_postfix_expression_after_primary, c_parser_initelt):
14709         Likewise.  Call mark_exp_read where needed.
14710         (c_parser_statement_after_labels, c_parser_asm_operands,
14711         c_parser_typeof_specifier, c_parser_sizeof_expression,
14712         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
14713         where needed.
14714         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
14715         New.
14716         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
14717         (warn_unused_but_set_parameter): Default to warn_unused
14718         && extra_warnings.
14719         * doc/invoke.texi: Document -Wunused-but-set-variable and
14720         -Wunused-but-set-parameter.
14722         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
14723         used count variable.
14724         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
14725         when operandN variables aren't used in the body of the expander
14726         or splitter.
14727         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
14728         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
14729         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
14730         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
14731         FOR_EACH_IMM_USE_ON_STMT): Likewise.
14732         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
14733         * tree.c (PROCESS_ARG): Likewise.
14735 2010-04-07  Simon Baldwin  <simonb@google.com>
14737         * diagnostic.h (diagnostic_override_option_index): New macro to
14738         set a diagnostic's option_index.
14739         * c-tree.h (c_cpp_error): Add warning reason argument.
14740         * opts.c (_warning_as_error_callback): New.
14741         (register_warning_as_error_callback): Store callback for
14742         warnings enabled via enable_warning_as_error.
14743         (enable_warning_as_error): Call callback, minor code tidy.
14744         * opts.h (register_warning_as_error_callback): Declare.
14745         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
14746         response to -Werror=.
14747         (c_common_init_options): Register warning_as_error_callback in opts.c.
14748         * common.opt: Add -Wno-cpp option.
14749         * c-common.c (struct reason_option_codes_t): Map cpp warning
14750         reason codes to gcc option indexes.
14751         * (c_option_controlling_cpp_error): New function, lookup the gcc
14752         option index for a cpp warning reason code.
14753         * (c_cpp_error): Add warning reason argument, call
14754         c_option_controlling_cpp_error for diagnostic_override_option_index.
14755         * doc/invoke.texi: Document -Wno-cpp.
14757 2010-04-07  Richard Guenther  <rguenther@suse.de>
14759         * ipa-reference.c (mark_load): Use get_base_address.
14760         (mark_store): Likewise.
14762         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
14763         inserting GIMPLE_NOPs into the IL.
14764         * tree-ssa-structalias.c (get_constraint_for_component_ref):
14765         Explicitly strip handled components and indirect references.
14767         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
14768         folding address expressions.
14769         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
14770         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
14771         operand_equal_p to compare decls.
14772         (ptr_deref_may_alias_decl_p): Likewise.
14773         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
14774         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
14775         Handle reversed comparison ops.
14776         * tree-sra.c (asm_visit_addr): Use get_base_address.
14777         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
14778         * ipa-reference.c (mark_address): Use get_base_address.
14780 2010-04-07  Richard Guenther  <rguenther@suse.de>
14782         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
14783         Propagate constants everywhere.
14785 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
14787         PR debug/43516
14788         * tree.c (MAX_INT_CACHED_PREC): Define.
14789         (nonstandard_integer_type_cache): New array.
14790         (build_nonstandard_integer_type): Cache results for precision
14791         <= MAX_INT_CACHED_PREC.
14793 2010-04-07  Richard Guenther  <rguenther@suse.de>
14795         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
14796         -fargument-noalias-global, -fargument-noalias-anything): Remove.
14797         * common.opt: Likewise.
14798         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
14799         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
14800         (nonoverlapping_memrefs_p): Likewise.
14801         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14802         * opts.c (common_handle_option): Handle OPT_fargument_alias,
14803         OPT_fargument_noalias, OPT_fargument_noalias_anything and
14804         OPT_fargument_noalias_global for backward compatibility.
14806 2010-04-07  Richard Guenther  <rguenther@suse.de>
14808         PR tree-optimization/43270
14809         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
14810         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
14811         * tree-ssa-pre.c (phi_translate_1): Adjust.
14812         (fully_constant_expression): Split out vn_reference handling to ...
14813         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
14814         Fold reads from constant strings.
14815         (vn_reference_lookup): Handle fully constant references.
14816         (vn_reference_lookup_pieces): Likewise.
14817         * Makefile.in (expmed.o-warn): Add -Wno-error.
14819 2010-04-07  Martin Jambor  <mjambor@suse.cz>
14821         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
14823 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
14825         PR driver/41594
14826         * gcc.c: Add -static-libstdc++ to list of recognized options.
14828 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14830         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
14832 2010-04-07  Richard Guenther  <rguenther@suse.de>
14834         PR middle-end/42617
14835         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
14836         bases build simple mem attributes to retain points-to information.
14838 2010-04-07  Richard Guenther  <rguenther@suse.de>
14840         PR middle-end/42617
14841         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
14842         preserve points-to related information.
14844 2010-04-07  Richard Guenther  <rguenther@suse.de>
14846         PR middle-end/42617
14847         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
14848         discard plain indirect references.
14849         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
14850         * tree.c (tree_nop_conversion): Likewise.
14852 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
14854         PR debug/43628
14855         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
14857 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
14859         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
14860         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
14862 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
14864         * tree-if-conv.c: Fix indentation and comments.
14866 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
14868         * tree-if-conv.c: Sort static functions in topological order.
14870 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
14872         * tree-if-conv.c: Fix indentation and comments.
14874 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14876         PR middle-end/43519
14877         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
14878         lang_hooks.types.type_for_size instead of
14879         build_nonstandard_integer_type.
14880         When converting an unsigned type to signed, double its precision.
14881         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
14882         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
14883         (graphite_create_new_loop_guard): When ub + 1 wraps around,
14884         use lb <= ub.
14886 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14888         PR middle-end/43519
14889         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14890         POINTER_PLUS_EXPR for pointer types.
14892 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14894         PR middle-end/43519
14895         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
14896         * graphite-clast-to-gimple.c: Include langhooks.h.
14897         (max_signed_precision_type): New.
14898         (max_precision_type): Takes two types as arguments.
14899         (precision_for_value): New.
14900         (precision_for_interval): New.
14901         (gcc_type_for_interval): New.
14902         (gcc_type_for_value): New.
14903         (gcc_type_for_clast_term): New.
14904         (gcc_type_for_clast_red): New.
14905         (gcc_type_for_clast_bin): New.
14906         (gcc_type_for_clast_expr): Split up into several functions.
14907         (gcc_type_for_clast_eq): Rewritten.
14908         (compute_bounds_for_level): New.
14909         (compute_type_for_level_1): New.
14910         (compute_type_for_level): New.
14911         (gcc_type_for_cloog_iv): Removed.
14912         (gcc_type_for_iv_of_clast_loop): Rewritten.
14913         (graphite_create_new_loop): Compute the lower and upper bound types
14914         with gcc_type_for_clast_expr.
14915         (graphite_create_new_loop_guard): Same.
14916         (find_cloog_iv_in_expr): Removed.
14917         (compute_cloog_iv_types_1): Removed.
14918         (compute_cloog_iv_types): Removed.
14919         (gloog): Do not call compute_cloog_iv_types.
14920         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
14921         GBB_CLOOG_IV_TYPES.
14922         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
14923         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
14924         (GBB_CLOOG_IV_TYPES): Removed.
14926 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14928         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
14929         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
14930         (detect_commutative_reduction): Same.
14932 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14934         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
14935         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
14936         argument.
14937         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
14938         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
14939         (rewrite_commutative_reductions_out_of_ssa): Same.
14940         * passes.c (execute_function_todo): Call verify_ssa for every pass
14941         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
14942         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
14943         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
14944         with an extra argument.
14945         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
14946         verify_ssa only when the extra argument is true.
14947         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
14948         with an extra argument.
14949         (tree_transform_and_unroll_loop): Same.
14951 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14953         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
14954         for all the passes of the LNO having LOOP_CLOSED_SSA.
14955         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
14956         * tree-loop-distribution.c (pass_loop_distribution): Same.
14957         * tree-pass.h (TODO_verify_loops): Removed.
14958         * tree-ssa-loop.c (pass_tree_loop_init): Same.
14959         (pass_lim): Same.
14960         (pass_tree_unswitch): Same.
14961         (pass_predcom): Same.
14962         (pass_vectorize): Same.
14963         (pass_linear_transform): Same.
14964         (pass_graphite_transforms): Same.
14965         (pass_iv_canon): Same.
14966         (pass_complete_unroll): Same.
14967         (pass_complete_unrolli): Same.
14968         (pass_parallelize_loops): Same.
14969         (pass_loop_prefetch): Same.
14970         (pass_iv_optimize): Same.
14972 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
14974         PR middle-end/32824
14975         * passes.c (init_optimization_passes): Move pass_lim before
14976         pass_copy_prop and pass_dce_loop.
14978 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
14980         PR target/43667
14981         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
14982         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
14983         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
14984         MULTI_* defines for 4 argument vpermil2p* builtins.
14986 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
14988         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
14989         * config/i386/i386.c (x86_maybe_negate_const_int): New.
14990         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
14991         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
14992         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
14993         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
14994         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
14995         Use x86_maybe_negate_const_int to output insn mnemonic.
14996         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
14997         check from instruction predicate.  Update comments.
14998         * config/i386/sync.md (sync_add<mode>): Use
14999         x86_maybe_negate_const_int to output insn mnemonic.
15001 2010-04-06  Jan Hubicka  <jh@suse.cz>
15003         PR tree-optimization/42906
15004         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
15005         IGNORE_SELF argument.  Set visited_control_parents for fully
15006         processed BBs.
15007         (find_obviously_necessary_stmts): Update call of
15008         mark_control_dependent_edges_necessary.
15009         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
15011 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
15013         * config/i386/i386.md: Remove comment about 'e' and 'E'
15014         operand modifier.
15016 2010-04-06  Richard Guenther  <rguenther@suse.de>
15018         PR tree-optimization/43627
15019         * tree-vrp.c (extract_range_from_unary_expr): Widenings
15020         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
15021         not varying.
15023 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
15025         * BASE-VER: Change to 4.6.0.
15027         PR target/43638
15028         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
15029         handling.
15031 2010-04-06  Richard Guenther  <rguenther@suse.de>
15033         PR middle-end/43661
15034         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
15036 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15038         * doc/invoke.texi (Optimize Options): Document that LTO
15039         won't remove object access purely due to incompatible
15040         declarations.
15042 2010-04-04  Matthias Klose  <doko@ubuntu.com>
15044         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
15045         Initialize variable.
15047 2010-04-03  Richard Guenther  <rguenther@suse.de>
15049         PR middle-end/42509
15050         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
15051         require a non-NULL MEM_OFFSET.
15053 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
15055         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
15056         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
15057         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
15058         config/alpha/predicates.md, config/arm/arm.md,
15059         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
15060         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
15061         config/darwin9.h, config/darwin.c, config/darwin.h,
15062         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
15063         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
15064         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
15065         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
15066         config/mips/mips.md, config/mn10300/mn10300.c,
15067         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
15068         config/rs6000/aix.h, config/rs6000/dfp.md,
15069         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
15070         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
15071         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
15072         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
15073         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
15074         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
15075         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
15076         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
15077         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
15078         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
15079         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
15080         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
15081         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
15082         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
15083         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
15084         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
15085         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
15086         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
15087         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
15088         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
15089         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
15090         opt-functions.awk, opth-gen.awk, params.def, passes.c,
15091         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
15092         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
15093         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
15094         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
15095         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
15096         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15097         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
15098         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
15099         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
15100         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15101         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
15102         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
15103         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
15104         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
15106 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15108         PR other/43620
15109         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
15110         * aclocal.m4: Regenerate.
15112 2010-04-02  Richard Guenther  <rguenther@suse.de>
15114         PR tree-optimization/43629
15115         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
15116         if we have seen a constant value.
15118 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
15120         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
15122 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
15124         PR target/43469
15125         * arm.c (legitimize_tls_address): Adjust call to
15126         gen_tls_load_dot_plus_four.
15127         (arm_note_pic_base): New function.
15128         (arm_cannot_copy_insn_p): Use it.
15129         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
15130         constraint.
15132 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15134         PR bootstrap/43531
15136         Revert:
15137         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15139         * Makefile.in ($(out_object_file)): Depend on
15140         gt-$(basename $(notdir $(out_file))).h.
15142 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
15144         * config.gcc (lm32-*-rtems*): Add t-lm32.
15146 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
15148         * config.gcc: Add lm32-*-rtems*.
15149         * config/lm32/rtems.h: New file.
15151 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
15153         PR target/42609
15154         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
15156 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
15158         * dwarf2out.c (output_compilation_unit_header): For
15159         -gdwarf-4 use version 4 instead of version 3.
15160         (output_line_info): For version 4 and above emit additional
15161         maximum ops per insn header field.
15162         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
15164         * dwarf2out.c (is_c_family, is_java): Remove.
15165         (lower_bound_default): New function.
15166         (add_bound_info, gen_descr_array_type_die): Use it.
15168 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
15170         PR debug/43325
15171         * dwarf2out.c (gen_variable_die): Allow debug info for variable
15172         re-declaration when it happens in a function.
15174 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
15176         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
15177         (cgraph_remove_function_insertion_hook): Same.
15178         (cgraph_call_function_insertion_hooks): Same.
15180 2010-04-01  Richard Guenther  <rguenther@suse.de>
15182         PR middle-end/43614
15183         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
15184         and TREE_THIS_VOLATILE.
15185         (copy_ref_info): Likewise.
15186         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
15187         * tree.c (build6_stat): Ignore side-effects of all but arg5
15188         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
15189         TARGET_MEM_REF.
15191 2010-04-01  Richard Guenther  <rguenther@suse.de>
15193         PR tree-optimization/43607
15194         * ipa-type-escape.c (check_call): Do not access non-existing
15195         arguments.
15197 2010-04-01  Richard Guenther  <rguenther@suse.de>
15199         PR middle-end/43602
15200         Revert
15201         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
15202                     Jack Howarth  <howarth@bromo.med.uc.edu>
15204         * tree-profile.c (tree_init_ic_make_global_vars): Make static
15205         variables TLS.
15207 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15209         * doc/install.texi (Prerequisites): Document libelf usability on
15210         IRIX 5/6 and Solaris 2.
15211         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
15212         Update GNU as, GNU ld requirements.
15213         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
15214         Document Sun Studio compiler download.
15215         Update and simplify as, ld recommendations.
15216         (Specific, *-*-solaris2.7): Note obsoletion, removal.
15218 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15220         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
15221         with_tune_32 to pentium4.
15223 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
15225         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
15227 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15229         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
15230         obsoletion, removal.
15231         Update IDO URL.
15232         Document GNU as requirement.
15233         Update configure requirements.
15234         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
15235         Recomment IRIX 6.5.18+.
15236         Document IDF/IDL requirement.
15237         Document GNU as requirement.
15238         Document GNU ld bootstrap failure.
15239         Remove freeware.sgi.com reference.
15241 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15243         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
15244         UNIX V4.0, V5.0 obsoletion, removal.
15245         Remove --with-gc=simple reference.
15246         Update VM requirements during bootstrap.
15247         Remove -oldas bootstrap description.
15248         Update binutils reference.
15249         Remove comparison failure note.
15251 2010-03-31  Richard Guenther  <rguenther@suse.de>
15252             Zdenek Dvorak  <ook@ucw.cz>
15253             Sebastian Pop  <sebastian.pop@amd.com>
15255         PR middle-end/43464
15256         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
15257         with multiple arguments.
15258         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
15260 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15262         * graphite-dependences.c (print_pddr): Call print_pdr with an
15263         extra argument.
15264         * graphite-poly.c (debug_pdr): Add an extra argument for the
15265         verbosity level.
15266         (print_pdr): Same.
15267         (print_pbb_domain): Same.
15268         (print_pbb): Same.
15269         (print_scop_context): Same.
15270         (print_scop): Same.
15271         (print_cloog): Same.
15272         (debug_pbb_domain): Same.
15273         (debug_pbb): Same.
15274         (print_pdrs): Same.
15275         (debug_pdrs): Same.
15276         (debug_scop_context): Same.
15277         (debug_scop): Same.
15278         (debug_cloog): Same.
15279         (print_scop_params): Same.
15280         (debug_scop_params): Same.
15281         (print_iteration_domain): Same.
15282         (print_iteration_domains): Same.
15283         (debug_iteration_domain): Same.
15284         (debug_iteration_domains): Same.
15285         (print_scattering_function): Same.
15286         (print_scattering_functions): Same.
15287         (debug_scattering_function): Same.
15288         (debug_scattering_functions): Same.
15289         * graphite-poly.h (debug_pdr): Update declaration.
15290         (print_pdr): Same.
15291         (print_pbb_domain): Same.
15292         (print_pbb): Same.
15293         (print_scop_context): Same.
15294         (print_scop): Same.
15295         (print_cloog): Same.
15296         (debug_pbb_domain): Same.
15297         (debug_pbb): Same.
15298         (print_pdrs): Same.
15299         (debug_pdrs): Same.
15300         (debug_scop_context): Same.
15301         (debug_scop): Same.
15302         (debug_cloog): Same.
15303         (print_scop_params): Same.
15304         (debug_scop_params): Same.
15305         (print_iteration_domain): Same.
15306         (print_iteration_domains): Same.
15307         (debug_iteration_domain): Same.
15308         (debug_iteration_domains): Same.
15309         (print_scattering_function): Same.
15310         (print_scattering_functions): Same.
15311         (debug_scattering_function): Same.
15312         (debug_scattering_functions): Same.
15314 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15316         * graphite-poly.c (print_scattering_function_1): New.
15317         (print_scattering_function): Call it.
15318         (print_scop_params): Remove spaces at the end of lines.
15319         (print_cloog): New.
15320         (debug_cloog): New.
15321         * graphite-poly.h (print_cloog): Declared.
15322         (debug_cloog): Declared.
15324 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15326         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
15327         in loop->header.
15328         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
15329         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
15330         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
15331         to switch between adding the IV bump in loop->latch or in loop->header.
15333 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15335         * graphite-poly.c (print_scattering_function): Pretty print following
15336         the scoplib format.
15337         (print_pdr): Same.
15338         (print_pbb_domain): Same.
15339         (dump_gbb_cases): Same.
15340         (dump_gbb_conditions): Same.
15341         (print_pdrs): Same.
15342         (print_pbb): Same.
15343         (print_scop_params): Same.
15344         (print_scop_context): Same.
15345         (print_scop): Same.
15346         (print_pbb_body): New.
15347         (lst_indent_to): New.
15348         (print_lst): Start new lines with a #.
15349         * graphite-poly.h (pbb_bb): New.
15350         (pbb_index): Use pbb_bb.
15351         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
15352         disjuncts.
15353         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
15355 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
15357         * dwarf2out.c (size_of_die): For -gdwarf-4 use
15358         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
15359         and 0 instead of 1 for dw_val_class_flag.
15360         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
15361         dw_val_class_range_list, dw_val_class_loc_list,
15362         dw_val_class_lineptr and dw_val_class_macptr, use
15363         DW_FORM_flag_present for dw_val_class_flag and
15364         DW_FORM_exprloc for dw_val_class_loc.
15365         (output_die): For -gdwarf-4 print dw_val_class_loc
15366         size as uleb128 instead of 1 or 2 bytes and don't print
15367         anything for dw_val_class_flag.
15369         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
15370         instead of cselib_lookup following by tweaking locs->setting_insn.
15372         PR bootstrap/43596
15373         * cselib.c (cselib_process_insn): Clear cselib_current_insn
15374         even before returning from label, setjmp call or volatile asm
15375         handling.
15377 2010-03-31  Richard Guenther  <rguenther@suse.de>
15379         PR middle-end/43600
15380         * cgraphunit.c (cgraph_output_in_order): Do not allocate
15381         temporary data on stack.
15383 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15385         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
15386         (PUSHSECTION_ASM_OP): Remove.
15387         (POPSECTION_ASM_OP): Remove.
15388         (PUSHSECTION_FORMAT): Remove.
15389         * config/sol2.h (PUSHSECTION_FORMAT): Define.
15390         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
15391         * config/sol2.c (solaris_output_init_fini): Use it.
15393 2010-03-31  Jie Zhang  <jie@codesourcery.com>
15395         PR 43574
15396         * opt-functions.awk (var_type_struct): Use signed char type
15397         for simple variables.
15399 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15401         * config/sol2.c: Include output.h.
15402         (solaris_assemble_visibility): New function.
15403         * config/t-sol2 (sol2.o): Add output.h dependency.
15404         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
15405         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
15406         Redefine.
15408 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
15410         PR target/43580
15411         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
15412         V2SImode or XFmode on PRE_DEC.
15414         PR debug/43557
15415         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
15416         BLKmode.
15418 2010-03-31  Jie Zhang  <jie@codesourcery.com>
15420         PR 43562
15421         * reload.h (caller_save_initialized_p): Declare.
15422         * toplev.c (backend_init_target): Don't call
15423         init_caller_save but set caller_save_initialized_p to false.
15424         * caller-save.c (caller_save_initialized_p): Define.
15425         (init_caller_save): Check caller_save_initialized_p.
15426         * ira.c (ira): Call init_caller_save if flag_caller_saves.
15428 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15430         PR target/39048
15431         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
15432         and soft-fp/t-softfp to tmake_file.
15433         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
15434         (LIBGCC2_TF_CEXT): Define.
15435         (TF_SIZE): Define.
15437 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
15439         PR debug/42977
15440         * cselib.c (n_useless_values): Document handling of debug locs.
15441         (n_useless_debug_values, n_debug_values): New variables.
15442         (new_elt_loc_list): Don't add to debug values, keep count.
15443         (promote_debug_loc): New.
15444         (cselib_reset_table): Zero new variables.
15445         (entry_and_rtx_equal_p): Promote debug locs.
15446         (discard_useless_locs): Increment n_useless_debug_values for
15447         debug values.
15448         (remove_useless_values): Adjust n_useless_values and n_debug_values
15449         with n_useless_debug_values.
15450         (add_mem_for_addr): Promote debug locs.
15451         (cselib_lookup_mem): Likewise.
15452         (cselib_lookup_addr): Renamed to...
15453         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
15454         (cselib_log_lookup): ... this.  Turn into...
15455         (cselib_lookup_addr): ... new wrapper.
15456         (cselib_lookup_from_insn): New.
15457         (cselib_invalidate_regno): Increment n_useless_debug_values for
15458         debug values.
15459         (cselib_invalidate_mem): Likewise.
15460         (cselib_process_insn): Take n_deleted and n_debug_values into
15461         account to guard remove_useless_value call.
15462         (cselib_finish): Zero n_useless_debug_values.
15463         * cselib.h (cselib_lookup_from_insn): Declare.
15464         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
15465         (sched_analyze_2): Likewise.
15467 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
15469         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
15470         functions.
15471         (adjust_mems): Replace narrowing SUBREG of expression containing
15472         just PLUS, MINUS, MULT and ASHIFT of registers and constants
15473         with operations in the narrower mode.
15475         PR debug/43593
15476         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
15477         regs_invalidated_by_call instead all call_used_reg_set registers.
15479 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
15481         PR middle-end/43430
15482         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
15483         pointer comparisons with types_compatible_p.
15484         * tree-vect-stmts.c (vectorizable_call): Same.
15485         (vectorizable_condition): Same.
15487 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15489         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
15490         stack check if the mask would be zero.
15492 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
15493             Jack Howarth  <howarth@bromo.med.uc.edu>
15495         * tree-profile.c (tree_init_ic_make_global_vars): Make static
15496         variables TLS.
15498 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
15500         PR other/25232
15501         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
15502         and __unordtf2.
15503         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
15504         Include ___unordxf2 and ___unordtf2.
15505         * config/i386/libgcc-glibc.ver: Do not define inheritance from
15506         GCC_4.4.0 here.
15508 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
15510         * config/lm32/t-lm32: New file.
15511         * config.gcc: Use the above file when targetting lm32.
15513 2010-03-28  Duncan Sands  <baldrick@free.fr>
15515         * Makefile.in (PLUGIN_HEADERS): Add except.h.
15517 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
15519         PR middle-end/43431
15520         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15521         Improve vectorization cost model diagnostic.
15523 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
15525         PR middle-end/43436
15526         * tree-vect-data-refs.c (vect_analyze_data_refs): When
15527         compute_data_dependences_for_loop returns false, early exit
15528         and output an extra diagnostic for the failed data reference
15529         analysis.
15531 2010-03-29  Richard Guenther  <rguenther@suse.de>
15533         PR tree-optimization/43560
15534         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
15535         (can_sm_ref_p): Treat stores to readonly locations as trapping.
15537 2010-03-29  Jie Zhang  <jie@codesourcery.com>
15539         PR 43564
15540         * toplev.c (process_options): Set optimization_default_node
15541         and optimization_current_node.
15542         * opts.c (decode_options): Don't set optimization_default_node
15543         and optimization_current_node.
15545 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
15547         * config/rtems.h: Abandon -qrtems_debug.
15549 2010-03-28  Jan Hubicka  <jh@suse.cz>
15551         PR tree-optimization/43505
15552         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
15553         map should not be copied.
15555 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15557         PR middle-end/41674
15558         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
15559         cdtors, set DECL_PRESERVE_P.
15560         * ipa.c (cgraph_externally_visible_p): Return true if declaration
15561         should be preseved.
15563 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
15565         PR tree-optimization/43528
15566         * stor-layout.c (place_field): Check that constant fits into
15567         unsigned HWI when skipping calculation of MS bitfield layout.
15569 2010-03-27  Jan Hubicka  <jh@suse.cz>
15571         PR middle-end/43391
15572         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
15573         notice_global_symbol work.
15575 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
15577         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
15578         instead of dwarf2out_decl.
15579         (struct var_loc_node): Remove section_label field.
15580         (dwarf2out_function_decl): New function.
15581         (dwarf2out_var_location): Don't set section_label field.
15582         (dwarf2out_begin_function): Don't empty decl_loc_table here.
15584 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15586         PR tree-optimization/43544
15587         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15588         First argument for builtin vectorized function hook is now a
15589         tree to be able to distinguish between machine specific and
15590         standard builtins.
15591         * targhooks.c (default_builtin_vectorized_function): Ditto.
15592         * targhooks.h (default_builtin_vectorized_function): Ditto.
15593         * target.h (struct gcc_target): Ditto.
15594         * tree-vect-stmts.c (vectorizable_function): Ditto.
15595         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
15596         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
15597         Ditto.
15599 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
15601         PR c/43381
15602         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
15603         nested binding iff it is a FUNCTION_DECL.
15604         (store_parm_decls_newstyle): Pass nested=true to bind for
15605         FUNCTION_DECLs amongst parameters.
15607 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
15609         * var-tracking.c (vt_expand_loc_callback): Don't run
15610         cselib_expand_value_rtx_cb in dummy mode if
15611         cselib_dummy_expand_value_rtx_cb returned false.
15613         * var-tracking.c (emit_note_insn_var_location): For one part
15614         notes with offset 0, don't add EXPR_LIST around the location.
15615         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
15616         add_location_or_const_value_attribute): Adjust for that change.
15618         PR debug/43540
15619         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
15620         into first operand and location into second.
15621         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
15622         dw_cfi_oprnd_loc for DW_CFA_expression.
15623         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
15624         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
15625         assume first argument is regnum and second argument is location.
15627 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
15629         PR target/42113
15630         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
15631         of scratch register to DImode.  Split to DImode comparison operator.
15632         Use SImode subreg of scratch register in the multiplication.
15633         (*cmp_sadd_sidi): Ditto.
15634         (*cmp_ssub_si): Ditto.
15635         (*cmp_ssub_sidi): Ditto.
15637 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
15639         PR target/43524
15640         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
15641         Remove invalid assert and wrong comment.
15643 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
15645         PR debug/43516
15646         * flags.h (final_insns_dump_p): New extern.
15647         * final.c (final_insns_dump_p): New variable.
15648         (rest_of_clean_state): Set it before -fdump-final-insns=
15649         dumping, clear afterwards.
15650         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
15651         MEM_ALIAS_SET on MEMs.
15653 2010-03-26  David S. Miller  <davem@davemloft.net>
15655         * configure.ac: Fix sparc GOTDATA_OP bug check.
15656         * configure: Rebuild.
15658 2010-03-26  Alan Modra  <amodra@gmail.com>
15660         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
15662 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15664         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
15665         TLS_SECTION_ASM_FLAG.
15667 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
15669         PR bootstrap/43511
15670         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
15671         Clear first_function_block_is_cold.
15673         PR c/43385
15674         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
15675         argument if the argument is truth_value_p.
15677 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15679         * config/rs6000/constraints.md: Update copyright year for my changes.
15681         PR target/43484
15682         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
15683         used in reg+reg addressing, swap registers.
15685 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
15687         PR debug/43293
15688         * target.h (struct gcc_target): Add code_end hook.
15689         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
15690         if not yet defined.
15691         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
15692         * toplev.c (compile_file): Call targetm.asm_out.code_end
15693         hook before unwind info/debug info output.
15694         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
15695         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
15696         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15697         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
15698         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15699         * config/i386/i386.c (ix86_file_end): Renamed to...
15700         (ix86_code_end): ... this.  Make static.  Don't call
15701         file_end_indicate_exec_stack.  Emit unwind info using
15702         final_start_function/final_end_function.
15703         (darwin_x86_file_end): Remove.
15704         (TARGET_ASM_CODE_END): Define.
15705         * config/i386/i386.h (TARGET_ASM_FILE_END,
15706         NEED_INDICATE_EXEC_STACK): Don't define.
15707         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
15708         (TARGET_ASM_FILE_END): Define to darwin_file_end.
15709         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
15710         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
15712         PR target/43498
15713         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
15714         at the beginning and final_end_function at the end.
15715         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
15717 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15719         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
15720         and Sun as TLS syntax.
15721         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
15722         * configure: Regenerate.
15723         * config.in: Regenerate.
15724         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
15725         (default_elf_asm_named_section): Use it.
15726         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
15727         (i386_output_dwarf_dtprel): Likewise.
15728         (output_addr_const_extra): Likewise.
15729         (output_pic_addr_const): Lowercase @GOTTPOFF.
15730         (output_addr_const_extra): Likewise.
15731         (output_pic_addr_const): Lowercase @GOTNTPOFF.
15732         (output_addr_const_extra): Likewise.
15733         (output_pic_addr_const): Lowercase @INDNTPOFF.
15734         (output_addr_const_extra): Likewise.
15735         (output_pic_addr_const): Lowercase @NTPOFF.
15736         (output_addr_const_extra): Likewise.
15737         (output_pic_addr_const): Lowercase @TPOFF.
15738         (output_addr_const_extra): Likewise.
15739         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
15740         (*tls_global_dynamic_64): Likewise.
15741         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
15742         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
15744         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
15745         (ASM_OUTPUT_TLS_COMMON): Use it.
15746         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
15748         PR target/38118
15749         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
15750         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
15751         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
15752         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
15753         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15754         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
15756 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15758         * config/i386/i386.c (override_options): Don't accept
15759         -mtls-dialect=sun any longer.
15760         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
15761         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
15762         (*tls_local_dynamic_base_32_sun): Likewise.
15763         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15765 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
15767         PR debug/43508
15768         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15769         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
15771         PR debug/43479
15772         * ira.c (adjust_cleared_regs): New function.
15773         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
15775         PR debug/19192
15776         PR debug/43479
15777         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
15778         from gimple_block.
15779         * expr.c (expand_expr_real): Restore previous
15780         curr_insn_source_location and curr_insn_block after
15781         expand_expr_real_1 call.
15782         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
15783         instead of expand_expr_real_1.
15785 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
15787         PR rtl-optimization/43413
15788         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
15789         hard regs too.
15791 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
15793         PR target/43348
15794         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
15795         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
15797 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15799         * config/i386/i386.c (ix86_target_string): Add -mfma.
15800         Fix a typo in comment.
15802 2010-03-22  Mike Stump  <mikestump@comcast.net>
15804         PR target/23071
15805         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
15806         Don't overly align based upon packed packed fields.
15808 2010-03-22  Jason Merrill  <jason@redhat.com>
15810         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
15811         Use () rather than [], and move before the element type.
15813 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15815         * doc/configfiles.texi (Configuration Files): Removed
15816         fixinc/Makefile*, intl/Makefile.*.
15817         * doc/makefile.texi: Fixed markup. Abstract from version
15818         control system used.
15819         (Makefile): Removed obsolete gcc/java/parse.y example.
15820         * doc/sourcebuild.texi: Likewise.
15821         (Top Level): Added config, gnattools, libdecnumber, libgcc,
15822         libgomp, libssp.  Removed fastjar.
15823         (Miscellaneous Docs): Clarify location.
15824         Added COPYING3, COPYING3.LIB.
15825         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
15827 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15829         PR target/38085
15830         * config/i386/i386.c (x86_function_profiler)
15831         [!NO_PROFILE_COUNTERS]: Fix typo.
15832         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
15833         instead of callq.
15835 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
15836             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15838         * doc/sourcebuild.texi (Test Directives): Split into six
15839         subsections, with most of the current text in new subsections
15840         Directives, Selectors, and Final Actions.
15841         (Directives): Split list of test directives into multiple
15842         subsubsections.
15843         (Selectors): Describe use and syntax of selectors.
15844         (Effective-Target Keywords): Describe all existing keywords.
15845         (Add Options): Describe features for dg-add-options.
15846         (Require Support): Describe variants of dg-require-support.
15847         (Final Actions): Describe commands to use in dg-final.
15849 2010-03-22  Michael Matz  <matz@suse.de>
15851         PR middle-end/43475
15852         * recog.c (validate_replace_rtx_group): Replace also in
15853         REG_EQUAL and REG_EQUIV notes.
15855 2010-03-22  Richard Guenther  <rguenther@suse.de>
15857         PR tree-optimization/43390
15858         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
15859         sure vector extracts are type correct.
15861 2010-03-22  Richard Guenther  <rguenther@suse.de>
15863         PR middle-end/40106
15864         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
15865         x * sqrt (x) even when optimizing for size if the target
15866         has native support for sqrt.
15868 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
15870         * varasm.c (make_decl_rtl_for_debug): Also clear
15871         flag_mudflap for the duration of make_decl_rtl call.
15873         PR debug/43443
15874         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
15875         locs from preserved VALUEs.
15877 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15879         PR middle-end/42718
15880         * pa.md (movmemsi): Set align to one if zero.
15881         (movmemdi): Likewise.
15883 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
15885         PR target/42321
15886         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
15887         with their corresponding prologue pushes.
15889 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
15891         PR target/43156
15892         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
15893         at the begining or end.
15894         (spu_expand_epilogue): Likewise.
15896 2010-03-20  Richard Guenther  <rguenther@suse.de>
15898         PR rtl-optimization/43438
15899         * combine.c (make_extraction): Properly zero-/sign-extend an
15900         extraction of the low part of a CONST_INT.  Also handle
15901         CONST_DOUBLE.
15903 2010-03-19  Mike Stump  <mikestump@comcast.net>
15905         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
15906         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
15907         (override_options): Use SUBTARGET32_DEFAULT_CPU.
15909 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
15911         PR c/43211
15912         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
15913         an error.
15915 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
15917         PR rtl-optimization/42258
15918         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
15919         use that may match DEF.
15921         PR target/40697
15922         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
15923         the cost of loading the constant rather than assuming
15924         COSTS_N_INSNS (1).
15925         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
15926         outer code is AND, do the same tests as the andsi3 expander and
15927         return COSTS_N_INSNS (1) if and is cheap.
15929         * optabs.c (avoid_expensive_constant): Fix formatting.
15931 2010-03-19  Michael Matz  <matz@suse.de>
15933         PR c++/43116
15934         * attribs.c (decl_attributes): When rebuilding a function pointer
15935         type use the same qualifiers as the original pointer type.
15937 2010-03-19  Martin Jambor  <mjambor@suse.cz>
15939         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
15940         and is_gimple_ip_invariant_address.
15942 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15944         Revert
15945         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15947         * config/arm/arm.c (arm_override_options): Turn off
15948         flag_dwarf2_cfi_asm for AAPCS variants.
15950 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15952         PR target/43399
15953         * config/arm/arm.c (emit_multi_reg_push): Update comments.
15954         Use PRE_MODIFY instead of PRE_DEC.
15955         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
15956         (vfp_emit_fstmd): Likewise.
15958 2010-03-19  Michael Matz  <matz@suse.de>
15960         PR target/43305
15961         * builtins.c (expand_builtin_interclass_mathfn,
15962         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
15963         if that fails.
15965 2010-03-19  Richard Guenther  <rguenther@suse.de>
15967         PR tree-optimization/43415
15968         * tree-ssa-pre.c (phi_translate): Split out worker to ...
15969         (phi_translate_1): ... this.
15970         (phi_translate): Move all caching here.  Cache all NARY
15971         and REFERENCE translations.
15973 2010-03-19  David S. Miller  <davem@davemloft.net>
15975         With help from Eric Botcazou.
15976         * config/sparc/sparc.c: Include dwarf2out.h.
15977         (emit_pic_helper): Delete.
15978         (pic_helper_symbol_name): Delete.
15979         (pic_helper_emitted_p): Delete.
15980         (pic_helper_needed): New.
15981         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
15982         (get_pc_thunk_name): New.
15983         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
15984         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
15985         Set pic_helper_needed to true.  Don't call emit_pic_helper.
15986         (sparc_expand_prologue): Update load_pic_register call.
15987         (sparc_output_mi_thunk): Likewise.
15988         (sparc_file_end): Emit a hidden comdat symbol for the PIC
15989         thunk if possible.  Output CFI information as needed.
15991 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15992             Jack Howarth  <howarth@bromo.med.uc.edu>
15994         PR target/36399
15995         * config/i386/i386.h: Fix ABI on darwin x86-32.
15997 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
15999         * tree.h: Declare make_decl_rtl_for_debug.
16000         * varasm.c (make_decl_rtl_for_debug): New.
16001         * dwarf2out.c (rtl_for_decl_location): Call it.
16002         * cfgexpand.c (expand_debug_expr): Call it.
16004 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
16006         PR bootstrap/43399
16007         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
16008         mem_mode.
16010         PR bootstrap/43403
16011         * var-tracking.c (vt_init_cfa_base): Do nothing if
16012         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
16014 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
16016         PR debug/42873
16017         * var-tracking.c (canonicalize_vars_star): New.
16018         (dataflow_post_merge_adjust): Use it.
16020 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
16022         PR debug/43058
16023         * var-tracking.c (non_suitable_const): New function.
16024         (add_uses): For DEBUG_INSNs with constants, don't record any
16025         value, instead just the constant value itself.
16026         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
16027         is not VAR_LOC_UNKNOWN_P, set var to the constant.
16028         (emit_notes_in_bb): Likewise.
16029         (emit_note_insn_var_location): For onepart variables if
16030         cur_loc is a VOIDmode constant, use DECL_MODE.
16032 2010-03-18  Martin Jambor  <mjambor@suse.cz>
16034         PR middle-end/42450
16035         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
16036         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
16037         all non-clones.  Moved call redirection...
16038         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
16039         (cgraph_materialize_all_clones): Dispose of all
16040         combined_args_to_skip bitmaps.
16041         (verify_cgraph_node): Do not check for edges pointing to wrong
16042         nodes in inline clones.
16043         * tree-inline.c (copy_bb): Call
16044         cgraph_redirect_edge_call_stmt_to_callee.
16045         * ipa.c (cgraph_remove_unreachable_nodes): Call
16046         cgraph_node_remove_callees even when there are used clones.
16048 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
16050         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
16052 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
16054         PR target/43383
16055         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
16056         for 32bit.
16058 2010-03-18  Michael Matz  <matz@suse.de>
16060         PR middle-end/43419
16061         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
16062         into sqrt(x) if we need to preserve signed zeros.
16064 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
16065             Eric Botcazou  <ebotcazou@adacore.com>
16067         PR rtl-optimization/43360
16068         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
16069         note if we don't know its invariant status.
16071 2010-03-18  Michael Matz  <matz@suse.de>
16073         PR tree-optimization/43402
16074         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
16075         PHI chains of ssa names registered for update.
16077 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
16079         PR target/42427
16080         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
16081         non-offsettable and pre_modify update addressing.
16082         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
16083         and "2" alternatives "#".
16084         (*movdd_softfloat32): Make all alternatives "#";
16085         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
16086         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
16087         (*movdf_softfloat32): Make all alternatives "#";
16088         (movdi): Use the new DIFD mode iterator to create a common splitter
16089         for movdi, movdf and movdd patterns.
16091 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
16093         * common.opt (dumpdir): Remove redundant tab.
16095 2010-03-17  Martin Jambor  <mjambor@suse.cz>
16097         PR tree-optimization/43347
16098         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
16099         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
16101 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
16103         PR rtl-optimization/42216
16104         * regrename.c (create_new_chain): New function, broken out from...
16105         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
16106         appending a use to an empty chain.
16107         (build_def_use): Remove previous changes that convert OP_INOUT to
16108         OP_OUT operands; instead detect the case where an OP_INOUT operand
16109         uses a previously untracked register and create an empty chain for it.
16111 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16113         * doc/extend.texi (Function Attributes): Rewrite unfinished
16114         sentence in ms_abi documentation.
16116 2010-03-17  Alan Modra  <amodra@gmail.com>
16118         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
16119         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
16120         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
16121         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
16123 2010-03-16  Richard Henderson  <rth@redhat.com>
16125         PR middle-end/43365
16126         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
16127         (lower_try_finally): Save and restore eh_seq around the expansion
16128         of the try-finally.
16130 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
16132         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
16133         statements before splitting block.
16135 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16137         * doc/sourcebuild.texi (Testsuites): Fix markup.
16138         Use pathnames relative to gcc/testsuite.
16139         (Test Directives): Move description of how timeout is determined.
16140         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
16141         (C Tests): Correct gcc.misc-tests directory.
16142         Framework tests now live in gcc.test-framework.
16144 2010-03-16  Richard Guenther  <rguenther@suse.de>
16146         PR middle-end/43379
16147         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
16148         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
16150 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
16151             Alexandre Oliva  <aoliva@redhat.com>
16153         PR tree-optimization/42917
16154         * lambda-code.c (remove_iv): Skip debug statements.
16155         (lambda_loopnest_to_gcc_loopnest): Likewise.
16156         (not_interesting_stmt): Debug statements are not interesting.
16158 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
16160         PR debug/43051
16161         PR debug/43092
16162         * cselib.c (cselib_preserve_constants,
16163         cfa_base_preserved_val): New static variables.
16164         (preserve_only_constants): New function.
16165         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
16166         clear its REG_VALUES.  If cselib_preserve_constants, don't
16167         empty the whole hash table, but preserve there VALUEs with constants,
16168         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
16169         (cselib_preserve_cfa_base_value): New function.
16170         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
16171         (cselib_init): Change argument to int bitfield.  Set
16172         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
16173         is in it.
16174         (cselib_finish): Clear cselib_preserve_constants and
16175         cfa_base_preserved_val.
16176         * cselib.h (enum cselib_record_what): New enum.
16177         (cselib_init): Change argument to int.
16178         (cselib_preserve_cfa_base_value): New prototype.
16179         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
16180         * dse.c (dse_step1): Likewise.
16181         * cfgcleanup.c (thread_jump): Likewise.
16182         * sched-deps.c (sched_analyze): Likewise.
16183         * gcse.c (local_cprop_pass): Likewise.
16184         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
16185         If FN is non-NULL, call the callback always and whenever it returns
16186         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
16187         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
16188         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
16189         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
16190         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
16191         * var-tracking.c: Include recog.h.
16192         (bb_stack_adjust_offset): Remove.
16193         (vt_stack_adjustments): Don't call it, instead just gather the
16194         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
16195         (adjust_stack_reference): Remove.
16196         (compute_cfa_pointer): New function.
16197         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
16198         (struct adjust_mem_data): New type.
16199         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
16200         functions.
16201         (get_address_mode): New function.
16202         (replace_expr_with_values): Use it.
16203         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
16204         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
16205         (adjust_sets): Remove.
16206         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
16207         Use get_address_mode.
16208         (get_adjusted_src): Remove.
16209         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
16210         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
16211         (add_with_sets): Don't call adjust_sets.
16212         (fp_setter, vt_init_cfa_base): New functions.
16213         (vt_initialize): Change return type to bool.  Move most of pool etc.
16214         initialization to the beginning of the function from end.  Pass
16215         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
16216         If !frame_pointer_needed, call vt_stack_adjustment before mos
16217         vector is filled, call vt_init_cfa_base if argp/framep has been
16218         eliminated to sp.  If frame_pointer_needed and argp/framep has
16219         been eliminated to hard frame pointer, set
16220         hard_frame_pointer_adjustment and call vt_init_cfa_base after
16221         encountering fp setter in the prologue.  For MO_ADJUST, call
16222         log_op_type before pusing the op into mos vector, not afterwards.
16223         Call adjust_insn before cselib_process_insn/add_with_sets,
16224         call cancel_changes (0) afterwards.
16225         (variable_tracking_main_1): Adjust for vt_initialize calling
16226         vt_stack_adjustments and returning whether it succeeded or not.
16228 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
16230         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
16231         debug statements.
16233 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
16235         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
16236         has been set.
16237         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
16238         drap_reg has not been set.
16240 2010-03-15  Michael Matz  <matz@suse.de>
16242         PR middle-end/43300
16243         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
16244         use it to expand block copies.
16245         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
16246         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
16247         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
16249 2010-03-15  Richard Guenther  <rguenther@suse.de>
16251         PR tree-optimization/43367
16252         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
16253         elimination check.
16255 2010-03-15  Richard Guenther  <rguenther@suse.de>
16257         PR tree-optimization/43317
16258         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
16260 2010-03-15  Martin Jambor  <mjambor@suse.cz>
16262         PR tree-optimization/43141
16263         * tree-sra.c (create_abstract_origin): New function.
16264         (modify_function): Call create_abstract_origin.
16266 2010-03-15  Chris Demetriou  <cgd@google.com>
16268         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
16269         wasn't copied.
16271 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16273         PR middle-end/43354
16274         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
16275         call insert_out_of_ssa_copy for default definitions.
16277 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16279         * graphite-clast-to-gimple.c (my_long_long): Defined.
16280         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
16281         * graphite-sese-to-poly.c (my_long_long): Defined.
16282         (scop_ivs_can_be_represented): Use it.
16284 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16286         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
16287         graphite-max-bbs-per-function, and loop-block-tile-size.
16288         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
16289         with "maximum".
16290         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
16292 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16294         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
16295         forward declaration.
16296         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
16297         (add_upper_bounds_from_estimated_nit): New.
16298         (build_loop_iteration_domains): Use it.
16300 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16302         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
16304 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16306         PR middle-end/43306
16307         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
16308         should be an INTEGER_CST.  Also handle CASE_CONVERT.
16310 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16312         * graphite.c (graphite_initialize): To bound the number of bbs per
16313         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
16314         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
16315         * doc/invoke.texi: Document it.
16317 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16319         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
16320         * graphite-sese-to-poly.h (build_poly_scop): Same.
16322 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16324         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
16325         the number of parameters in the scop.  Use as an upper bound
16326         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
16327         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
16328         * doc/invoke.texi: Document it.
16330 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
16332         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
16333         * doc/c-tree.texi: Remove.
16334         * doc/generic.texi: Merge c-tree.texi here.
16335         * doc/gccint.texi (Trees): Remove menu entry.
16336         (c-tree.texi): Remove @include.
16337         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
16338         * doc/languages.texi (Reading RTL): Ditto.
16340 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
16342         PR target/42869
16343         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
16345 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
16347         PR middle-end/42431
16348         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
16349         code added to work around reload clobbering CONST insns.
16351 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
16353         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
16354         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
16355         (cselib_preserve_only_values): Remove retain argument, don't
16356         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
16357         * cselib.h (cselib_preserve_only_values): Remove retain argument.
16358         * var-tracking.c (micro_operation): Move insn field before union.
16359         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
16360         (struct variable_tracking_info_def): Remove n_mos field, change
16361         mos into a vector of micro_operations.
16362         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
16363         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
16364         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
16365         changing into a vector.
16366         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
16367         come before all other uops generated by add_stores.
16368         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
16369         argument removal.
16370         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
16371         a vector.  Run just one pass over the bbs instead of separate counting
16372         and computation phase.
16373         (vt_finalize): Free VTI (bb)->mos vector instead of array.
16375         PR debug/43329
16376         * tree-inline.c (remap_decls): Put old_var rather than origin_var
16377         into *nonlocalized_list vector.
16378         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
16379         even if origin is non-NULL.
16380         (gen_variable_die): Likewise.
16381         (process_scope_var): Don't change origin.
16382         (gen_decl_die): Likewise.
16383         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
16384         before adding new edges instead of after it, fix moving over
16385         debug stmts.
16387 2010-03-11  David S. Miller  <davem@davemloft.net>
16389         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
16390         of four.
16391         * configure: Rebuild.
16393 2010-03-11  Martin Jambor  <mjambor@suse.cz>
16395         PR tree-optimization/43257
16396         * tree.c (assign_assembler_name_if_neeeded): New function.
16397         (free_lang_data_in_cgraph): Assembler name assignment moved to the
16398         above new function.
16399         * tree.h (assign_assembler_name_if_neeeded): Declare.
16400         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
16401         the function if needed.
16403 2010-03-11  Chris Demetriou  <cgd@google.com>
16405         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
16406         include/stdint-gcc.h, and include/stdint.h world-readable.
16408 2010-03-11  Richard Guenther  <rguenther@suse.de>
16410         PR tree-optimization/43255
16411         * tree-vrp.c (process_assert_insertions_for): Do not insert
16412         asserts for trivial conditions.
16414 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16416         PR tree-optimization/43280
16417         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
16418         generation.  Move calculation of size out of the if branch.
16419         (find_bswap): Modify compare number generation.
16421 2010-03-11  Richard Guenther  <rguenther@suse.de>
16423         PR lto/43200
16424         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
16425         (input_gimple_stmt): Fixup handled component types during
16426         operand read.  Also fix up decls in ADDR_EXPRs.
16428 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
16430         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
16431         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
16433 2010-03-10  Jan Hubicka  <jh@suse.cz>
16435         PR c/43288
16436         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
16437         * varasm.c (get_variable_section): Don't do that here...
16438         (make_decl_rtl): ... and here.
16439         (do_assemble_alias): Produce decl RTL.
16440         (assemble_alias): Likewise.
16442 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
16444         PR debug/43290
16445         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
16446         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
16447         of fde->vdrap_reg.
16448         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
16449         (based_loc_descr): Only express drap or vdrap regno based expressions
16450         using DW_OP_fbreg when not optimizing.
16451         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
16452         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
16453         REG_CFA_SET_VDRAP note.
16455 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
16457         PR tree-optimization/43236
16458         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
16459         error in calculation of base address in reverse iteration case.
16460         (generate_builtin): Take number of latch executions if the statement
16461         is in the latch.
16463 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
16465         PR middle-end/42859
16466         * tree-eh.c: Include pointer-set.h.
16467         (lower_eh_dispatch): Filter out duplicate case labels and
16468         remove the unneeded edge when the label is unused.  Return
16469         true when some edges are removed.
16470         (execute_lower_eh_dispatch): When any lowering resulted in
16471         removing an edge, also delete unreachable blocks.
16473 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
16475         PR bootstrap/43287
16476         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16477         UNSPEC_MACHOPIC_OFFSET.
16479 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
16481         PR target/43294
16482         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
16483         (m68k_delegitimize_address): New function.
16485 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
16487         PR debug/43299
16488         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
16490         PR debug/43299
16491         * var-tracking.c (adjust_sets): New function.
16492         (count_with_sets, add_with_sets): Use it.
16493         (get_adjusted_src): New inline function.
16494         (add_stores): Use it.
16496         PR debug/43304
16497         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
16498         call cselib_dummy_expand_value_rtx_cb instead of
16499         cselib_expand_value_rtx_cb.
16501         PR debug/43293
16502         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
16503         * config/i386/i386.c: Include debug.h and dwarf2out.h.
16504         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
16505         and .cfi_endproc around the pic thunks.
16506         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
16507         all queued unwind info register saves are saved before the call.
16508         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
16509         considered as sp-=4 for unwind info and the pop as sp+=4 which
16510         also clobbers dest, but doesn't actually restore it.
16512         PR debug/43290
16513         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
16514         RTX_FRAME_RELATED_P.
16516 2010-03-09  Jie Zhang  <jie@codesourcery.com>
16518         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
16519         whitespaces in output template.
16521 2010-03-09  Jie Zhang  <jie@codesourcery.com>
16523         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
16524         out array boundary.
16526 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
16528         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
16529         builtins.exp in a separate job.
16531 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16533         * graphite-sese-to-poly.c (add_param_constraints): Use
16534         lower_bound_in_type and upper_bound_in_type.
16536 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16538         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
16539         instead of unsigned_type_node.
16541 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16542             Reza Yazdani  <reza.yazdani@amd.com>
16544         PR middle-end/43065
16545         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
16546         on pointer type parameters.
16548 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
16550         PR middle-end/42644
16551         PR middle-end/42130
16552         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
16553         handle conversions from pointer to integers.
16554         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
16555         induction variable, to be able to work with code generated by CLooG.
16556         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
16557         (build_poly_scop): Bail out if we cannot codegen a loop.
16559 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
16561         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
16562         code generation with gloog_error.
16564 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16566         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
16567         Call fold_convert on all the returned values.
16568         (expand_scalar_variables_expr): Pass to
16569         expand_scalar_variables_ssa_name the type of the resulting expression.
16571 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16573         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
16574         ppl_min_for_le_pointset.
16575         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
16576         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
16578 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16580         * graphite-dependences.c (map_into_dep_poly): Removed.
16581         (dependence_polyhedron_1): Use combine_context_id_scat.
16583 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16585         * graphite-poly.h (struct poly_scattering): Add layout documentation.
16586         (struct poly_bb): Same.
16587         (combine_context_id_scat): New.
16589 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16591         PR middle-end/42326
16592         * sese.c (name_defined_in_loop_p): Return false for default
16593         definitions.
16595 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16597         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
16598         and clean up the logic.
16600 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16602         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
16603         early return.
16605 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
16607         * var-tracking.c (remove_cselib_value_chains): Define only for
16608         ENABLE_CHECKING.
16609         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
16610         delete_slot_part, emit_notes_for_differences_1): Don't call
16611         remove_cselib_value_chains here.
16612         (set_slot_part, emit_notes_for_differences_2): Don't call
16613         add_cselib_value_chains here.
16614         (preserved_values): New vector.
16615         (preserve_value): New function.
16616         (add_uses, add_stores, vt_add_function_parameters): Use it
16617         instead of cselib_preserve_value.
16618         (changed_values_stack): New vector.
16619         (check_changed_vars_0): New function.
16620         (check_changed_vars_1, check_changed_vars_2): Use it.
16621         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
16622         changed_values_stack VALUEs.
16623         (vt_emit_notes): For all preserved_values call
16624         add_cselib_value_chains.  If ENABLE_CHECKING call
16625         remove_cselib_value_chains before verifying value_chains is empty.
16626         Initialize and free changed_values_stack.
16627         (vt_initialize): Initialize preserved_values.
16628         (vt_finalize): Free preserved_values.
16630 2010-03-08  Richard Guenther  <rguenther@suse.de>
16632         PR tree-optimization/43269
16633         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
16634         region detection.
16636 2010-03-08  Martin Jambor  <mjambor@suse.cz>
16638         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
16639         (ipa_is_param_called): Removed.
16640         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
16641         (ipa_print_node_params): Do not print the called flag.
16642         (ipa_write_node_info): Do not stream the called flag.
16643         (ipa_read_node_info): Likewise.
16645 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
16647         PR debug/43176
16648         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
16649         * cselib.c (struct expand_value_data): Add dummy field.
16650         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
16651         dummy to false.
16652         (cselib_dummy_expand_value_rtx_cb): New function.
16653         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
16654         any rtl.
16655         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
16656         * var-tracking.c: Include pointer-set.h.
16657         (variable): Change n_var_parts to char from int.  Add
16658         cur_loc_changed and in_changed_variables fields.
16659         (variable_canonicalize): Remove.
16660         (shared_var_p): New inline function.
16661         (unshare_variable): Maintain cur_loc_changed and
16662         in_changed_variables fields.  If var was in changed_variables,
16663         replace it there with new_var.  Just copy cur_loc instead of
16664         resetting it to something else.
16665         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
16666         (dataflow_set_union): Don't call variable_canonicalize.
16667         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
16668         of their DEBUG_EXPR_TREE_DECLs.
16669         (canonicalize_loc_order_check): Verify that cur_loc is NULL
16670         and in_changed_variables and cur_loc_changed is false.
16671         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
16672         and cur_loc_changed.  Don't update cur_loc here.
16673         (variable_merge_over_src): Don't call variable_canonicalize.
16674         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
16675         removing loc that is equal to cur_loc, clear cur_loc,
16676         set cur_loc_changed and ensure variable_was_changed is called.
16677         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
16678         compare pointers in cur_loc check, if it is equal to loc,
16679         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
16680         (variable_different_p): Remove compare_current_location argument,
16681         don't compare cur_loc.
16682         (dataflow_set_different_1): Adjust variable_different_p caller.
16683         (variable_was_changed): If dv had some var in changed_variables
16684         already, reset in_changed_variables flag for it and propagate
16685         cur_loc_changed over to the new variable.  On empty var
16686         always set cur_loc_changed.  Set in_changed_variables on whatever
16687         var is added to changed_variables.
16688         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
16689         Use shared_var_p.  When removing loc that is equal to cur_loc,
16690         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
16691         end, don't set it to something else, just call variable_was_changed.
16692         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
16693         loc being removed, clear cur_loc and set cur_loc_changed.
16694         Set cur_loc_changed if all locations have been removed.
16695         (struct expand_loc_callback_data): New type.
16696         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
16697         allocated.  Always create SUBREGs if simplify_subreg failed.
16698         Prefer to use cur_loc, when that fails and still in
16699         changed_variables (and seen first time) recompute it.  Set
16700         cur_loc_changed of variables which had to change cur_loc and
16701         compute elcd->cur_loc_changed if any of the subexpressions used
16702         had to change cur_loc.
16703         (vt_expand_loc): Adjust to pass arguments in
16704         expand_loc_callback_data structure.
16705         (vt_expand_loc_dummy): New function.
16706         (emitted_notes): New variable.
16707         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
16708         that weren't used for any other decl in current
16709         emit_notes_for_changes call call vt_expand_loc_dummy to update
16710         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
16711         first loc_chain location if NULL before.  Always use just
16712         cur_loc instead of first loc_chain location.  When cur_loc_changed
16713         is false, when not --enable-checking=rtl just don't emit any note.
16714         When rtl checking, compute the note and assert it is the same
16715         as previous note.  Clear cur_loc_changed and in_changed_variables
16716         at the end before removing from changed_variables.
16717         (check_changed_vars_3): New function.
16718         (emit_notes_for_changes): Traverse changed_vars to call
16719         check_changed_vars_3 on each changed var.
16720         (emit_notes_for_differences_1): Clear cur_loc_changed and
16721         in_changed_variables.  Recompute cur_loc of new_var.
16722         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
16723         (vt_emit_notes): Initialize and destroy emitted_notes.
16725 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
16727         PR rtl-optimization/42220
16728         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
16729         Use verify_reg_tracked to determine if we should use OP_OUT rather
16730         than OP_INOUT.
16731         (build_def_use): If we see an in-out operand for a register that we
16732         know nothing about, treat is an output if possible, fail the block if
16733         not.
16735 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
16737         PR debug/42897
16738         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
16739         permanently.
16741 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
16743         PR debug/42897
16744         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
16745         uses of relevant DEFs that are dead outside the loop too.
16747 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
16749         * var-tracking.c (dataflow_set_merge): Swap src and src2.
16750         Reverted:
16751         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
16752         PR debug/41371
16753         * var-tracking.c (values_to_unmark): New variable.
16754         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
16755         values_to_unmark vector.  Moved body to...
16756         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
16757         instead queue it into values_to_unmark vector.
16758         (vt_find_locations): Free values_to_unmark vector.
16760 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
16762         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
16763         (site.exp): Export them when plugins are enabled.
16765 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
16767         PR middle-end/42326
16768         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
16769         that contain scevs.
16770         (chrec_fold_multiply): Same.
16772 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
16774         PR c/43248
16775         * c-decl.c (build_compound_literal): Return early if init is
16776         an error_mark_node.
16778 2010-03-04  Martin Jambor  <mjambor@suse.cz>
16780         PR tree-optimization/43164
16781         PR tree-optimization/43191
16782         * tree-sra.c (type_consists_of_records_p): Reject records with
16783         zero-size bit-fields at the end.
16785 2010-03-04  Mike Stump  <mikestump@comcast.net>
16787         * Makefile.in (TAGS): Remove *.y.
16789 2010-03-04  Richard Guenther  <rguenther@suse.de>
16791         PR tree-optimization/40761
16792         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
16793         in reverse order.
16794         (my_rev_post_order_compute): New function.
16795         (init_pre): Call it.
16797 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
16799         PR middle-end/43209
16800         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
16801         decrease the cost of an IV candidate when the cost is infinite.
16803 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16805         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
16806         Use '3DNow!' for the extension of that name, ensure normal space
16807         after the string.
16808         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
16810 2010-03-03  Jeff Law  <law@redhat.com>
16812         * PR middle-end/32693
16813         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
16814         than gen_rtx_SUBREG.
16815         (extract_bit_field_1): Likewise.
16817 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
16819         * doc/sourcebuild.texi (Test directives): Document that arguments
16820         include-opts and exclude-opts are now optional for dg-skip-if,
16821         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
16823 2010-03-03  Jason Merrill  <jason@redhat.com>
16825         PR c++/12909
16826         * cgraph.h (varpool_node): Add extra_name field.
16827         * varpool.c (varpool_extra_name_alias): New.
16828         (varpool_assemble_decl): Emit extra name aliases.
16829         (varpool_mark_needed_node): Look past an extra name alias.
16830         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
16831         * lto-streamer-in.c (lto_input_tree): Read it.
16832         * lto-streamer-out.c (output_unreferenced_globals): Write it.
16834 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
16836         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
16837         (sparc*-*-solaris2*): ...this.
16839 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
16841         PR debug/43229
16842         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
16843         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
16844         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
16845         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
16847         PR debug/43237
16848         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
16849         fallthrough to default handling, just with want_address 0 instead of 2.
16850         For single element lists, add_AT_loc directly, otherwise create an
16851         artificial variable DIE and stick location list to it.
16853         PR debug/43177
16854         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
16855         (VAL_EXPR_HAS_REVERSE): Define.
16856         (reverse_op): New function.
16857         (add_stores): For reversible operations add an extra MO_VAL_USE.
16859 2010-03-02  Jason Merrill  <jason@redhat.com>
16861         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
16863 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
16865         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
16866         (sparc64-*-linux*): Likewise.
16867         (sparc64-*-solaris2*): Include assembler files before linker ones.
16868         (sparc-*-solaris2*): Simplify and reorder to match previous case.
16869         * config/sparc/gas.h: Delete.
16870         * config/sparc/sol2-64.h: Add copyright notice.
16871         * config/sparc/sol2-gas-bi.h: Likewise.
16872         * config/sparc/sol2-gld.h: Likewise.
16873         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
16874         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
16875         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
16876         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
16877         (sparc_elf_asm_named_section): Rename into...
16878         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
16880 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
16882         * config/alpha/alpha.c (override_options): Fix -mtune error message.
16884 2010-03-02  Jeff Law  <law@redhat.com>
16886         PR middle-end/42431
16887         * reload1.c (rtx_p, substitute_stack): Declare.
16888         (substitute): Record addresses of changed rtxs.
16889         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
16890         Restore the original rtx when complete.
16891         (reload): Free subsitute_stack when complete.
16893 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
16895         * doc/gccint.texi (menu): Add Testsuites as a chapter.
16896         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
16897         new chapter.
16898         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
16899         LTO Testing, gcov Testing, profopt Testing, compat Testing,
16900         Torture Tests): Change from subsection to section.
16902 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
16903             Steven Bosscher  <steven@gcc.gnu.org>
16905         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
16906         instead of bb.
16908 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
16910         PR middle-end/42640
16911         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
16912         the assignment from the new induction variable to the assignment
16913         of the value from the original loop PHI function.
16915 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
16916             Daniel Jacobowitz  <dan@codesourcery.com>
16918         * doc/sourcebuild.texi (Test directives): Clarify options to
16919         dg-skip-if.
16921 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16923         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
16924         Disable cfi directives unless GCC and gas agree on using read-only
16925         .eh_frame sections for 64-bit.
16926         * configure: Regenerate.
16928 2010-03-01  Richard Guenther  <rguenther@suse.de>
16930         PR tree-optimization/43220
16931         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
16932         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
16934 2010-03-01  Richard Guenther  <rguenther@suse.de>
16935             Martin Jambor  <mjambor@suse.cz>
16937         PR middle-end/41250
16938         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
16939         gimplified parameters.
16941 2010-03-01  Christian Bruel  <christian.bruel@st.com>
16943         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
16945 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
16947         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
16949 2010-03-01  Richard Guenther  <rguenther@suse.de>
16951         PR middle-end/43213
16952         * expr.c (expand_assignment): Use the alias-oracle to tell
16953         if the rhs aliases the result decl.
16955 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16957         PR pch/14940
16958         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
16959         to sol_gt_pch_get_address.
16960         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
16961         64-bit, SPARC and x86.
16962         (sol_gt_pch_get_address): New function.
16964 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
16966         * toplev.h (inform_n, error_n): Declare.
16967         * diagnostic.c (inform_n, error_n): New function.
16969 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
16971         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
16972         has no rtl yet when processing local_decls, queue it and recheck
16973         if deferred stack allocation hasn't assigned it rtl.
16975 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
16977         * config/sh/sh.c (unspec_bbr_uid): New.
16978         (gen_block_redirect): Use it instead of INSN_UID.
16979         (gen_far_branch): Likewise.
16981 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
16983         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
16984         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
16986 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16988         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
16989         (Warning Options): -Wno-conversion-null is valid for
16990         Objective-C++ as well.
16991         * doc/tm.texi (Named Address Spaces): Likewise.
16992         * doc/plugins.texi (Plugins): Replace TABs with spaces.
16993         * doc/tree-ssa.texi (Tree SSA): Likewise.
16995 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
16997         PR bootstrap/43202
16998         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
16999         by default.  Don't set the default arch for
17000         i[34567]86-*-darwin*|x86_64-*-darwin*.
17002 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
17004         PR bootstrap/43202
17005         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
17006         default.  Set the default 32bit/64bit archs with $with_arch
17007         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
17009 2010-02-27  Richard Guenther  <rguenther@suse.de>
17011         PR tree-optimization/43186
17012         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
17013         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
17014         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
17015         unroller iterations.
17017 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
17019         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
17020         required and i[34567]86-*-* targets don't support 64bit ISA.
17022 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
17024         PR ada/43096
17025         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17026         the same alias set.
17028 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
17030         * config.gcc: Set the default arch at least to Prescott for
17031         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
17032         if SSE math is enabled.
17034 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17036         * diagnostic.c (diagnostic_initialize): Update.
17037         (diagnostic_report_diagnostic): Test inhibit_notes_p for
17038         informative notes.
17039         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
17040         (diagnostic_inhibit_notes): New.
17041         * toplev.c (process_options): inhibit notes with -fcompare-debug.
17043 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17045         PR c/20631
17046         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
17047         * doc/standards.texi: Likewise.
17048         * doc/extend.texi: Likewise.
17049         * doc/trouble.texi: Likewise.
17050         * doc/cppopts.texi: Likewise.
17051         * doc/install.texi: Likewise.
17052         * c.opt (std=c90,std=gnu90): New options.
17053         * c-opts.c (c_common_handle_option): Handle them.
17055 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17057         PR c/24577
17058         * c-decl.c (undeclared_variable): Use an informative note.
17060 2010-02-26  Richard Guenther  <rguenther@suse.de>
17062         PR tree-optimization/43186
17063         * gimple.h (gimple_fold): Remove.
17064         * gimple.c (gimple_fold): Remove.  Inline into single user ...
17065         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
17066         Try harder for conditions.
17068 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
17070         PR debug/43190
17071         * function.c (used_types_insert): Don't skip through named pointer
17072         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
17073         and it is different from the main variant's type.
17075 2010-02-26  Nick Clifton  <nickc@redhat.com>
17077         * config/rx/rx.md (sminsi3): Remove bogus alternative.
17079 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
17081         * config.gcc: Support --with-fpmath=sse for x86.
17083         * config/i386/ssemath.h: New.
17085         * doc/install.texi (--with-fpmath=sse): Documented.
17087 2010-02-26  Richard Guenther  <rguenther@suse.de>
17089         PR tree-optimization/43188
17090         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
17091         vector types of over-aligned element type.
17093 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
17095         PR target/43175
17096         * config/i386/i386.c (expand_vec_perm_blend): Use correct
17097         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
17099 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
17101         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
17103 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
17105         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
17106         * var-tracking.c: Include diagnostic.h.
17107         (debug_dv): New function.
17108         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
17110         PR debug/43160
17111         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
17112         (add_value_chain, add_value_chains, remove_value_chain,
17113         remove_value_chains): Handle DEBUG_EXPRs.
17114         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
17116         PR debug/43161
17117         * regcprop.c (struct queued_debug_insn_change): New type.
17118         (struct value_data_entry): Add debug_insn_changes field.
17119         (struct value_data): Add n_debug_insn_changes field.
17120         (debug_insn_changes_pool): New variable.
17121         (free_debug_insn_changes, apply_debug_insn_changes,
17122         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
17123         (kill_value_one_regno): Call free_debug_insn_changes if needed.
17124         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
17125         fields.
17126         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
17127         changes for them.
17128         (copyprop_hardreg_forward_1): Don't call apply_change_group for
17129         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
17130         changes, call cprop_find_used_regs via note_stores.
17131         (copyprop_hardreg_forward): When copying vd from predecessor
17132         which has any queued DEBUG_INSN changes, make sure the pointers are
17133         cleared.  At the end call df_analyze and then if there are any
17134         DEBUG_INSN changes queued at the end of some basic block for still
17135         live registers, apply them.
17136         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
17138 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
17140         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
17141         (arm*-*-*): Ditto.
17143 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
17145         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
17146         targets.  Set the default with_cpu/with_arch from arch/cpu.
17147         Allow x86-64 and native for with_cpu/with_arch.
17149 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
17151         * ebitmap.c: Change calls to verify_popcount with calls to
17152         sbitmap_verify_popcount.
17153         (ebitmap_clear_bit): Fixed map->cacheindex test and
17154         map>cache update when bit clearing results in an empty
17155         element.
17157 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
17159         PR target/43154
17160         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
17161         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
17162         and support both V2DF and V2DI modes.
17163         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
17164         support both V2DF and V2DI modes.
17165         (general): Delete trailing whitespace from a few patterns.
17167         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17168         V2DF/V2DI interleave high/low builtins.
17170         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
17171         new VSX builtins.
17173         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
17174         interleave high/low functions.
17176 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
17178         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
17179         #pragma extern_prefix.
17181 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
17183         PR debug/43166
17184         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
17185         BLKmode, assert op0 is a MEM and just adjust its mode.
17187         PR debug/43165
17188         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
17189         if bitpos isn't multiple of mode's bitsize.
17191 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17193         * c.opt (-ftemplate-depth=): New.
17194         (-ftemplate-depth-): Deprecate.
17195         * optc-gen.awk: Handle -ftemplate-depth=.
17196         * opth-gen.awk: Likewise.
17197         * c-opts.c (c_common_handle_option): Likewise.
17198         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
17200 2010-02-24  Jason Merrill  <jason@redhat.com>
17202         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
17204 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17206         * cfg.c (alloc_aux_for_block): Remove inline.
17207         (alloc_aux_for_edge): Likewise.
17209 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17211         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
17213 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17215         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
17216         * config/i386/sol2-gas.h: New file.
17217         * config.gcc (i[34567]86-*-solaris2*): Use it.
17219 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17221         PR c/43128
17222         * c-typeck.c (ep_convert_and_check): New.
17223         (build_conditional_expr): Use it.
17224         (build_binary_op): Likewise.
17226 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
17228         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
17230         PR debug/43150
17231         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
17232         bounds even for -O+.
17233         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
17234         expr needs to have DECL_NAME set.
17236 2010-02-24  Nick Clifton  <nickc@redhat.com>
17238         * config/mep/mep.c: Include gimple.h.
17239         (mep_function_uses_sp): Delete unused function.
17240         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
17241         parameters.  Use unsigned integers to count args.  Return a
17242         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
17244 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
17246         PR target/43107
17247         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
17248         greater or equal to nelt instead of 2 * nelt.
17249         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
17250         with nelt - 1.
17252 2010-02-23  Jason Merrill  <jason@redhat.com>
17254         PR debug/42800
17255         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
17256         in cfun->local_decls even if they have register types.
17258         PR c++/42837
17259         * stor-layout.c (place_field): Don't warn about unnecessary
17260         DECL_PACKED if the type is packed.
17262 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
17264         PR target/43139
17265         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
17266         GOTOFF relocs, even when the base reg isn't pic pointer.
17268 2010-02-23  Michael Matz  <matz@suse.de>
17270         PR debug/43077
17271         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
17272         (expand_gimple_basic_block): Generate and use debug temps if there
17273         are debug uses left after the last real use of TERed ssa names.
17274         Unlink debug immediate uses when they are expanded.
17276 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17278         PR 43123
17279         * config/i386/i386.c (override_options): Reorganise to provide
17280         better error messages.
17282 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
17284         PR middle-end/43083
17285         * graphite-scop-detection.c (create_single_exit_edge): Move
17286         the call to find_single_exit_edge to....
17287         (create_sese_edges): ...here.  Don't handle multiple edges
17288         exiting the function.
17289         (build_graphite_scops): Don't handle multiple edges
17290         exiting the function.
17292 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
17294         PR middle-end/43097
17295         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
17296         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
17298 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
17300         PR middle-end/43026
17301         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
17303 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17305         PR c++/43126
17306         * c-typeck.c (convert_arguments): Print declaration location.
17307         * c-common.c (validate_nargs): Rename as
17308         builtin_function_validate_nargs.
17309         (check_builtin_function_arguments): Update.
17311 2010-02-22  Richard Guenther  <rguenther@suse.de>
17313         PR lto/43045
17314         * tree-inline.c (declare_return_variable): Use the type of
17315         the call stmt lhs if available.
17317 2010-02-22  Duncan Sands  <baldrick@free.fr>
17319         * passes.c (register_pass): Always consider all pass lists when
17320         ref_pass_instance_number is zero.
17322 2010-02-22  Richard Guenther  <rguenther@suse.de>
17324         PR tree-optimization/42749
17325         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
17326         parameter.  Do arithmetic in the original type.
17327         (update_accumulator_with_ops): Likewise.
17328         (adjust_accumulator_values): Adjust.
17330 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17332         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
17333         (QI to BLKmode splitter): New splitter.
17335 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
17337         * config/i386/i386.c (initial_ix86_tune_features): Turn on
17338         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
17340 2010-02-22  Richard Guenther  <rguenther@suse.de>
17342         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
17344 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
17346         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
17347         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
17348         ($(T)crti.o, $(T)crtn.o): Remove rules.
17350 2010-02-21  Tobias Burnus  <burnus@net-b.de>
17352         PR fortran/35259
17353         * doc/invoke.texi (-fassociative-math): Document that this
17354         option is automatically enabled for Fortran.
17356 2010-02-20  David S. Miller  <davem@davemloft.net>
17358         * configure.ac: Test if linker and assembler properly support
17359         GOTDATA_OP relocations.
17360         * configure: Rebuild.
17361         * config.in: Likewise.
17362         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
17363         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
17364         (movsi_high_pic): Likewise.
17365         (movdi_lo_sum_pic): Likewise.
17366         (movdi_high_pic): Likewise.
17367         (movsi_pic_gotdata_op): New pattern.
17368         (movdi_pic_gotdata_op): Likewise.
17369         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
17370         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
17372 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
17374         PR target/43067
17375         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
17376         attribute to ssemul.
17377         (xop_mulv2div2di3_high): Ditto.
17379 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17381         PR c++/35669
17382         * c.opt (Wconversion-null): New option.
17383         * doc/invoke.texi (Wconversion-null): Document.
17385 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17387         * common.opt (Wlarger-than-): Add Undocumented.
17389 2010-02-19  Mike Stump  <mikestump@comcast.net>
17391         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
17393 2010-02-19  Jason Merrill  <jason@redhat.com>
17395         PR target/40332
17396         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
17397         * configure: Likewise.
17399 2010-02-20  Alan Modra  <amodra@gmail.com>
17401         PR middle-end/42344
17402         * cgraph.h (cgraph_make_decl_local): Declare.
17403         * cgraph.c (cgraph_make_decl_local): New function.
17404         (cgraph_make_node_local): Use it.
17405         * cgraphunit.c (cgraph_function_versioning): Likewise.
17406         * ipa.c (function_and_variable_visibility): Likewise.
17408 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17410         PR bootstrap/43121
17411         * except.c (sjlj_emit_function_enter): Don't call
17412         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
17413         directly.
17414         * rtl.h (add_reg_br_prob_note): Remove prototype.
17416 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17418         PR 41779
17419         * c-common.c (conversion_warning): Remove widening conversions
17420         before checking the conversion of integers to reals.
17422 2010-02-19  Mike Stump  <mikestump@comcast.net>
17424         PR middle-end/43125
17425         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
17427         PR objc/43061
17428         * cgraphunit.c (process_function_and_variable_attributes): Check
17429         DECL_PRESERVE_P instead of looking up attribute "used".
17430         * ipa-pure-const.c (check_decl): Likewise.
17431         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
17432         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
17433         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
17434         instead of attribute "used".
17435         * config/sol2-c.c (solaris_pragma_init): Likewise.
17436         (solaris_pragma_fini): Likewise.
17438 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17440         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
17441         Use XCNEW instead of xcalloc.
17442         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
17443         XNEW instead of xmalloc.
17444         (get_fields): Use XNEWVEC instead of xmalloc.
17446         PR debug/43084
17447         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
17448         populate vars array.
17449         (create_new_general_access): For debug stmts just reset value.
17450         (get_stmt_accesses): For accesses within debug stmts just record them
17451         using add_access_to_acc_sites instead of preventing the peeling or
17452         counting them as accesses.
17454         PR middle-end/42233
17455         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
17457 2010-02-19  Richard Guenther  <rguenther@suse.de>
17459         PR tree-optimization/42916
17460         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
17461         instructions.
17463 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
17465         * configure.ac: Replace all uses of changequote in macro arguments
17466         with proper quoting.
17468 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17470         PR middle-end/42233
17471         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
17473 2010-02-19  Richard Guenther  <rguenther@suse.de>
17475         PR tree-optimization/42944
17476         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
17477         test for aliasing with errno.
17479 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17481         PR middle-end/42233
17482         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
17483         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
17484         * dojump.c: Include output.h.
17485         (inv): New inline function.
17486         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
17487         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
17488         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
17489         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
17490         argument, pass it down to other calls.
17491         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
17492         add REG_BR_PROB note to the conditional jump.
17493         * cfgexpand.c (add_reg_br_prob_note): Removed.
17494         (expand_gimple_cond): Don't call it, add the probability
17495         as last argument to jumpif_1/jumpifnot_1.
17496         * Makefile.in (dojump.o): Depend on output.h.
17497         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
17498         callers.
17499         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
17500         * stmt.c (do_jump_if_equal): Likewise.
17501         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
17502         * loop-unswitch.c (compare_and_jump_seq): Likewise.
17503         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
17504         Likewise.
17505         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
17506         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
17507         jumpifnot_1 callers.
17508         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
17509         callers.
17510         (store_expr): Adjust jumpifnot caller.
17511         (store_constructor): Adjust jumpif caller.
17513         PR middle-end/42233
17514         * gimplify.c (gimple_boolify): For __builtin_expect call
17515         gimple_boolify also on its first argument.
17517 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
17519         * configure.ac (gnu-unique-object): Wrap regexps using [] in
17520         changequote block.
17521         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
17522         * configure: Regenerated.
17524 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17526         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
17527         lang_hooks.types_compatible_p instead of comptypes.
17529 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17531         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
17532         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
17533         if __prefer_thumb__ is defined.
17535 2010-02-18  Martin Jambor  <mjambor@suse.cz>
17537         PR tree-optimization/43066
17538         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
17539         array with zero-sized element type.
17541 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
17543         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
17544         rtx, allocate struct var_loc_node here and return it to the
17545         caller, and only if it is actually needed.
17546         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
17547         move it earlier and return immediately if it returns NULL.
17549 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
17551         * config/sparc/gas.h: New file.  Restore
17552         TARGET_ASM_NAMED_SECTION to its ELF default.
17553         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
17554         check !HAVE_GNU_AS.
17555         * config/sparc/sparc.c (sparc_elf_asm_named_section):
17556         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
17557         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
17558         after sparc/sysv4.h.
17560 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
17562         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
17564 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
17566         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
17567         patterns from predicated pattern.
17569 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
17571         PR target/43103
17572         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
17573         for insn mnemonic suffix.
17575 2010-02-17  Richard Guenther  <rguenther@suse.de>
17577         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
17578         to loop PHI nodes.
17580 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
17582         PR debug/42918
17583         * caller-save.c (save_call_clobbered_regs): If BB ends with
17584         a DEBUG_INSN, move any notes in between last real insn and the last
17585         DEBUG_INSN after the last DEBUG_INSN.
17587 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
17589         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
17590         Fix return type.  Fix argument type.  Explain meaning of return value.
17592 2010-02-16  Richard Guenther  <rguenther@suse.de>
17594         PR tree-optimization/41043
17595         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
17596         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
17597         statements ...
17598         (vrp_visit_phi_node): ... but only for loop PHI nodes.
17600 2010-02-16  Ira Rosen  <irar@il.ibm.com>
17602         PR tree-optimization/43074
17603         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
17604         * tree-vect-loop.c (vect_analyze_loop_operations): Add
17605         vectorizable cycles in hybrid SLP check.
17606         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
17608 2010-02-16  Richard Guenther  <rguenther@suse.de>
17610         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
17611         (true_dependence): If memrefs_conflict_p computes must-alias
17612         trust it.  Move TBAA check after offset-based disambiguation.
17613         (canon_true_dependence): Likewise.
17615 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
17617         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
17618         * doc/invoke.texi: Document it.
17619         * var-tracking.c: Include toplev.h and params.h.
17620         (vt_find_locations): Return bool indicating success.  Compute
17621         hash sizes unconditionally.  Check new parameter, report.
17622         (variable_tracking_main_1): Check vt_find_locations results and
17623         retry.  Renamed from...
17624         (variable_tracking_main): ... this.  New wrapper to preserve
17625         flag_var_tracking_assignments.
17626         * Makefile.in (var-tracking.o): Adjust dependencies.
17628 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
17629             Jakub Jelinek  <jakub@redhat.com>
17631         PR target/42854
17632         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
17633         if weak_import attribute is present.
17634         * config/darwin.c (machopic_select_section): Likewise.
17636 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
17638         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
17639         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
17640         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
17641         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
17643         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
17644         types.
17646         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
17647         Fix argument types.
17649         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
17650         Rewrite text to refer to the names.
17652 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
17654         * config/i386/i386-builtin-types.def
17655         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
17656         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
17657         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
17658         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
17659         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
17660         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
17661         IX86_BUILTIN_VPERMIL2PS256.
17662         (MULTI_ARG_4_DF2_DI_I): Defined.
17663         (MULTI_ARG_4_DF2_DI_I1): Defined.
17664         (MULTI_ARG_4_SF2_SI_I): Defined.
17665         (MULTI_ARG_4_SF2_SI_I1): Defined.
17666         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
17667         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
17668         __builtin_ia32_vpermil2ps256.
17669         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17670         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17671         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
17672         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17673         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17674         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
17675         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
17676         CODE_FOR_xop_vpermil2v8sf3.
17677         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
17678         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
17679         * config/i386/xopintrin.h (_mm_permute2_pd): New.
17680         (_mm256_permute2_pd): New.
17681         (_mm_permute2_ps): New.
17682         (_mm256_permute2_ps): New.
17684 2010-02-15  Nick Clifton  <nickc@redhat.com>
17686         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
17687         boolean parameters.  Use emit_jump_insn when emitting a pop
17688         instruction containing a return insn.
17689         (push): Use 'true' rather than '1' as second parameter to F.
17690         (h8300_expand_prologue): Likewise.
17691         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
17692         (h8300_expand_epilogue): Likewise.
17694 2010-02-15  Richard Guenther  <rguenther@suse.de>
17696         PR middle-end/43068
17697         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
17698         if that is zero.
17700 2010-02-15  Nick Clifton  <nickc@redhat.com>
17702         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
17703         delta.
17705 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
17707         * intl.c (fake_ngettext): New function.
17708         * intl.h (fake_ngettext): Declare.
17709         (ngettext): Define macro.
17710         * collect2.c (notice_translated): New function.
17711         (main): Use notice_translated and ngettext.
17712         * collect2.h (notice_translated): Declare.
17714 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
17716         * reorg.c (delete_computation): Comment fixes.
17717         * caller-save.c (setup_save_areas): Idem.
17718         * sel-sched-dump.c (dump_lv_set): Idem.
17719         * rtl.def: Idem.
17721 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17723         * config/s390/s390.c (s390_sched_init): New function.
17724         (TARGET_SCHED_INIT): Target hook defined.
17726 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
17727             Jack Howarth  <howarth@bromo.med.uc.edu>
17728             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17730         PR target/42982
17731         Partial revert of unintended change in fix for PR41605.
17732         * config/darwin.h: Fix typo.
17733         * config/darwin9.h: Same.
17735 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
17737         * c-pch.c (pch_init): Clear v.
17739 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17741         PR middle-end/42930
17742         * graphite-scop-detection.c (graphite_can_represent_scev): Call
17743         graphite_can_represent_init for MULT_EXPR.
17745 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17747         PR middle-end/42914
17748         PR middle-end/42530
17749         * graphite-sese-to-poly.c (remove_phi): New.
17750         (translate_scalar_reduction_to_array): Call remove_phi.
17752 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17754         PR middle-end/42771
17755         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
17756         * graphite-clast-to-gimple.h (gloog): Update declaration.
17757         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
17758         * graphite-poly.h (struct poly_bb): Add missing comments.
17759         (struct scop): Add poly_scop_p field.
17760         (POLY_SCOP_P): New.
17761         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
17762         * graphite.c (graphite_transform_loops): Build the polyhedral
17763         representation for each scop before code generation.
17764         * sese.c (rename_variables_in_operand): Removed.
17765         (rename_variables_in_expr): Return the renamed expression.
17766         (rename_sese_parameters): New.
17767         * sese.h (rename_sese_parameters): Declared.
17769 2010-02-11  Richard Guenther  <rguenther@suse.de>
17771         PR tree-optimization/42998
17772         * tree-ssa-pre.c (create_expression_by_pieces): Treat
17773         POINTER_PLUS_EXPR properly.
17775 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17776             Changpeng Fang  <changpeng.fang@amd.com>
17778         PR middle-end/40886
17779         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
17780         the cost of an IV candidate when the IV is used in a test against zero.
17782         * gcc.dg/tree-ssa/ivopts-3.c: New.
17784 2010-02-11  Richard Guenther  <rguenther@suse.de>
17786         PR lto/41664
17787         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
17788         pointer-vs-decl case by swapping refs.  Handle some cases
17789         of pointer-vs-decl disambiguations more conservatively.
17790         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
17791         to false after expanding.
17793 2010-02-11  Richard Guenther  <rguenther@suse.de>
17795         PR driver/43021
17796         * gcc.c (process_command): Handle LTO file@offset case more
17797         appropriately.
17799 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
17801         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
17802         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
17803         of DEBUG_INSNs.
17804         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
17806         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
17807         if MEM's mode size isn't DWARF2_ADDR_SIZE.
17808         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
17809         Optimize eq/ne comparisons when both arguments are known to be
17810         zero-extended.
17811         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
17812         Don't mask operands unnecessarily if they are known to be already
17813         zero-extended.
17815 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
17817         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
17818         instead of loop.
17820 2010-02-10  Richard Guenther  <rguenther@suse.de>
17822         PR tree-optimization/43017
17823         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
17824         for wrapping signed arithmetic.
17826 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
17828         PR debug/43010
17829         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
17830         if no debug info should be emitted for it.
17832 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
17834         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
17835         note when flag_exceptions is set.
17837 2010-02-10  Duncan Sands  <baldrick@free.fr>
17839         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
17841 2010-02-10  Richard Guenther  <rguenther@suse.de>
17843         PR c/43007
17844         * tree.c (get_unwidened): Handle constants.
17845         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
17847 2010-02-10  Martin Jambor  <mjambor@suse.cz>
17849         PR lto/42985
17850         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
17851         check for variable argument counts independently.
17853 2010-02-10  Christian Bruel  <christian.bruel@st.com>
17855         PR target/42841
17856         * config/sh/sh.c (find_barrier): Increase length for non delayed
17857         conditional branches.
17859 2010-02-10  Christian Bruel  <christian.bruel@st.com>
17861         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
17863 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
17865         * builtins.c (set_builtin_user_assembler_name): Also handle
17866         ffs if int is smaller than word.
17868 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
17870         PR middle-end/42973
17871         * ira-conflicts.c (get_dup): Remove.
17872         (process_reg_shuffles): Add new parameter.  Use it as an
17873         additional guard for copy generation.
17874         (add_insn_allocno_copies): Rewrite.
17876 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
17878         * common.opt (fsched2-use-traces): Preserved for backward
17879         compatibility.
17880         * doc/invoke.texi: Remove the documentation about option
17881         -fsched2-use-traces.
17882         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
17883         flag_sched2_use_traces.
17884         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
17885         the backward compatibility flag section.
17887 2010-02-09  Richard Guenther  <rguenther@suse.de>
17889         PR tree-optimization/43008
17890         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
17891         make HEAP variables initialized from global memory if they
17892         are not known builtin functions.
17893         (find_func_aliases): Adjust.
17895 2010-02-09  Richard Guenther  <rguenther@suse.de>
17897         PR tree-optimization/43000
17898         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
17899         arithmetic manually.
17901 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
17903         PR tree-optimization/42931
17904         * tree-loop-linear.c (try_interchange_loops): Don't call
17905         double_int_mul if estimated_loop_iterations failed.
17907 2010-02-08  Martin Jambor  <mjambor@suse.cz>
17909         PR middle-end/42898
17910         * tree-sra.c (build_accesses_from_assign): Do not mark in
17911         should_scalarize_away_bitmap if stmt has volatile ops.
17912         (sra_modify_assign): Do not process assigns piecemeal if if stmt
17913         has volatile ops.
17915 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
17917         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
17919 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
17921         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
17922         before the pattern.
17924 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
17926         PR middle-end/42946
17927         * df-core.c (df_finish_pass): Change type of saved_flags to int.
17929 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
17931         PR middle-end/42988
17932         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
17933         to unknown_dependence.
17934         (graphite_legal_transform_dr): Handle the unknown_dependence.
17935         (graphite_carried_dependence_level_k): Same.
17937 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
17939         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
17941 2010-02-07  Richard Guenther  <rguenther@suse.de>
17943         PR middle-end/42991
17944         * expr.c (get_inner_reference): Always initialize *pbitsize.
17946 2010-02-07  Richard Guenther  <rguenther@suse.de>
17948         PR middle-end/42956
17949         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
17950         new ARRAY_REFs on variable size element or minimal index arrays.
17951         Complete.
17952         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
17953         gimple_fold_indirect_ref.
17955 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
17957         PR target/42957
17958         * arm.c (arm_override_options): Just return if the user has specified
17959         an invalid fpu name.
17961 2010-02-03  Jason Merrill  <jason@redhat.com>
17963         PR c++/42870
17964         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
17965         i386_pe_maybe_record_exported_symbol.
17967 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
17969         PR target/42924
17970         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17971         (pa_delegitimize_address): New function.
17973 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
17975         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
17976         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
17978 2010-02-05  Richard Guenther  <rguenther@suse.de>
17980         PR lto/42762
17981         * lto-streamer-in.c (get_resolution): Deal with references
17982         to undefined functions.
17984 2010-02-05  Richard Guenther  <rguenther@suse.de>
17986         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
17987         (fold_const_aggregate_ref): Likewise.
17988         (ccp_fold_stmt): Substitute loads.
17989         (maybe_fold_reference): Verify types before substituting.
17990         Unshare properly.
17991         (fold_gimple_assign): Unshare properly.
17992         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
17994 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
17996         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
17997         for rs6000_gen_cell_microcode.
17999 2010-02-04  Richard Guenther  <rguenther@suse.de>
18001         PR rtl-optimization/42952
18002         * dse.c (const_or_frame_p): Remove MEM handling.
18004 2010-02-04  Nick Clifton  <nickc@redhat.com>
18006         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
18007         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18008         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
18009         (mn10300_asm_output_mi_thunk): New function.
18010         (mn10300_can_output_mu_thunk): New function.
18011         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
18012         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
18013         (FUNCTION_ARG): Delete incorrect comment.
18015 2010-02-03  Jason Merrill  <jason@redhat.com>
18017         PR c++/40138
18018         * fold-const.c (operand_equal_p): Handle erroneous types.
18020 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
18022         * config/h8300/h8300.md (can_delay): Fix attibute condition.
18024 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
18026         PR rtl-optimization/42941
18027         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
18028         of xmalloc.
18030 2010-02-03  Jason Merrill  <jason@redhat.com>
18032         PR c++/35652
18033         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
18035 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
18037         PR debug/42896
18038         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
18039         (cselib_reset_table): Renamed from...
18040         (cselib_reset_table_with_next_value): ... this.
18041         (cselib_get_next_uid): Renamed from...
18042         (cselib_get_next_unknown_value): ... this.
18043         * cselib.c (next_uid): Renamed from...
18044         (next_unknown_value): ... this.
18045         (cselib_clear_table): Adjust.
18046         (cselib_reset_table): Adjust.  Renamed from...
18047         (cselib_reset_table_with_next_value): ... this.
18048         (cselib_get_next_uid): Adjust.  Renamed from...
18049         (cselib_get_next_unknown_value): ... this.
18050         (get_value_hash): Use hash.
18051         (cselib_hash_rtx): Likewise.
18052         (new_cselib_val): Adjust.  Set and dump uid.
18053         (cselib_lookup_mem): Pass next_uid as hash.
18054         (cselib_subst_to_values): Likewise.
18055         (cselib_log_lookup): Dump uid.
18056         (cselib_lookup): Pass next_uid as hash.  Adjust.
18057         (cselib_process_insn): Adjust.
18058         (cselib_init): Initialize next_uid.
18059         (cselib_finish): Adjust.
18060         (dump_cselib_table): Likewise.
18061         * dse.c (canon_address): Dump value uid.
18062         * print-rtl.c (print_rtx): Print value uid.
18063         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
18064         (dvuid): New type.
18065         (dv_uid): New function, sort of renamed from...
18066         (dv_htab_hash): ... this, reimplemented in terms of it and...
18067         (dv_uid2hash): ... this.  New.
18068         (variable_htab_eq): Drop excess assertions.
18069         (tie_break_pointers): Removed.
18070         (canon_value_cmp): Compare uids.
18071         (variable_post_merge_New_vals): Print uids.
18072         (vt_add_function_parameters): Adjust.
18073         (vt_initialize): Reset table.  Adjust.
18075 2010-02-03  Richard Guenther  <rguenther@suse.de>
18077         PR tree-optimization/42944
18078         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
18079         (call_may_clobber_ref_p_1): Likewise.  Properly handle
18080         malloc and calloc clobbering errno.
18082 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
18084         * doc/invoke.texi: Fix name of sched1 dump.
18086         * opts.c (decode_options): Set flag_tree_switch_conversion
18087         only conditionally on optimize >= 2.
18089         * gcse.c: Assorted comment fixes in pass description.
18091 2010-02-03  Anthony Green  <green@moxielogic.com>
18093         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
18094         nop padding in order to maintain alignment of storage location of
18095         target function address.
18096         (moxie_trampoline_init): Store target function address at newly
18097         aligned location.
18098         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
18099         to 32.
18100         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
18102 2010-02-03  Richard Guenther  <rguenther@suse.de>
18104         PR middle-end/42927
18105         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
18107 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18109         * config.gcc: Reenable check for obsolete targets.
18110         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
18111         mips-sgi-irix6.[0-4]*.
18113 2010-02-02  Nick Clifton  <nickc@redhat.com>
18115         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
18116         constant size of 4 as being the same as 0.
18117         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
18118         can take values in the range 0..4.
18120 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
18122         PR java/41991
18123         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
18124         as _darwin10_Unwind_FindEnclosingFunction().
18125         * libgcc-libsystem.ver: New.
18127 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
18129         PR target/41399
18130         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
18131         implicitly set registers.
18133 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
18135         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
18136         (arm_override_options): Allow automatic selection of the thread
18137         pointer register if thumb2.
18138         (legitimize_pic_address): Improve code sequences for Thumb2.
18139         (arm_call_tls_get_addr): Likewise.
18140         (legitimize_tls_address): Likewise.
18141         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
18142         (pic_load_addr_32bit): ... this.  New named pattern.
18143         * thumb2.md (pic_load_addr_thumb2): Delete.
18144         (pic_load_dot_plus_four): Delete.
18145         (tls_load_dot_plus_four): New named pattern.
18147 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18149         PR libgomp/29986
18150         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
18151         Document fix for TLS bug.
18153 2010-01-31  Richard Guenther  <rguenther@suse.de>
18155         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
18156         conservatively correct.
18158 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18160         PR target/42850
18161         Revert:
18162         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18164         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18166 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18168         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
18170 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
18172         * config.gcc: Adjust order of makefile fragments for mingw targets.
18174 2010-01-31  Richard Guenther  <rguenther@suse.de>
18176         PR middle-end/42898
18177         * gimplify.c (gimplify_init_constructor): For volatile LHS
18178         initialize a temporary.
18180 2010-01-31  Matthias Klose  <doko@ubuntu.com>
18182         * configure.ac: Fix __stack_chk_fail check for cross builds configured
18183         --with-headers
18184         * configure: Regenerate.
18186 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
18188         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
18189         the same alias set and their sizes different constantness.
18190         (aliasing_component_refs_p): Revert 2009-10-24 change.
18192 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18194         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
18195         unused.
18197 2010-01-29  Richard Guenther  <rguenther@suse.de>
18199         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
18200         Assert we successfully updated the call.
18202 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
18204         PR rtl-optimization/42889
18205         * df.h (df_set_bb_dirty_nonlr): New prototype.
18206         * df-core.c (df_set_bb_dirty_nonlr): New function.
18207         * df-scan.c (df_insn_rescan): Call it instead of
18208         df_set_bb_dirty for DEBUG_INSNs.
18210 2010-01-29  Richard Guenther  <rguenther@suse.de>
18212         PR middle-end/37448
18213         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
18214         quadratic behavior in most cases.
18216 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
18218         PR target/42891
18219         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
18220         in the call to gen_x86_movsicc_0_m1.
18222 2010-01-28  Richard Guenther  <rguenther@suse.de>
18224         PR tree-optimization/42871
18225         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
18227 2010-01-28  Richard Guenther  <rguenther@suse.de>
18229         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
18230         into call arguments.
18232 2010-01-28  Richard Guenther  <rguenther@suse.de>
18234         PR middle-end/42883
18235         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
18236         the forwarder if the destination is an EH landing pad.
18238 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
18240         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
18241         block list passed to gimple_duplicate_sese_tail.
18242         (parallelize_loops): Avoid parallelization when the function
18243         has_nonlocal_label.
18244         Avoid parallelization when the preheader is IRREDUCIBLE.
18245         Try to optimize when estimated_loop_iterations_int is unresolved.
18246         Add the loop's location to the dump file.
18247         * tree-cfg.c (add_phi_args_after_redirect): Remove.
18248         (gimple_duplicate_sese_tail): Remove the check for the latch.
18249         Redirect nexits to the exit block.
18250         Remove handling of the incoming edges to the latch.
18251         Redirect the backedge from the copied latch to the exit bb.
18253 2010-01-28  Michael Matz  <matz@suse.de>
18255         PR target/42881
18256         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
18257         Wrap force_reg into a sequence, emit it before user.
18259 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
18261         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
18262         (arm_rev): New.
18263         (arm_legacy_rev): Likewise.
18264         (thumb_legacy_rev): Likewise.
18266 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
18268         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
18269         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
18270         on MEM's address failed, try avoid_constant_pool_reference and
18271         recurse if it returned something different.
18272         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
18273         address, try avoid_constant_pool_reference and recurse if it
18274         returned something different.
18275         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
18276         address and avoid_constant_pool_reference returned something
18277         different, don't set have_address.
18279 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
18281         PR debug/42861
18282         * var-tracking.c (val_store): Add modified argument, obey it.
18283         Adjust callers.
18284         (count_uses): Move down logging of main.
18285         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
18286         don't need resolution.
18287         (emit_notes_in_bb): Likewise.
18289 2010-01-27  Richard Guenther  <rguenther@suse.de>
18291         PR middle-end/42878
18292         * tree-inline.c (remap_decl): Delay remapping of SSA name
18293         default definitions until we need them.
18295 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
18297         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
18298         (rs6000_delegitimize_address): New function.
18300         * config/s390/s390.c (s390_delegitimize_address): Call
18301         delegitimize_mem_from_attrs.
18303         PR middle-end/42874
18304         * tree-inline.c (cannot_copy_type_1): Removed.
18305         (copy_forbidden): Don't forbid copying of functions containing
18306         records/unions with variable length fields.
18308 2010-01-27  Christian Bruel  <christian.bruel@st.com>
18310         Revert:
18311         PR target/42841
18312         * config/sh/sh.c (find_barrier): Increase length for non delayed
18313         conditional branches.
18315 2010-01-27  Matthias Klose  <doko@ubuntu.com>
18317         * configure.ac (gnu-unique-object): Fix ldd version check.
18318         * configure: Regenerate.
18320 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18322         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
18323         HAVE_GNU_AS value.
18324         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
18325         Test for HAVE_GNU_AS value.
18327 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18329         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
18330         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
18331         INT64_TYPE): Define.
18332         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
18333         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18334         INT_LEAST64_TYPE): Define.
18335         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
18336         UINT_LEAST64_TYPE): Define.
18337         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
18338         INT_FAST64_TYPE): Define.
18339         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18340         UINT_FAST64_TYPE): Define.
18341         (INTMAX_TYPE, UINTMAX_TYPE): Define.
18342         (INTPTR_TYPE, UINTPTR_TYPE): Define.
18343         (SIG_ATOMIC_TYPE): Define.
18345 2010-01-26  Richard Guenther  <rguenther@suse.de>
18347         * df-scan.c (df_scan_set_bb_info): Remove assert.
18348         (df_insn_rescan_debug_internal): Merge asserts.
18349         (df_install_ref): Likewise.
18350         (df_mark_reg): Use bitmap_set_range.
18351         (df_hard_reg_used_p): Remove assert.
18352         (df_hard_reg_used_count): Likewise.
18354 2010-01-26  Richard Guenther  <rguenther@suse.de>
18356         PR rtl-optimization/42685
18357         * web.c (web_main): Ignore DEBUG_INSNs.
18359 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
18361         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
18363         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
18364         Fix types of fndecl and arglist parameters.
18366 2010-01-26  Richard Guenther  <rguenther@suse.de>
18368         PR middle-end/42806
18369         * tree-eh.c (unsplit_eh): Skip debug insns.
18371 2010-01-26  Richard Guenther  <rguenther@suse.de>
18373         PR tree-optimization/42250
18374         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
18376 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
18378         PR fortran/42866
18379         * omp-low.c (expand_omp_sections): Only use single_pred if
18380         l2_bb is single_pred_p.
18382 2010-01-25  Christian Bruel  <christian.bruel@st.com>
18384         PR target/42841
18385         * config/sh/sh.c (find_barrier): Increase length for non delayed
18386         conditional branches.
18387         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
18389 2010-01-24  David S. Miller  <davem@davemloft.net>
18391         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
18392         define if not using GAS.
18393         * config/sparc/sparc.c (sparc_elf_asm_named_section):
18394         Likewise.  Delete SECTION_MERGE code, which is only applicable
18395         when using GAS.
18397 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
18399         PR c++/42748
18400         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
18401         mangling of va_list in system headers.
18403 2010-01-23  Toon Moene  <toon@moene.org>
18405         * tree-predcom.c (combine_chains): Return NULL, not false.
18407 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
18409         * tree-loop-distribution.c (distribute_loop): Fix declaration and
18410         initialization of variable res to agree with return type.
18412 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
18414         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
18415         * tree-sra.c: Add include of expr.h.
18417 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
18419         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
18420         insert the debug stmt on the single non-EH edge from the stmt.
18422 2010-01-22  Richard Henderson  <rth@redhat.com>
18424         PR tree-opt/42833
18425         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
18426         the RHS until after generate_subtree_copies has insertted its
18427         code before the current statement.
18429 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
18431         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
18433         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
18435 2010-01-21  Martin Jambor  <mjambor@suse.cz>
18437         PR tree-optimization/42585
18438         * tree-sra.c (struct access): New field grp_total_scalarization.
18439         (dump_access): Dump the new field.
18440         (should_scalarize_away_bitmap): New variable.
18441         (cannot_scalarize_away_bitmap): Likewise.
18442         (sra_initialize): Allocate new bitmaps.
18443         (sra_deinitialize): Free new bitmaps.
18444         (create_access_1): New function.
18445         (create_access): Parts moved to create_access_1.
18446         (type_consists_of_records_p): New function.
18447         (completely_scalarize_record): Likewise.
18448         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
18449         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
18450         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
18451         access.
18452         (analyze_all_variable_accesses): Completely scalarize small eligible
18453         records.
18455 2010-01-21  Martin Jambor  <mjambor@suse.cz>
18457         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
18459 2010-01-21  Andrew Haley  <aph@redhat.com>
18461         * gcc.c (process_command): Move lang_specific_driver before
18462         setting cc_libexec_prefix.
18464 2010-01-21  Richard Guenther  <rguenther@suse.de>
18466         PR middle-end/19988
18467         * fold-const.c (negate_expr_p): Pretend only negative
18468         real constants are easily negatable.
18470 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
18471             Jason Merrill  <jason@redhat.com>
18473         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
18474         (TYPE_TRANSPARENT_AGGR): this, for union and record.
18475         * calls.c (initialize argument_information): Handle it.
18476         * c-common.c (handle_transparent_union_attribute): Use new name.
18477         * c-decl.c (finish_struct): Ditto.
18478         * c-typeck.c (type_lists_compatible_p): Ditto.
18479         (convert_for_assignment): Use new name and also handle record.
18480         * function.c (aggregate_value_p): Handle it.
18481         (pass_by_reference): Ditto.
18482         (assign_parm_data_types): Ditto.
18483         * print-tree.c (print_node): Ditto.
18484         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
18485         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
18486         * tree.c (first_field): New fn.
18488 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
18490         PR target/42818
18491         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
18492         even when linking statically, for now.
18494 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
18496         PR debug/42715
18497         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
18498         without a cselib val.
18499         (count_uses): Accept MO_VAL_SET with no val on stores.
18500         (add_stores): Likewise.
18502 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18504         * var-tracking.c (check_value_val): Add a compile time assertion.
18505         (dv_is_decl_p): Simplify.
18506         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
18507         gcc_assert if ENABLE_CHECKING.
18509 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
18511         PR debug/42782
18512         * var-tracking.c: Include tree-flow.h.
18513         (mem_dies_at_call): New.
18514         (dataflow_set_preserve_mem_locs): Use it.
18515         (dataflow_set_remove_mem_locs): Likewise.
18516         (dump_var): Renamed from dump_variable.  Adjust all callers.
18517         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
18518         * Makefile.in (var-tracking.o): Adjust deps.
18520 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
18522         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
18524 2010-01-20  Richard Guenther  <rguenther@suse.de>
18526         PR tree-optimization/42717
18527         * tree-ssa-dce.c (get_live_post_dom): Remove.
18528         (forward_edge_to_pdom): Take an arbitrary edge to copy
18529         degenerate PHI args from.
18530         (remove_dead_stmt): Use the first post-dominator even if it
18531         does not contain live statements as redirection destination.
18533 2010-01-20  Richard Guenther  <rguenther@suse.de>
18535         * tree-inline.c (estimate_num_insns): Handle EH builtins.
18537 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18539         * sel-sched.c (create_speculation_check): Remove set but not used
18540         variable twin.
18541         (try_transformation_cache): Remove set but not used variable ds.
18542         (calculate_privileged_insns): Remove set but not used variables
18543         cur_insn and min_spec_insn.
18544         (find_best_expr): Remove set but not used variable avail_n.
18545         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
18546         variable e.
18547         * cgraphunit.c (assemble_thunk): Remove set but not used variable
18548         false_label.
18549         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
18550         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
18551         new_scop_exit_edge.
18553 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
18555         PR bootstrap/42786
18556         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
18557         cpu types.  Add support for *-sse3 cpu types.
18558         (x86_64-*-*): Ditto.
18560 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18562         PR middle-end/42803
18563         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
18564         argument, call initializer_constant_valid_p_1 instead of
18565         initializer_constant_valid_p, pass CACHE to it, return NULL
18566         immediately if first call returns NULL.
18567         (initializer_constant_valid_p_1): New function.
18568         (initializer_constant_valid_p): Use it.
18570 2010-01-20  Thomas Quinot  <quinot@adacore.com>
18572         * tree.def (PLACEHOLDER_EXPR): Fix comment.
18574 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18576         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
18577         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
18578         (loc_list_from_tree): Don't handle unsigned division.  Handle
18579         signed modulo using DW_OP_{over,over,div,mul,minus}.
18580         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
18581         modulo instead of signed.
18583 2010-01-20  DJ Delorie  <dj@redhat.com>
18585         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
18586         (Fpa): Pass it
18587         (h8300_emit_stack_adjustment): Propogate it.
18588         (push): Pass it.
18589         (h8300_expand_prologue): Likewise.
18590         (h8300_expand_epilogue): Likewise.
18592 2010-01-19  Michael Matz  <matz@suse.de>
18594         PR tree-optimization/41783
18595         * tree-data-ref.c (toplevel): Include flags.h.
18596         (dump_data_dependence_relation):  Also dump the inputs if the
18597         result will be unknown.
18598         (split_constant_offset_1): Look through some conversions.
18599         * tree-predcom.c (determine_roots_comp): Restart a new chain if
18600         the offset from last element is too large.
18601         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
18602         (reassociate_to_the_same_stmt): Handle vector registers.
18603         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
18604         (e.g. conversions).
18605         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
18606         wide_prolog_niters argument, emit widening instructions.
18607         (vect_do_peeling_for_alignment): Adjust caller, use widened
18608         variant of the iteration cound.
18609         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
18611 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18613         PR target/38697
18614         * config/arm/neon-testgen.m (emit_automatics): New parameter
18615         features. Adjust for Fixed_return_reg feature.
18616         (test_intrinsic): Call emit_automatics with new feature.
18617         * config/arm/neon.ml: Update copyright years.
18618         (features): New Fixed_return_reg feature.
18619         (ops): Update feature for Vget_low.
18621 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
18623         PR tree-optimization/42719
18624         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
18625         stmt uses.
18627         PR debug/42728
18628         * fwprop.c (all_uses_available_at): Return false if def_set dest
18629         is a REG that is used in def_insn.
18631 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
18633         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
18635         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
18636         Add argument names.
18638         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
18640         * target.h (struct gcc_target) <secondary_reload>: Change type
18641         of last argument to secondary_reload_info *.
18643 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
18645         PR target/42774
18646         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
18647         memory references with unaligned offsets.  Remove CQImode handling.
18648         (unaligned_memory_operand): Return 1 for memory references with
18649         unaligned offsets.  Remove CQImode handling.
18651 2010-01-18  Richard Guenther  <rguenther@suse.de>
18653         PR middle-end/39954
18654         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
18655         builtin calls.
18657 2010-01-18  Richard Guenther  <rguenther@suse.de>
18659         PR tree-optimization/42781
18660         * tree-ssa-structalias.c (find_what_var_points_to): Skip
18661         restrict processing only if the original variable was artificial.
18663 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
18665         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
18666         find number of popped argument bytes.
18668         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
18669         Fix the text that describes the return value for invalid insns.
18671         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
18673         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
18674         Clarify what 'cost of the -dependence' is.  Fix quoting.
18676         * toplev.c (default_get_pch_validity): Rename argument to "sz".
18677         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
18679 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
18681         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18682         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
18684 2010-01-17  Richard Guenther  <rguenther@suse.de>
18686         PR middle-end/42248
18687         * function.c (split_complex_args): Take a VEC to modify.
18688         (assign_parms_augmented_arg_list): Build a VEC instead of
18689         a chain of PARM_DECLs.
18690         (assign_parms_unsplit_complex): Take a VEC of arguments.
18691         Do not fixup unmodified parms.
18692         (assign_parms): Deal with the VEC.
18693         (gimplify_parameters): Likewise.
18695 2010-01-17  Richard Guenther  <rguenther@suse.de>
18697         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
18698         node existence check.
18699         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
18700         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
18701         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
18702         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
18703         (gimple_execute_on_growing_pred): Likewise.
18705 2010-01-17  Richard Guenther  <rguenther@suse.de>
18707         PR tree-optimization/42773
18708         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
18709         (compute_antic_aux): Likewise.
18710         (compute_partial_antic_aux): Likewise.
18712 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
18714         PR debug/42767
18715         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
18716         and US_TRUNCATE.
18718 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
18720         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
18721         appearance.
18723         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
18724         Fix markup for strict argument.
18726         (TARGET_SCHED_REORDER2): Fix argument types.
18728         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
18729         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
18731         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
18732         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
18734         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
18735         Add argument name.
18737         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
18738         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
18739         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
18740         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
18741         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
18743         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
18745         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
18747         (TARGET_ASM_RELOC_RW_MASK): Add return type.
18748         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
18750         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
18752         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
18753         Use prototype.
18755         (TARGET_ASM_NAMED_SECTION): Fix argument list.
18757         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
18758         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
18760         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
18762         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
18764         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
18765         referring to it.  Fix language.
18767         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
18769         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
18771         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
18773         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
18775         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
18776         '@var{stream}.  Remove stray 'and'.
18778         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
18780         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
18782         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
18784         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
18785         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
18787         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
18788         Fix description of return value.
18789         Rename argument "sz" to "len."
18791         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
18792         Clarify meaning of 'true' return value.
18794         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
18796         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
18797         rep_mode versus mode_rep.
18799         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
18801         (TARGET_BUILTIN_DECL): Fix name.
18803         (TARGET_COMMUTATIVE_P): Fix type of first argument.
18805         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
18807         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
18809         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
18811         (TARGET_RELAXED_ORDERING): Use @deftypevr.
18813         (TARGET_GET_DRAP_RTX): Note that this is a hook.
18814         Clarify language.
18816         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
18817         Rename argument tm_fn to md_fn.
18819         (TARGET_OPTION_PRINT): Fix argument list.
18821 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
18823         PR target/42664
18824         * config/i386/i386.c (ix86_fixup_binary_operands):
18825         Revert FMA4 fixup of operands.
18827 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18829         PR gcc/42525
18830         * Makefile.in (write_entries_to_file, install-plugin):
18831         Use \012 instead of \n with tr.
18833 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
18835         * configure.ac (HAVE_AS_REF): New C macro.
18836         * configure: Regenerate.
18837         * config.in: Likewise.
18838         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
18839         if HAVE_AS_REF.
18840         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
18841         if HAVE_AS_REF.
18843 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
18845         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
18847         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
18849         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
18851         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
18853         (TARGET_IN_SMALL_DATA_P): Fix argument type.
18855         (TARGET_BINDS_LOCAL_P): Fix argument type.
18857         (TARGET_ASM_FILE_END): Use prototype.
18859         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
18861         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
18863         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
18865         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
18867         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
18868         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
18870         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
18871         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
18873         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
18874         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
18875         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
18876         (TARGET_ADDR_SPACE_CONVERT): Likewise.
18878         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
18880         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
18882         (TARGET_INIT_BUILTINS): Use prototype.
18884         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
18885         Put 'const char *' in braces.  Fix parameter types.
18886         (TARGET_INVALID_CONVERSION): Fix parameter types.
18887         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
18888         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
18890         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
18891         Fix argument type.
18893         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
18895         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
18897 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
18899         * doc/tm.texi (TARGET_HELP): Fix return type.
18901         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
18902         in braces.  Fix argument types.
18904         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
18906         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
18908         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
18910         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
18911         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
18913         (TARGET_MANGLE_TYPE): Fix argument types.
18915         (TARGET_IRA_COVER_CLASSES): Use prototype.
18917         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
18919         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
18921         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
18923         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
18925         (TARGET_CALLEE_COPIES): Fix argument types.
18927         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
18929         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
18931         (TARGET_FUNCTION_VALUE): Fix argument types.
18933         (TARGET_RETURN_IN_MSB): Fix argument type.
18935         (TARGET_RETURN_IN_MEMORY): Fix argument types.
18937         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
18939         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
18941         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
18942         agree with return type.
18944         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
18946 2010-01-15  Jing Yu  <jingyu@google.com>
18948         PR rtl-optimization/42691
18949         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
18950         a pseudo to a constant and are merged, and adjust comments.
18952 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
18954         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
18956 2010-01-15  Richard Guenther  <rguenther@suse.de>
18958         PR middle-end/42739
18959         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
18960         labels of computed or non-local gotos to the destination.
18961         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
18962         landing pad label is the first label.
18964 2010-01-15  Richard Guenther  <rguenther@suse.de>
18966         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
18968 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18970         PR target/42747
18971         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
18972         to allow generation of the xssqrtdp instruction on power7.
18973         (sqrtdf2_fpr): Ditto.
18975 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
18977         PR middle-end/42674
18978         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
18979         functions with noreturn attribute.
18981         PR c++/42608
18982         * varasm.c (declare_weak): Add weak attribute to decl if it
18983         doesn't have one already.
18984         (assemble_external): Only add decls to weak_decls if they also
18985         have weak attribute.
18987 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
18989         * var-tracking.c (var_reg_delete): Don't delete the association
18990         between REGs and values or one-part variables if the register
18991         isn't clobbered.
18993 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
18995         PR debug/42657
18996         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
18997         because its first operand is a non-localized variable.
18999 2010-01-14  Martin Jambor  <mjambor@suse.cz>
19001         PR tree-optimization/42706
19002         * tree-sra.c (encountered_recursive_call): New variable.
19003         (encountered_unchangable_recursive_call): Likewise.
19004         (sra_initialize): Initialize both new variables.
19005         (callsite_has_enough_arguments_p): New function.
19006         (scan_function): Call decl and flags check only for IPA-SRA, check
19007         whether there is a recursive call and whether it has enough arguments.
19008         (all_callers_have_enough_arguments_p): New function.
19009         (convert_callers): Look for recursive calls only when
19010         encountered_recursive_call is set.
19011         (ipa_early_sra): Bail out either if
19012         !all_callers_have_enough_arguments_p or
19013         encountered_unchangable_recursive_call.
19015 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19017         * sel-sched.c: Add 2010 to copyright years.
19018         * sel-sched-ir.c: Likewise.
19019         * sel-sched-ir.h: Likewise.
19021 2010-01-14  Martin Jambor  <mjambor@suse.cz>
19023         PR tree-optimization/42714
19024         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
19025         constructors specially.
19027 2010-01-14  Andi Kleen  <ak@linux.intel.com>
19029         * config/i386/drivers-i386.c (detect_caches_intel):
19030         Add l2sizekb parameter and fill in.
19031         (host_detect_local_cpu): Add l2sizekb, fill in.
19032         Add Atom small cache heuristic.
19034 2010-01-14  Andi Kleen  <ak@linux.intel.com>
19036         * config/i386/drivers-i386.c (detect_caches_cpuid4):
19037         Add level3 parameter and fill in.
19038         (detect_caches_intel): Handle level3 cache.
19040 2010-01-14  Andi Kleen  <ak@linux.intel.com>
19042         * config/i386/drivers-i386.c (host_detect_local_cpu):
19043         Fix core duo detection.
19045 2010-01-14  Andi Kleen  <ak@linux.intel.com>
19047         * config/i386/drivers-i386.c (host_detect_local_cpu):
19048         Fix Atom detection.
19050 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19052         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
19053         (rs6000_variable_issue_1): this.  Use...
19054         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
19056 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19058         * sel-sched-ir.c (sel_restore_other_notes): Rename to
19059         sel_restore_notes.  Update all callers.  Call reemit_notes
19060         for all insns.
19062 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
19064         PR rtl-optimization/42246
19065         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
19066         loops.
19068 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
19070         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
19071         all successors is the same as number of successors in current region.
19073 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19075         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
19076         to rename is not separable.  Otherwise check that its LHS is not NULL.
19078 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19080         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
19082 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19084         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
19085         available registers when failed to discover LHS register class.
19086         Fix indentation.  Update comment.
19088 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
19089             Alexander Monakov  <amonakov@ispras.ru>
19091         PR rtl-optimization/42389
19092         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
19093         to can_issue_more.
19094         (advance_state_on_fence): Likewise.
19095         (sel_target_adjust_priority): Print debug output only when
19096         sched_verbose >= 4, not 2.
19097         (get_expr_cost): Do not issue all unique insns on the next cycle.
19098         (fill_insns): Initialize can_issue_more from the value saved
19099         with the fence.
19100         * sel-sched-ir.c (flist_add): New parameter issue_more.
19101         Init FENCE_ISSUE_MORE with it.
19102         (merge_fences): Likewise.
19103         (init_fences): Update call to flist_add.
19104         (add_to_fences, add_clean_fence_to_fences)
19105         (add_dirty_fence_to_fences): Likewise.
19106         (move_fence_to_fences): Update call to merge_fences.
19107         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
19108         sched groups.
19109         * sel-sched-ir.h (struct _fence): New field issue_more.
19110         (FENCE_ISSUE_MORE): New accessor macro.
19112 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
19114         PR rtl-optimization/42388
19115         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
19116         that have no predecessors nor successors.  Do not call move_bb_info
19117         for empty blocks outside of current region.
19119 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19121         PR rtl-optimization/42294
19122         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
19123         * sel-sched.c (move_exprs_to_boundary): Transitively add all
19124         originators' originators.
19126 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
19128         PR rtl-optimization/39453
19129         PR rtl-optimization/42246
19130         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
19131         for pipelining_p.
19132         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
19134 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
19135             Alexander Monakov  <amonakov@ispras.ru>
19137         PR middle-end/42245
19138         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
19139         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
19140         argument.  Update all callers.
19141         (tidy_control_flow): ... and here.  Recompute topological order
19142         of basic blocks in region if necessary.
19143         (sel_redirect_edge_and_branch): Change return type.  Return true
19144         if topological order might have been invalidated.
19145         (purge_empty_blocks): Export and move from...
19146         * sel-sched.c (purge_empty_blocks): ... here.
19147         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
19148         (maybe_tidy_empty_bb): Delete prototype.
19149         (purge_empty_blocks): Declare.
19151 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
19153         PR rtl-optimization/42249
19154         * sel-sched.c (try_replace_dest_reg): When chosen register
19155         and original register is the same, do not bail out early, but
19156         still check all original insns for validity of replacing destination
19157         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
19158         in this case.
19160 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
19162         PR c/42721
19163         Port from no-undefined-overflow branch:
19164         2009-03-09  Richard Guenther  <rguenther@suse.de>
19166         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
19168 2010-01-14  Richard Guenther  <rguenther@suse.de>
19170         PR lto/42665
19171         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
19173 2010-01-14  Ira Rosen  <irar@il.ibm.com>
19175         PR tree-optimization/42709
19176         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
19177         as scalar type in creation of constant vector operand.
19179 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19181         PR testsuite/42414
19182         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
19183         (check-parallel-%): Match `testsuite' directory component only
19184         at the end.
19186 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
19188         PR translation/39521
19189         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
19190         strings with _().
19192 2010-01-13  Richard Guenther  <rguenther@suse.de>
19194         PR tree-optimization/42730
19195         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
19196         offset zero.
19198 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
19200         PR target/pr42542
19201         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
19202         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
19203         them signed.
19205 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
19207         * config/bfin/libgcc-bfin.ver: Regenerate based on current
19208         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
19209         ___umulsi3_highpart.
19211         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
19212         rather than schedule_insns if the pass is enabled.
19214 2010-01-13  Martin Jambor  <mjambor@suse.cz>
19216         PR tree-optimization/42704
19217         * tree-sra.c (sra_modify_assign): Do not delete assignments to
19218         SSA_NAMEs.
19220 2010-01-13  Martin Jambor  <mjambor@suse.cz>
19222         PR tree-optimization/42703
19223         * tree-sra.c (analyze_access_subtree): Check that we can build a
19224         reference to the original data within the aggregate.
19226 2010-01-13  Richard Guenther  <rguenther@suse.de>
19228         PR tree-optimization/42705
19229         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
19231 2010-01-13  Richard Guenther  <rguenther@suse.de>
19233         PR middle-end/42716
19234         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
19236 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
19238         PR debug/41371
19239         * var-tracking.c (values_to_unmark): New variable.
19240         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
19241         values_to_unmark vector.  Moved body to...
19242         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
19243         instead queue it into values_to_unmark vector.
19244         (vt_find_locations): Free values_to_unmark vector.
19246 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
19248         * config/s390/s390.c (override_options): Set
19249         default of max-pending-list-length to 256
19251 2010-01-13  Richard Guenther  <rguenther@suse.de>
19253         PR lto/42678
19254         * tree-pass.h (PROP_gimple_lcx): New.
19255         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
19256         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
19257         before the final cleanup_eh.
19258         (dump_properties): Dump PROP_gimple_lcx.
19259         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
19260         (tree_lower_complex_O0): Remove.
19261         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
19262         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
19263         tree_lower_complex, schedule TODO_update_ssa.
19264         * lto-streamer-out.c (output_function): Stream the functions
19265         properties.
19266         * lto-streamer-in.c (input_function): Likewise.
19267         (lto_read_body): Do not override them here.
19269 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
19271         PR c/42708
19272         * c-typeck.c (build_c_cast): Fold value cast to union type before
19273         wrapping it in a CONSTRUCTOR.
19275 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
19277         PR rtl-optimization/42699
19278         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
19279         involved.
19281 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19283         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19284         SUBTARGET_WARN_UNUSED_SPEC): Move ...
19285         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19286         SUBTARGET_WARN_UNUSED_SPEC): ... here
19287         * config/mips/iris5.h (LIBGCC_SPEC): Define.
19289 2010-01-12  Julian Brown  <julian@codesourcery.com>
19291         * config/arm/neon-schedgen.ml (Utils): Don't try to
19292         open missing module.
19293         (find_with_result): New.
19295 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
19297         PR debug/42662
19298         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
19299         sharing when canonicalizing ({lt,ge}u (plus a b) b).
19301         PR tree-optimization/42645
19302         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
19303         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
19304         decl_map, set processing_debug_stmt to -1 and return name without
19305         any remapping.
19307 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
19309         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
19310         binutils version, and reword target configuration description.
19312 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
19314         * config/avr/avr.h (LINKER_NAME): Remove.
19316 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
19318         PR target/42416
19319         * config/rs6000/rs6000.c (rs6000_override_options): On targets
19320         that support VSX, warn for -mno-altivec if vsx is not disabled,
19321         and disable vsx.
19323 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
19324             Shujing Zhao  <pearly.zhao@oracle.com>
19326         PR translation/42469
19327         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
19328         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
19329         character between option name and help text.
19330         * c.opt (imultilib): Likewise.
19332 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
19334         * lto-streamer-out.c (output_unreferenced_globals): Output static
19335         variables.
19337 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
19339         PR rtl-optimization/42621
19340         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
19341         optimizing for size.
19342         (duplicate_computed_gotos): Remove now-redundant check.
19344 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
19346         PR target/37454
19347         * configure.ac: Save and restore LDFLAGS and LIBS
19348         * configure: Regenerate.
19350 2010-01-10  Richard Guenther  <rguenther@suse.de>
19352         PR middle-end/42667
19353         * builtins.c (fold_builtin_strlen): Add type argument and
19354         convert the resulting length to it.
19355         (fold_builtin_1): Adjust.
19357 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
19359         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
19360         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
19361         1 insn.
19362         (num_insns_constant_wide): Adjust for that change.
19364 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19366         PR debug/42631
19367         * web.c (union_defs): Add used argument, to combine uses of
19368         uninitialized regs.
19369         (entry_register): Adjust type and tests of used argument.
19370         (web_main): Widen used for new use.  Pass it to union_defs.
19371         * df.h (union_defs): Adjust prototype.
19373 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19375         PR debug/42630
19376         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
19377         uses in new incoming argument.  Free body.
19378         (reset_debug_uses_in_loop): New.
19379         (analyze_insn_to_expand_var): Call the latter if the former found
19380         anything.  Fix whitespace.  Reject invalid dest overlaps before
19381         going through all insns in the loop.
19383 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19385         PR debug/42629
19386         * haifa-sched.c (dying_use_p): Debug insns don't count.
19388 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19390         PR middle-end/42363
19391         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
19392         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
19393         (verify_gimple_call): Reject LHS in noreturn calls.
19395 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19397         PR debug/42604
19398         PR debug/42395
19399         * tree-vect-loop-manip.c (adjust_info): New type.
19400         (adjust_vec): New pointer to vector.
19401         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
19402         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
19403         (slpeel_update_phis_for_duplicate_loop): Use them.
19404         (slpeel_update_phi_nodes_for_guard1): Likewise.
19405         (slpeel_update_phi_nodes_for_guard2): Likewise.
19406         (slpeel_tree_peel_loop_to_edge): Likewise.
19407         (vect_update_ivs_after_vectorizer): Likewise.
19409 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19411         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
19412         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
19414 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19416         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
19417         bogus uninitialized warning.
19419 2010-01-09  Richard Guenther  <rguenther@suse.de>
19421         PR middle-end/42512
19422         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
19423         the evolution is compatible with the initial condition.
19425 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
19427         * gcc.c (process_command): Update copyright notice dates.
19428         * gcov.c (print_version): Likewise.
19429         * gcov-dump.c (print_version): Likewise.
19430         * mips-tfile.c (main): Likewise.
19431         * mips-tdump.c (main): Likewise.
19433 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
19435         PR target/41885
19436         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
19437         (rotlhi3): Delete.
19438         (rotlhi3_8): Delete.
19439         (rotlsi3): Delete.
19440         (rotlsi3_8): Delete.
19441         (rotlsi3_16): Delete.
19442         (rotlsi3_24): Delete.
19443         (rotl<mode>3): New.
19444         (*rotw<mode>3): New.
19445         (*rotb<mode>3): New.
19446         * config/avr/avr.c (avr_rotate_bytes): New function.
19447         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
19449 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
19451         PR target/37454
19452         * configure.ac: Modify -rdynamic check.
19453         * configure: Regenerate.
19455 2010-01-08  DJ Delorie  <dj@redhat.com>
19457         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
19458         register popping order.
19460 2010-01-08  Richard Guenther  <rguenther@suse.de>
19462         PR lto/42528
19463         * c.opt (fsigned-char): Also let LTO handle this option.
19464         (funsigned-char): Likewise.
19466 2010-01-07  Richard Guenther  <rguenther@suse.de>
19468         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
19469         (gimple_op): Likewise.
19470         (gimple_op_ptr): Likewise.
19471         (gimple_assign_set_lhs): Remove gcc_assert.
19472         (gimple_assign_set_rhs1): Likewise.
19473         (gimple_assign_set_rhs2): Likewise.
19474         (gimple_call_set_lhs): Likewise.
19475         (gimple_call_set_fn): Likewise.
19476         (gimple_call_set_fndecl): Likewise.
19477         (gimple_call_fndecl): Likewise.
19478         (gimple_call_return_type): Likewise.
19479         (gimple_call_set_chain): Likewise.
19480         (gimple_call_num_args): Likewise.
19481         (gimple_call_set_arg): Likewise.
19482         (gimple_cond_set_code): Likewise.
19483         (gimple_cond_set_lhs): Likewise.
19484         (gimple_cond_set_rhs): Likewise.
19485         (gimple_cond_set_true_label): Likewise.
19486         (gimple_cond_set_false_label): Likewise.
19487         (gimple_label_set_label): Likewise.
19488         (gimple_goto_set_dest): Likewise.
19489         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
19490         (gimple_debug_bind_get_value): Likewise.
19491         (gimple_debug_bind_get_value_ptr): Likewise.
19492         (gimple_debug_bind_set_var): Likewise.
19493         (gimple_debug_bind_set_value): Likewise.
19494         (gimple_debug_bind_reset_value): Likewise.
19495         (gimple_debug_bind_has_value_p): Likewise.
19496         (gimple_return_retval_ptr): Remove gcc_assert.
19497         (gimple_return_retval): Likewise.
19498         (gimple_return_set_retval): Likewise.
19499         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
19500         (safe_referenced_var_iterator): Remove.
19501         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
19502         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
19503         (fill_referenced_var_vec): Remove.
19504         (first_readonly_imm_use): Remove redundant gcc_assert.
19505         (phi_arg_index_from_use): Combine gcc_asserts.
19506         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
19507         (first_imm_use_stmt): Remove redundant gcc_assert.
19508         * tree-cfg.c (verify_gimple_call): Verify function and chain
19509         operands.  Verify arguments.
19510         (verify_types_in_gimple_stmt): Verify condition code and labels.
19512 2010-01-07  Richard Guenther  <rguenther@suse.de>
19514         PR tree-optimization/42641
19515         * sese.c (rename_map_elt_info): Use the SSA name version, do
19516         not hash pointers.
19518 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
19520         PR tree-optimization/42625
19521         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
19522         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
19524 2010-01-07  Duncan Sands  <baldrick@free.fr>
19526         * Makefile.in (PLUGIN_HEADERS): Add version.h.
19528 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
19530         PR target/42511
19531         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
19532         note itself is not function_invariant_p.
19534 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
19536         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
19537         Do not add the DF_NOTE problem.
19538         * store-motion.c (execute_rtl_store_motion): Likewise.
19540 2010-01-07  Martin Jambor  <mjambor@suse.cz>
19542         PR tree-optimization/42157
19543         * tree-sra.c (compare_access_positions): Stabilize sort if both
19544         accesses have integer types, return zero immediately if they are the
19545         same.
19547 2010-01-06  Richard Henderson  <rth@redhat.com>
19549         PR middle-end/41883
19550         * haifa-sched.c (add_to_note_list): Merge into ...
19551         (concat_note_lists): ... here, and ...
19552         (unlink_other_notes, rm_other_notes): Merge into...
19553         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
19554         NOTE_INSN_EPILOGUE_BEG.
19556 2010-01-06  Richard Guenther  <rguenther@suse.de>
19558         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
19559         not inline regular functions into always-inline functions.
19561 2010-01-06  Nick Clifton  <nickc@redhat.com>
19563         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
19564         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
19565         used together.
19566         (OVERRIDE_OPTIONS): Delete.
19567         (OPTIMIZATION_OPTIONS): Define.
19568         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
19569         * config/rx/rx.c (rx_handle_option): Issue an error message if
19570         -mcpu=rx200 and -fpu are used together.
19571         (rx_set_optimization_options): New function.  Issue an error
19572         message if an optimization attribute attempts to reset the FPU/
19573         math optimization pairing.
19574         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
19575         * config/rx/rx.opt: Set the default to 32-bit doubles.
19576         * config/rx/t-rx: Add multilibs for -nofpu option.
19577         * doc/invoke.texi: Update documentation of RX options.
19579 2010-01-06  Richard Guenther  <rguenther@suse.de>
19581         * tree-ssa-pre.c (name_to_id): New global.
19582         (alloc_expression_id): Simplify SSA name handling.
19583         (lookup_expression_id): Likewise.
19584         (init_pre): Zero name_to_id.
19585         (fini_pre): Free it.
19587 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
19589         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
19591 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19593         PR target/42542
19594         * config/i386/sse.md (smaxv2di3): New.
19595         (umaxv2di3): Likewise.
19596         (sminv2di3): Likewise.
19597         (uminv2di3): Likewise.
19599 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
19601         PR target/42564
19602         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
19603         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
19604         (legitimize_tls_address): Likewise.
19605         (sparc_tls_referenced_p): Likewise.
19606         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
19607         and adjust calls to legitimize_pic_address.
19608         (legitimate_constant_p) Use sparc_tls_referenced_p.
19609         (legitimate_pic_operand_p): Likewise.
19610         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
19611         (sparc_tls_symbol_ref_1): Delete.
19612         (sparc_tls_referenced_p): Make static, recognize specific patterns.
19613         (legitimize_tls_address): Make static, handle CONST patterns.
19614         (legitimize_pic_address): Make static, remove unused parameter and
19615         adjust recursive calls.
19616         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
19617         and adjust call to legitimize_pic_address.
19618         (sparc_output_mi_thunk): Likewise.
19620 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
19621             H.J. Lu  <hongjiu.lu@intel.com>
19623         PR target/42542
19624         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
19625         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
19626         operands to make them signed.
19628         Revert:
19629         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
19631         PR target/42542
19632         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19633         GTU to GT for V4SI and V2DI.
19635         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19636         (umin<mode>3): Removed.
19637         (uminv8hi3): New.
19638         (uminv4si3): Likewise.
19640 2010-01-05  Martin Jambor  <mjambor@suse.cz>
19642         PR tree-optimization/42462
19643         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
19644         current_function_decl to helper functions and macros.
19646 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19648         PR bootstrap/41771
19649         * flags.h: Don't include real.h.
19650         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
19651         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
19652         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
19653         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
19654         * dominance.c: Update copyright.
19655         * gimple.c (walk_gimple_op): Remove inline.
19656         * tree-ssa-reassoc.c: Include real.h.
19657         * Makefile.in (FLAGS_H): Remove $(REAL_H).
19658         (tree-ssa-reassoc.o): Depend on $(REAL_H).
19660 2010-01-05  Nick Clifton  <nickc@redhat.com>
19662         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
19663         register to push into the stack frame when the accumulator has to
19664         be saved during interrupts.
19666 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
19668         * doc/invoke.texi: Remove the documentation about option
19669         -Wunreachable-code.
19670         * common.opt (Wunreachable-code):  Preserved for backward
19671         compatibility.
19672         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
19673         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
19674         the backward compatibility flag section.
19676 2010-01-05  Richard Guenther  <rguenther@suse.de>
19678         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
19680 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
19682         PR other/42611
19683         * cfgexpand.c (expand_one_var): Diagnose too large variables.
19685         PR tree-optimization/42508
19686         * tree-sra.c (convert_callers): Check for recursive call
19687         by comparing cgraph nodes instead of decls.
19688         (modify_function): Call ipa_modify_formal_parameters also
19689         on all same_body aliases.
19691         * cgraphunit.c (cgraph_materialize_all_clones): Compare
19692         cgraph nodes when checking for same_body aliases.
19694 2010-01-05  Richard Guenther  <rguenther@suse.de>
19696         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
19697         allocation and lookup.
19698         (get_or_alloc_expr_for_constant): Likewise.
19699         (phi_translate): Sink allocation.
19701 2010-01-04  Richard Guenther  <rguenther@suse.de>
19703         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
19704         a new entry only if needed.
19705         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
19706         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
19707         hashtable lookup.
19708         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
19709         the result array.
19710         (phi_translate): Handle CONSTANTs early.
19712 2010-01-04  Martin Jambor  <mjambor@suse.cz>
19714         PR tree-optimization/42398
19715         * tree-sra.c (struct access): Removed flag grp_different_types.
19716         (dump_access): Do not dump the removed flag.
19717         (sort_and_splice_var_accesses): Do not set the removed flag.
19718         (sra_modify_expr): Check for type compatibility directly.
19720 2010-01-04  Martin Jambor  <mjambor@suse.cz>
19722         PR tree-optimization/42366
19723         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
19724         edges with variable number of parameters.
19725         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
19726         flag instead of asserting it.
19727         (ipa_read_node_info): Read uses_analysis_done flag.
19729 2010-01-04  Richard Guenther  <rguenther@suse.de>
19731         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
19732         iterative_hash_* as intended.
19733         (vn_reference_compute_hash): Likewise.  Simplify hashing
19734         SSA names.
19735         (vn_reference_lookup_2): Likewise.
19736         (vn_nary_op_compute_hash): Likewise.
19737         (vn_phi_compute_hash): Likewise.
19738         (expressions_equal_p): Remove strange code.
19739         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
19740         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
19741         (bitmap_insert_into_set_1): Take value-id as parameter.
19742         (add_to_value): Pass it.
19743         (bitmap_insert_into_set): Likewise.
19744         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
19746 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
19748         PR driver/42442
19749         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
19750         (do_self_spec): For switches with SWITCH_IGNORE set set also
19751         SWITCH_IGNORE_PERMANENTLY.
19752         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
19753         of SWITCH_IGNORE.
19755 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
19757         * lto-streamer-out.c (output_unreferenced_globals): Output the full
19758         tree of an unreferenced global var.
19760 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
19762         PR target/42542
19763         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19764         GTU to GT for V4SI and V2DI.
19766         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19767         (umin<mode>3): Removed.
19768         (uminv8hi3): New.
19769         (uminv4si3): Likewise.
19771 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
19773         PR lto/42581
19774         * collect2.c (main): Turn on trace in collect2 if -v is passed
19775         to gcc with LTO.
19777 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
19779         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
19780         description of expression operand.
19782 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
19784         * configure.ac: Add install-html to target_list for Make-hooks.
19785         * configure: Regenerate.
19786         * fortran/Make-lang.in (F95_HTMLFILES): New.
19787         (fortran.html): Use it.
19788         (fortran.install-html): New.
19789         * Makefile.in (install-html): Add lang.install-html.
19790         * java/Make-lang.in (JAVA_HTMLFILES): New.
19791         (java.html): Use it.
19792         (java.install-html): New.
19793         * objc/Make-lang.in (objc.install-html): New.
19794         * objcp/Make-lang.in (obj-c++.install-html): New.
19795         * cp/Make-lang.in (c++.install-html): New.
19796         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
19797         * lto/Make-lang.in (lto.install-html): New.
19799 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19801         PR lto/42520
19802         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
19804 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
19806         PR rtl-optimization/41862
19807         * store-motion.c (store_killed_in_insn, compute_store_table,
19808         remove_reachable_equiv_notes, replace_store_insn,
19809         build_store_vectors): Ignore all DEBUG_INSNs.
19811 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19813         PR lto/41564
19814         * common.opt: Add dumpdir.
19816         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
19817         isn't specified.
19818         (option_map): Add --dumpdir.
19820         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
19822         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
19824         * opts.c (decode_options): Try dump_dir_name first if
19825         dump_base_name isn't an absolute path.
19826         (common_handle_option): Handle OPT_dumpdir.
19828         * toplev.c (dump_dir_name): New.
19829         (print_switch_values): Also ignore -dumpdir.
19831         * toplev.h (dump_dir_name): New.
19833 2010-01-03  Richard Guenther  <rguenther@suse.de>
19835         PR tree-optimization/42589
19836         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
19837         double-word expansion of bswap32.
19839 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
19841         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
19842         with BLOCK_FOR_INSN.
19843         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
19844         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
19845         noce_process_if_block): Likewise.
19846         * gcse.c (compute_local_properties, insert_expr_in_table,
19847         insert_set_in_table, canon_list_insert, find_avail_set,
19848         pre_insert_copy_insn): Likewise.
19850         * basic-block.h (BLOCK_NUM): Move from here...
19851         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
19853 2010-01-03  Richard Guenther  <rguenther@suse.de>
19855         PR tree-optimization/42438
19856         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
19857         contains_may_not_return_call flag.
19858         (BB_MAY_NOTRETURN): New.
19859         (valid_in_sets): Trapping nary operations are not valid
19860         in blocks that may not return.
19861         (insert_into_preds_of_block): Remove check for trapping expressions.
19862         (compute_avail): Compute also BB_MAY_NOTRETURN.
19864 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
19866         * doc/invoke.texi: Add 2010 to copyright years.
19868 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
19870         * config/sparc/sparc.c: Fix formatting nits.
19872 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
19873             Alexander Monakov  <amonakov@ispras.ru>
19875         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
19877 2010-01-02  Richard Guenther  <rguenther@suse.de>
19879         PR middle-end/42577
19880         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
19881         (simplify_switch_using_ranges): Mark to be removed edges
19882         as non-executable.
19884 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19886         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
19888         * collect2.c (scan_libraries): Add missing argument in call to
19889         scan_prog_file.
19891 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
19893         PR target/42448
19894         * config/alpha/predicates.md (aligned_memory_operand): Return false
19895         for CQImode.
19896         (unaligned_memory_operand): Return true for CQImode.
19897         * config/alpha/alpha.c (get_aligned_mem): Assert that location
19898         doesn not cross aligned SImode word boundary.
19900 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
19902         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
19903         Remove.
19904         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
19905         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
19907 2010-01-02  Richard Guenther  <rguenther@suse.de>
19909         PR lto/41597
19910         * toplev.c (compile_file): Emit LTO marker properly.  Change
19911         it to __gnu_lto_v1.
19912         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
19914 2010-01-01  Richard Guenther  <rguenther@suse.de>
19916         PR debug/42455
19917         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
19919 2010-01-01  Richard Guenther  <rguenther@suse.de>
19921         PR c/42570
19922         * c-decl.c (grokdeclarator): For zero-size arrays force
19923         structural equality checks as layout_type does.
19925 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
19927         * builtins.c: Update copyright to 2010.
19929 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
19931         PR lto/42531
19932         * lto-streamer-out.c (produce_asm): Revert the last change.
19933         (copy_function): Likewise.
19935         * lto-streamer.c (lto_get_section_name): Skip any leading
19936         asterisk in name.
19938 2010-01-01  Richard Guenther  <rguenther@suse.de>
19940         PR middle-end/42559
19941         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
19942         for LABEL_DECLs.
19945 Copyright (C) 2010 Free Software Foundation, Inc.
19947 Copying and distribution of this file, with or without modification,
19948 are permitted in any medium without royalty provided the copyright
19949 notice and this notice are preserved.