2008-05-29 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blob78d3898e7f3e342e6a66e5d6e3f4924a9e8f66d5
1 2008-05-29  Vladimir Makarov  <vmakarov@redhat.com>
3         * Makefile.in (caller-save.o): Add CFGLOOP_H.
5         * ira.c (ira): Call flow_loops_find after the allocation before
6         the reload.
8         * global.c (print_insn_chain): Print bitmap saved.
10         * reload.h (insn_chain): Add members saved and saved_pseudo_regno.
12         * reload1.c (changed_allocation_pseudos): New bitmap.
13         (init_reload): Initiate the bitmap.
14         (new_insn_chain): Initiate bitmap saved.
15         (order_regs_for_reload): Check bitmap saved.
16         (find_reg): Check bitmap saved to find register.
17         (delete_caller_save_insns): Print about removing caller-save insn.
18         Invalidate reload register taken from saved registers.
19         Recalculate used_spill_regs.
20         (finish_spills): Check bitmap saved.  Set up
21         changed_allocation_pseudos.  Remove sanity check.
23         * caller-save.c (cfgloop.h): Add the header.
24         (set_regs): New variable.
25         (bb_info): Remove members empty_save_in_p, kill, gen.  Add members
26         empty_save_out_p, empty_restore_in_p, save_kill, save_gen,
27         restore_kill, restore_gen, free_gen, restore_in, restore_out,
28         free_in, free_out, live_at_end, restore_here, restore_in_mode,
29         restore_out_mode, save_in_pseudo, save_out_pseudo,
30         restore_in_pseudo, restore_out_pseudo.
31         (loop_info): New structure.
32         (LOOP_INFO): New macro.
33         (calculate_local_save_info): Add calculation of new bb_info
34         members for local info.
35         (restore_trans_fun, restore_con_fun_0, restore_con_fun_n,
36         calculate_restore_in_out, calculate_restore_here, free_trans_fun,
37         free_con_fun_0, free_con_fun_n, calculate_free_in_out): New
38         functions.
39         (make_global_save_analysis): Add calculation of new bb_info
40         members for global info.
41         (print_hard_reg_set_and_mode): Rename to
42         print_annotated_hard_reg_set.  Print pseudo regnos too.
43         (print_save_data): Add printing new bb_info members.
44         (set_hard_reg_saved): New parameters from_saved_pseudo,
45         save_pseudo.  Set them up.
46         (save_call_clobbered_regs): Rewrite.
47         (mark_referenced_regs): Set up set_regs.
48         (insert_restore, insert_save): New parameter save_pseudo.  Use it
49         for setting save_pseudo_regno and for debugging output.
51         * ira-conflicts.c (build_conflict_bit_table): Check min/max.
53         * ira-build.c (conflict_vector_profitable_p): Ditto.
54         (clear_allocno_conflicts): Check that conflict allocno array size.
55         
56 2008-05-21  Vladimir Makarov  <vmakarov@redhat.com>
58         * ira.c (setup_preferred_alternate_classes): Remove.
59         (setup_preferred_alternate_classes_for_new_pseudos): New.
60         (setup_preferred_alternate_classes): Set memory cost for NO_REGS
61         to minimal one.
62         (ira): Remove setup_preferred_alternate_classes.  Call
63         setup_preferred_alternate_classes_for_new_pseudos.
65         * ira-costs.c (record_reg_classes): Don't decrease frequency for
66         allows_mem.
67         (record_operand_costs): Use memcpy instead of memmove.
68         (print_costs): Use regno instead of allocno number in
69         invalid_mode_change_p.
70         (find_allocno_class_costs): Set up preferred and alternative
71         classes.
72         
73 2008-05-18  Vladimir Makarov  <vmakarov@redhat.com>
74         PR tree-optimization/26854
76         * timevar.def (TV_RELOAD): New timer.
78         * ira.c (ira): Use TV_IRA and TV_RELOAD.
79         (pass_ira): Remove TV_IRA.
81         * Makefile.in (ira-color.o): Add SPLAY_TREE_H.
83         * ira-conflicts.c (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
85         * ira-int.h (DEF_VEC_P, DEF_ALLOCC_P): Move from ira-conflicts.c and
86         ira-color.c.
87         (struct allocno): New bitfield splay_removed_p.
88         (ALLOCNO_MAY_BE_SPILLED_P): New macro.
90         * ira-color.c (splay-tree.h): Add the header.
91         (allocno_spill_priority_compare, splay_tree_allocate,
92         splay_tree_free): New functions.
93         (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
94         (sorted_allocnos_for_spilling): Rename to allocnos_for_spilling.
95         (splay_tree_node_pool, removed_splay_allocno_vec,
96         uncolorable_allocnos_num, uncolorable_allocnos_splay_tree): New
97         global variables.
98         (add_allocno_to_bucket, add_allocno_to_ordered_bucket,
99         delete_allocno_from_bucket): Update uncolorable_allocnos_num.
100         (USE_SPLAY_P): New macro.
101         (push_allocno_to_stack): Remove allocno from the splay tree.
102         (push_allocnos_to_stack): Use the splay trees.
103         (do_coloring): Create and finish splay_tree_node_pool.
104         Move allocation/deallocation of allocnos_for_spilling to here...
105         (initiate_ira_assign, finish_ira_assign): Move
106         allocnos_for_spilling from here...
107         (ira_color): Allocate/deallocate removed_splay_allocno_vec.
109         * ira-build.c (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
110         (create_allocno): Initiate ALLOCNO_SPLAY_REMOVED_P.
111         
112 2008-05-12  Vladimir Makarov  <vmakarov@redhat.com>
114         * Makefile.in (ira-build.o): Add sparseset.h.
115         
116         * ira-build.c (sparseset.h): Add.
117         (remove_wrong_conflicts, change_allocno_conflicts,
118         check_and_add_conflicts, add_conflict_with_underlying_allocnos):
119         Remove.
120         (finish_loop_tree_node, clear_allocno_conflicts,
121         change_allocno_in_range_list): New functions.
122         (allocnos_bitmap): New variable.
123         (finish_loop_tree_nodes): Use finish_loop_tree_node.
124         (initiate_allocnos): Initiate allocno conflict id by its allocno
125         number.
126         (conflict_vector_profitable_p): Use allocno min/max attributes.
127         (temp_change_bit_vec): Remove.
128         (finish_allocno): Nullify the corresponding element in allocnos
129         and conflict_id_allocno_map.
130         (local_allocnos_bitmap): Remove.
131         (create_loop_tree_node_caps): Use local_allocnos_bitmap instead of
132         local_allocnos_bitmap.
133         (regno_top_level_allocno_map): Move to ira_flattening.
134         (ira_flattening): Rewriting conflict rebuilding.
135         (ira_build): Allocate/free allocnos_bitmap.  Move
136         create_allocno_live_ranges before creation of allocno caps.
138         * ira-lives.c (propagate_new_allocno_info, propagate_new_info):
139         New functions.
140         (create_allocno_live_ranges): Call propagate_new_info.
142         * ira-color.c (ira_fast_allocation): Collect allocnos for sorting.
144         * ira-conflicts.c (propagate_allocno_info): Rename to
145         propagate_allocno_copy_info.  Propagate only copies.
146         (propagate_info): Rename to propagate_copy_info.
148 2008-05-10  Richard Sandiford  <rsandifo@nildram.co.uk>
150         * toplev.c (backend_init_target): Move init_ira call from here...
151         (lang_dependent_init_target): ...to here.
153 2008-05-10  Richard Sandiford  <rsandifo@nildram.co.uk>
155         * ira.c (setup_class_subset_and_memory_move_costs): Don't calculate
156         memory move costs for NO_REGS.
158 2008-05-08  Vladimir Makarov  <vmakarov@redhat.com>
160         * ira-int.h (loop_tree_node): New members subloops and
161         subloop_next.
162         
163         * ira-conflicts.c (propagate_modified_regnos): Check that it is a
164         loop node.
165         (ira_build_conflicts): Use TRUE for traverse_loop_tree.
166         
167         * ira-color.c (color_pass): Check that it is a
168         loop node.  Use subloops and subloop_next for traversing.
169         (move_spill_restore): Ditto.
170         (coalesced_pseudo_reg_freq_compare,
171         coalesced_pseudo_reg_slot_compare, pseudo_reg_compare): Don't
172         discard const.
173         
174         * ira-lives.c (create_allocno_live_ranges): Use TRUE for
175         traverse_loop_tree.
176         
177         * ira-emit.c (ira_emit): Ditto.
179         * ira-build.c (add_loop_to_tree): Set up subloops and
180         subloop_next.
181         (setup_loop_tree_level): Use subloops and subloop_next for
182         traversing.
183         (form_loop_tree): Initialize subloops and subloop_next.
184         (traverse_loop_tree): Change 1st parameter semantics.  Rewrite the
185         function.
186         (create_loop_tree_node_caps): Check that it is a loop node.
187         (check_and_add_conflicts): Check allocno loop nodes.
188         (add_conflict_with_underlying_allocnos): Use subloops and
189         subloop_next for traversing.
190         
191         * ira.c (chain_freq_compare, chain_bb_compare): Don't discard
192         const.
193         (ira): Call regstat functions second time only if new pseudos are
194         created.
196         * ira-costs.c (find_allocno_class_costs): Use TRUE for
197         traverse_loop_tree.
198         (setup_allocno_cover_class_and_costs): Ditto.
200 2008-05-06  Vladimir Makarov  <vmakarov@redhat.com>
202         PR rtl-optimization/36028
203         * caller-save.c (setup_save_areas): Adjust reused stack slot.
205 2008-05-05  Kaz Kojima  <kkojima@gcc.gnu.org>
207         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
208         STACK_REGS is defined.
210 2008-05-05  Vladimir Makarov  <vmakarov@redhat.com>
212         * ira-color.c (allocno_assign_compare_func): Remove.
213         (ira_fast_allocation): Rewrite.
215 2008-05-02  Vladimir Makarov  <vmakarov@redhat.com>
217         * ira-conflicts.c (print_conflicts): Exclude non-allocatable hard
218         regs and hard regs from different cover classes.
219         (ira_build_conflicts): Build conflicts only for optimization mode.
221         * cfgloopanal.c (estimate_reg_pressure_cost): Decrease cost only
222         for optimization mode.
224         * caller-save.c (caller-save.c, calculate_local_save_info,
225         save_call_clobbered_regs): Do save/restore placement optimization
226         and sharing stack slots only for optimization mode.
228         * ira-int.h (set_allocno_cover_class, ira_fast_allocation): New
229         prototypes.
231         * ira-color.c (assign_hard_reg): Clear conflicting_regs.
232         (allocno_assign_compare_func, allocno_assign_compare_func): New
233         functions.
235         * global.c (build_insn_chain): Add spilled pseudos only in
236         optimization mode.
238         * ira-emit.c (modify_move_list): Use set_allocno_cover_class.
240         * alias.c (nonoverlapping_memrefs_p): Check addresses only in
241         optimization mode.
243         * ira-build.c (create_allocno): Initialize
244         ALLOCNO_CONFLICT_HARD_REGS and ALLOCNO_TOTAL_CONFLICT_HARD_REGS by
245         non-allocatable hard reg set.
246         (set_allocno_cover_class): New function.
247         (create_cap_allocno): Use set_allocno_cover_class.
248         (ira_build): Call create_loop_tree_node_caps,
249         propagate_info_to_loop_tree_node_caps, and
250         propagate_info_to_loop_tree_node_caps only in optimization mode.
251         * ira.c (setup_reg_renumber): Add optimize to ira_assert.
252         (ira): Call find_reg_equiv_invariant_const, ira_color,
253         sort_insn_chain, and fix_reg_equiv_init only in optimization mode.
254         Call ira_fast_allocation for -O0.  Use right argument for reload.
256         * ira-costs.c (find_allocno_class_costs): Use important_classes
257         only for optimization mode.
258         (setup_allocno_cover_class_and_costs): Use
259         set_allocno_cover_class.  Initialize cost vectors only in
260         optimization mode.  Call process_bb_node_for_hard_reg_moves only
261         in optimization mode.
263         * reload1.c (compute_use_by_pseudos): Add optimize to ira_assert.
264         (reload): Sort pseudo-registers only optimization mode.  Restore
265         original order for insn chain only in optimization mode.
266         (calculate_needs_all_insns): Call mark_memory_move_deletion only
267         in optimization mode.
268         (count_pseudo, count_spilled_pseudo): Check spilled pseudos only
269         in optimization mode.
270         (alter_reg): Share stack slots only in optimization mode.
271         (finish_spills): Check spilled pseudos only in optimization mode.
272         (emit_input_reload_insns, delete_output_reload): Call
273         mark_allocation_change only in optimization mode.
274         
275 2008-05-01  Vladimir Makarov  <vmakarov@redhat.com>
277         * ira-int.h (IRA_BB_NODE_BY_INDEX, IRA_LOOP_NODE_BY_INDEX): Use
278         gcc_unreachable instead of exit.
279         (struct allocno): New members min, max, and conflict_id.
280         (ALLOCNO_MIN, ALLOCNO_MAX, ALLOCNO_CONFLICT_ID): New macros.
281         (conflict_id_allocno_map):
282         (SET_ALLOCNO_SET_BIT, CLEAR_ALLOCNO_SET_BIT,
283         TEST_ALLOCNO_SET_BIT): Add two new parameters.  Add versions for
284         checking.
285         (allocno_set_iterator): Add new member start_val.
286         (allocno_set_iter_init): Add two new parameters.  Set up
287         start_val.
288         (allocno_set_iter_cond): Use start_val.
289         (FOR_EACH_ALLOCNO_IN_SET): Add two new parameters.
290         (allocno_set_words): Remove.
291         (allocno_conflict_iterator): Add new member base_conflict_id.
292         (allocno_conflict_iter_init): Set up base_conflict_id.  Use
293         ALLOCNO_MIN and ALLOCNO_MAX.
294         (allocno_conflict_iter_cond): Use conflict_id_allocno_map and
295         base_conflict_id.
297         * ira-lives.c: Include sparseset.h.
298         (allocno_set_words, SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE,
299         TEST_ALLOCNO_LIVE, allocnos_live_bitmap): Remove.
300         (allocnos_live): Define as sparseset.
301         (make_regno_born, clear_allocno_live, mark_reg_store,
302         mark_reg_death, process_single_reg_class_operands,
303         process_bb_node_lives, create_allocno_live_ranges): Don't use
304         allocnos_live_bitmap.  Use allocnos_live as sparseset.
306         * Makefile.in (ira-conflicts.o, ira-lives.o): Add sparseset.h
308         * ira-conflicts.c: Add sparseset.h header.
309         (mirror_conflicts): Remove.
310         (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, TEST_ALLOCNO_LIVE): Remove.
311         (allocnos_live): Remove.
312         (CONFLICT_P): Remove
313         (CONFLICT_ALLOCNO_P): New.
314         (build_conflict_bit_table): Use sparseset.  Use FOR_EACH_ALLOCNO.
315         Allocate bits for [min..max] range.  Report conflict bit table
316         sizes.  Setup conflicts for both allocnos.
317         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for copy vectors.
318         (remove_conflict_allocno_copies): Use CONFLICT_ALLOCNO_P.  Rename
319         conflict_allocno_copy_varray to conflict_allocno_copy_vec and make
320         it VEC.
321         (build_allocno_conflicts): Use two new arguments for
322         FOR_EACH_ALLOCNO_IN_SET.  Use conflict_id_allocno_map.  Modify
323         calculation of ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE.  Use two new
324         arguments for SET_ALLOCNO_SET_BIT.
325         (ira_build_conflicts): Don't call mirror_conflicts.
327         * ira-color.c (varray.h): Remove.
328         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for
329         allocno vectors.
330         (allocno_stack_varray): Rename to allocno_stack_vec.  Make it a
331         VEC.
332         (assign_hard_reg, push_allocno_to_stack, pop_allocnos_from_stack,
333         ira_color): Use allocno_stack_vec as VEC.
334         
335         * ira-build.c (setup_min_max_allocno_live_range_point,
336         allocno_range_compare_func, sort_conflict_id_allocno_map,
337         setup_min_max_conflict_allocno_ids): New function.
338         (conflict_id_allocno_map, conflict_id_allocno_map_vec): New global
339         variable.
340         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for allocno vectors.
341         (allocno_varray): Rename to allocno_vec and make it a VEC.
342         (initiate_allocnos): Initiate conflict_id_allocno_map_vec.  Use
343         allocno_vec as a VEC.
344         (create_allocno): Initiate min, max, and conflict_id_allocno.
345         Update conflict_id_allocno_map.  Use allocno_vec as a VEC.
346         (allocate_allocno_conflict_bit_vec): Use ALLOCNO_MIN and
347         ALLOCNO_MAX.
348         (add_to_allocno_conflicts): Ditto.
349         (remove_wrong_conflicts): Ditto.  Use conflict_id_allocno_map.
350         (change_allocno_conflicts): Ditto.  Use add_to_allocno_conflicts
351         instead of SET_ALLOCNO_SET_BIT.
352         (finish_allocnos): Free conflict_id_allocno_map_vec.  Use
353         allocno_vec as a VEC.
354         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for copy vectors.
355         (copy_varray): Rename to copy_vec and make it a VEC.
356         (initiate_copies, create_copy, finish_copies): Use copy_vec as
357         a VEC.
358         (ira_build): Call setup_min_max_allocno_live_range_point,
359         sort_conflict_id_allocno_map, and
360         setup_min_max_conflict_allocno_ids.
361         
362         * ira-emit.c (move_t): New typedef.
363         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for move vectors.
364         (move_varray): Rename it to move_vec and make it a VEC.
365         (emit_move_list, add_range_and_copies_from_move_list): Use move_t.
366         (traverse_moves, ira_emit): Ditto.  Use move_vec as a VEC.
367         (modify_move_list): Ditto.  Set up conflict_id, min, and max for
368         the new allocno.
369         
370 2008-04-10  Vladimir Makarov  <vmakarov@redhat.com>
372         * reload1.c (substitute, gen_reload_chain_without_interm_reg_p):
373         New functions.
374         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
376 2008-04-09  Vladimir Makarov  <vmakarov@redhat.com>
378         * ira.c (ira): Move allocate_initial_values after initializing reg
379         info.
381 2008-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
383         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
385 2008-04-08  Vladimir Makarov  <vmakarov@redhat.com>
387         * ira-color.c (assign_hard_reg): Add debug printing.
388         
389         * ira-lives.c (mark_reg_store, mark_reg_death,
390         process_bb_node_lives): Ignore hard regno of class NO_REGS.
392         * ira.c: Fix typos in comments.
394 2008-04-07  Vladimir Makarov  <vmakarov@redhat.com>
396         * cfgloopanal.c (estimate_reg_pressure_cost): Decrease register
397         pressure cost for IRA regional allocation.
399         * ira.c:  Add IRA overview.
401 2008-04-06  Vladimir Makarov  <vmakarov@redhat.com>
403         * ira-int.h (reg_class_intersect, reg_class_union): Add comments.
404         
405         * hard-reg-set.h (reg_class_subclasses): New external definition.
407         * ira.c (setup_reg_class_intersect_union): Define for classes
408         containing no hard registers available for allocation.
410         * regclass.c (reg_class_subclasses): Make it external.
412         * config/sh/sh.h (IRA_COVER_CLASSES): Add TARGET_REGS.
413         
414 2008-04-05  Vladimir Makarov  <vmakarov@redhat.com>
416         * toplev.c (backend_init_target): Move init_ira after
417         init_fake_stack_mems.
419         * config/sh/sh.c (sh_secondary_reload): Remove check of x on null.
421 2008-04-04  Bernd Schmidt  <bernd.schmidt@analog.com>
423         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
425 2008-04-04  Kaz Kojima  <kkojima@gcc.gnu.org>
427         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
428         * config/sh/sh.c (sh_secondary_reload): Return NO_REGS for
429         null rtl.
430         * config/sh/sh.md (movsicc_true+3): Check if emit returns
431         a barrier.
432         * final.c (update_regs_ever_live): Check null rtl.
433         
434 2008-04-04  Vladimir Makarov  <vmakarov@redhat.com>
436         * reload1.c: Remove spaces before [.
437         
438         * ira-conflicts.c, ira-int.h, ira-color.c, ira-lives.c,
439         ira-emit.c, ira-build.c, ira.c, ira.h, ira-costs.c: Ditto.  Use
440         GPL3.
441         
442         * caller-save.c: Ditto.
443         (set_up_bb_rts_numbers, rpost_cmp): Remove.
444         (save_trans_fun, save_con_fun_0, save_con_fun_n): New functions.
445         (struct bb_info): Remove member rts_number.
446         (calculate_local_save_info): Setup empty_save_in_p for abnormal
447         edges.
448         (all_blocks): New variable.
449         (calculate_save_in_out): Use df_simple_dataflow.
450         (make_global_save_analysis): Allocate/setup/free all_blocks.
451                 
452 2008-04-04  Vladimir Makarov  <vmakarov@redhat.com>
454         * ira-costs.c: Use GPL3 in the header.
455         (find_allocno_class_costs): Use all important
456         classes on the 1st iteration.
458 2008-04-03  Vladimir Makarov  <vmakarov@redhat.com>
460         PR rtl-optimization/35817
461         * ira-costs.c (ira-costs.c): Check have_regs_of_mode.
463 2008-04-02  Vladimir Makarov  <vmakarov@redhat.com>
465         * ira-color.c (start_allocno_priorities): Permit zero allocno
466         nref.
468 2008-03-31  Vladimir Makarov  <vmakarov@redhat.com>
470         * ira-color.c (push_allocnos_to_stack): Don't use double.  Use
471         const as the secondary heuristic.
473         * ira-emit.c (set_allocno_reg): Change cap reg too.  Process all
474         loop parents.
475         
476         * doc/invoke.texi (-fira-coalescing): Change to -fira-coalesce.
478         * toplev.h (flag_lower_subreg): Remove.
480         * global.c (build_insn_chain): Remove the prototype.
482         * alias.c (value_addr_p): Change comment.
484         * emit-rtl.c (gen_lowpart_common): Remove CONCATN.
486         * simplify-rtx.c (simplify_subreg): Ditto.
488         * common.opt (flower-subreg): Remove.
490         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Fix last
491         merge.
493 2008-03-29  Vladimir Makarov  <vmakarov@redhat.com>
495         * ira-lives (process_single_reg_class_operands): Fix typo in
496         setting up cover_class.
498 2008-03-28  Vladimir Makarov  <vmakarov@redhat.com>
500         * ira-conflicts.c, global.c, regmove.c, function.c,
501         ira-emit.c, alias.c, reload1.c: Add comments, fix comments.
503         * reload.h: Add 2008 to the Copyright.
504         
505         * caller-save.c: Add comments.
506         (reg_save_code, reg_restore_code, initiate_saved_hard_regs,
507         new_saved_hard_reg, finish_saved_hard_regs,
508         saved_hard_reg_compare_func, calculate_local_save_info,
509         set_up_bb_rts_numbers, rpost_cmp, calculate_save_in_out,
510         calculate_save_here, make_global_save_analysis,
511         print_hard_reg_set_and_mode, print_hard_reg_set, print_save_data,
512         set_hard_reg_saved, add_stored_regs): Add prototypes.
513         
514         * df-scan.c (df_get_call_refs): Use
515         get_call_invalidated_used_regs.
517         * ira-int.h: Add comments.
518         (loop_tree_node): Rename inner to children.
519         (ira_allocate_regset, ira_free_regset): Remove.
520         (reassign_conflict_allocnos): Remove one parameter.
522         * ira-color.c: Add comments.
523         (setup_curr_costs): Rename to update_curr_costs.
524         (allocno_cost_compare_func, print_coalesced_allocno,
525         allocno_reload_assign): Add prototypes.
526         (reassign_conflict_allocnos): Remove one parameter.
528         * ira-lives.c: Add comments.
529         (make_regno_dead, make_regno_born_and_dead,
530         create_start_finish_chains, print_allocno_live_ranges,
531         print_live_ranges): Add protoypes.
533         * ira-build.c: Add comments.
534         (copy_allocno_live_range_list): Make it static.
536         * ira.c: Add comments.
537         (setup_cover_classes): Rename to
538         setup_cover_and_important_classes.
539         (free_register_move_costs, chain_freq_compare, chain_bb_compare,
540         ira): New prototypes.
541         (mode_inner_mode, setup_inner_mode, ira_allocate_regset,
542         ira_free_regset): Remove.
544         * ira.h: Add comments.
545         (SECONDARY_INPUT_RELOAD_CLASS,
546         SECONDARY_OUTPUT_RELOAD_CLASS, HAVE_SECONDARY_RELOADS,
547         MEMORY_MOVE_COST, reg_equiv_memory_loc_varray, reg_equiv_constant,
548         reg_equiv_memory_loc, reg_equiv_address, reg_equiv_mem, ira):
549         Remove.
550         
551         * ira-costs.c: Add comments.
552         (find_allocno_class_costs): Make common class a cover class.
553         
554 2008-03-20  Vladimir Makarov  <vmakarov@redhat.com>
556         * ira-int.h (allocno): Rename conflict_allocno_vec and
557         conflict_allocno_vec_size into conflict_allocno_array and
558         conflict_allocno_array_size.  Remove conflict_allocnos_num.
559         Rename total_conflict_allocnos_num into conflict_allocnos_num New
560         members child_renamed_p and conflict_vec_p.
561         (ALLOCNO_CONFLICT_ALLOCNO_VEC): Rename to
562         ALLOCNO_CONFLICT_ALLOCNO_ARRAY.
563         (ALLOCNO_CONFLICT_ALLOCNO_VEC_SIZE): Rename to
564         ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE.
565         (ALLOCNO_CHILD_RENAMED_P, ALLOCNO_CONFLICT_VEC_P): New macros.
566         (EXECUTE_IF_SET_IN_ALLOCNO_SET): Change to
567         FOR_EACH_ALLOCNO_IN_SET.
568         (allocno_set_iterator): New typedef.
569         (allocno_set_iter_init, allocno_set_iter_cond,
570         allocno_set_iter_next): New functions.
571         (conflict_vector_profitable_p, allocate_allocno_conflict_vec): New
572         prototypes.
573         (allocno_iterator): New typedef.
574         (allocno_iter_init, allocno_iter_cond): New functions.
575         (FOR_EACH_ALLOCNO): New macro.
576         (copy_iterator): New typedef.
577         (copy_iter_init, copy_iter_cond): New functions.
578         (FOR_EACH_COPY): New macro.
579         (allocno_conflict_iterator): New typedef.
580         (allocno_conflict_iter_init, allocno_conflict_iter_cond,
581         allocno_conflict_iter_next): New functions.
582         (conflict_vector_profitable_p, allocate_allocno_conflict_vec): New
583         prototypes.
584         (FOR_EACH_ALLOCNO_CONFLICT): New macro.
586         * ira-conflicts.c (conflicts): Change type.
587         (CONFLICT_P): Use one more index for conflicts.
588         (build_conflict_bit_table): Change allocation and initialization
589         of conflicts.
590         (mirror_conflicts): Rewrite.
591         (remove_conflict_allocno_copies): Use FOR_EACH_ALLOCNO.
592         (build_allocno_conflict_vects): Rename to build_allocno_conflicts.
593         Rewrite it.
594         (print_conflicts): Use FOR_EACH_ALLOCNO, don't print star.
595         (ira_build_conflicts): Use FOR_EACH_ALLOCNO.
597         * ira-color.c (assign_hard_reg): Use FOR_EACH_ALLOCNO_CONFLICT.
598         Use min_full_cost for finding register profitability.
599         (push_allocno_to_stack): Use FOR_EACH_ALLOCNO_CONFLICT.
600         (setup_allocno_left_conflicts_num, coalesced_allocno_conflict_p):
601         Ditto.
602         (move_spill_restore): Use FOR_EACH_ALLOCNO.
603         (reassign_conflict_allocnos): Ditto.  Use
604         FOR_EACH_ALLOCNO_CONFLICT.
605         (sort_regnos_for_alter_reg): Use FOR_EACH_ALLOCNO.
606         (reassign_pseudos): Use FOR_EACH_ALLOCNO_CONFLICT.
608         * ira-lives.c (make_regno_born, clear_allocno_live,
609         mark_reg_death, process_single_reg_class_operands,
610         process_bb_node_lives): Use FOR_EACH_ALLOCNO_IN_SET.
611         (create_start_finish_chains, print_live_ranges): Use
612         FOR_EACH_ALLOCNO.
614         * ira-emit.c (set_allocno_reg): Set up ALLOCNO_CHILD_RENAMED_P.
615         (set_allocno_somewhere_renamed_p): Use
616         ALLOCNO_CONFLICT_ALLOCNO_ARRAY.
617         (ira_emit): Use FOR_EACH_ALLOCNO.
619         * ira.c (setup_reg_renumber, setup_allocno_assignment_flags,
620         calculate_allocation_cost, check_allocation,
621         print_redundant_copies, setup_preferred_alternate_classes): Use
622         FOR_EACH_ALLOCNO.
624         * ira-costs.c (print_costs, setup_allocno_cover_class_and_costs,
625         ira_costs, tune_allocno_costs_and_cover_classes): Use
626         FOR_EACH_ALLOCNO.
628         * ira-build.c (check_allocno_conflict_vec): Remove.
629         (add_to_allocno_conflict_vec): Rename to
630         allocate_allocno_conflicts.  Rewrite.
631         (allocate_allocno_conflict_bit_vec, allocate_allocno_conflicts,
632         remove_wrong_conflicts, change_allocno_conflicts): New functions.
633         (rebuild_regno_allocno_maps): Use FOR_EACH_ALLOCNO.
634         (create_allocno): Initialize ALLOCNO_CHILD_RENAMED_P and
635         ALLOCNO_CONFLICT_VEC_P.
636         (conflict_vector_profitable_p): New function.
637         (compress_allocno_conflict_vec): Use
638         ALLOCNO_CONFLICT_ALLOCNO_ARRAY and don't use
639         ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM.
640         (compress_conflict_vecs): Use FOR_EACH_ALLOCNO.  Check
641         ALLOCNO_CONFLICT_VEC_P.
642         (propagate_info_to_cap): Use FOR_EACH_ALLOCNO_CONFLICT.
643         (finish_allocnos): Use FOR_EACH_ALLOCNO.
644         (finish_copies): Use FOR_EACH_COPY.
645         (check_and_add_conflicts): Change second parameter.  Use
646         add_to_allocno_conflicts instead of add_to_allocno_conflict_vec.
647         (temp_change_bit_vec): New variable.
648         (ira_flattening): Use FOR_EACH_ALLOCNO and FOR_EACH_COPY.  Use
649         remove_wrong_conflicts, change_allocno_conflicts.  Allocate and
650         free temp_change_bit_vec.  Nullify `allocnos' elements for removed
651         allocnos.  Check ALLOCNO_CHILD_RENAMED_P for removing obsolete
652         conflicts.  Don't compress and enumerate allocnos and copies.
653         Nullify `copies' elements for removed copies.  Use
654         add_to_allocno_conflicts instead of add_to_allocno_conflict_vec.
655         (ira_build): Use FOR_EACH_ALLOCNO.
656         
657 2008-03-18  Vladimir Makarov  <vmakarov@redhat.com>
659         * common.opt (fira-algorithm): Fix description
661         * ira-int.h (allocno): Remove best_class.
662         (ALLOCNO_BEST_CLASS): Remove.
663         (strict_class_subset_p): Remove.
664         
665         * ira-color.c (get_coalesced_allocnos_best_class_and_freq): Rename
666         to get_coalesced_allocnos_attributes.  Change prototype.
667         Calculate available regs.
668         (bucket_allocno_compare_func, sort_bucket): New functions.
669         (sorted_allocnos_for_spilling): New variable.
670         (assign_hard_reg): Don't add prohibited_class_mode_regs to
671         conflicting_regs.  Use it in loop for finding the best hard
672         register.
673         (add_allocno_to_ordered_bucket): Use bucket_allocno_compare_func.
674         (push_only_colorable): Call sort_bucket.
675         (push_allocnos_to_stack): Use sorted_allocnos_for_spilling instead
676         of sorted_allocnos.
677         (put_allocno_into_bucket): Use add_allocno_to_bucket instead of
678         add_allocno_to_ordered_bucket.
679         (initiate_ira_assign): Allocate sorted_allocnos_for_spilling.
680         (finish_ira_assign): Free sorted_allocnos_for_spilling.
682         * ira-emit.c (modify_move_list): Remove setting ALLOCNO_BEST_CLASS
683         up.
684         
685         * ira-build.c (create_allocno, create_cap_allocno): Ditto.
686         
687         * ira.c (strict_class_subset_p): Remove.
688         (setup_class_subset_and_memory_move_costs): Remove setting
689         strict_class_subset_p up.
690         
691         * ira-costs.c (setup_allocno_cover_class_and_costs): Remove
692         setting ALLOCNO_BEST_CLASS up.
693         
694 2008-03-12  Vladimir Makarov  <vmakarov@redhat.com>
696         * ira-int.h (allocno_pool, copy_pool, allocno_live_range_pool):
697         Remove external definitions.
698         (free_allocno_updated_costs, allocate_cost_vector,
699         free_cost_vector): New prototypes.
700         (allocate_and_set_costs, allocate_and_copy_costs,
701         allocate_and_set_or_copy_costs): Change prototypes.  Use
702         allocate_cost_vector instead of ira_allocate.
704         * ira-conflicts.c (add_insn_allocno_copies): Pass register class
705         to allocate_and_set_costs.
707         * ira-color.c (update_copy_costs_1): Pass register class to
708         allocate_and_set_or_copy_costs.
709         (assign_hard_reg): Pass register class to allocate_and_copy_costs.
710         Free updated costs.
711         (pop_allocnos_from_stack, color_allocnos): Check updated costs.
712         (color_pass): Pass register class to allocate_and_set_costs.  Free
713         updated costs.
714         (move_spill_restore): Check reg equivalences.
715         (setup_curr_costs): Pass register class to
716         allocate_and_set_or_copy_costs.
717         (reassign_conflict_allocnos, allocno_reload_assign): Check updated
718         costs.
719         (calculate_spill_cost): Use REG_N_REFS after checking regno.
721         * ira-lives.c (process_single_reg_class_operands): Pass register
722         class to allocate_and_set_costs.
724         * ira-build.c (allocno_pool, allocno_live_range_pool): New
725         variables.
726         (initiate_allocnos): Initiate the pools.
727         (free_allocno_updated_costs): New function.
728         (finish_allocno): Use free_cost_vector.  Free the pools.
729         (copy_pool): New variable.
730         (initiate_copies): Initiate the pool.
731         (cost_vector_pool): New variable.
732         (initiate_cost_vectors, allocate_cost_vector, free_cost_vector,
733         finish_cost_vectors): New functions.
734         (ira_flattening): Call free_allocno_updated_costs.  Check updated
735         costs.
736         (ira_build): Call initiate_cost_vectors.
737         (ira_destroy): Call finish_cost_vectors.
739         * ira.c (find_reg_equiv_invariant_const): Check read only memory.
740         (setup_reg_renumber, setup_allocno_assignment_flags): Call
741         free_allocno_updated_costs.
742         (ira): Remove initializations and freeing allocno_pool, copy_pool,
743         and allocno_live_range_pool.  Call generate_setjmp_warnings.
745         * ira-costs.c (process_bb_node_for_hard_reg_moves,
746         tune_allocno_costs_and_cover_classes): Pass register class to
747         allocate_and_set_costs.
749         * caller-save.c (save_slots_num, save_slots): New variables.
750         (init_save_areas): Initiate save_slots_num.
751         (setup_save_areas): Use stack slots from the previous reload
752         iteration independetly what slot was used on the previous pass.
753         
754 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
756         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
757         Remove commutativity hint.
759 2008-03-06  Vladimir Makarov  <vmakarov@redhat.com>
761         * ira.h (sort_regnos_for_alter_reg): Add parameter.
762         
763         * reload1.c (reload): Pass additional argument to
764         sort_regnos_for_alter_reg.
766         * ira-int.h (reg_equiv_len): New global variable.
768         * ira-emit.c (change_loop): Add assertion.
770         * ira.c (reg_equiv_len): New global variable.
771         (setup_reg_renumber): Use reg_equiv_len in assertion.
772         (ira): Initialize reg_equiv_len and spilled_reg_stack_slots.
774         * ira-color.c (coalesced_pseudo_reg_compare): Rename to
775         coalesced_pseudo_reg_freq_compare.
776         (coalesced_pseudo_reg_slot_compare,
777         setup_coalesced_allocno_costs_and_nums,
778         collect_spilled_coalesced_allocnos, coalesce_spill_slots): New
779         functions.
780         (coalesced_allocno_conflict_p): Add new parameter.  Use live
781         ranges to find conflicts for the reload.
782         (coalesce_allocnos): Don't coalesce allocnos with equivalences.
783         (color_pass): Check reg_quiv_len.
784         (regno_max_ref_width): New variable.
785         (sort_regnos_for_alter_reg): Add secondary coalescing spilled
786         allocnos.  Assign stack slot numbers.  Use costs instead of
787         frequencies.
788         (mark_allocation_change): Set up allocno hard regno.
789         (allocno_reload_assign): Ditto.
790         (reuse_stack_slot): Use stack slot numbers.
791         (mark_new_stack_slot): Set up allocno slot number.
793         * doc/passes.texi: Add more info about IRA.
794         
795 2008-03-03  Vladimir Makarov  <vmakarov@redhat.com>
797         * ira-conflicts.c (allocno_conflict_p): Rename to
798         allocno_live_ranges_intersect_p.
799         (allocno_reg_conflict_p): Rename to
800         pseudo_live_ranges_intersect_p.
802         * ira-lives.c (high_pressure_start_point): New variable.
803         (update_allocno_pressure_excess_length): New function.
804         (make_regno_dead): Call it.
805         (set_allocno_live): Udpate high_pressure_start_point.
806         (clear_allocno_live, mark_reg_store, mark_reg_death): Ditto.
807         (process_bb_node_lives): Initialize high_pressure_start_point.
808         Consider only allocatable hard regs for liveness.
809         
810         * ira-costs.c (record_reg_classes): Multiply cost by frequency.
811         Use half frequency when memory is allowed.  Remove check for
812         prefferred small register classes of pseudo-registers.
813         (scan_one_insn): Continue processing operands for moves of
814         pseudo-registers with equivalence.  Don't multiply cost by
815         frequency.
816         (init_ira_costs): Use bigger initial cost value.
817         
818         * ira-int.h: Ditto.
819         (allocno): New members somewhere_renamed_p and
820         excess_pressure_points_num.
821         (ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_EXCESS_PRESSURE_POINTS_NUM):
822         New macros.
823         (allocno_reg_conflict_p): Rename to
824         pseudo_live_ranges_intersect_p.
825         (allocno_conflict_p): Rename to allocno_live_ranges_intersect_p.
827         * ira.h (sort_regnos_for_alter_reg, better_spill_reload_regno_p):
828         New function prototypes.
829         
830         * ira-color.c (merge_allocnos): Remove mode check.
831         (coalesce_allocnos): Add parameter and modify to use it for
832         coalescing spilled allocnos.
833         (color_allocnos): Pass parameter to coalesce_allocnos.
834         (regno_coalesced_allocno_freq, regno_coalesced_allocno_num): New
835         variables.
836         (coalesced_pseudo_reg_compare, calculate_spill_cost,
837         sort_regnos_for_alter_reg, better_spill_reload_regno_p): New
838         functions.
839         (mark_allocation_change, allocno_reload_assign, reassign_pseudos
840         ): Use ALLOCNO_MEMORY_COST instead of ALLOCNO_UPDATED_MEMORY_COST.
841         (reuse_stack_slot): Use pseudo_live_ranges_intersect_p instead of
842         allocno_reg_conflict_p.
843         
844         * ira-emit.c (set_allocno_somewhere_renamed_p): New function.
845         (renamed_regno_bitmap): New static variable.
846         (change_loop): Check register pressure for creating new pseudo.
847         Set up ALLOCNO_SOMEWHERE_RENAMED_P and renamed_regno_bitmap.
848         (ira_emit): Allocate/deallocate renamed_regno_bitmap.
849         Call set_allocno_somewhere_renamed_p.
851         * ira-build.c (ira_loops): Move to ira.c.
852         (create_allocno): Initialize ALLOCNO_SOMEWHERE_RENAMED_P and
853         ALLOCNO_MEMORY_COST.
854         (create_cap_allocno): Set up ALLOCNO_MEMORY_COST.
855         (check_and_add_conflicts): Use allocno_live_ranges_intersect_p
856         instead of allocno_conflict_p.
857         (ira_flattening): Check conflicts of allocno renamed somewhere
858         locally.  Update ALLOCNO_EXCESS_PRESSURE_POINTS_NUM.
859         (ira_build): Move code for finding loops to ira.c.
860         (ira_destroy): Move code for freeing loops to ira.c.
862         * ira.c (setup_reg_class_intersect_union): Fix calculation of
863         reg_class_union.
864         (calculate_allocation_cost): Use ALLOCNO_MEMORY_COST instead of
865         ALLOCNO_UPDATED_MEMORY_COST.
866         (ira_loops): Move from ira-build.c.
867         (ira): Move code for finding and freeing loops from ira-build.c.
868         Don't use regional RA when there are too many loops.
870         * reload1.c (pseudo_reg_compare): Remove.
871         (reload): Use sort_regnos_for_alter_reg.
872         (hard_regno_to_pseudo_regno): New variable.
873         (count_pseudo): Set up hard_regno_to_pseudo_regno.
874         (order_regs_for_reload): Initialize hard_regno_to_pseudo_regno.
875         (count_spilled_pseudo): Update hard_regno_to_pseudo_regno.
876         (find_reg): Use better_spill_reload_regno_p.  Check
877         hard_regno_to_pseudo_regno.
879         * cfgloopanal.c: Include params.h.
880         (estimate_reg_pressure_cost): Check number of loops.
882         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
884         * params.h (IRA_MAX_LOOPS_NUM): New macro.
886         * Makefile.in (cfgloopanal.o): Add PARAMS_H.
887         
888         * doc/invoke.texi (ira-max-loops-num): Describe.
889         
890 2008-02-20  Vladimir Makarov  <vmakarov@redhat.com>
892         * ira.h, ira-emit.c: Add year 2008 to the copyright.
893         
894         * ira-int.h: Ditto.
895         (struct copy): Rename move_insn to insn.
896         (initiate_ira_assign, finish_ira_assign, debug_allocno_copies):
897         New function prototypes.
898         
899         * ira-build.c: Add year 2008 to the copyright.  Rename member
900         move_insn of the copies to insn.
901         (find_allocno_copy): New function.
902         (propagate_info_to_cap, add_allocno_copy): Use it.
903         (print_allocno_copies, debug_allocno_copies): New functions.
904         
905         * ira-conflicts.c: Add year 2008 to the copyright.  Rename member
906         move_insn of the copies to insn.
908         * ira.c: Ditto.
909         (setup_reg_class_intersect_union): Fix reg_class_union for cover
910         classes.
911         (ira): Call initiate_ira_assign and finish_ira_assign.  Remove
912         setting reload_completed up.
913         
914         * ira-costs.c: Add year 2008 to the copyright.
915         (ira_costs): Check modes of registers.
917         * ira-lives.c: Add year 2008 to the copyright.
918         (mark_reg_store, mark_reg_death, process_bb_node_lives): Don't use
919         REG_N_REFS.
920         (process_single_reg_class_operands): Check that the hard reg
921         belongs to the cover class.
923         * ira-color.c: Add year 2008 to the copyright.  Rename member
924         move_insn of the copies to insn.
925         (initiate_cost_update, finish_cost_update, update_copy_costs_1):
926         New functions.
927         (allocno_update_cost_check, update_cost_check): New static
928         variables.
929         (update_copy_costs): Increment update_cost_check.  Call
930         update_copy_costs_1.
931         (coalesce_allocnos): Don't coalesce already assigned allocnos or
932         copies with null insn.
933         (color_pass): Check loop tree node of the subloop allocno.
934         (finish_allocno_priorities): Remove.
935         (do_coloring): Move allocation/deallocation of
936         consideration_allocno_bitmap into initiate_cost_update and
937         finish_cost_update.
938         (reassign_conflict_allocnos): Remove allocation/deallocation of
939         sorted_allocnos.  Remove call of finish_allocno_priorities.
940         (reassign_pseudos): Remove allocation/deallocation of
941         consideration_allocno_bitmap and sorted_allocnos.  Remove call of
942         finish_allocno_priorities.
943         (initiate_ira_assign, finish_ira_assign): New fucntions.
944         (ira_color): Remove allocation/deallocation of sorted_allocnos.
945         Call initiate_ira_assign and finish_ira_assign.
946         
947         * postreload.c (gate_handle_postreload): Don't do post reload
948         optimizations unless the reload is completed.
949         
950         * cfgloopanal.c (estimate_reg_pressure_cost): Return zero if we
951         use regional RA.
953         * recog.c (peep2_free_reg_search_ofs): New static variable.
954         (peep2_find_free_register): Remove search_ofs.  Use
955         peep2_free_reg_search_ofs instead of it.
956         (peephole2_optimize): Reset peep2_free_reg_search_ofs.
957         
958 2008-01-10  Vladimir Makarov  <vmakarov@redhat.com>
960         * reload1.c (compute_use_by_pseudos): Permits spilled registers in
961         FROM.
962         (temp_pseudo_reg_arr): New variable.
963         (reload): Use instead temp_pseudo_reg_arr of pseudo_regs.  Move
964         freeing to the function end.  Don't clear spilled_pseudos for IRA.
965         Restore original insn chain for IRA.
966         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
967         (count_pseudo, count_spilled_pseudo): Check spilled pseudos.
968         (alter_reg): Set up spilled_pseudos.
969         (finish_spills): Set up pseudo_previous_regs only for spilled
970         pseudos.  Call reassign_pseudos once for all spilled pseudos,
971         pass more arguments.  Don't clear live_throughout and dead_or_set
972         for spilled pseudos.
974 2008-01-10  Vladimir Makarov  <vmakarov@redhat.com>
976         * reload1.c (compute_use_by_pseudos): Permits spilled registers in
977         FROM.
978         (temp_pseudo_reg_arr): New variable.
979         (reload): Use instead temp_pseudo_reg_arr of pseudo_regs.  Move
980         freeing to the function end.  Don't clear spilled_pseudos for IRA.
981         Restore original insn chain for IRA.
982         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
983         (count_pseudo, count_spilled_pseudo): Check spilled pseudos.
984         (alter_reg): Set up spilled_pseudos.
985         (finish_spills): Set up pseudo_previous_regs only for spilled
986         pseudos.  Call reassign_pseudos once for all spilled pseudos,
987         pass more arguments.  Don't clear live_throughout and dead_or_set
988         for spilled pseudos.
990         * global.c (reg_becomes_live, build_insn_chain): Don't ignore
991         spilled pseudos for IRA.
992         
993         * caller-save.c (calculate_local_save_info,
994         save_call_clobbered_regs): Ignore spilled pseudos for IRA.
995         
996         * toplev.c (backend_init_target): Call init_ira.
997         (backend_init): Move call of init_ira_once before
998         backend_init_target.
999         
1000         * ira.h (init_ira, sort_insn_chain, mark_memory_move_deletion):
1001         New function prototypes.
1002         (retry_ira_color): Rename to reassign_pseudos.  Change
1003         signature.
1005         * ira-int.h (allocno): New member dont_reassign_p.
1006         (ALLOCNO_DONT_REASSIGN_P): New macro.
1007         (memory_move_cost): Change element type.
1008         (register_move_cost): Change type.
1009         (register_may_move_in_cost, register_may_move_out_cost,
1010         reg_class_intersect): New arrays.
1011         (important_class_nums): Fix element type.
1012         (hard_reg_not_in_set_p): Make it static inline.
1013         (init_register_move_cost, init_ira_costs): New function
1014         prototypes.
1015         (allocno_conflict_index): Remove.
1016         (allocate_and_set_costs, allocate_and_copy_costs,
1017         allocate_and_set_or_copy_costs): New static inline functions.
1018         
1019         * ira-build.c (compress_allocno_conflict_vec,
1020         compress_conflict_vecs): New functions.
1021         (allocno_conflict_index): Remove.
1022         (allocno_conflict_check, curr_allocno_conflict_check_tick): New
1023         variables.
1024         (propagate_info_to_cap): Use allocate_and_copy_costs.
1025         (check_and_add_conflicts): Don't call allocno_conflict_index.
1026         (ira_flattening): Add some assertions.  Check that cost vectors
1027         have been allocated.  Don't call allocno_conflict_index.  Call
1028         compress_conflict_vecs.
1030         * ira.c (memory_move_cost, register_move_cost): Change types.
1031         (register_may_move_in_cost, register_may_move_out_cost,
1032         strict_class_subset_p): New variables.
1033         (setup_class_subset_and_move_costs): Rename to
1034         setup_class_subset_and_memory_move_costs.  Remove
1035         register_move_cost setup.  Don't consider no_unit_alloc_regs.  Add
1036         strict_class_subset_p setup.
1037         (setup_reg_class_intersect): Rename to
1038         setup_reg_class_intersect_union.  Don't consider
1039         no_unit_alloc_regs.  Add reg_class_union setup.
1040         (hard_reg_not_in_set_p): Move to ira-int.h.
1041         (setup_reg_subclasses): Use no_unit_alloc_regs instead of
1042         fixed_reg_set.  Don't consider no_unit_alloc_regs.
1043         (important_class_nums): Fix element type.
1044         (setup_cover_classes): Use no_unit_alloc_regs instead of
1045         fixed_reg_set.  Don't consider no_unit_alloc_regs.
1046         (setup_class_translate): Ditto.
1047         (reg_class_union): New variable.
1048         (init_register_move_cost, free_register_move_costs): New
1049         functions.
1050         (init_ira_once): Initialize register_move_cost,
1051         register_may_move_in_cost, register_may_move_out_cost.  Move some
1052         code to init_ira.
1053         (init_ira): New function.  Move some code from init_ira_once.
1054         Call free_register_move_costs and init_ira_costs.
1055         (calculate_allocation_cost): Check allocation of allocno hard reg
1056         cost vector.
1057         (basic_block_order_nums): New variable.
1058         (chain_freq_compare, chain_bb_compare, sort_insn_chain): New
1059         functions.
1060         (ira): Call sort_insn_chain.
1062         * ira-color.c (allocno_coalesced_p): New variable.
1063         (update_copy_costs): Use allocate_and_set_or_copy_costs.
1064         (assign_hard_reg): Clear and use
1065         processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
1066         Use allocate_and_copy_costs.  Use allocno cover class cost if the
1067         hard register cost vector is not allocated.
1068         (get_coalesced_allocnos_best_class_and_freq): Use
1069         reg_class_intersect instead of reg_class_subintersect.
1070         (add_allocno_to_ordered_bucket): Use strict_class_subset_p.
1071         (push_allocno_to_stack): Clear and use
1072         processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
1073         (setup_allocno_left_conflicts_num): Don't setup
1074         ALLOCNO_UPDATED_HARD_REG_COSTS and
1075         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.  Clear and use
1076         processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
1077         (put_allocno_into_bucket): Don't setup
1078         ALLOCNO_UPDATED_HARD_REG_COSTS and
1079         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
1080         (coalesced_allocno_conflict_p): Clear and use
1081         processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
1082         (coalesce_allocnos): Setup allocno_coalesced_p.
1083         (color_allocnos): Add processing reg class NO_REGS.
1084         (color_pass): Propagate assignment of spilled allocno not
1085         mentioned in the subregion for the mixed algorithm.  Use
1086         allocate_and_set_costs.
1087         (move_spill_restore, mark_allocation_change): Check unallocated
1088         hard reg cost vectors.
1089         (setup_curr_costs): Don't setup ALLOCNO_UPDATED_HARD_REG_COSTS and
1090         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.  Use
1091         allocate_and_set_or_copy_costs.
1092         (mark_memory_move_deletion, allocno_reload_assign,
1093         pseudo_reg_compare, reassign_pseudos): New functions.
1094         (retry_ira_color): Remove.
1095         
1096         * ira-conflicts.c (add_insn_allocno_copies): Use
1097         allocate_and_set_costs.
1098         (allocno_conflict_p): Simplify the code.
1099         
1100         * ira-costs.c: Rename reg_class_subunion to reg_class_union
1101         everywhere.
1102         (cost_classes, cost_classes_num, cost_class_nums,
1103         max_struct_costs_size): New variables.
1104         (copy_cost): Use init_register_move_cost instead of
1105         init_move_cost.
1106         (record_reg_classes): Ditto.  Use cost_classes and
1107         cost_classes_num instead of important_classes and
1108         important_classes_num.  Use register_may_move_{in,out}_cost
1109         instead of may_move_{in,out}_cost.  Check reg class intersection
1110         for alt_cost.
1111         (record_address_regs): Use init_register_move_cost instead of
1112         init_move_cost.  Use cost_classes and cost_classes_num instead of
1113         important_classes and important_classes_num.  Use
1114         register_may_move_in_cost instead of may_move_in_cost.
1115         (scan_one_insn): Use cost_classes_num instead of
1116         important_classes_num.
1117         (print_costs): Use cost_classes and cost_classes_num instead of
1118         important_classes and important_classes_num.
1119         (find_allocno_class_costs): Initialize cost_classes and
1120         cost_class_nums.  Use cost_classes and cost_classes_num instead of
1121         important_classes and important_classes_num.
1122         (process_bb_node_for_hard_reg_moves): Use allocate_and_set_costs.
1123         (setup_allocno_cover_class_and_costs): Use cost_classes and
1124         cost_classes_num instead of important_classes and
1125         important_classes_num.
1126         (init_ira_costs_once): Move some code to init_ira_costs.  Initiate
1127         cost_classes.
1128         (free_ira_costs: New function.  Move some code from
1129         finish_ira_costs_once.
1130         (init_ira_costs): New function.  Move some code from
1131         init_ira_costs_once.  Use max_struct_costs_size instead of
1132         struct_costs_size.  Call free_ira_costs.  Allocate cost_classes.
1133         (finish_ira_costs_once): Move some code to finish_ira_costs.  Call
1134         free_ira_costs.
1135         (ira_costs): Use max_struct_costs_size instead of
1136         struct_costs_size.  Use allocate_and_set_costs.
1138         * ira-emit.c (modify_move_list): Remove allocation of hard reg
1139         cost vectors.
1141         * ira-lives.c (process_single_reg_class_operands): Add new
1142         parameter freq.  Calculate costs basing on the frequency.
1143         (process_bb_node_lives): Pass the frequency to
1144         process_single_reg_class_operands.
1145         
1146 2007-12-17  Vladimir Makarov  <vmakarov@redhat.com>
1148         * doc/invoke.texi (fira-algoirthm): Remove prioirity coloring.
1149         Make mixed the default.
1151         * flags.h (ira_algorithm): Remove IRA_ALGORITHM_PRIORITY.
1153         * ira-color.c (priority_coloring):  Remove.
1154         (do_coloring): Don't call priority_coloring.
1156         * opts.c (common_handle_option): Remove priority coloring option.
1158         * toplev.c (flag_ira_algorithm): Assign IRA_ALGORITHM_MIXED.
1159         
1160         * ira-build.c (check_and_add_conflicts, ira_flattening): Increase
1161         threshold for internal_flag_ira_verbose.
1162         
1163 2007-12-17  Vladimir Makarov  <vmakarov@redhat.com>
1165         * common.opt (fira-assign-after-call-split, fira-biased-coloring,
1166         fira-split-around-calls): Remove.
1167         (fdump-simple-rtl, fira-verbose): New options.
1168         (fira, fira-coalesce): Initiate by 0.
1170         * opts.c (common_handle_option):  Process flag_ira_verbose.
1172         * flags.h (flag_ira_verbose): New external definition.
1174         * toplev.h (flag_ira_assign_after_call_split,
1175         flag_ira_biased_coloring, flag_ira_split_around_calls):  Remove.
1177         * toplev.c (flag_ira_verbose): New external declaration.
1178         (finalize): Call finish_ira_once.
1180         * print-rtl.c (flag_simple):  Rename to flag_dump_simple_rtl.
1182         * doc/invoke.texi (-fno-ira-assign-after-call-split,
1183         -fira-biased-coloring, -fno-ira-split-around-calls):  Remove.
1184         (-fdump-simple-rtl, -fira-verbose): New options.
1186         * caller-save.c (insert_restore, insert_save): Use
1187         adjust_address_nv instead of adjust_address.  Check the mode by
1188         reg_save_code.
1190         * ira-call.c: Remove file.
1192         * ira-lives.c: New file.
1194         * Makefile.in (ira-live.o): Add
1195         (ira-call.o): Remove.
1196         (IRA_INT_H): Add alloc-pool.h.
1198         * ira.h (finish_ira_once): New external definition.
1200         * ira-int.h (internal_flag_ira_verbose, alloc_pool allocno_pool,
1201         copy_pool, allocno_live_range_pool, ira_loop_tree_height,
1202         max_point, start_point_ranges, finish_point_ranges,
1203         prohibited_mode_move_regs, important_class_nums,
1204         ira_curr_regno_allocno_map, allocno_set_words): New external
1205         definitions.
1206         (loop_tree_node_t, allocno_live_range_t): New typedefs.  Use them
1207         everywhere.
1208         (ira_loop_tree_node): Rename to loop_tree_node.
1209         (loop_tree_node): New member level.
1210         (allocno_live_range): New structure.
1211         (allocno): New members nrefs, live_ranges,
1212         total_conflict_hard_regs, conflict_allocnos_num,
1213         total_conflict_allocnos_num, mem_optimized_dest,
1214         mem_optimized_dest_p, total_no_stack_reg_p.  Remove members
1215         conflict_allocno_vec_active_size and original_memory_cost.  Rename
1216         member curr_hard_reg_costs to updated_hard_reg_costs.
1217         (ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM,
1218         ALLOCNO_TOTAL_CONFLICT_HARD_REGS, ALLOCNO_CONFLICT_ALLOCNOS_NUM,
1219         ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM, ALLOCNO_NREFS,
1220         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
1221         ALLOCNO_TOTAL_NO_STACK_REG_P, ALLOCNO_LIVE_RANGES): New access
1222         macros.
1223         (ALLOCNO_CONFLICT_ALLOCNO_VEC_ACTIVE_SIZE,
1224         ALLOCNO_ORIGINAL_MEMORY_COST): Remove.
1225         (ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS): Rename to
1226         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
1227         (allocno_copy): New member loop_tree_node.
1228         (INT_BITS, INT_TYPE, EXECUTE_IF_SET_IN_ALLOCNO_SET): Move from
1229         ira-conflicts.c.
1230         (SET_ALLOCNO_SET_BIT, CLEAR_ALLOCNO_SET_BIT,
1231         TEST_ALLOCNO_SET_BIT): New macros.
1232         (ira_reallocate, allocno_conflict_index, add_allocno_conflict,
1233         create_allocno_live_range, finish_allocno_live_range,
1234         add_allocno_copy_to_list, swap_allocno_copy_ends_if_necessary,
1235         remove_allocno_copy_from_list, add_allocno_copy, ira_flattening,
1236         finish_ira_costs_once, rebuild_start_finish_chains,
1237         print_live_range_list, debug_live_range_list,
1238         debug_allocno_live_ranges, debug_live_ranges,
1239         create_allocno_live_ranges, finish_allocno_live_ranges,
1240         allocno_conflict_p, loop_edge_freq): New external function
1241         definitions.
1242         (hard_reg_in_set_p, original_regno_call_crossed_p,
1243         ira_max_regno_before, ira_max_regno_call_before): Remove.
1244         (traverse_loop_tree): Add new parameter type.
1245         (create_copy): Ditto.
1246         (debug_conflicts, ira_emit, add_allocno_copy): Add parameter.
1247         (debug_ira_call_data, split_around_calls, get_around_calls_regno):
1248         Remove.
1249         
1250         * ira.c (setup_prohibited_mode_move_regs): New function.
1251         (internal_flag_ira_verbose, allocno_pool, copy_pool,
1252         allocno_live_range_pool, important_class_nums): New external
1253         variables.
1254         (IRA_NO_OBSTACK): Uncomment it.
1255         (ira_reallocate): New function.
1256         (setup_cover_classes): Set up important_class_nums.
1257         (finish_ira_once): New function.
1258         (prohibited_mode_move_regs,
1259         prohibited_mode_move_regs_initialized_p): New global variables.
1260         (setup_prohibited_mode_move_regs): New function.
1261         (setup_reg_renumber): Remove parameters.
1262         (setup_allocno_assignment_from_reg_renumber): Rename to
1263         setup_allocno_assignment_flags.  Set up ALLOCNO_ASSIGNED_P.
1264         (calculate_allocation_cost): Use ALLOCNO_UPDATED_MEMORY_COST.
1265         (ira_max_regno_before, ira_max_regno_call_before): Remove.
1266         (ira): Set up internal_flag_ira_verbose.  Call
1267         setup_prohibited_mode_move_regs.  Create and destroy allocno,
1268         copy, and live range pools.  Remove original_regno_call_crossed_p.
1269         Report major passes.  Use argument for ira_emit.  Call
1270         ira_flattening and df_analyze.  Remove live range splitting around
1271         calls.
1272         
1273         * ira-build.c (setup_loop_tree_level, rebuild_regno_allocno_maps,
1274         expand_calls, compress_calls, allocno_conflict_index,
1275         add_to_allocno_conflict_vec, propagate_info_to_cap,
1276         copy_allocno_live_range, copy_allocno_live_range_list,
1277         finish_allocno, finish_copy,
1278         propagate_info_to_loop_tree_node_caps, merge_ranges,
1279         common_loop_tree_node_dominator, check_and_add_conflicts,
1280         add_conflict_with_underlying_allocnos, ira_flattening): New
1281         functions.
1282         (check_coalesced_allocnos): Remove.
1283         (ira_loop_tree_height): New external variable.
1284         (form_loop_tree): Call setup_loop_tree_level.
1285         (initiate_calls): Allocate a bit more.  (create_allocno): Use
1286         pool_alloc.  Set up ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM,
1287         ALLOCNO_TOTAL_CONFLICT_HARD_REGS, ALLOCNO_NREFS,
1288         ALLOCNO_TOTAL_NO_STACK_REG_P, ALLOCNO_MEM_OPTIMIZED_DEST,
1289         ALLOCNO_MEM_OPTIMIZED_DEST_P, ALLOCNO_UPDATED_MEMORY_COST, and
1290         ALLOCNO_LIVE_RANGES.  Rename
1291         ALLOCNO_CONFLICT_ALLOCNO_VEC_ACTIVE_SIZE,
1292         ALLOCNO_CURR_HARD_REG_COSTS, and
1293         ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS to
1294         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_UPDATED_HARD_REG_COSTS, and
1295         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
1296         (add_allocno_conflict): Make it external.  Use
1297         add_to_allocno_conflict_vec.
1298         (create_cap_allocno): Move part of code to propagate_info_to_cap.
1299         (finish_allocnos): Use finish_allocno.
1300         (add_allocno_copy_to_list, remove_allocno_copy_from_list,
1301         swap_allocno_copy_ends_if_necessary, add_allocno_copy): Move from
1302         ira-conflicts.c.  Make them external.
1303         (create_copy): Use pool_alloc.  Add parameter loop_tree_node.
1304         (finish_copies): Use finish_copy.
1305         (ira_curr_regno_allocno_map): New external variable.
1306         (traverse_loop_tree): Add parameter bb_first_p.
1307         (create_insn_allocnos): Update ALLOCNO_NREFS.
1308         (create_loop_tree_node_allocnos): Traverse loop tree nodes with
1309         BBs first.  Update ALLOCNO_NREFS.
1310         (create_loop_tree_node_caps): Move part of code to
1311         propagate_info_to_loop_tree_node_cap.
1312         (regno_top_level_allocno_map): New global variable.
1313         (ira_build): Create caps before build conflicts.  Call
1314         create_allocno_live_ranges.  Propagate info to caps.  Report
1315         statistics.
1316         (ira_destroy): Call finish_allocno_live_ranges.
1318         * ira-conflicts.c (set_allocno_live, clear_allocno_live,
1319         record_regno_conflict, mark_reg_store, mark_reg_clobber,
1320         mark_reg_conflicts, mark_reg_death): Remove.
1321         (add_insn_allocno_copies, add_copies): New functions.
1322         (add_allocno_copy_to_list, remove_allocno_copy_from_list,
1323         swap_allocno_copy_ends_if_necessary, add_allocno_copy): Remove.
1324         (add_allocno_copies): Rename to add_insn_allocno_copies.  Use
1325         ira_curr_regno_allocno_map and add_insn_allocno_copies.
1326         (single_reg_class, single_reg_operand_class,
1327         process_single_reg_class_operands, process_bb_node_for_conflicts):
1328         Remove.
1329         (INT_BITS, INT_TYPE, EXECUTE_IF_SET_IN_ALLOCNO_SET): Move to
1330         ira-int.h.
1331         (allocnos_live_bitmap, SET_ALLOCNO_CONFLICT_ROW,
1332         CLEAR_ALLOCNO_CONFLICT_ROW, TEST_ALLOCNO_CONFLICT_ROW): Remove.
1333         (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, TEST_ALLOCNO_LIVE):
1334         Use {SET, CLEAR, TEST}_ALLOCNO_SET_BIT.
1335         (allocno_row_words, hard_regs_live, curr_bb_node,
1336         curr_regno_allocno_map, curr_reg_pressure): Remove.
1337         (CONFLICTP): Rename to CONFLICT_P.
1338         (regs_set): Remove.
1339         (propagate_allocno_info): Use ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
1340         Set up ALLOCNO_CALLS_CROSSED_START.
1341         (allocno_conflict_p): New function.
1342         (allocno_reg_conflict_p): Use allocno_conflict_p.
1343         (build_allocno_conflict_vects): Divide original and propagated
1344         conflicts.
1345         (print_hard_reg_set): New function.
1346         (print_conflicts): Use print_hard_reg_set.  Set up mark for the
1347         start of propagated conflicts.
1348         (debug_conflicts): Add parameter.
1349         (ira_build_conflicts): Call add_copies.  Set up
1350         ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
1352         * ira-costs.c (struct costs): Make cost allocated dynamically.
1353         (struct_costs_size, temp_cots, op_costs, this_op_costs): New
1354         variables.
1355         (costs): Rename to total_costs.
1356         (COSTS_OF_ALLOCNO): New macro.
1357         (curr_regno_allocno_map): Remove.  Use ira_curr_regno_allocno_map
1358         instead.
1359         (record_reg_classes): Check NO_REGS in allocno_pref.
1360         (record_address_regs): Use COSTS_OF_ALLOCNO.
1361         (scan_one_insn): Ditto.
1362         (print_costs): Ditto.
1363         (find_allocno_class_costs): Ditto.  Pass additional argument to
1364         traverse_loop_tree.  Set up NO_REGS if memory is cheaper.
1365         (setup_allocno_cover_class_and_costs): Use
1366         ALLOCNO_UPDATED_MEMORY_COST instead of
1367         ALLOCNO_ORIGINAL_MEMORY_COST, ALLOCNO_UPDATED_HARD_REG_COSTS
1368         instead of ALLOCNO_CURR_HARD_REG_COSTS, and
1369         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS instead of
1370         ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS.  Pass additional argument to
1371         traverse_loop_tree.
1372         (init_ira_costs_once): Allocate init_cost, op_costs,
1373         this_op_costs, temp_costs.
1374         (finish_ira_costs_once): New function.
1375         
1376         * ira-color.c: Use ALLOCNO_UPDATED_MEMORY_COST instead of
1377         ALLOCNO_ORIGINAL_MEMORY_COST, ALLOCNO_UPDATED_HARD_REG_COSTS
1378         instead of ALLOCNO_CURR_HARD_REG_COSTS, and
1379         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS instead of
1380         ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS.  Use
1381         ALLOCNO_TOTAL_CONFLICT_HARD_REGS instead of
1382         ALLOCNO_CONFLICT_HARD_REGS.
1383         (processed_allocno_bitmap): Rename into
1384         processed_coalesced_allocno_bitmap.
1385         (allocno_cost_compare_func): Use ALLOCNO_UPDATED_MEMORY_COST
1386         instead of ALLOCNO_MEMORY_COST.
1387         (assign_hard_reg): Remove biased coloring.
1388         (add_allocno_to_ordered_bucket): Check cover class first.
1389         (loop_edge_freq): Make it external.
1390         (setup_allocno_left_conflicts_num): Check that conflicting
1391         allocnos of one class.
1392         (allocno_conflict_p): Rename to coalesced_allocno_conflict_p.
1393         (color_pass): Check pressure in the loop (not in subloops) for
1394         mixed algorithm.
1395         (allocno_priorities): New variable.
1396         (start_allocno_priorities, finish_allocno_priorities): New
1397         functions.
1398         (allocno_priority_compare_func): Use allocno_priorities.
1399         (priority_coloring): Call start_allocno_priorities and
1400         finish_allocno_priorities.
1401         (do_coloring): Pass additional argument to traverse_loop_tree.
1402         
1403         * ira-emit.c (struct move): Add member insn.
1404         (create_move): Initialize member insn.
1405         (generate_edge_moves): Set up ALLOCNO_MEM_OPTIMIZED_DEST and
1406         ALLOCNO_MEM_OPTIMIZED_DEST_P.
1407         (change_loop): Check prohibited_mode_move_regs.
1408         (curr_jump_map, can_move_through_p): Remove.
1409         (unify_moves): Don't move through jump.
1410         (modify_move_list): Set up attributes for new allocno used for
1411         breaking dependency loops.
1412         (emit_move_list): Set up insn codes.
1413         (update_costs, add_range_and_copies_from_move_list,
1414         add_ranges_and_copies): New functions.
1415         (ira_emit): Add a parameter.  Call add_ranges_and_copies.
1416         
1417 2007-10-09  Vladimir Makarov  <vmakarov@redhat.com>
1419         * toplev.h (flag_ira_coalesce): New external variable.
1421         * ira-int.h (allocno): New members first_coalesced_allocno,
1422         next_coalesced_allocno.
1423         (ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO):
1424         New macros.
1425         (reg_class_subintersect): New external variable.
1427         * ira-color.c (processed_allocno_bitmap): New variable.
1428         (allocno_cost_compare_func, print_coalesced_allocno): New
1429         functions.
1430         (assign_hard_reg): Process coalesced allocnos.
1431         (get_coalesced_allocnos_best_class_and_freq): New function.
1432         (add_allocno_to_ordered_bucket): Use the function.
1433         (push_allocno_to_stack, push_allocnos_to_stack): Process coalesced
1434         allocnos.
1435         (remove_allocno_from_bucket_and_push, pop_allocnos_from_stack):
1436         Use print_coalesced_allocno.
1437         (setup_allocno_available_regs_num,
1438         setup_allocno_left_conflicts_num): Process coalesced allocnos.
1439         (copy_freq_compare_func, allocno_conflict_p, coalesce_allocnos):
1440         New functions.
1441         (color_allocnos): Allocate/free processed_allocno_bitmap.  Call
1442         coalesce_allocnos.
1443         (priority_coloring): Allocate/free processed_allocno_bitmap.
1445         * ira-build.c (check_coalesced_allocnos): New function.
1446         (create_allocno): Initiate next_coalesced_allocno,
1447         first_coalesced_allocno.
1448         (create_cap_allocno): Check  next_coalesced_allocno,
1449         first_coalesced_allocno.
1451         * common.opt (fira-coalesce): New option.
1453         * ira.c (setup_reg_class_intersect): New function.
1454         (reg_class_subintersect): New global variable.
1455         (init_ira_once): Call setup_reg_class_intersect.
1457         * doc/invoke.texi (-fira-coalescing): New option.
1458         
1459 2007-09-20  Vladimir Makarov  <vmakarov@redhat.com>
1461         * ira-build.c (create_allocno): Initialize ALLOCNO_BEST_CLASS.
1463         * ira-color.c (add_allocno_to_ordered_bucket): Use
1464         ALLOCNO_BEST_CLASS.
1466         * ira-costs.c (setup_allocno_cover_class_and_costs): Initialize
1467         ALLOCNO_BEST_CLASS.
1469         * ira-int.h (allocno): New member best_class.
1470         (ALLOCNO_BEST_CLASS): New macro.
1471         
1472 2007-09-19  Vladimir Makarov  <vmakarov@redhat.com>
1474         * ira-int.h (allocno): Remove calls_crosed.  Add
1475         calls_crossed_start.
1476         (ALLOCNO_CALLS_CROSSED): Remove.
1477         (ALLOCNO_CALLS_CROSSED_START): Add.
1478         (build_df): Remove.
1479         (regno_calls, add_regno_call): New.
1480         
1481         * ira-build.c (initiate_calls, finish_calls, add_regno_call): New
1482         functions.
1483         (regno_calls, regno_calls_num): New globals.
1484         (build_df): Remove.
1485         (add_loop_to_tree): Use loop_outer.
1486         (form_loop_tree): Ditto.
1487         (initiate_allocnos, create_cap_allocno): Remove
1488         ALLOCNO_CALLS_CROSSED.  Add ALLOCNO_CALLS_CROSSED_START.
1489         (finish_allocnos): Remove ALLOCNO_CALLS_CROSSED.
1490         (create_bb_allocnos, create_loop_allocnos): Use DF_LR_{IN,OUT}
1491         instead of DF_UPWARD_LIVE_{IN,OUT}.
1492         (ira_build): Remove adding df problems and call of
1493         free_dominance_info.  Call initiate_calls.
1494         (ira_destroy): Add free_dominance_info and finish_calls.  Remove
1495         df_finish.
1497         * ira-emit.c (change_regs): Return the result.
1498         (generate_edge_moves): Use DF_LR_{IN,OUT} instead of
1499         DF_UPWARD_LIVE_{IN,OUT}.
1500         (change_loop): Call df_insn_rescan and df_note_rescan if there is
1501         a change.
1502         (can_move_through_p): Use hard_reg_set_equal_p instead of
1503         GO_IF_HARD_REG_EQUAL.
1505         * ira-costs.c (copy_cost, record_reg_classes,
1506         record_address_regs): Call init_move_cost if it is necessary.
1507         (tune_allocno_costs_and_cover_classes): Use regno_calls and
1508         ALLOCNO_CALLS_CROSSED_START instead of ALLOCNO_CALLS_CROSSED.
1510         * ira-conflicts.c (n_regs_set): Remove.
1511         (regs_set): Make it a vector.
1512         (mark_reg_store, mark_reg_clobber): Change 2nd parameter type.
1513         (process_bb_node_for_conflicts): Use DF_LR_IN instead of
1514         DF_UPWARD_LIVE_IN.  Call add_regno_call.  Initialize
1515         ALLOCNO_CALLS_CROSSED_START.  Remove ALLOCNO_CALLS_CROSSED.
1516         (build_conflict_bit_table): Initialize and finalize regs_set.
1517         (propagate_allocno_info): Remove ALLOCNO_CALLS_CROSSED.
1518         Initialzie ALLOCNO_CALLS_CROSSED_START.
1519         
1520         * ira-color.c (setup_allocno_available_regs_num,
1521         setup_allocno_left_conflicts_num): New functions.
1522         (update_allocno_avaialable_regs): Remove.
1523         (sorted_allocnos, allocno_stack_varray): Move upper.
1524         (assign_hard_reg): Use hard_reg_set_subset_p instead of
1525         GO_IF_HARD_REG_SUBSET.
1526         (loop_edge_freq): Use DF_LR_{IN,OUT} instead of
1527         DF_UPWARD_LIVE_{IN,OUT}.
1528         (put_allocno_into_bucket): Call setup_allocno_available_regs_num
1529         and setup_allocno_left_conflicts_num.
1530         (print_loop_title): Use loop_depth.
1531         (allocno_priority_compare_func): Remove REG_N_REFS and
1532         REG_LIVE_LENGTH.
1533         (retry_ira_color): Use SET_REGNO.  Use ALLOCNO_CALLS_CROSSED_NUM
1534         instead of ALLOCNO_CALLS_CROSSED.
1535         (collect_pseudo_call_clobbered_regs):  Use regno_calls and
1536         ALLOCNO_CALLS_CROSSED_START instead of ALLOCNO_CALLS_CROSSED.
1538         * ira-call.c (init_ira_call_data): Add argument to
1539         post_order_compute.
1540         (n_regs_set): Remove.
1541         (regs_set): Make it a vector.
1542         (mark_reg_store, mark_reg_clobber): Change 2nd parameter type.
1543         (mark_referenced_regs): Check null x.
1544         (put_save_restore_and_calculate_local_info): Initialize and
1545         finalize regs_set.  Use DF_LR_{IN,OUT} instead of
1546         DF_UPWARD_LIVE_{IN,OUT}.  Use loop_outer.
1547         (do_init_nothing): Remove.
1548         (save_trans_fun, save_con_fun_0, restore_trans_fun,
1549         restore_con_fun_0): Remove 1st parameter.
1550         (save_con_fun_n, restore_con_fun_n): Ditto.  Use
1551         df_simple_dataflow instead of df_analyze_problem.
1552         (put_save_restore): Use DF_LR_IN instead of DF_UPWARD_LIVE_IN.
1553         Call mark_all_referenced_regs for all insn.  Use bitmap progress.
1554         (get_move_insn): New function.
1555         (put_save_restore_and_calculate_local_info, put_save_restore): Use
1556         the function.
1558         * ira.c (insn_contains_asm_1, insn_contains_asm,
1559         compute_regs_asm_clobbered, expand_reg_info): New functions.
1560         (setup_class_subset_and_move_costs): Use hard_reg_set_subset_p
1561         instead of GO_IF_HARD_REG_SUBSET.
1562         (setup_reg_subclasses, setup_class_translate): Ditto. Use
1563         hard_reg_set_equal_p instead of GO_IF_HARD_REG_EQUAL.
1564         (setup_eliminable_regset): Call compute_regs_asm_clobbered.  Use
1565         df_set_regs_ever_live instead of regs_ever_live.
1566         (setup_reg_renumber): Check reg_equiv_const and
1567         reg_equiv_invariant_p.
1568         (ira): Remove no_new_pseudos. Add df-problems and analyze.  Call
1569         regstat_init_n_sets_and_refs and regstat_compute_ri.  Remove
1570         delete_unreachable_blocks.  Use expand_reg_info.  Move
1571         setup_preferred_alternate_classes upper.  Remove life_analysis.
1572         Prepare df-insfrastructure for reload.
1574         * regclass.c (setup_reg_classes): Don't use reg_pref_buffer.
1576         * function.[ch] (get_call_invalidated_used_regs): Change 1st
1577         parameter type.
1578         
1579         * gengtype.c (main): Add HARD_REG_SET.
1581         * alias.c (value_addr_p): New function.
1582         (nonoverlapping_memrefs_p): Use it.
1584         * caller-save.c (init_caller_save): Use DF_LR_TOP for IRA instead
1585         of global_live_at_start.
1586         
1587 2007-05-04  Vladimir Makarov  <vmakarov@redhat.com>
1589         * ira-conflicts.c: Change pseudo to allocno.
1590         * ira-color.c: Ditto.
1591         * ira-emit.c: Ditto.
1592         * ira-build.c: Ditto.
1593         * ira.c: Ditto.
1594         (important_classes_num, important_classes): New variables.
1595         (setup_cover_classes): Set up the variable values.
1596         * ira-costs.c: Ditto.
1597         (record_reg_classes, record_address_regs, scan_one_insn,
1598         find_pseudo_class_costs):  Process only important classes.
1599         * ira-call.c: Ditto.  Add comments about placement optimization.
1600         * ira-int.h: Ditto.
1601         (allocno) Use one bit field for boolean members.
1602         (important_classes_num, important_classes): New external
1603         definitions.
1605 2007-03-16  Vladimir Makarov  <vmakarov@redhat.com>
1607         * flags.h (ira_algorithm): Add IRA_ALGORITHM_MIXED.
1609         * opts.c (common_handle_option): Set up IRA_ALGORITHM_MIXED from
1610         the option argument.
1611         
1612         * common.opt (fira-assign-after-call-split, fira-propagate-cost,
1613         fira-split-around-calls): New options.
1614         (fira-ipra): Switch off by default.
1615         
1616         * doc/invoke.texi (-fira-algorithm): Add mixed algorithm.
1617         (-fno-ira-ipra): Rename to -fira-ipra.
1618         (-fno-ira-assign-after-call-split, -fira-propagate-cost,
1619         -fno-ira-split-around-calls): Add new options.
1620         
1621         * ira-conflicts.c (curr_reg_pressure): New variable.
1622         (set_pseudo_live, clear_pseudo_live, mark_reg_store,
1623         mark_reg_death): Update reg pressure.
1624         (add_pseudo_copies): Decrease cost for copy with dead pseudo.
1625         (process_bb_node_for_conflicts): Propagate reg pressure.
1626         (build_conflict_bit_table): Call process_bb_node_for_conflicts in
1627         preorder.
1628         (ira_build_conflicts): Add new coloring algorithm.
1629         (ira_build_conflicts): Add flag_ira_split_around_calls.
1631         * ira-emit.c (change_loop): Print allocation on the region
1632         borders.  Use pseudo_cap_member instead of regno.
1633         (modify_move_list): Add parameter to create pseudo.
1634         (ira_emit): Use pseudo_cap_member instead of regno.
1635         
1636         * ira-build.c (create_loop_tree_nodes): Set up initial reg
1637         pressure.
1638         (create_pseudo): Add parameter.  Use the parameter value instead
1639         of regno.
1640         (print_expanded_pseudo): Use pseudo_cap_member instead of regno.
1641         (create_cap_pseudo, create_insn_pseudos, create_bb_pseudos,
1642         create_loop_pseudos): Add argument to create_pseudo call.
1643         (create_pseudos, ira_build): Process IRA_ALGORITHM_MIXED.
1644         (create_loop_tree_node_caps):  Create cap pseudo for all pseudos
1645         not having father pseudo.
1646         
1647         * final.c (rest_of_handle_final): Process INCOMING_REGNO.
1649         * toplev.h (flag_ira_assign_after_call_split,
1650         flag_ira_propagate_cost, flag_ira_split_around_calls): New flags.
1652         * caller-save.c (save_call_clobbered_regs): Move declaration
1653         this_insn_sets to the function start.
1654         
1655         * ira-int.h (ira_loop_tree_node): Add reg_pressure.
1656         (pseudo): More comments for regno and cap_member
1657         (original_regno_call_crossed_p, ira_max_regno_before,
1658         ira_max_regno_call_before): New external variables.
1659         (create_pseudo): Add parameter.
1660         (reassign_conflict_pseudos, debug_ira_call_data,
1661         split_around_calls, get_around_calls_regno): New function
1662         prototypes.
1664         * ira-color.c (assign_hard_reg): Set best_hard_regno and
1665         conflict_regs earlier.  Check register availability earlier.
1666         Ignore conflict and copy cost for PSEUDO_MAY_BE_SPILLED_P.
1667         (calculate_pseudo_spill_cost): Use pseudo_cap instead of regno.
1668         Check father pseudo instead of subloop pseudos.
1669         (pop_pseudos_from_stack): Set up PSEUDO_ASSIGNED_P for NO_REGS
1670         pseudo.
1671         (print_loop_title): Print reg pressure.
1672         (color_pass): Use PSEUDO_CAP_MEMBER instead of regno.  Add mixed
1673         coloring algorithm.
1674         (move_spill_restore): Use PSEUDO_CAP_MEMBER instead of regno.  Use
1675         subloop pseudos instead of father pseudo for cost calculation.
1676         (setup_curr_costs, reassign_conflict_pseudos): New functions.
1677         (retry_ira_color): Don't allocate call used registers when
1678         flag_caller_saves or flag_ira_split_around_calls.  Call
1679         setup_curr_cost.  Print about spilling pseudo split around calls.
1680         (reuse_stack_slot): Choose the slot with minimal memory-memory
1681         costs.
1683         * ira.c (setup_reg_renumber): Add 2 parameters.  Use cap_number
1684         instead of regno.  Initialize caller_save_needed.  Make assertion
1685         stricter.
1686         (setup_pseudo_assignment_from_reg_renumber): New function.
1687         (calculate_allocation_cost): Add assertion.
1688         (print_redundant_copies): Use cap_number instead of regno.
1689         (original_regno_call_crossed_p, ira_max_regno_before,
1690         ira_max_regno_call_before): New global variables.
1691         (ira): Process IRA_ALGORITHM_MIXED.  Set up
1692         ira_max_regno_call_before and ira_max_regno_before.  New arguments
1693         for setup_reg_renumber.  Reassign if pseudo changed its class.
1694         Split pseudos around the call if necessary.  Reassign if a pseudo
1695         is split.
1697         * ira.h: New year for Copyright.
1699         * ira-costs.c (reg_pref): Rename to pseudo_pref.
1700         (reg_pref_buffer): rename to pseudo_pref_buffer.
1701         (find_pseudo_class_costs): Initialize best_cost and best_class.
1702         Process IRA_ALGORITHM_MIXED.  Find best cover class for regno.
1703         (process_bb_node_for_hard_reg_moves): Process IRA_ALGORITHM_MIXED.
1705         * Makefile.in (ira-call.o): Add new file.
1707         * reload1.c (calculate_needs_all_insns): Remove unnecessary
1708         memory-memory move.
1710         * ira-call.c: New file.
1711         
1712 2007-02-09  Vladimir Makarov  <vmakarov@redhat.com>
1714         * common.opt (fipra): Rename to fira-ipra.  Make it default.
1715         (fira-move-spills, fira-share-save-slots, fira-share-spill-slots):
1716         New.
1717         * toplev.h (flag_ipra): Rename to flag_ira_ipra.
1718         (flag_ira_move_spills, flag_ira_share_save_slots,
1719         flag_ira_share_spill_slots): New external definitions.
1720         * doc/invoke.texi (-fipra): Rename to -fno-ira-ipra. 
1721         (-fno-ira-move-spills, -fno-ira-share-save-slots,
1722         -fno-ira-share-spill-slots): New options.
1723         * function.c (get_call_invalidated_used_regs): Rename flag_ipra to
1724         flag_ira_ipra.
1725         * ira-costs.c (tune_pseudo_costs_and_cover_classes): Ditto.
1726         * caller-save.c (setup_save_areas): Use flag_ira_share_save_slots.
1727         Rename flag_ipra to flag_ira_ipra.
1728         (flag_ira_share_save_slots): Use flag_ira_move_spills.
1729         * ira-color.c (assign_hard_reg): Skip pseudos with different cover
1730         class.
1731         (reuse_stack_slot): Use flag_ira_share_spill_slots.
1732         * config/arm/arm.h (IRA_COVER_CLASSES): New macro.
1733         
1734 2007-02-31  Vladimir Makarov  <vmakarov@redhat.com>
1736         * reload.h (debug_save_data): New definition.
1737         
1738         * caller-save.c (struct bb_info): New.
1739         (BB_INFO, BB_INFO_BY_INDEX): New macros.
1740         (calculate_local_save_info, set_up_bb_rts_numbers, rpost_cmp,
1741         calculate_save_in_out, calculate_save_here,
1742         make_global_save_analysis, print_hard_reg_set_and_mode,
1743         print_hard_reg_set, print_save_data, debug_save_data,
1744         set_hard_reg_saved): New functions.
1745         (save_call_clobbered_regs): Make global save analysis and use it
1746         to put save/restore code.
1747         (insert_one_insn): Check CODE_LABEL.
1749 2007-01-19  Vladimir Makarov  <vmakarov@redhat.com>
1751         * toplev.h (flag_ipra): New external definition.
1753         * common.opt (fipra): New option.
1755         * doc/invoke.texi (-fipra); Document the option.
1757         * cgraph.h (cgraph_node): New member function_used_regs.
1759         * cgraph.c (cgraph_create_node): Initialize function_used_regs.
1761         * final.c (update_regs_ever_live): New function.
1762         (rest_of_handle_final): Set up function_used_regs and
1763         call_used_regs.
1765         * ira-build.c (ira_build): Clear function call_used_regs.
1767         * function.h: Add hard-reg-set.h header.
1768         (emit_status): New member call_used_regs.
1769         (get_call_invalidated_used_regs): New definition.
1771         * function.c (get_call, get_call_invalidated_used_regs): New
1772         functions.
1774         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
1775         (caller-save.o): Add dependence on output.h and ira.h
1777         * regrename.c (copyprop_hardreg_forward_1): Use function
1778         get_call_invalidated_used_regs.
1780         * ira-conflicts.c (process_bb_node_for_conflicts): Ditto.
1782         * postreload-gcse.c (record_opr_changes,
1783         reg_set_between_after_reload_p, reg_used_between_after_reload_p):
1784         Ditto.
1786         * postreload.c (reload_combine, reload_cse_move2add): Ditto.
1788         * rtlanal.c (reg_set_between_p): Ditto.
1790         * flow.c (propagate_one_insn): Ditto.
1792         * df-scan.c (df_insn_refs_record): Ditto.
1794         * gcse.c (compute_hash_table_work, compute_store_table): Ditto.
1796         * cselib.c (cselib_process_insn): Ditto.
1798         * loop-iv.c (simplify_using_assignment): Ditto.
1800         * sched-deps.c (sched_analyze): Ditto.
1802         * combine.c (record_dead_and_set_regs): Ditto.
1804         * resource.c (mark_set_resources, mark_set_resources): Ditto.
1806         * var-tracking.c (var-tracking.c): Ditto.
1808         * reload1.c (reload): Ditto.
1810         * cse.c (invalidate_for_call): Ditto.  Add parameter.
1811         (cse_insn): Pass the parameter.
1813         * ira.h (try_to_migrate): Remove the definition.
1814         (collect_pseudo_call_clobbered_regs): New external definition.
1816         * ira-color.c (collect_pseudo_call_clobbered_regs): New function.
1818         * ira-costs.c (tune_pseudo_costs_and_cover_classes): Add cost
1819         calculation when IPRA is used.
1821         * caller-save.c: Include headers output.h and ira.h.
1822         (saved_hard_reg): New structure.
1823         (hard_reg_map, hard_reg_map, all_saved_regs): New variables.
1824         (all_saved_regs, new_saved_hard_reg, finish_saved_hard_regs,
1825         saved_hard_reg_compare_func): New functions.
1826         (setup_save_areas): Add code for sharing stack slots.
1827         (save_call_clobbered_regs): Use function
1828         get_call_invalidated_used_regs.
1829         
1830 2007-01-12  Vladimir Makarov  <vmakarov@redhat.com>
1832         * doc/tm.texi (IRA_HARD_REGNO_ADD_COST_MULTIPLIER): New macro.
1834         * ira-conflicts.c (add_pseudo_copies): Add copy between output and
1835         died operand pseudos.
1837         * ira.c (setup_cover_classes, setup_class_translate): Define and
1838         call only when IRA_COVER_CLASSES is defined.
1839         (no_alloc_regs): Rename to no_unit_alloc_regs.
1840         (setup_eliminable_regset): Set up no_alloc_regs.
1842         * ira-costs.c (tune_pseudo_costs_and_cover_classes): Modify cost
1843         if IRA_HARD_REGNO_ADD_COST_MULTIPLIER is defined.
1845         * config/s390/s390.h (IRA_COVER_CLASSES,
1846         IRA_HARD_REGNO_ADD_COST_MULTIPLIER(regno)): Define.
1847         
1848 2006-12-22  Vladimir Makarov  <vmakarov@redhat.com>
1850         * rtl.h (setup_reg_classes): New function prototype.
1851         
1852         * regclass.c (setup_reg_classes): New function.
1854         * global.c (global_alloc): Dump information about register
1855         assigning.
1857         * ira-int.h (ira_build): Change prototype signature.
1859         * ira-color.c (pseudo_compare_func): Rename to
1860         pseudo_priority_compare_func.
1861         (priority_coloring): Dump information about register
1862         assigning.
1864         * ira-build.c (ira_build): Return true if we have loops for the
1865         allocation.
1867         * ira.c (setup_preferred_alternate_classes): New function.
1868         (ira): Use it instead of regclass.  Rebuild only if we have loops.
1870 2006-12-15  Vladimir Makarov  <vmakarov@redhat.com>
1872         * ira.h, ira-int.h, ira.c, ira-build.c, ira-costs.c
1873         ira-conflicts.c, ira-color.c, ira-emit.c: New files.
1875         * flags.h (ira_algorithm): New enumeration.
1876         (flag_ira_algorithm): New external variable declaration.
1878         * tree-pass.h (pass_ira): New external variable declaration.
1880         * toplev.c (ira.h): New include.
1881         (flag_ira_algorithm): New global variable.
1882         (backend_init): Call init_ira_once.
1884         * toplev.h (flag_ira, flag_ira_biased_coloring): New external
1885         variable declarations.
1887         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
1888         may_move_out_cost): New external variable declarations.
1889         
1890         * caller-save.c (no_caller_save_reg_set): New global variable.
1891         (init_caller_save): Set up no_caller_save_reg_set.
1892         
1893         * global.c (eliminable_regset): Make it external.
1894         (gate_handle_global_alloc): New function.
1895         (pass_global_alloc): Add the gate function.
1897         * opts.c (decode_options):  Print the warning for -fira.
1898         (common_handle_option): Process -fira-algorithm option.
1900         * timevar.def (TV_IRA): New pass.
1902         * hard-reg-set.h (no_caller_save_reg_set): New external variable
1903         declaration.
1905         * regmove.c (regmove_optimize): Don't do replacement of output
1906         operands by input operands.
1907         (rest_of_handle_regmove): Don't do CFG cleanup for IRA.
1909         * local-alloc.c (update_equiv_regs): Make it external.  Return
1910         true if jump label rebuilding should be done.
1911         (gate_handle_local_alloc): New function.
1912         (pass_local_alloc): Add the gate function.
1914         * alias.c (stack_addr_p): New function.
1915         (nonoverlapping_memrefs_p): Add code for IRA.
1917         * common.opt (fira, fira-algorithm, fira-biased-coloring): New
1918         options.
1920         * regclass.c (contains_reg_of_mode, move_cost, may_move_in_cost,
1921         may_move_out_cost): Make the variables external.
1922         
1923         * rtl.h (eliminable_regset): New external variable declaration.
1924         (update_equiv_regs): New external function definition.
1926         * Makefile.in (IRA_INT_H): New definition.
1927         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
1928         ira-conflicts.o, ira-color.o, and ira-emit.o.
1929         (reload1.o, toplev.o): Add dependence on ira.h.
1930         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
1931         ira-emit.o): New entries.
1933         * passes.c (pass_ira): New pass.
1935         * reload1.c (alter_reg): Add a new parameter.
1936         (pseudo_reg_compare): New function.
1937         (reload): Sort pseudos for IRA.  Call alter_reg with the
1938         additional parameter.
1939         (count_spilled_pseudo): New variable freq.  Use it.
1940         (alter_reg): Add code for IRA.
1941         (eliminate_regs_1, finish_spills, emit_input_reload_insns,
1942         delete_output_reload): Use additional parameter for alter_reg.
1943         (finish_spills, emit_input_reload_insns, delete_output_reload):
1944         Call mark_allocation_change.
1945         (finish_spills): Call retry_ira_color.
1946         
1947         * doc/invoke.texi: Describe new options -fira,
1948         -fira-biased-coloring, and -fira-algorithm.
1949         
1950         * doc/passes.texi: Decribe IRA.
1952         * doc/tm.texi:  Decribe macro IRA_COVER_CLASSES.
1953         
1954         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
1956         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
1958         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
1960         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
1961         
1962         Richard Henderson  <rth@redhat.com>
1964         * tree-pass.h (pass_lower_subreg): New external definition.
1965         * toplev.h (flag_lower_subreg): New external definition.
1966         * rtl.def (CONCATN): New rtl expression.
1967         * dwarf2out.c (concatn_loc_descriptor): New function.
1968         (loc_descriptor): Process CONCATN.
1969         * timevar.def (TV_LOWER_SUBREG): New definition.
1970         * emit-rtl.c (gen_reg_rtx_offset): New function.
1971         (gen_lowpart_common): Process CONCATN.
1972         * simplify-rtx.c (simplify_subreg): Process CONCATN.
1973         * common.opt (flower-subreg): New options.
1974         * rtl.h (gen_reg_rtx_offset): New external definition.
1975         * Makefile.in (OBJS-common): Add lower-subreg.o.
1976         (lower-subreg.o): New entry.
1977         * passes.c (pass_lower_subreg): Add new pass.
1978         * lower-subreg.c: New file.
1979         
1980 2008-03-28  Rafael Espindola  <espindola@google.com>
1982         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
1983         (tree_binary_nonnegative_warnv_p): Make it public.
1984         (tree_single_nonnegative_warnv_p): Make it public.
1985         (tree_invalid_nonnegative_warnv_p): Make it public.
1986         (tree_unary_nonzero_warnv_p): Make it public.
1987         (tree_binary_nonzero_warnv_p): Make it public
1988         (tree_single_nonzero_warnv_p): Make it public.
1989         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
1990         (extract_range_from_binary_expr): Split the expr argument.
1991         (extract_range_from_unary_expr): Split the expr argument.
1992         (extract_range_from_comparison): Split the expr argument.
1993         (extract_range_from_expr): Use the new aux functions.
1994         (vrp_evaluate_conditional_warnv): Use
1995         vrp_evaluate_conditional_warnv_with_ops.
1996         * tree.h (tree_unary_nonzero_warnv_p): Declare.
1997         (tree_binary_nonzero_warnv_p): Declare.
1998         (tree_single_nonzero_warnv_p): Declare.
1999         (tree_expr_nonzero_warnv_p): Declare.
2000         (tree_unary_nonnegative_warnv_p): Declare.
2001         (tree_binary_nonnegative_warnv_p): Declare.
2002         (tree_single_nonnegative_warnv_p): Declare.
2003         (tree_invalid_nonnegative_warnv_p): Declare.
2005 2008-03-28  Richard Guenther  <rguenther@suse.de>
2007         PR tree-optimization/30317
2008         PR tree-optimization/30911
2009         PR tree-optimization/34793
2010         * tree-vrp.c (set_and_canonicalize_value_range): New function.
2011         (struct assert_locus_d): New member EXPR.
2012         (register_new_assert_for): Add EXPR parameter to support
2013         ASSERT_EXPR <name, expr OP limit>.
2014         (register_edge_assert_for_1): Adjust callers.
2015         (find_assert_locations): Likewise.
2016         (process_assert_insertions_for): Build condition from
2017         expression.
2018         (extract_range_from_assert): Handle ASSERT_EXPRs
2019         of the form ASSERT_EXPR <name, expr OP limit>.
2020         (register_edge_assert_for_2): New helper registering
2021         asserts for comparisons.  Recognize range tests of the form
2022         (unsigned)i - CST1 OP CST2.
2023         (register_edge_assert_for_1): Use it.
2024         (register_edge_assert_for): Likewise.
2025         (needs_overflow_infinity): Integer sub-types
2026         do not need overflow infinities.
2027         (vrp_val_is_max): The extreme values of integer sub-types
2028         are those of the base type.
2029         (vrp_val_is_min): Likewise.
2030         * tree.def (ASSERT_EXPR): Document extra allowed conditional
2031         expressions.
2033 2008-03-28  Nick Clifton  <nickc@redhat.com>
2035         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
2036         Return GENERAL_REGS for stack adjustment reloads.
2038 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2040         PR target/31334
2041         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
2042         const_vector when all the vectors are constant.
2044 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
2046         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
2047         comparisons.
2048         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
2049         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
2050         (scc_sf): New.
2051         (s<code>_sf): Use new scc_sf attribute for opcode names.
2053 2008-03-27  Tom Tromey  <tromey@redhat.com>
2055         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
2056         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
2057         config/spu/t-spu-elf, config/i386/t-interix,
2058         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
2059         config/i386/x-darwin, config/i386/x-mingw32,
2060         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
2061         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
2062         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
2063         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
2064         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
2065         config/rs6000/x-darwin, config/rs6000/t-rs6000,
2066         config/score/t-score-elf, config/arm/t-strongarm-pe,
2067         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
2068         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
2069         Revert automatic dependency patch.
2071 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2073         PR target/35657
2074         * config/i386/i386.c (ix86_function_arg_boundary): Align
2075         decimal floating point to its natural boundary.
2077 2008-03-27  Richard Guenther  <rguenther@suse.de>
2079         PR middle-end/35716
2080         * fold-const.c (fold_comparison): Restrict distinct decl
2081         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
2082         solely rely on operand_equal_p.
2084 2008-03-27  Richard Guenther  <rguenther@suse.de>
2086         PR c/32511
2087         * c-common.c (handle_weak_attribute): Reject combination of
2088         weak and inline.
2090 2008-03-27  Richard Guenther  <rguenther@suse.de>
2092         PR tree-optimization/32810
2093         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
2094         conversions from DECL_INITIAL.
2095         (fold_const_aggregate_ref): Likewise from constructor elements.
2097 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
2099         * tree-affine.h (aff_combination_expand): Declare.
2100         (get_inner_reference_aff): Likewise.
2101         * tree-affine.c (aff_combination_expand): Split out from
2102         tree_to_aff_combination_expand.
2103         (get_inner_reference_aff): New function.
2104         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
2105         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
2106         (struct lim_aux_data): sm_done field removed.
2107         (mem_ref_loc_p, mem_ref_locs_p): New types.
2108         (struct mem_ref): Added id, stored, accesses_in_loop,
2109         indep_loop, dep_loop, indep_ref, dep_ref fields.
2110         Removed is_stored, locs and next fields.
2111         (memory_accesses): New variable.
2112         (movement_possibility): Do not allow moving statements
2113         that store to memory.
2114         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
2115         New functions.
2116         (determine_max_movement): For statements with memory references,
2117         find the outermost loop in that the reference is independent.
2118         (move_computations_stmt): Mark the virtual operands for
2119         renaming.
2120         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
2121         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
2122         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
2123         add_vop_ref_mapping, create_vop_ref_mapping_loop,
2124         create_vop_ref_mapping, analyze_memory_references,
2125         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
2126         get_all_locs_in_loop, ref_always_accessed_p,
2127         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
2128         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
2129         store_motion_loop, store_motion): New functions.
2130         (struct vop_to_refs_elt): New type.
2131         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
2132         memref_hash, memref_eq, hoist_memory_references): Rewritten.
2133         (schedule_sm): Replaced by...
2134         (execute_sm): ... this.
2135         (determine_lsm_ref, hoist_memory_references,
2136         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
2137         find_more_ref_vops, free_mem_ref, free_mem_refs,
2138         determine_lsm_loop, determine_lsm): Removed.
2139         (tree_ssa_lim_finalize): Free data structures used by store
2140         motion.
2141         (tree_ssa_lim): Call analyze_memory_references.  Use
2142         store_motion instead of determine_lsm.
2144 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
2146         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
2147         rename tmake_file to m68hc11/t-m68hc11.
2148         (mcore): Set inhibit_libc to true.
2149         * config.host (alpha*-dec-*vms*): Set extra_programs.
2150         (interix3*): Don't use host_xmake_file.
2151         * configure.ac: Let config.gcc override inhibit_libc.
2152         * configure: Regenerate.
2154         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
2155         * config/t-openbsd-thread: Remove commented out lines.
2156         
2157         * config/x-interix: Remove.
2159         * config/m68hc11/t-m68hc11-gas: Rename to...
2160         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
2162         * config/mcore/t-mcore: Remove T_CFLAGS.
2163         * config/mcore/t-mcore-pe: Likewise.
2165 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
2167         * configure.ac: Replace custom __GNU_SOURCE test with
2168         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
2169         * aclocal.m4: Regenerate.
2170         * configure: Regenerate.
2171         * config.in: Regenerate.
2173 2008-03-27  Richard Guenther  <rguenther@suse.de>
2175         * fold-const.c (target.h): Include.
2176         (fold_comparison): Fold comparison of addresses of decls
2177         that bind locally or of constants.  Consolidate address folding code.
2178         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
2179         results from fold_binary_to_constant.
2180         (compare_values_warnv): Likewise.
2182 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
2184         PR middle-end/35429
2185         * fold-const.c (fold_truthop): Check for integeral types when folding
2186         a == 0 && b == 0 and a != 0 || b != 0 .
2188 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
2190         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
2192 2008-03-26  Andreas Schwab  <schwab@suse.de>
2194         * doc/invoke.texi: Fix use of @item vs. @itemx.
2196 2008-03-26  Tom Tromey  <tromey@redhat.com>
2198         * Makefile.in (build/gensupport.o, build/print-rtl.o,
2199         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
2200         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
2201         build/gencodes.o, build/genconditions.o, build/genconfig.o,
2202         build/genconstants.o, build/genemit.o, build/genextract.o,
2203         build/genflags.o, build/genmddeps.o, build/genopinit.o,
2204         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
2205         options.h.
2207 2008-03-26  Richard Guenther  <rguenther@suse.de>
2209         Revert
2210         2008-03-26  Richard Guenther  <rguenther@suse.de>
2212         * fold-const.c (target.h): Include.
2213         (fold_comparison): Fold comparison of addresses of two decls
2214         that bind locally.  Consolidate address folding code.
2216 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2218         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
2219         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
2220         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
2221         dconstsqrt2, dconstthird, dconste and/or dconst10.
2222         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
2223         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
2224         dconstsqrt2, dconste): Delete.
2225         (init_emit_once): Likewise.  Simplify initializing dconstm1.
2226         Constify variable.
2227         * real.c (get_real_const): New.
2228         * real.h (dconst3, dconst10, dconstm2, dconstthird,
2229         dconstsqrt2, dconste): Delete.
2230         (real_value_const, get_real_const): New.
2232 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
2234         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
2236         * config/i386/i386.c (ix86_function_arg_boundary): Check
2237         BIGGEST_ALIGNMENT instead of 128.
2238         (setup_incoming_varargs_64): Likewise.
2240 2008-03-26  Tom Tromey  <tromey@redhat.com>
2242         * Makefile.in (DEPFILES): Add missing '/'.
2244 2008-03-26  Richard Guenther  <rguenther@suse.de>
2246         * fold-const.c (target.h): Include.
2247         (fold_comparison): Fold comparison of addresses of two decls
2248         that bind locally.  Consolidate address folding code.
2250 2008-03-26  Nick Clifton  <nickc@redhat.com>
2252         PR target/31232
2253         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
2254         not allow INT+INT as a legitimate addressing mode.
2256 2008-03-26  Richard Guenther  <rguenther@suse.de>
2258         * tree-flow.h (widen_bitfield): Remove declaration.
2259         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
2260         (widen_bitfield): Remove function.
2261         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
2262         code.
2264 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2266         PR target/31558
2267         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
2268         error_mark_node's.
2270 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
2272         PR rtl-optimization/35232
2273         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
2274         (forget_old_reloads_1, forget_marked_reloads): Don't clear
2275         reg_reloaded_call_part_clobbered here.
2276         (reload_regs_reach_end_p): New function.
2277         (reload_reg_rtx_for_input): New variable.
2278         (reload_reg_rtx_for_output): Likewise.
2279         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
2280         when reassigning a pseudo register.  Load reloadreg from 
2281         reload_reg_rtx_for_input, moving the mode and register
2282         calculation to...
2283         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
2284         instead of the original when deciding whether an input reload
2285         would be a no-op or whether an output reload can be deleted.
2286         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
2287         when setting up new_spill_reg_store.  Load it from
2288         reload_reg_rtx_for_output, moving the mode and register
2289         calculation to...
2290         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
2291         instead of the original when deciding whether an output reload
2292         would be a no-op.  Do the same when modifying insn notes.
2293         Use rtx_equal_p instead of == to compare the registers.
2294         (inherit_piecemeal_p): Take a mode and two register numbers
2295         as argument.
2296         (emit_reload_insns): Clear new_spill_reg_store for every hard
2297         register in the reload register.  Remove spill registers
2298         from reg_reloaded_valid before considering whether to record
2299         inheritance information for them.  Use reload_reg_rtx_for_output
2300         instead of reg_rtx when recording output reloads.  Use
2301         reload_reg_rtx_for_input instead of reg_rtx when recording
2302         input reloads.  Set or clear reg_reloaded_call_part_clobbered
2303         at the same time as setting reg_reloaded_valid.
2304         (delete_output_reload): Add a new_reload_reg parameter and use it
2305         instead of rld[j].reg_rtx.
2306         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
2307         calls accordingly.
2309 2008-03-25  Tom Tromey  <tromey@redhat.com>
2311         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
2312         (build/genattr.o): Likewise.
2313         (build/genattrtab.o): Likewise.
2314         (build/gencodes.o): Likewise.
2315         (build/genconfig.o): Likewise.
2316         (build/genconstants.o): Likewise.
2317         (build/genemit.o): Likewise.
2318         (build/genextract.o): Likewise.
2319         (build/genflags.o): Likewise.
2321 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
2322         
2323         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
2324         instead of size_int for integer types.
2325         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
2326         to match type of MINUS_EXPR.
2327         
2328 2008-03-25  Tom Tromey  <tromey@redhat.com>
2330         * configure: Rebuilt.
2331         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
2332         Makefile.
2334 2008-03-25  Tom Tromey  <tromey@redhat.com>
2336         * config/x-solaris (host-solaris.o): Update.
2337         * config/x-linux (host-linux.o): Update.
2338         * config/x-hpux (host-hpux.o): Update.
2339         * config/x-darwin (host-darwin.o): Update.
2340         * config/v850/t-v850e (v850-c.o): Update.
2341         * config/v850/t-v850 (v850-c.o): Update.
2342         * config/t-vxworks (vxworks.o): Update.
2343         * config/t-sol2 (sol2-c.o, sol2.o): Update.
2344         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
2345         * config/spu/t-spu-elf (spu-c.o): Update.
2346         (spu.o): Remove.
2347         * config/sh/t-symbian (sh-c.o): Update.
2348         (symbian.o): Update.
2349         * config/sh/t-sh (sh-c.o): Update.
2350         * config/score/t-score-elf (score7.o, score3.o): Update.
2351         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
2352         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
2353         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
2354         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
2355         (rs6000.o): Remove.
2356         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
2357         * config/m32c/t-m32c (m32c-pragma.o): Update.
2358         * config/ia64/t-ia64 (ia64-c.o): Update.
2359         * config/i386/x-mingw32 (host-mingw32.o): Update.
2360         * config/i386/x-i386 (driver-i386.o): Update.
2361         * config/i386/x-darwin (host-i386-darwin.o): Update.
2362         * config/i386/x-cygwin (host-cygwin.o): Update.
2363         * config/i386/t-nwld (nwld.o): Update.
2364         * config/i386/t-netware (netware.o): Update.
2365         * config/i386/t-interix (winnt.o): Update.
2366         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
2367         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
2368         msformat-c.o): Update.
2369         * config/bfin/t-bfin-linux (generated_files): Add
2370         linux-sysroot-suffix.h.
2371         * config/arm/t-wince-pe (pe.o): Update.
2372         * config/arm/t-strongarm-pe (pe.o): Update.
2373         * config/arm/t-pe (pe.o): Update.
2374         * config/arm/t-arm (arm-c.o): Update.
2375         * doc/install.texi (Prerequisites): Require make 3.80.
2376         * Makefile.in: Remove .o targets.
2377         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
2378         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
2379         (simple_generated_h, simple_generated_c): Move earlier.
2380         (generated_files): New variable.
2381         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
2382         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
2383         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
2384         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
2385         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
2386         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
2387         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
2388         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
2389         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
2390         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
2391         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
2392         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
2393         (.c.o): Remove.
2394         (COMPILE.base, COMPILE): New variables.
2395         (%.o): New pattern rule.
2396         (ALL_HOST_OBJS): New variable.
2397         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
2398         (dummy-checksum.o, cc1-checksum.o): Remove.
2399         (DRIVER_SHLIB): New variable.
2400         (DRIVER_DEFINES): Use it.
2401         (gencondmd.c): Move out of build/.
2402         (s-conditions): Update.
2403         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
2404         (ALL_BUILD_OBJS): Likewise.
2405         (build/%.o): Use BUILDCOMPILE.
2406         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
2407         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
2408         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
2409         build/gencheck.o, build/gencodes.o, build/genconditions.o,
2410         build/genconfig.o, build/genconstants.o, build/genemit.o,
2411         build/genextract.o, build/genflags.o, build/genmddeps.o,
2412         build/genopinit.o, build/genoutput.o, build/genpeep.o,
2413         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
2414         build/gen-protos.o, build/scan.o, build/fix-header.o,
2415         build/scan-decls.o): Simplify.
2416         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
2417         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
2418         prefix.o, toplev.o): Reduce to variable setting.
2419         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
2420         ($(out_object_file), gcc-options.o): New targets.
2421         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
2422         * configure: Rebuilt.
2423         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
2424         * doc/sourcebuild.texi (Front End Directory): Document new variable.
2426 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
2428         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
2429         complain when we hit an error, return ERROR_MARK_NODE.
2431 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
2433         * config/sh/constraints.md (Pso, Psz): New constraints.
2434         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
2435         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
2437 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
2439         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
2440         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
2442 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
2444         * config/sh/sh.md (prefetch): Add condition for SH2A target.
2445         (prefetch_sh2a): New.   
2447 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
2448             Naveen.H.S  <naveen.hs@kpitcummins.com>
2450         * config/sh/constraints.md (I28): New constraint.
2451         * config/sh/sh.c (broken_move): Add support for movi20s.
2452         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
2454 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
2455             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
2456             Naveen.H.S  <naveen.hs@kpitcummins.com>
2458         * config/sh/sh.c (SH_ATTRIBUTES): Define.
2459         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
2460         (print_operand): Handle resbank in %@ operand code.
2461         (sh_encode_section_info): New.
2462         (push_regs): Add conditions for resbank.
2463         (sh_expand_epilogue): Likewise.
2464         (sh_insert_attributes): Likewise.
2465         (sh_attribute_table): Likewise.
2466         (sh_handle_resbank_handler_attribute): New.
2467         (sh2a_handle_function_vector_handler_attribute): New.
2468         (sh2a_is_function_vector_call): New.
2469         (sh2a_get_function_vector_number): New.
2470         (sh2a_function_vector_p): New.
2471         (sh_cfun_resbank_handler_p): New.
2472         * config/sh/sh.md (calli): Emit jsr/n if possible.
2473         (calli_tbr_rel): New.
2474         (calli_pcrel): Emit jsr/n if possible.
2475         (return_i): Emit rts/n if possible.
2476         (call_valuei_tbr_rel): New.
2477         (call_valuei_pcrel): Add condition for SH2A target.
2478         (call_value): Likewise.
2479         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
2480         (sh2a_get_function_vector_number): Likewise.
2481         (sh2a_is_function_vector_call): Likewise.
2482         * doc/extend.texi: Document TBR relative addressing of SH2A.
2483         (resbank): Add description for SH2A.
2485 2008-03-24  Richard Guenther  <rguenther@suse.de>
2487         PR c/22371
2488         * gimplify.c (gimplify_modify_expr): For frontend type-correct
2489         pointer assignments change conversions according to middle-end rules.
2490         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
2491         * configure.ac: Include type checking in yes.
2492         * configure: Regenerate.
2494 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2496         * diagnostic.c (diagnostic_count_diagnostic): Delete.
2497         (diagnostic_report_diagnostic): Update. Handle ICEs here.
2498         
2499 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
2501         * gthr-vxworks.h (UNUSED): Define.
2503 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
2505         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and
2506         CX_REG.
2508 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
2510         * doc/extend.texi (Function Attributes): Add missing comma in the
2511         example of the "alloc_size" attribute.
2512         
2513 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
2515         Revert:
2516         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2518         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2519         32bit host.
2521         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
2523         PR target/35496
2524         * stor-layout.c (update_alignment_for_field): Set minimum alignment
2525         of the underlying type of a MS bitfield layout to the natural
2526         alignment of the type.
2528         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
2530         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2531         to their natural alignment to avoid store forwarding stalls.
2533 2008-03-22  Richard Guenther  <rguenther@suse.de>
2535         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
2536         For PHI nodes verify the address is invariant.
2537         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
2538         (get_symbol_constant_value): Use is_gimple_min_invariant.
2539         (maybe_fold_stmt_indirect): Likewise.
2541 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
2543         PR rtl-optimization/33927
2544         * Makefile.in (dse.o): Depend on $(TM_P_H).
2545         * expr.h (extract_low_bits): Declare.
2546         * expmed.c (extract_low_bits): New function.
2547         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
2548         * dse.c: Include tm_p.h.
2549         (find_shift_sequence): Remove the read_reg argument and return the
2550         read value.  Emit the instructions instead of returning them.
2551         Iterate on new_mode rather than calculating it each time.
2552         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
2553         source to NEW_MODE and extract_low_bits to convert the shifted
2554         value to READ_MODE.
2555         (replace_read): Allow the load and store to have different mode
2556         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
2557         or extraction instructions before trying the replacement.  Update
2558         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
2560 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
2562         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2563         to their natural alignment to avoid store forwarding stalls.
2565 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2567         PR target/27946
2568         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
2569         encouraging but not allowing gprs for input;
2570         change the input constraint to !f#r.
2571         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
2572         gprs for output;
2573         change the output constraint to !f#r.
2575 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
2577         PR target/13958
2578         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
2579         corresponding post-reload splitters.
2580         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
2581         when x87 FP math is selected.
2582         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
2583         New function prototype.
2584         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
2585         unreachable function to ease macroization of insn patterns.
2587 2008-03-21  Martin Jambor  <mjambor@suse.cz>
2589         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
2590         reference dumps if ddr is NULL or dependence is unknown.
2592 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2594         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
2595         unsigned extension into account.
2596         (ATOMIC_COMPARE_AND_SWAP): Likewise.
2597         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
2598         Do computations on a scratch register.
2600 2008-03-21  Richard Guenther  <rguenther@suse.de>
2602         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2603         Use is_gimple_min_invariant instead of TREE_INVARIANT.
2604         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
2605         * tree-ssa-dom.c (record_equality): Likewise.
2606         * tree-inline.c (copy_body_r): Likewise.
2607         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
2608         TREE_INVARIANT.
2610 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2612         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
2613         as 'delete_unused' argument.
2615 2008-03-20  Richard Guenther  <rguenther@suse.de>
2617         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
2618         special casing of constant qualifiers.
2619         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
2620         care about them in general.
2621         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
2622         regardless of their type.
2623         (fold_stmt_r): Forcefully fold *& if we end up with that.
2625 2008-03-20  Paul Brook  <paul@codesourcery.com>
2627         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
2628         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
2629         linker flags.
2630         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
2631         definition.
2632         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
2633         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
2635 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
2637         * common.opt (Wmudflap): New option.
2638         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
2639         (mx_register_decls): Likewise.
2640         (mudflap_finish_file): Likewise.
2641         * doc/invoke.texi: Document -Wno-mudflap.
2643 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
2645         * c-format.c (replace_format_name_to_system_name): New.
2646         (cmp_attribs): New.
2647         (convert_format_name_to_system_name): New.
2648         (decode_format_attr): Add use of convert_format_name_to_system_name.
2649         (format_types_orig): Add gnu_ prefix to names.
2650         (check_format_info_main): Special treating of \0 escaped names for
2651         supporting multi-character format specifiers as I32, I64.
2652         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
2653         (gnu_target_overrides_format_attributes): New.
2654         * c-format.h: Add structure target_ovr_attr to hold
2655         system specific formatter names.
2656         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
2657         msformat-c.o file to c_target_objs and cxx_target_objs.
2658         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2659         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
2660         (TARGET_N_FORMAT_TYPES): New.
2661         * config/i386/msformat-c.c: New.
2662         * config/i386/t-cygming: Add build rule for msformat-c.o.
2663         * doc/extend.texi: Add new format names gnu_* and ms_* and
2664         further details.
2665         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2667 2008-03-20  Ira Rosen  <irar@il.ibm.com>
2669         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
2670         optimizations turned on under -O3.
2671         (ftree-vectorize): Add that the flag is turned on with -O3.
2673 2008-03-20  Ben Elliston  <bje@au.ibm.com>
2675         * regmove.c (try_auto_increment): Fix spelling error in comment.
2676         * final.c (final_scan_insn): Likewise.
2678 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
2680         PR target/14552
2681         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
2682         allocator preferences for "y" and "r" class registers.
2683         ("*mov<mode>_internal"): Ditto.
2684         ("*movv2sf_internal_rex64"): Ditto.
2685         ("*movv2sf_internal"): Ditto.
2687 2008-03-19  Michael Matz  <matz@suse.de>
2689         PR middle-end/35616
2690         * calls.c (expand_call): Check overlap of arguments with call
2691         address for sibcalls.
2693 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
2695         PR target/35496
2696         * stor-layout.c (update_alignment_for_field): Set minimum alignment
2697         of the underlying type of a MS bitfield layout to the natural
2698         alignment of the type.
2700 2008-03-19  Jan Hubicka  <jh@suse.cz>
2702         PR other/35094
2703         * toplev.c (decode_d_option): Handle all CPP flags.
2704         * tree-vrp.c: Update tree_pass descriptors.
2705         * regrename.c: Update tree_pass descriptors.
2706         * fwprop.c: Update tree_pass descriptors.
2707         * doc/invoke.texi: Remove documentation of dropped -d? flags.
2708         * tree-into-ssa.c: Update tree_pass descriptors.
2709         * tree-dump.c: Update tree_pass descriptors.
2710         * tree-complex.c: Update tree_pass descriptors.
2711         * tree-dump.h: Update tree_pass descriptors.
2712         * see.c: Update tree_pass descriptors.
2713         * cgraphbuild.c: Update tree_pass descriptors.
2714         * tracer.c: Update tree_pass descriptors.
2715         * tree-loop-distribution.c: Update tree_pass descriptors.
2716         * cgraph.c: Update tree_pass descriptors.
2717         * postreload-gcse.c: Update tree_pass descriptors.
2718         * postreload.c: Update tree_pass descriptors.
2719         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
2720         * tree-tailcall.c: Update tree_pass descriptors.
2721         * tree-pass.h (tree_opt_pass): Rename to ...
2722         (opt_pass) ... this one; add "type" field and remove letter field.
2723         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
2724         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
2725         all_lowering_passes): Update declaration.
2726         * ipa-cp.c: Update tree_pass descriptors.
2727         * final.c: Update tree_pass descriptors.
2728         * omp-low.c: Update tree_pass descriptors.
2729         * tree-ssa-dse.c: Update tree_pass descriptors.
2730         * ipa-reference.c: Update tree_pass descriptors.
2731         * tree-ssa-uncprop.c: Update tree_pass descriptors.
2732         * auto-inc-dec.c: Update tree_pass descriptors.
2733         * reorg.c: Update tree_pass descriptors.
2734         * cgraphunit.c: Update tree_pass descriptors.
2735         * tree-ssa-copyrename.c: Update tree_pass descriptors.
2736         * tree-ssa-ccp.c: Update tree_pass descriptors.
2737         * df-core.c: Update tree_pass descriptors.
2738         * mode-switching.c: Update tree_pass descriptors.
2739         * tree-nomudflap.c: Update tree_pass descriptors.
2740         * modulo-sched.c: Update tree_pass descriptors.
2741         * ipa-pure-const.c: Update tree_pass descriptors.
2742         * cse.c: Update tree_pass descriptors.
2743         * web.c: Update tree_pass descriptors.
2744         * tree-stdarg.c: Update tree_pass descriptors.
2745         * tree-ssa-math-opts.c: Update tree_pass descriptors.
2746         * tree-ssa-dom.c: Update tree_pass descriptors.
2747         * tree-nrv.c: Update tree_pass descriptors.
2748         * tree-ssa-alias.c: Update tree_pass descriptors.
2749         * loop-init.c: Update tree_pass descriptors.
2750         * gimple-low.c: Update tree_pass descriptors.
2751         * ipa-inline.c: Update tree_pass descriptors.
2752         * tree-ssa-sink.c: Update tree_pass descriptors.
2753         * global.c: Update tree_pass descriptors.
2754         * ifcvt.c: Update tree_pass descriptors.
2755         * jump.c: Update tree_pass descriptors.
2756         * predict.c: Update tree_pass descriptors.
2757         * tree-ssa-loop.c: Update tree_pass descriptors.
2758         * recog.c: Update tree_pass descriptors.
2759         * dse.c: Update tree_pass descriptors.
2760         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
2761         * tree-eh.c: Update tree_pass descriptors.
2762         * regmove.c: Update tree_pass descriptors.
2763         * local-alloc.c
2764         * function.c: Update tree_pass descriptors.
2765         * tree-vectorizer.c: Update tree_pass descriptors.
2766         * gcse.c: Update tree_pass descriptors.
2767         * ipa-type-escape.c: Update tree_pass descriptors.
2768         * tree-if-conv.c: Update tree_pass descriptors.
2769         * init-regs.c: Update tree_pass descriptors.
2770         * ipa.c: Update tree_pass descriptors.
2771         * tree-ssa-phiopt.c: Update tree_pass descriptors.
2772         * rtl-factoring.c: Update tree_pass descriptors.
2773         * lower-subreg.c: Update tree_pass descriptors.
2774         * bt-load.c: Update tree_pass descriptors.
2775         * tree-dfa.c: Update tree_pass descriptors.
2776         * except.c: Update tree_pass descriptors.
2777         * emit-rtl.c: Update tree_pass descriptors.
2778         * cfgexpand.c: Update tree_pass descriptors.
2779         * tree-cfgcleanup.c: Update tree_pass descriptors.
2780         * cfgcleanup.c: Update tree_pass descriptors.
2781         * tree-ssa-pre.c: Update tree_pass descriptors.
2782         * tree-sra.c: Update tree_pass descriptors.
2783         * tree-mudflap.c: Update tree_pass descriptors.
2784         * tree-ssa-copy.c: Update tree_pass descriptors.
2785         * cfglayout.c: Update tree_pass descriptors.
2786         * tree-ssa-forwprop.c: Update tree_pass descriptors.
2787         * tree-ssa-dce.c: Update tree_pass descriptors.
2788         * tree-ssa.c: Update tree_pass descriptors.
2789         * regclass.c: Update tree_pass descriptors.
2790         * integrate.c: Update tree_pass descriptors.
2791         * tree-optimize.c: Update tree_pass descriptors.
2792         * tree-ssa-phiprop.c: Update tree_pass descriptors.
2793         * tree-object-size.c: Update tree_pass descriptors.
2794         * combine.c: Update tree_pass descriptors.
2795         * tree-outof-ssa.c: Update tree_pass descriptors.
2796         * bb-reorder.c: Update tree_pass descriptors.
2797         * stack-ptr-mod.c: Update tree_pass descriptors.
2798         * var-tracking.c: Update tree_pass descriptors.
2799         * tree-profile.c: Update tree_pass descriptors.
2800         * tree-vect-generic.c: Update tree_pass descriptors.
2801         * reg-stack.c: Update tree_pass descriptors.
2802         * sched-rgn.c: Update tree_pass descriptors.
2803         * tree-ssa-structalias.c: Update tree_pass descriptors.
2804         * tree-cfg.c: Update tree_pass descriptors.
2805         * passes.c (current_pass): Update declaration.
2806         (finish_optimization_passes): Update.
2807         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
2808         (register_one_dump_file, register_dump_files_1, next_pass_1):
2809         Update arguments.
2810         (init_optimization_passes): Update handling of new types.
2811         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
2812         * ipa-struct-reorg.c: Update tree_pass descriptors.
2813         * tree-ssa-reassoc.c: Update tree_pass descriptors.
2814         * combine-stack-adj.c: Update tree_pass descriptors.
2815         * cfgrtl.c: Update tree_pass descriptors.
2816         * dce.c: Update tree_pass descriptors.
2817         * tree-ssanames.c: Update tree_pass descriptors.
2819 2008-03-19  Richard Guenther  <rguenther@suse.de>
2821         PR middle-end/35609
2822         * tree-ssa.c (walk_data): New structure.
2823         (warn_uninitialized_var): If not always_executed warn with "maybe"
2824         instead of "is".
2825         (execute_early_warn_uninitialized): Compute post-dominators.
2826         Initialize always_executed before processing each basic block.
2828 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
2830         PR target/35504
2831         * config/i386/i386.c (x86_this_parameter): Calculate correct location
2832         of "this" pointer when "regparm = N" or "fastcall" is in effect.
2834 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2836         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
2838 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
2840         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
2841         is true.
2842         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
2843         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
2844         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
2845         target after ignore has been set, and move there also the commputation
2846         of subtarget and original_target.
2847         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2848         (LANG_HOOKS_INITIALIZER): Remove it.
2849         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
2851 2008-03-18  Richard Guenther  <rguenther@suse.de>
2853         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
2854         found an expression with constants, note that in the VN for the lhs.
2855         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
2856         fold them to constants if possible.  Run cleanup_cfg if done so.
2857         (execute_pre): Return todo.
2858         (do_pre): Likewise.
2859         (execute_fre): Likewise.
2860         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
2861         of constants.
2862         (get_prop_source_stmt): Look through pointer conversions.
2864 2008-03-18  Jan Hubicka  <jh@suse.cz>
2866         * tree-pretty-print.c: Include predict.h.
2867         (dump_generic_node): Dump predictor.
2868         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
2869         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
2870         * gimple-low.c (lower_stmt): Likewise.
2871         * expr.c (expand_expr_real): Likewise.
2872         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
2873         them.
2874         (build_predict_expr, build_predict_expr): New.
2875         * predict.h (predictor_name, build_predict_expr): Update.
2876         * c-typeck.c (c_finish_bc_stmt): Add prediction.
2877         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
2878         * predict.def (PRED_CONTINUE): Update hitrate.
2879         * tree.def (PREDICT_EXPR): Define.
2880         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
2881         do not handle BIND_EXPR.
2882         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
2883         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
2884         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
2885         operands.
2887 2008-03-18  Michael Matz  <matz@suse.de>
2889         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
2891 2008-03-18  Richard Guenther  <rguenther@suse.de>
2893         * tree-gimple.h (is_gimple_invariant_address): Declare.
2894         (is_gimple_constant): Likewise.
2895         * tree-gimple.c (is_gimple_constant): New function.
2896         (is_gimple_invariant_address): Likewise.
2897         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
2898         and is_gimple_invariant_address.
2899         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
2900         previous change.
2901         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
2902         an addressable base.
2904 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2906         PR middle-end/35611
2907         * gimplify.c (gimplify_expr): Gimplify second operand of
2908         OMP_ATOMIC_LOAD.
2910 2008-03-17  Richard Guenther  <rguenther@suse.de>
2912         PR tree-optimization/19637
2913         * fold-const.c (fold_unary): Remove restrictions of removing
2914         intermediate pointer-conversions (P2)(P1)P0.
2915         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
2916         conversion to void pointer.
2917         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
2919 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
2921         PR debug/31510
2922         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
2923         emulated thread local variables.
2925 2008-03-16  Richard Guenther  <rguenther@suse.de>
2927         PR middle-end/35607
2928         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2929         expand TREE_INVARIANT operations that are not gimple invariant.
2931 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
2933         * doc/extend.texi (Alignment): Say that the ABI controls
2934         the __alignof__ for non-strict-alignment targets rather
2935         than being a recommendation.
2937 2008-03-15  Paul Brook  <paul@codesourcery.com>
2939         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
2940         annotations.
2941         (arm_output_fn_unwind): Mark functions that can not be unwound.
2943 2008-03-15  Paul Brook  <paul@codesourcery.com>
2945         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
2946         extension instructions.
2948 2008-03-15  Richard Guenther  <rguenther@suse.de>
2950         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
2951         and fold constant aggregate refs.
2952         (fold_const_aggregate_ref): Handle string constants
2953         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
2954         (evaluate_stmt): Simplify now that ccp_fold folds constant
2955         aggregate refs.
2957 2008-03-15  Paul Brook  <paul@codesourcery.com>
2959         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
2960         (extzv): Use gen_extzv_t2.
2961         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
2963 2008-03-15  Richard Guenther  <rguenther@suse.de>
2965         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
2966         (fold_const_aggregate_ref): Likewise.
2967         (get_value): Return NULL if we don't have any values.
2968         (ccp_finalize): Set const_val to NULL after freeing it.
2969         * tree-flow.h (get_symbol_constant_value): Declare.
2970         (fold_const_aggregate_ref): Likewise.
2971         * tree-ssa-sccvn.c (try_to_simplify): Use them.
2973 2008-03-15  Richard Guenther  <rguenther@suse.de>
2975         PR middle-end/35593
2976         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
2977         to not produce negative array indices if not allowed.  Add
2978         parameter to indicate that.
2979         (maybe_fold_offset_to_component_ref): Allow negative array
2980         indices only for the first member of a structure.
2981         (maybe_fold_offset_to_reference): Allow negative array indices.
2982         (maybe_fold_stmt_addition): Likewise.
2984 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
2985             Anatoly Sokolov <aesok@post.ru>
2987         * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
2988         (avr_arch): Add ARCH_AVR6.
2989         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
2990         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
2991         instead of fixed value 2.
2992         (print_operand_address): Use gs() asm specifier instead of pm().
2993         (avr_assemble_integer): (Ditto.).
2994         (avr_output_addr_vec_elt): (Ditto.).
2995         (print_operand): Handle "!" code.
2996         * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
2997         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
2998         (AVR_HAVE_EIJMP_EICALL): Define.
2999         (AVR_3_BYTE_PC): Redefine.
3000         (AVR_2_BYTE_PC): (Ditto.).
3001         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
3002         (LINK_SPEC): Add atmega2560 and atmega2561.
3003         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
3004         (crtm2561.o).
3005         * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall 
3006         for 3 byte PC devices.
3007         (call_value_insn): (Ditto.).
3008         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
3009         (indirect_jump): Use only for for 2 byte PC devices.
3010         (*tablejump): (Ditto.).
3011         (*indirect_jump_avr6): Add insn.
3012         (*tablejump_rjmp): Don't use for 3 byte PC devices.
3013         * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp 
3014         instead of ijmp for 3 byte PC devices.
3015         (__tablejump2__): (Ditto.).
3016         * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
3017         (MULITLIB_DIRNAMES): (Ditto.). 
3018         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
3020 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
3022         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
3023         "sse2_umulsidi3".  Use V1DI mode for operand 0.
3024         ("mmx_psadbw"): Use V1DI mode for operand 0.
3025         * config/i386/i386-modes.def (V1SI): New vector mode.
3026         * config/i386/i386.c (struct builtin_description)
3027         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
3028         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
3029         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
3030         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
3031         v1di_ftype_v8qi_v8qi type.
3032         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
3034         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
3035         __builtin_ia32_pmuludq]: Fix the mode of return value.
3037 2008-03-15  Richard Guenther  <rguenther@suse.de>
3039         PR middle-end/35595
3040         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
3041         being a PHI_NODE.
3043 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
3044         
3045         * doc/invoke.texi (Option Summary, Xtensa Options): Document
3046         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
3047         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
3048         unless TARGET_SERIALIZE_VOLATILE is enabled.
3049         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
3050         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
3051         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
3053 2008-03-14  Richard Guenther  <rguenther@suse.de>
3055         PR tree-optimization/34172
3056         * tree-flow.h (refs_may_alias_p): Declare.
3057         (get_single_def_stmt): Likewise.
3058         (get_single_def_stmt_from_phi): Likewise.
3059         (get_single_def_stmt_with_phi): Likewise.
3060         * tree-dfa.c (refs_may_alias_p): New function.
3061         (get_single_def_stmt): Likewise.
3062         (get_single_def_stmt_from_phi): Likewise.
3063         (get_single_def_stmt_with_phi): Likewise.
3064         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
3065         (vn_reference_lookup_1): New helper function.
3066         (vn_reference_lookup): Walk the virtual use-def chain to
3067         continue searching for a match if the def does not alias the
3068         reference we are looking for.
3070 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
3072         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
3073         archive and Perzl.  Update The Written Word listing.
3075 2008-03-14  Richard Guenther  <rguenther@suse.de>
3077         PR tree-optimization/34043
3078         PR tree-optimization/33989
3079         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
3080         when doing FRE.
3081         (bitmap_find_leader): Use extra argument to verify dominance
3082         relationship inside a basic-block.
3083         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
3084         (find_leader_in_sets): Adjust.
3085         (create_component_ref_by_pieces): Take extra argument for
3086         dominance check, handle lookup failures.
3087         (find_or_generate_expression): Likewise.
3088         (create_expression_by_pieces): Likewise.
3089         (insert_into_preds_of_block): Adjust.
3090         (create_value_expr_from): If asked for, verify all operands
3091         are in the blocks AVAIL_OUT set.
3092         (make_values_for_stmt): Check for SSA_NAMEs that are life
3093         over an abnormal edge.
3094         (compute_avail): Remove such check.
3095         (do_SCCVN_insertion): New function.
3096         (eliminate): If we do not find a leader suitable for replacement
3097         insert a replacement expression from SCCVN if available.
3098         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
3099         (struct vn_ssa_aux): Add needs_insertion flag.
3100         * tree-ssa-sccvn.c (may_insert): New global flag.
3101         (copy_reference_ops_from_ref): Value-number union member access
3102         based on its size, not type and member if insertion is allowed.
3103         (visit_reference_op_load): For a weak match from union type
3104         punning lookup a view-converted value and insert a SSA_NAME
3105         for that value if that is not found.
3106         (visit_use): Make dumps shorter.  Do not disallow value numbering
3107         SSA_NAMEs that are life over an abnormal edge to constants.
3108         (free_scc_vn): Release inserted SSA_NAMEs.
3109         (run_scc_vn): New flag to specify whether insertion is allowed.
3110         Process SSA_NAMEs in forward order.
3111         * tree-ssa-loop-im.c (for_each_index): Handle invariant
3112         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
3113         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
3114         pointer type to/from integral types that do not change the
3115         precision to regular conversions.
3117 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
3119         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3120         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3121         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
3122         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
3123         input arguments and the mode of return value.  Built-in functions
3124         that operate on whole 64-bit MMX register now use V1DI mode.
3126 2008-03-13  Alon Dayan  <alond@il.ibm.com>
3127             Olga Golovanevsky  <olga@il.ibm.com>
3129         PR tree-optimization/35041
3130         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
3131         to locate the right position in a statement.
3133 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
3135         PR target/34000
3136         PR target/35553
3137         * config/i386/xmmintrin.h:  Change all static inline functions to
3138         extern inline and add __gnu_inline__ attribute.
3139         * config/i386/bmintrin.h: Ditto.
3140         * config/i386/smmintrin.h: Ditto.
3141         * config/i386/tmmintrin.h: Ditto.
3142         * config/i386/mmintrin-common.h: Ditto.
3143         * config/i386/ammintrin.h: Ditto.
3144         * config/i386/emmintrin.h: Ditto.
3145         * config/i386/pmmintrin.h: Ditto.
3146         * config/i386/mmintrin.h: Ditto.
3147         * config/i386/mm3dnow.h: Ditto.
3149 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
3151         PR middle-end/35185
3152         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
3153         (lower_omp_2): New function.
3154         (lower_omp_1, lower_omp): Rewritten.
3156 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
3158         PR 35054
3159         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
3160         with the phrase "Microsoft Windows compilers".
3161         (Push/Pop Macro Pragmas): New subsection. Document
3162         #pragma push_macro and pragma pop_macro.
3164 2008-03-12  Paul Brook  <paul@codesourcery.com>
3166         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
3168 2008-03-12  Paul Brook  <paul@codesourcery.com>
3170         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
3171         (thumb2_alusi3_short): Exclude PLUS and MINUS.
3172         (thumb2_addsi_shortim): Rename ...
3173         (thumb2_addsi_short): ... to this.  Allow register operands.
3174         (thumb2_subsi_short): New pattern.
3175         (thumb2_one_cmplsi2_short,
3176         thumb2_negsi2_short): New patterns and peepholes.
3178 2008-03-12  Paul Brook  <paul@codesourcery.com>
3180         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
3182 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
3184         * config/i386/i386.md (int_cond): New code iterator.
3185         (fp_cond): Ditto.
3186         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
3187         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
3188         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
3189         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
3190         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
3191         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
3192         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
3193         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
3195 2008-03-12  Paul Brook  <paul@codesourcery.com>
3197         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
3198         instead of {arm,thumb}_compute_save_reg_mask.
3199         (output_return_instruction): Ditto.
3200         (thumb_unexpanded_epilogue): Ditto.
3201         (thumb1_expand_prologue): Ditto.
3202         (thumb1_output_function_prologue): Ditto.
3203         (arm_set_return_address): Ditto.
3204         (thumb_set_return_address): Ditto.
3205         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
3206         regs to achieve stack alignment.
3207         (thumb1_compute_save_reg_mask): Fix compiler warning.
3208         (arm_output_epilogue): Use offsets->saved_regs_mask.
3209         Adjust stack pointer by poping call clobered registers.
3210         (arm_expand_prologue): Use offsets->saved_regs_mask.
3211         Adjust stack pointer by pushing extra registers.
3212         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
3214 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
3216         PR tree-opt/35422
3217         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
3218         conversion to the operands of a multiplication.
3220 2008-03-12  Richard Guenther  <rguenther@suse.de>
3222         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
3223         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
3224         * timevar.def (TV_TREE_PHIPROP): Add.
3225         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
3226         pass description.  Use TV_TREE_PHIPROP.
3227         * tree-ssa-forwprop.c: Remove phiprop code.
3229 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
3231         PR middle-end/35549
3232         * omp-low.c (maybe_lookup_decl): Constify first argument.
3233         (use_pointer_for_field): Change last argument from bool to
3234         omp_context *.  Disallow shared copy-in/out in nested
3235         parallel if decl is shared in outer parallel too.
3236         (build_outer_var_ref, scan_sharing_clauses,
3237         lower_rec_input_clauses, lower_copyprivate_clauses,
3238         lower_send_clauses, lower_send_shared_vars): Adjust callers.
3240 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
3241             Ira Rosen  <irar@il.ibm.com>
3243         * tree-vectorizer.c (free_stmt_vec_info): New function.
3244         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
3245         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
3246         * tree-vectorizer.h (free_stmt_vec_info): Declare.
3247         * tree-vect-transform.c (vectorizable_conversion): Free
3248         vec_oprnds0 if it was allocated.
3249         (vect_permute_store_chain): Remove unused VECs.
3250         (vectorizable_store): Free VECs that are allocated in the..
3251         function.
3252         (vect_transform_strided_load, vectorizable_load): Likewise.
3253         (vect_remove_stores): Simplify the code.
3254         (vect_transform_loop): Move code to vect_remove_stores().
3255         Call vect_remove_stores() and free_stmt_vec_info().
3257 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3259         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
3260         TARGET_HPUX.  Revise comment.
3261         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
3262         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
3263         Use sr4 variant of `be' instruction when not generating PIC code.
3264         (attr_length_call): Adjust for above change.
3266 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3268         * ipa-reference.c (static_execute): Remove module_statics_const and
3269         associated setting code.
3271 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
3273         PR target/35540
3274         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
3275         predicate for operand 1.
3276         (paritysi2_cmp): Use register_operand predicate for operand 2.
3277         Use earlyclobber modifier for operand 1.  Remove support for
3278         memory operands.
3279         (paritydi2_cmp): Use register_operand predicate for operand 3.
3280         Use earlyclobber modifier for operand 1.  Remove support for
3281         memory operands.
3283 2008-03-11  Paul Brook  <paul@codesourcery.com>
3284             Vladimir Prus  <vladimir@codesourcery.com>
3286         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
3287         (arm_compute_save_reg0_reg12_mask): Always
3288         check if register 11 must be saved.  Always safe hard frame pointer
3289         when frame_pointer_needeed.
3290         (arm_compute_save_reg_mask): Save IP and PC
3291         only with apcs frames.
3292         (arm_output_epilogue): Adjust Thumb2 codepath to
3293         be also invoked and work for ARM non-apcs frames.
3294         (arm_expand_prologue): Don't bother saving IP
3295         for non-apcs frame, since it's not clobbered by
3296         prologue code.  Implement non-apcs frame
3297         layout.
3299 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
3301         PR rtl-optimization/35281
3302         * expr.c (convert_move): Use a new pseudo for the intermediate
3303         from_mode->word_mode result.
3305 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
3307         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
3308         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
3309         * toplev.c (compile_file): Don't call it.
3311 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
3313         PR middle-end/35526
3314         * expr.c (store_expr): Call emit_block_move if the mode
3315         of "temp" RTX is BLKmode.
3317 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3318             Richard Guenther  <rguenther@suse.de>
3320         PR tree-optimization/31358
3321         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
3322         the step with a NULL_TREE.
3323         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
3324         to sizetype if type is a pointer type.
3325         (add_candidate_1): Don't convert the base and step to
3326         the generic type if the orginal type is a pointer type.
3327         (add_iv_value_candidates): Use sizetype for the step
3328         if type is a pointer type.
3329         (cand_value_at): Likewise.
3330         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
3331         for pointer types.
3332         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
3333         Don't convert the tem affine to the type.
3334         (add_elt_to_tree): Use sizetype for the step if a pointer.
3335         Use POINTER_PLUS_EXPR for pointers.
3336         (aff_combination_to_tree): Use sizetype for the step if a
3337         pointer.
3339 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
3341         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
3342         Remove commutativity hint.
3344 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
3346         PR c/35438
3347         PR c/35439
3348         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
3349         errorneous type.  Check that v is a VAR_DECL.
3351         PR middle-end/35099
3352         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
3354 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
3356         PR tree-optimization/35494
3357         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
3358         may be overriden at link and run time.
3360 2008-03-10  Richard Guenther  <rguenther@suse.de>
3362         PR tree-optimization/34677
3363         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
3364         (poolify_tree): Likewise.
3365         (modify_expr_template): Likewise.
3366         (poolify_modify_stmt): Likewise.
3367         (insert_fake_stores): Handle all component-ref style stores
3368         in addition to INDIRECT_REF.  Also handle complex types.
3369         Do not poolify the inserted load.
3370         (realify_fake_stores): Do not rebuild the tree but only
3371         make it a SSA_NAME copy.
3372         (init_pre): Remove initialzation of modify_expr_template.
3373         Do not allocate modify_expr_node_pool.
3374         (fini_pre): Do not free modify_expr_node_pool.
3376 2008-03-10  Paul Brook  <paul@codesourcery.com>
3378         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
3379         to avoid conflicts.
3381 2008-03-10  Paul Brook  <paul@codesourcery.com>
3382             Mark Shinwell  <shinwell@codesourcery.com>
3384         * config/arm/cortex-r4.md: New.
3385         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
3386         insn attributes.
3387         * config/arm/arm.md: Include cortex-r4.md.
3388         (insn): Add smmls, sdiv and udiv values.
3389         (generic_sched): Don't use generic scheduling for Cortex-R4.
3390         (arm_issue_rate): New function.
3391         (TARGET_SCHED_ISSUE_RATE): Define.
3393 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
3395         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
3397 2008-03-10  Richard Guenther  <rguenther@suse.de>
3399         * tree-ssa-pre.c (get_sccvn_value): Simplify.
3400         (compute_avail): Do not add stmt uses to AVAIL_OUT.
3402 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
3404         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
3405         Set default to true.
3407 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3409         * c.opt (Wsynth): Deprecate.
3410         * doc/invoke.texi (Option Summary, Warning Options): Document
3411         -Wno-format-contains-nul.
3413 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
3415         PR target/35496
3416         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
3417         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
3419 2008-03-09  Ira Rosen  <irar@il.ibm.com>
3421         * config/rs6000/rs6000.c (builtin_description): Rename vector
3422         left shift operations.
3423         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
3424         (altivec_vsl<VI_char>): Rename to ...
3425         (ashl<mode>3): ... new name.
3426         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
3427         gen_ashlv4si3.
3428         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
3430 2008-03-08  Richard Guenther  <rguenther@suse.de>
3432         * coverage.h (tree_coverage_counter_addr): Declare.
3433         * coverage.c (tree_coverage_counter_addr): New function.
3434         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
3435         before using again.
3436         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
3437         (tree_gen_one_value_profiler): Likewise.
3438         (tree_gen_ic_profiler): Likewise.
3439         (tree_gen_average_profiler): Likewise.
3440         (tree_gen_ior_profiler): Likewise.
3442 2008-03-08  Richard Guenther  <rguenther@suse.de>
3444         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
3445         (vn_binary_op_insert): Likewise.
3446         (vn_unary_op_lookup): Likewise.
3447         (vn_unary_op_insert): Likewise.
3448         (vn_nary_op_lookup): Declare.
3449         (vn_nary_op_insert): Likewise.
3450         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
3451         and binary hashes, use a single obstack for unary_op_pool
3452         and binary_op_pool.
3453         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
3454         a single struct vn_nary_op_s.  Store tree code length and
3455         a variable number of operands.
3456         (struct vn_reference_op_struct): Remove unused op2.
3457         (vn_reference_op_eq): Do not compare op2.
3458         (vn_reference_op_compute_hash): Do not compute hash of op2.
3459         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
3460         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
3461         with vn_nary_op_compute_hash.
3462         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
3463         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
3464         vn_nary_op_lookup.
3465         (vn_unary_op_insert, vn_binary_op_insert): Replace with
3466         vn_nary_op_insert.
3467         (visit_unary_op): Call nary functions.
3468         (visit_binary_op): Likewise.
3469         (process_scc): Adjust for struct vn_tables_s changes.
3470         (allocate_vn_table): Likewise.
3471         (free_vn_table): Likewise.
3472         * tree-vn.c (vn_add): Call nary functions.
3473         (vn_lookup): Likewise.
3475 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
3477         PR target/35498
3478         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
3479         wdst back after sync_compare_and_swapqhi_internal.
3481 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
3483         PR target/22152
3484         * config/i386/i386-modes.def (V1DI): New vector mode.
3485         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
3486         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
3487         (MMXMODE248): Ditto.
3488         (MMXMODE): Add V1DI mode.
3489         (mmxvecsize): Change DI mode to V1DI mode.
3490         ("mov<mode>): Use MMXMODEI8 mode iterator.
3491         ("*mov<mode>_internal_rex64"): Ditto.
3492         ("*mov<mode>_internal"): Ditto.
3493         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
3494         ("mmx_sub<mode>3"): Ditto.
3495         ("mmx_adddi3"): Remove insn pattern.
3496         ("mmx_subdi3"): Ditto.
3497         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
3498         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
3499         ("mmx_ashl<mode>3"): Ditto.
3500         ("mmx_lshrdi3"): Remove insn pattern.
3501         ("mmx_ashldi3"): Ditto.
3502         * config/i386/i386.c (classify_argument): Handle V1DImode.
3503         (function_arg_advance_32): Ditto.
3504         (function_arg_32): Ditto.
3505         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
3506         mmx_addv1di3 insn pattern.
3507         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
3508         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
3509         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
3510         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
3511         Remove definitions of built-in functions.
3512         (V1DI_type_node): New node.
3513         (v1di_ftype_v1di_int): Ditto.
3514         (v1di_ftype_v1di_v1di): Ditto.
3515         (v2si_ftype_v2si_si): Ditto.
3516         (v4hi_ftype_v4hi_di): Remove node.
3517         (v2si_ftype_v2si_di): Ditto.
3518         (ix86_init_mmx_sse_builtins): Handle V1DImode.
3519         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
3520         Redefine builtins using def_builtin_const with *_ftype_*_int node.
3521         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
3522         Add new builtins using def_builtin_const.
3523         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
3524         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
3525         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
3526         * config/i386/mmintrin.h (__v1di): New typedef.
3527         (_mm_add_si64): Cast arguments to __v1di type.
3528         (_mm_sub_si64): Ditto.
3529         (_mm_sll_pi16): Cast __count to __v4hi type.
3530         (_mm_sll_pi32): Cast __count to __v2si type.
3531         (_mm_sll_si64): Cast arguments to __v1di type.
3532         (_mm_srl_pi16): Cast __count to __v4hi type.
3533         (_mm_srl_pi32): Cast __count to __v2si type.
3534         (_mm_srl_si64): Cast arguments to __v1di type.
3535         (_mm_sra_pi16): Cast __count to __v4hi type.
3536         (_mm_sra_pi32): Cast __count to __v2si type.
3537         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
3538         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
3539         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
3540         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
3541         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
3542         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
3543         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
3544         (_mm_srai_pi32): Use __builtin_ia32_psradi.
3545         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
3546         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3547         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3548         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
3550 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
3552         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
3554 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
3556         PR target/35373
3557         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
3558         reg+const addressing for Altivec modes.  Don't generate reg+reg
3559         addressing for TFmode or TDmode quantities.
3561 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
3563         * c-common.c (vector_types_convertible_p): Call langhook
3564         instead of comptypes.
3566 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3568         PR tree-opt/35402
3569         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
3570         integral and scalar float variables which have a
3571         NULL DECL_INITIAL.
3573 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
3575         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
3576         dwarf_register_span hook when emitting unwind information for
3577         register-to-memory saves.
3578         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
3579         (rs6000_frame_related): Remove call to spe_synthesize_frame.
3581 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
3583         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
3584         for the same VAR_DECL.
3586 2008-03-06  Tom Tromey  <tromey@redhat.com>
3588         * treelang: Delete.
3589         * doc/standards.texi (Standards): Don't mention treelang.
3590         * doc/invoke.texi (Overall Options): Don't mention treelang.
3591         * doc/install.texi (Prerequisites): Don't mention bison or
3592         treelang.
3593         (Configuration): Don't mention treelang.
3594         (Building): Likewise.
3595         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
3597 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
3599         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
3600         word-extractions out of a multi-word object.
3602 2008-03-06  Richard Guenther  <rguenther@suse.de>
3604         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
3605         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
3606         result type and precision.
3607         * expr.c (get_inner_reference): Set unsignedp based on the result
3608         type of BIT_FIELD_REF.
3609         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
3610         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
3611         (try_instantiate_multiple_fields): Likewise.  Use the correct type
3612         for BIT_FIELD_REF.
3613         (sra_build_assignment): Likewise.
3614         (sra_build_elt_assignment): Likewise.
3615         (sra_explode_bitfield_assignment): Likewise.
3616         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
3617         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
3618         set BIT_FIELD_REF_UNSIGNED.
3619         (vectorizable_load): Likewise.
3621 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
3623         * cse.c (cse_extended_basic_block): Invalidate artificial defs
3624         at bb start.
3626 2008-03-06  Richard Guenther  <rguenther@suse.de>
3628         * alias.c (struct alias_set_entry): Move has_zero_child field
3629         to pack with alias_set.
3631 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
3633         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
3634         32bit host.
3636 2008-03-05  Ian Lance Taylor  <iant@google.com>
3638         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
3640 2008-03-05  Kenneth Zadeck <zadeck@naturalbridge.com>
3642         * fwprop.c (update_df): Support width and offset parameters of
3643         df_ref_create.
3644         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
3645         global_conflicts): Change DF_REF_EXTRACT to either
3646         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
3647         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3648         * df-scan.c (df_ref_record, df_defs_record,
3649         df_ref_create_structure, df_def_record_1, df_uses_record,
3650         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
3651         df_bb_refs_collect, df_entry_block_defs_collect,
3652         df_exit_block_uses_collect): Support new width and offset fields.
3653         (ref_extract_pool): New storage pool.
3654         (df_free_ref): New function.
3655         (df_reg_chain_unlink, df_free_collection_rec,
3656         df_sort_and_compress_refs): Call df_free_ref.
3657         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
3658         of df_ref_extract.
3659         (df_ref_create_structure): Allocate df_ref_extract if offset and
3660         width fields are used.
3661         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
3662         (df_uses_record): Get offset and width from ZERO_EXTRACT 
3663         and SIGN_EXTRACT.
3664         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
3665         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
3666         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3667         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
3668         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
3669         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3670         (df_ref_extract): New structure.
3671         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
3672         (df_ref_create): Add width and offset parameters.
3673         
3674 2008-03-05  Richard Guenther  <rguenther@suse.de>
3676         * tree-ssa-structalias.c (get_constraint_for_component_ref):
3677         Use ranges_overlap_p.
3678         (offset_overlaps_with_access): Rename
3679         to ranges_overlap_p and move ...
3680         * tree-flow-inline.h (ranges_overlap_p): ... here.
3682         * tree.h (get_inner_reference, handled_component_p): Update
3683         comments.
3685         * tree.h (record_component_aliases, get_alias_set,
3686         alias_sets_conflict_p, alias_sets_must_conflict_p,
3687         objects_must_conflict_p): Move declarations ...
3688         * alias.h (record_component_aliases, get_alias_set,
3689         alias_sets_conflict_p, alias_sets_must_conflict_p,
3690         objects_must_conflict_p): ... here.
3691         Include coretypes.h.
3692         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
3694 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
3696         * cfg.c: Include tree-flow.h.
3697         (remove_edge_raw): Call redirect_edge_var_map_clear.
3698         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
3699         * tree-flow-inline.h (redirect_edge_var_map_def): New.
3700         (redirect_edge_var_map_result): New.
3701         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
3702         PENDING_STMT use with redirect_edge_var_map_*.
3703         * tree-ssa.c (edge_var_maps): New definition.
3704         (redirect_edge_var_map_add): New.
3705         (redirect_edge_var_map_clear): New.
3706         (redirect_edge_var_map_dup): New.
3707         (redirect_edge_var_map_vector): New.
3708         (redirect_edge_var_map_destroy): New.
3709         (ssa_redirect_edge): Replace PENDING_STMT use with
3710         redirect_edge_var_map_*.
3711         (flush_pending_stmts): Same.
3712         (delete_tree_ssa): Destroy edge var map.
3713         * tree-flow.h (struct _edge_var_map): New.
3714         Define edge_var_map vector type.
3715         Declare redirect_edge_var_map_* prototypes.
3716         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
3717         * tree-cfg.c (reinstall_phi_args): Replace
3718         PENDING_STMT use with redirect_edge_var_map_*.
3720 2008-03-05  Richard Guenther  <rguenther@suse.de>
3722         PR tree-optimization/35472
3723         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
3724         whose single use_stmt has a overlapping set of loaded and
3725         stored symbols as that use_stmt might be a noop assignment then.
3727 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
3729         * gthr-rtems.h: Implement __gthread_mutex_destroy.
3731 2008-03-05  Richard Guenther  <rguenther@suse.de>
3733         PR c++/35336
3734         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
3735         should be constants.
3736         * tree-cfg.c (verify_expr): Verify it.
3737         * fold-const.c (fold_truthop): Remove code generating
3738         BIT_FIELD_REFs of structure bases.
3739         (fold_binary): Likewise.
3740         (fold_ternary): Position and size of BIT_FIELD_REFs are
3741         always host integers.
3742         (make_bit_field_ref): Remove.
3743         (optimize_bit_field_compare): Remove.
3744         (all_ones_mask_p): Remove.
3746 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
3748         PR gcc/33009
3749         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
3750         (split_block_and_df_analyze): New. Split basic block and rebuild
3751         dataflow.
3752         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
3753         SPLIT_BLOCK.
3754         (split_pattern_seq): Likewise.
3755         (erase_matching_seqs): Likewise.
3756         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
3758 2008-03-04  Geoff Keating  <geoffk@apple.com>
3760         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
3761         declaration and code.
3762         (tree_invalid_nonnegative_warnv_p): Likewise.
3764 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
3766         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
3767         examples.  Truncate option-names then causing overfull hbox.
3769 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3771         PR target/35222
3772         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
3773         on hpux10.
3774         * configure: Rebuilt.
3776 2008-03-04  Rafael Espindola  <espindola@google.com>
3778         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
3779         (tree_unary_nonnegative_warnv_p): New.
3780         (tree_binary_nonnegative_warnv_p): New.
3781         (tree_single_nonnegative_warnv_p): New.
3782         (tree_invalid_nonnegative_warnv_p): New.
3783         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
3785 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3787         PR 28322
3788         * opts.c (handle_option): Postpone 'unknown option' errors only for
3789         warning options.
3791 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
3793         PR target/35453
3794         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
3795         (_SIDD_XXX): This.
3797 2008-03-04  Rafael Espindola  <espindola@google.com>
3799         * fold-const.c (tree_unary_nonzero_warnv_p): New.
3800         (tree_binary_nonzero_warnv_p): New.
3801         (tree_single_nonzero_warnv_p): New.
3802         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
3804 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
3806         PR middle-end/35456
3807         * fold-const.c (fold_cond_expr_with_comparison): Prevent
3808         transformations for modes that have signed zeros.
3809         * ifcvt.c (noce_try_abs): Ditto.
3811 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
3813         * config/i386/i386.c (override_options): Force
3814         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
3816 2008-03-04  Jan Hubicka  <jh@suse.cz>
3818         PR c++/35262
3819         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
3820         in last commit.
3822 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
3824         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
3825         label to probe the stack.
3827 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
3829         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
3830         (__gthr_win32_mutex_destroy): Declare.
3831         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
3832         __gthr_win32_mutex_destroy.
3833         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
3835 2008-03-03  Jan Hubicka  <jh@suse.cz>
3837         PR c++/35262
3838         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
3839         aggressive on inlining cold calls.
3841 2008-03-03  Richard Guenther  <rguenther@suse.de>
3843         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
3844         struct copies into the expression table.
3845         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
3846         (try_to_simplify): Likewise.
3847         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
3848         integral and pointer arguments which do not change the
3849         precision to NOP_EXPRs.
3850         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
3851         VIEW_CONVERT_EXPR case.
3853 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
3855         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
3856         defined in a loop at depth 0 is invariant.
3857         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
3858         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
3859         be called at loop depth 0.
3861 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
3863         PR driver/35420
3864         * gcc.c (process_command): Update copyright notice dates.
3865         * gcov.c (print_version): Likewise.
3866         * gcov-dump.c (print_version): Likewise.
3867         * mips-tfile.c (main): Likewise.
3868         * mips-tdump.c (main): Likewise.
3870 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3872         PR 24924
3873         * c-common.c (flag_permissive): Delete.
3874         (constant_expression_warnings): Check flags first.
3875         (constant_expression_error): New.
3876         * c-common.h (flag_permissive): Delete.
3877         (constant_expression_error): Declare.
3878         * flags.h (flag_permissive): Declare. Update description.
3879         * diagnostic.c (pedwarn): Update.
3880         (permerror): New.
3881         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
3882         (permissive_error_kind): New.
3883         * toplev.c (flag_permissive): Define. Update description.
3884         * toplev.h (permissive_error_kind): Declare.
3885         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
3886         (pedwarn_c90): Use pedantic_warning_kind.
3887         * c-opts.c (c_common_post_options): flag_permissive does not affect
3888         flag_pedantic_errors.
3890 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
3892         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
3893         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
3894         __absvsi2, __absvDI2): Use unsigned arithmetic.
3896 2008-03-02  Andi Kleen  <ak@suse.de>
3897             Richard Guenther  <rguenther@suse.de>
3899         * struct-equiv.c: Remove file.
3900         * cfg_cleanup.c (condjump_equiv_p): Remove.
3901         * Makefile.in (OBJS-common): Remove struct-equiv.o.
3902         (struct-equiv.o): Remove rule.
3903         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
3904         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
3905         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
3907 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
3909         * ifcvt.c (noce_process_if_block): Try to handle only the then
3910         block if the else block exists but isn't suitable.
3912 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
3914         PR gcc/35063
3915         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
3916         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
3917         regression from previous patch.
3919 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
3921         PR gcc/35063
3922         * gthr.h: Add __gthread_mutex_destroy as a function that must be
3923         implemented.
3924         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
3925         * gthr-single.h (__gthread_mutex_destroy): Likewise.
3926         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
3927         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
3928         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
3929         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
3930         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
3931         (__gthread_mutex_destroy_function): Rename to
3932         __gthread_mutex_destroy.
3933         * gthr-dce.h (__gthread_mutex_destroy): Call
3934         pthread_mutex_destroy.
3935         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
3936         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
3937         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
3939 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
3941         * df-scan.c (df_ref_chain_change_bb): Simplify.
3942         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
3943         set_block_for_insn if there's any change.
3944         * df.h ((df_insn_change_bb): Fix prototype.
3945         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
3946         df_insn_change_bb, don't call set_block_for_insn.
3947         * emit-rtl.c (reorder_insns): Likewise.
3948         * haifa-sched.c (move_insn): Likewise.
3950 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
3952         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
3954 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
3956         * tree-flow-inline.h (next_readonly_imm_use): Return
3957         NULL_USE_OPERAND_P after the end.
3959 2008-03-01  Richard Guenther  <rguenther@suse.de>
3961         PR tree-optimization/35411
3962         * tree-sra.c (sra_build_assignment): Split conversion to
3963         final type to a separate statement if we are not assigning
3964         to a register.
3966 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3968         * fold-const.c (fold_convertible_p): Correct the logic to follow
3969         that in fold_convert().
3971 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
3973         PR c++/35315
3974         * tree-inline.c (build_duplicate_type): When we make a
3975         duplicate type, make it unique in the canonical types system.
3977 2008-02-29  Tom Tromey  <tromey@redhat.com>
3979         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
3980         input_file_stack_history, input_file_stack_restored): Remove.
3981         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3982         * input.h (struct file_stack): Remove.
3983         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3984         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
3985         Likewise.
3986         * diagnostic.h (struct diagnostic_context) <last_module>: Change
3987         type.
3988         (diagnostic_last_module_changed): Add 'map' argument.
3989         (diagnostic_set_last_function): Likewise.
3990         * diagnostic.c (undiagnostic_report_current_module): Iterate using
3991         line map, not input_file_stack.
3992         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
3994 2008-02-29  Paul Brook  <paul@codesourcery.com>
3996         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
3998 2008-02-29  Paul Brook  <paul@codesourcery.com>
4000         * config/arm/ieee754-df.S (muldf3): Use RET macros.
4002 2008-02-29  Richard Guenther  <rguenther@suse.de>
4004         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
4005         vn_lookup_or_add.
4006         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
4007         value for comparing for a store match.
4008         (simplify_unary_expression): Do nothing for SSA_NAMEs.
4009         (try_to_simplify): Do not do a full-blown reference lookup.
4011 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
4013         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
4014         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
4016         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
4018 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
4020         * tree-loop-linear.c (try_interchange_loops): Compare memory access
4021         strides against cache sizes.
4023 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
4025         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
4026         constant to fpul.
4028 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
4030         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
4031         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
4032         is smaller than the original promoted value.
4033         (simplify_subreg): If OP is a SUBREG, try to preserve its
4034         SUBREG_PROMOTED_VAR_P information.
4036 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
4038         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
4039         (VN_INFO_GET): Allocate new objects on the obstack.
4040         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
4041         for rpo_numbers_temp, for consistency.
4042         (free_scc_vn): Free the obstack.
4044 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
4046         * doc/invoke.texi: Document -ftree-loop-distribution.
4047         * tree-loop-distribution.c: New.
4048         * tree-pass.h (pass_loop_distribution): New.
4049         * graphds.h (struct graph): Add htab_t indices.
4050         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
4051         * tree-vectorizer.c (rename_variables_in_loop): Extern.
4052         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
4053         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
4054         * tree-data-ref.c (debug_data_dependence_relations): New.
4055         (dump_data_dependence_relation): Also print data references.
4056         (free_data_ref): Extern.
4057         (same_access_functions): Moved...
4058         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
4059         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4060         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
4061         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
4062         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
4063         (stmts_from_loop): Skip LABEL_EXPR.
4064         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
4065         New.
4066         (build_rdg): Initialize rdg->indices htab.
4067         (free_rdg, stores_from_loop, ref_base_address,
4068         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
4069         have_similar_memory_accesses_1, ref_base_address_1,
4070         remove_similar_memory_refs): New.
4071         * tree-data-ref.h: Depend on tree-chrec.h.
4072         (debug_data_dependence_relations, free_data_ref): Declared.
4073         (same_access_functions): ... here.
4074         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
4075         New.
4076         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
4077         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
4078         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
4079         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4080         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
4081         rdg_vertex_for_stmt): Declared.
4082         (struct rdg_edge): Add level.
4083         (RDGE_LEVEL): New.
4084         (free_rdg, stores_from_loop, remove_similar_memory_refs,
4085         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
4086         Declared.
4087         (rdg_has_similar_memory_accesses): New.
4088         * tree-vect-analyze.c: Remove unused static decls.
4089         * lambda.h (dependence_level): New.
4090         * common.opt (ftree-loop-distribution): New.
4091         * tree-flow.h (mark_virtual_ops_in_bb, 
4092         slpeel_tree_duplicate_loop_to_edge_cfg,
4093         rename_variables_in_loop): Declared.
4094         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
4095         (OBJS-common): Add tree-loop-distribution.o.
4096         (tree-loop-distribution.o): New rule.
4097         * tree-cfg.c (mark_virtual_ops_in_bb): New.
4098         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
4099         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
4101 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
4103         PR target/33963
4104         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
4105         other than structures and unions.
4107 2008-02-28  Richard Guenther  <rguenther@suse.de>
4109         Revert:
4110         2008-02-26  Richard Guenther  <rguenther@suse.de>
4112         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4113         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4114         (lookup_decl_from_uid): Declare.
4115         (remove_decl_from_map): Likewise.
4116         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4117         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4118         (decl_for_uid_map): New global hashtable mapping DECL_UID
4119         to the decl tree.
4120         (init_ttree): Allocate it.
4121         (insert_decl_to_uid_decl_map): New helper function.
4122         (make_node_stat): Insert new decls into the map.
4123         (copy_node_stat): Likewise.
4124         (lookup_decl_from_uid): New function.
4125         (remove_decl_from_map): Likewise.
4126         (print_decl_for_uid_map_statistics): New helper.
4127         (dump_tree_statistics): Call it.
4129         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4130         (referenced_var_iterator): Adjust.
4131         (FOR_EACH_REFERENCED_VAR): Adjust.
4132         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4133         (num_referenced_vars): Adjust.
4134         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4135         (first_referenced_var): Remove.
4136         (end_referenced_vars_p): Likewise.
4137         (next_referenced_var): Likewise.
4138         (referenced_var_iterator_set): New helper function.
4139         * tree-dfa.c (referenced_var_lookup): Adjust.
4140         (referenced_var_check_and_insert): Likewise.
4141         (remove_referenced_var): Likewise.
4142         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4143         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4144         (verify_call_clobbering): Likewise.
4145         (verify_memory_partitions): Likewise.
4146         (init_tree_ssa): Allocate bitmap instead of hashtable for
4147         referenced_vars.
4148         (delete_tree_ssa): Adjust.
4149         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4150         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4151         (compute_tag_properties): Likewise.
4152         (set_initial_properties): Likewise.
4153         (find_partition_for): Likewise.
4154         (update_reference_counts): Likewise.
4155         (dump_may_aliases_for): Likewise.
4156         * tree-ssa-operands.c (add_virtual_operand): Likewise.
4157         (add_call_clobber_ops): Likewise.
4158         (add_call_read_ops): Likewise.
4159         (get_asm_expr_operands): Likewise.
4160         * tree-into-ssa.c (dump_decl_set): Likewise.
4161         (update_ssa): Likewise.
4162         * tree-sra.c (scan_function): Likewise.
4163         (decide_instantiations): Likewise.
4164         (scalarize_parms): Likewise.
4165         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4166         (dsa_named_for): Likewise.
4167         * tree-ssa-structalias.c (update_alias_info): Likewise.
4168         (merge_smts_into): Likewise.
4170 2008-02-27  David Daney  <ddaney@avtrex.com>
4172         PR target/34409
4173         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
4174         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
4175         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
4176         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
4177         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
4179 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
4181         PR target/25477
4182         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
4183         (BUILT_IN_NEXTTOWARD): Remove.
4184         (BUILT_IN_NEXTTOWARDF): Ditto.
4185         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
4186         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
4188 2008-02-27  Tom Tromey  <tromey@redhat.com>
4190         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
4191         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
4193 2008-02-27  Jan Beulich  <jbeulich@novell.com>
4195         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
4196         update the respective field on newdecl.
4198 2008-02-27  Revital Eres  <eres@il.ibm.com>
4200         PR rtl-optimization/34999
4201         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
4202         crossing edges that ends with a call insn.
4203         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
4204         call insn and clear the EDGE_CROSSING flag of the crossing edge
4205         when fixing fallthru edges.
4207 2008-02-27  Richard Guenther  <rguenther@suse.de>
4209         PR middle-end/35390
4210         * fold-const.c (fold_unary): Return the correct argument,
4211         converted to the result type.
4213 2008-02-27  Richard Guenther  <rguenther@suse.de>
4215         PR middle-end/34971
4216         * expr.c (expand_expr_real_1): Assert on rotates that operate
4217         on partial modes.
4218         * fold-const.c (fold_binary): Use the types precision, not the
4219         bitsize of the mode if folding rotate expressions.  Build rotates
4220         only for full modes.
4222 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
4224         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
4225         and CPP_PRAGMA_EOL.
4226         * c-pragma.c (pragma_ns_name): New typedef.
4227         (registered_pp_pragmas): New variable.
4228         (c_pp_lookup_pragma): New function.
4229         (c_register_pragma_1): If flag_preprocess_only, do nothing
4230         for non-expanded pragmas, for expanded ones push pragma's
4231         namespace and name into registered_pp_pragmas vector.
4232         (c_invoke_pragma_handler): Register OpenMP pragmas even when
4233         flag_preprocess_only, don't register GCC pch_preprocess
4234         pragma if flag_preprocess_only.
4235         * c-opts.c (c_common_init): Call init_pragma even if
4236         flag_preprocess_only.
4237         * c-pragma.c (c_pp_lookup_pragma): New prototype.
4238         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
4239         cpp_register_pragma if flag_preprocess_only.
4241 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4243         PR c/28800
4244         * c-parser.c (c_parser_translation_unit): Warn for empty
4245         translation unit, not empty source file.
4247 2008-02-26  Paul Brook  <paul@codesourcery.com>
4249         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
4250         operand for Thumb-2.
4251         * config/arm/arm.h (reg_class): Add CORE_REGS.
4252         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
4253         (BASE_REG_CLASS): Use CORE_REGS.
4254         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
4255         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
4256         (REGNO_OK_FOR_INDEX_P): Exclude SP.
4257         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
4258         ARM_REGNO_OK_FOR_INDEX_P.
4259         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
4260         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
4261         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
4262         (ldm/stm peepholes): Ditto.
4263         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
4264         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
4265         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
4266         * config/arm/constraints.md: Enable "k" constraint on ARM.
4268 2008-02-27  Ben Elliston  <bje@au.ibm.com>
4270         * config/rs6000/rs6000.c: Annotate cache line size field in all
4271         instances of struct processor_costs.
4273 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
4275         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
4276         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
4277         jump_bypass): New counters.
4278         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
4279         * dce.c (gate_ud_dce): Same.
4280         (gate_fast_dce): Same.
4281         * dse.c (gate_dse1): New function.
4282         (gate_dse2): New function.
4283         (gate_dse): Merge results of new gate functions.
4284         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
4285         (gate_handle_jump_bypass): Add dbg_cnt.
4286         (gate_handle_gcse): Add dbg_cnt.
4287         * ifcvt.c (gate_handle_if_conversion): Same.
4288         (gate_handle_if_after_combine): Same.
4289         (gate_handle_if_after_reload): Same.
4290         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
4292 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
4294         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
4295         line sizes.
4296         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
4298 2008-02-26  Jason Merrill  <jason@redhat.com>
4300         PR c++/35315
4301         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
4302         alone if it's the naming decl for the type's main variant.
4304 2008-02-26  Tom Tromey  <tromey@redhat.com>
4306         * system.h (USE_MAPPED_LOCATION): Poison.
4307         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
4308         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
4309         (make_goto_expr_edges): Likewise.
4310         (remove_bb): Likewise.
4311         (execute_warn_function_return): Likewise.
4312         * basic-block.h (struct edge_def) <goto_locus>: Change type to
4313         location_t.
4314         * c-common.c (fname_decl): Remove old location code.
4315         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
4316         location code.
4317         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
4318         variant.
4319         (ASM_INPUT_SOURCE_LOCATION): Likewise.
4320         (gen_rtx_ASM_INPUT): Likewise.
4321         (gen_rtx_ASM_INPUT_loc): Likewise.
4322         (get_rtx_asm_OPERANDS): Remove.
4323         * cfglayout.c (insn_locators_alloc): Remove old location code.
4324         (set_curr_insn_source_location): Likewise.
4325         (curr_insn_locator): Likewise.
4326         * print-tree.c (print_node): Remove old location code.
4327         * tree-mudflap.c (mf_varname_tree): Remove old location code.
4328         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
4329         * cfgexpand.c (expand_gimple_cond_expr): Don't use
4330         location_from_locus.
4331         (construct_exit_block): Remove old location code.
4332         * emit-rtl.c (force_next_line_note): Remove old location code.
4333         * profile.c (branch_prob): Remove old location code.
4334         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4335         LOC_LINE): Remove old-location variants.
4336         * langhooks.c (lhd_print_error_function): Remove old location
4337         code.
4338         * configure, config.in: Rebuilt.
4339         * configure.ac (--enable-mapped-location): Remove.
4340         * c-decl.c (c_init_decl_processing): Remove old location code.
4341         (finish_function): Likewise.
4342         * recog.c (decode_asm_operands): Remove old location code.
4343         * c-pch.c (c_common_read_pch): Remove old location code.
4344         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
4345         variants.
4346         * gimple-low.c (lower_function_body): Remove old location code.
4347         * toplev.c (unknown_location): Remove.
4348         (push_srcloc): Remove old-location variant.
4349         (process_options): Remove old location code.
4350         (lang_dependent_init): Likewise.
4351         * input.h (UNKNOWN_LOCATION): Move definition.
4352         (location_t): Undeprecate.
4353         (source_locus): Remove.
4354         (location_from_locus): Remove.
4355         (struct location_s): Remove.
4356         Remove all old-location code.
4357         (input_line, input_filename): Remove.
4358         * final.c (final_scan_insn): Remove old location code.
4359         * diagnostic.c (diagnostic_build_prefix): Remove
4360         USE_MAPPED_LOCATION test.
4361         * tree.h (gimple_stmt) <locus>: Now a location_t.
4362         (tree_exp) <locus>: Likewise.
4363         (DECL_IS_BUILTIN): Remove old-location variant.
4364         (annotate_with_file_line, annotate_with_locus): Likewise.
4365         (expr_locus, set_expr_locus): Update.
4366         * tree.c (build1_stat): Remove old location code.
4367         (last_annotated_node): Remove.
4368         (annotate_with_file_line): Remove old-location variant.
4369         (annotate_with_locus): Likewise.
4370         (expr_location): Remove old location code.
4371         (set_expr_location): Likewise.
4372         (expr_has_location): Likewise.
4373         (expr_locus): Likewise.
4374         (set_expr_locus): Likewise.
4375         (expr_filename): Don't use location_from_locus.
4376         (expr_lineno): Likewise.
4377         * rtl-error.c (location_for_asm): Remove old location code.
4378         * c-lex.c (cb_line_change): Remove old location code.
4379         (fe_file_change): Likewise.
4380         (cb_def_pragma): Likewise.
4381         (c_lex_with_flags): Likewise.
4382         * gengtype.c (do_typedef): Don't special-case location types.
4383         (define_location_structures): Remove.
4384         (main): Don't call define_location_structures.
4385         * tree-pretty-print.c (dump_implicit_edges): Remove old location
4386         code.
4388 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4390         PR 26264
4391         * builtins.def (BUILT_IN_STDARG_START): Remove.
4392         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
4393         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4394         * tree-inline.c (inline_forbidden_p_1): Likewise.
4395         
4396 2008-02-26  Richard Guenther  <rguenther@suse.de>
4398         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4399         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4400         (lookup_decl_from_uid): Declare.
4401         (remove_decl_from_map): Likewise.
4402         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4403         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4404         (decl_for_uid_map): New global hashtable mapping DECL_UID
4405         to the decl tree.
4406         (init_ttree): Allocate it.
4407         (insert_decl_to_uid_decl_map): New helper function.
4408         (make_node_stat): Insert new decls into the map.
4409         (copy_node_stat): Likewise.
4410         (lookup_decl_from_uid): New function.
4411         (remove_decl_from_map): Likewise.
4412         (print_decl_for_uid_map_statistics): New helper.
4413         (dump_tree_statistics): Call it.
4415         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4416         (referenced_var_iterator): Adjust.
4417         (FOR_EACH_REFERENCED_VAR): Adjust.
4418         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4419         (num_referenced_vars): Adjust.
4420         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4421         (first_referenced_var): Remove.
4422         (end_referenced_vars_p): Likewise.
4423         (next_referenced_var): Likewise.
4424         (referenced_var_iterator_set): New helper function.
4425         * tree-dfa.c (referenced_var_lookup): Adjust.
4426         (referenced_var_check_and_insert): Likewise.
4427         (remove_referenced_var): Likewise.
4428         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4429         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4430         (verify_call_clobbering): Likewise.
4431         (verify_memory_partitions): Likewise.
4432         (init_tree_ssa): Allocate bitmap instead of hashtable for
4433         referenced_vars.
4434         (delete_tree_ssa): Adjust.
4435         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4436         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4437         (compute_tag_properties): Likewise.
4438         (set_initial_properties): Likewise.
4439         (find_partition_for): Likewise.
4440         (update_reference_counts): Likewise.
4441         (dump_may_aliases_for): Likewise.
4442         * tree-ssa-operands.c (add_virtual_operand): Likewise.
4443         (add_call_clobber_ops): Likewise.
4444         (add_call_read_ops): Likewise.
4445         (get_asm_expr_operands): Likewise.
4446         * tree-into-ssa.c (dump_decl_set): Likewise.
4447         (update_ssa): Likewise.
4448         * tree-sra.c (scan_function): Likewise.
4449         (decide_instantiations): Likewise.
4450         (scalarize_parms): Likewise.
4451         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4452         (dsa_named_for): Likewise.
4453         * tree-ssa-structalias.c (update_alias_info): Likewise.
4454         (merge_smts_into): Likewise.
4456 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4458         PR 34351
4459         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
4460         * c-opts.c (c_common_handle_option): Wall enables
4461         Wvolatile-register-var.
4462         * common.opt: Move Wvolatile-register-var to...
4463         * c.opt: ...here.
4464         
4465 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4467         * common.opt (Wlarger-than=): New.
4468         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
4469         -Wlarger-than=.
4470         * opts.c (common_handle_option): Handle -Wlarger-than=.
4471         * optc-gen.awk: Likewise.
4472         * opth-gen.awk: Likewise.
4473         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
4474         * tree-optimize.c (tree_rest_of_compilation): Likewise.
4475         
4476 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4478         * c-common.c (match_case_to_enum_1): Add appropriate
4479         OPT_W* parameter to warning.
4480         (c_do_switch_warnings): Likewise.
4481         * c-typeck.c (warning_init): Add one more parameter following
4482         'warning' function.
4483         (push_init_level): Update call to warning_init.
4484         (pop_init_level): Likewise.
4485         (add_pending_init): Likewise.
4486         (output_init_element: Likewise.
4488 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4490         PR 28322
4491         * toplev.c (toplev_main): If there are warnings or error, print
4492         errors for ignored options.
4493         * opts.c (ignored_options): New static variable.
4494         (postpone_unknown_option_error): New.
4495         (print_ignored_options): New.
4496         (handle_option): Postpone errors for unknown -Wno-* options.
4497         * opts.h (print_ignored_options): Declare.
4498         
4499 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
4501         * config/mips/mips.md (loadgp_blockage, blockage): Change type
4502         to "ghost".
4504 2008-02-25  Richard Guenther  <rguenther@suse.de>
4506         Revert:
4507         2008-02-25  Richard Guenther  <rguenther@suse.de>
4509         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4510         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4511         (lookup_decl_from_uid): Declare.
4512         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4513         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4514         (decl_for_uid_map): New global hashtable mapping DECL_UID
4515         to the decl tree.
4516         (init_ttree): Allocate it.
4517         (insert_decl_to_uid_decl_map): New helper function.
4518         (make_node_stat): Insert new decls into the map.
4519         (copy_node_stat): Likewise.
4520         (lookup_decl_from_uid): New function.
4521         (print_decl_for_uid_map_statistics): New helper.
4522         (dump_tree_statistics): Call it.
4524         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4525         (referenced_var_iterator): Adjust.
4526         (FOR_EACH_REFERENCED_VAR): Adjust.
4527         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4528         (num_referenced_vars): Adjust.
4529         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4530         (first_referenced_var): Remove.
4531         (end_referenced_vars_p): Likewise.
4532         (next_referenced_var): Likewise.
4533         (referenced_var_iterator_set): New helper function.
4534         * tree-dfa.c (referenced_var_lookup): Adjust.
4535         (referenced_var_check_and_insert): Likewise.
4536         (remove_referenced_var): Likewise.
4537         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4538         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4539         (verify_call_clobbering): Likewise.
4540         (verify_memory_partitions): Likewise.
4541         (init_tree_ssa): Allocate bitmap instead of hashtable for
4542         referenced_vars.
4543         (delete_tree_ssa): Adjust.
4544         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4545         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4546         (compute_tag_properties): Likewise.
4547         (set_initial_properties): Likewise.
4548         (find_partition_for): Likewise.
4549         (update_reference_counts): Likewise.
4550         (dump_may_aliases_for): Likewise.
4551         * tree-ssa-operands.c (add_virtual_operand): Likewise.
4552         (add_call_clobber_ops): Likewise.
4553         (add_call_read_ops): Likewise.
4554         (get_asm_expr_operands): Likewise.
4555         * tree-into-ssa.c (dump_decl_set): Likewise.
4556         (update_ssa): Likewise.
4557         * tree-sra.c (scan_function): Likewise.
4558         (decide_instantiations): Likewise.
4559         (scalarize_parms): Likewise.
4560         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4561         (dsa_named_for): Likewise.
4562         * tree-ssa-structalias.c (update_alias_info): Likewise.
4563         (merge_smts_into): Likewise.
4565 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
4567         PR fortran/29549
4568         * doc/invoke.texi (-fcx-limited-range): Document new option.
4569         * toplev.c (process_options): Handle -fcx-fortran-rules.
4570         * common.opt: Add documentation for -fcx-fortran-rules.
4572 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
4574         PR c/35162
4575         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
4576         actual behaviour and C99.
4577         
4578 2008-02-26  Ben Elliston  <bje@au.ibm.com>
4580         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
4581         (ASM_CPU_POWER6_SPEC): Likewise.
4582         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
4583         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
4584         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
4586 2008-02-25  Richard Guenther  <rguenther@suse.de>
4588         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4589         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4590         (lookup_decl_from_uid): Declare.
4591         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4592         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4593         (decl_for_uid_map): New global hashtable mapping DECL_UID
4594         to the decl tree.
4595         (init_ttree): Allocate it.
4596         (insert_decl_to_uid_decl_map): New helper function.
4597         (make_node_stat): Insert new decls into the map.
4598         (copy_node_stat): Likewise.
4599         (lookup_decl_from_uid): New function.
4600         (print_decl_for_uid_map_statistics): New helper.
4601         (dump_tree_statistics): Call it.
4603         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4604         (referenced_var_iterator): Adjust.
4605         (FOR_EACH_REFERENCED_VAR): Adjust.
4606         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4607         (num_referenced_vars): Adjust.
4608         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4609         (first_referenced_var): Remove.
4610         (end_referenced_vars_p): Likewise.
4611         (next_referenced_var): Likewise.
4612         (referenced_var_iterator_set): New helper function.
4613         * tree-dfa.c (referenced_var_lookup): Adjust.
4614         (referenced_var_check_and_insert): Likewise.
4615         (remove_referenced_var): Likewise.
4616         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4617         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4618         (verify_call_clobbering): Likewise.
4619         (verify_memory_partitions): Likewise.
4620         (init_tree_ssa): Allocate bitmap instead of hashtable for
4621         referenced_vars.
4622         (delete_tree_ssa): Adjust.
4623         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4624         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4625         (compute_tag_properties): Likewise.
4626         (set_initial_properties): Likewise.
4627         (find_partition_for): Likewise.
4628         (update_reference_counts): Likewise.
4629         (dump_may_aliases_for): Likewise.
4630         * tree-ssa-operands.c (add_virtual_operand): Likewise.
4631         (add_call_clobber_ops): Likewise.
4632         (add_call_read_ops): Likewise.
4633         (get_asm_expr_operands): Likewise.
4634         * tree-into-ssa.c (dump_decl_set): Likewise.
4635         (update_ssa): Likewise.
4636         * tree-sra.c (scan_function): Likewise.
4637         (decide_instantiations): Likewise.
4638         (scalarize_parms): Likewise.
4639         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4640         (dsa_named_for): Likewise.
4641         * tree-ssa-structalias.c (update_alias_info): Likewise.
4642         (merge_smts_into): Likewise.
4644 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
4646         PR target/35258
4647         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
4648         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
4649         * alias.h (nonoverlapping_memrefs_p): Likewise.
4651 2008-02-25  Jan Beulich  <jbeulich@novell.com>
4653         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
4654         * config/i386/netware-libgcc.exp: Add __bswap?i2,
4655         __emultls_get_address, __emultls_register_common,
4656         __floatundi?f, and _Unwind_GetIPInfo.
4657         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
4658         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
4659         (gen_regparm_prefix): Likewise.
4660         (i386_nlm_encode_section_info): Sync with
4661         config/i386/winnt.c:i386_pe_encode_section_info().
4662         (i386_nlm_maybe_mangle_decl_assembler_name): New.
4663         i386_nlm_mangle_decl_assembler_name): New.
4664         (netware_override_options): New.
4665         * config/i386/netware.h (netware_override_options): Declare.
4666         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
4667         (i386_nlm_mangle_decl_assembler_name): Declare.
4668         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
4670 2008-02-25  Ben Elliston  <bje@au.ibm.com>
4672         PR other/32948
4673         * c-decl.c (grokdeclarator): Remove unused local variables
4674         `typedef_type' and `type_as_written'.
4675         * bb-reorder.c
4676         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
4677         unused local variable `has_hot_blocks'.
4678         (fix_crossing_conditional_branches): Remove unused local variable
4679         `prev_bb'.
4680         
4681 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
4683         PR middle-end/19984
4684         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
4685         using DEF_C99_BUILTIN.
4686         (BUILT_IN_NANF): Ditto.
4687         (BUILT_IN_NANL): Ditto.
4689 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
4690             Revital Eres  <eres@il.ibm.com>
4692         * modulo-sched.c (calculate_must_precede_follow): Address TODO
4693         regarding the order of two dependent insns in the same row.
4695 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
4697         * stor-layout.c (layout_decl): Do not bump the alignment of a
4698         bit-field to more than byte alignment if it is packed.
4700 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
4702         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
4703         e300c2 and e300c3.
4705 2008-02-24  Diego Novillo  <dnovillo@google.com>
4707         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
4709         PR 33738
4710         * tree-vrp.c (vrp_evaluate_conditional): With
4711         -Wtype-limits, emit a warning when comparing against a
4712         constant outside the natural range of OP0's type.
4713         * c.opt (Wtype-limits): Move ...
4714         * common.opt (Wtype-limits): ... here.
4716 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
4718         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
4719         * config/rs6000/e300c2c3.md: New file.
4720         * config/rs6000/rs6000.c (processor_costs): Add new costs for
4721         e300c2 and e300c3.
4722         (rs6000_override_options): Add e300c2 and e300c3 cases to
4723         processor_target_table. Do not allow usage of Altivec or Spe
4724         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
4725         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
4726         * config/rs6000/rs6000.h (processor_type): Add
4727         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
4728         (ASM_CPU_SPEC): Add e300c2 and e300c3.
4729         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
4730         and ppce300c3. Include e300c2c3.md.
4732 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
4734         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
4735         instead of TARGET_STRICT_ALIGN.
4737 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
4739         * explow.c (memory_address): Assert that the generated address is
4740         valid.
4742 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
4744         PR target/25477
4745         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
4746         * config/darwin-ppc-ldouble-patch.def: New file.
4747         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
4748         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
4749         SUBTARGET_INIT_BUILTINS if defined.
4750         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
4751         New functions.
4753 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4755         PR rtl-opt/33512
4756         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
4757         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
4759 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4761         PR pch/35027
4762         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
4763         file" warning condtional on -Winvalid-PCH.
4765 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
4767         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
4769 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
4771         PR target/22076
4772         PR target/34256 
4773         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
4774         prevent reload from using MMX registers.
4775         (*mov<mode>_internal): Ditto.
4776         (*movv2sf_internal_rex64): Ditto.
4777         (*movv2sf_internal): Ditto.
4779 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4781         PR documentation/31569
4782         * doc/install.texi2html: Use makeinfo --no-number-sections.
4784 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
4786         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
4787         ensure that we can address an entire entity > 8 bytes.  Don't
4788         generate reg+reg addressing for such data.
4790 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
4792         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
4793         strings when optimizing for size, unless the target cares about
4794         alignment.
4796 2008-02-22  Tom Tromey  <tromey@redhat.com>
4798         * regclass.c (current_pass): Remove declaration.
4800 2008-02-22  Anatoly Sokolov <aesok@post.ru>
4802         * config/avr/libgcc.S (__RAMPZ__): Define.
4803         (__do_copy_data): Add for devices with 128KB code memory.
4805 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
4807         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4808         Use spe_abi.
4809         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4811 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
4813         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
4814         GENNONACR_REGS.
4816 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4818         PR c/19999
4819         * c-typeck.c (build_binary_op): Warn about floating point
4820         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
4822 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
4824         PR target/34526
4825         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
4826         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
4827         add vrsave.
4828         (rs6000_override_options): Set altivec_abi as default, not override,
4829         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
4830         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
4831         is used; use new member spe_abi.
4832         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
4833         spe_abi and altivec_abi.
4835 2008-02-22  Tomas Bily  <tbily@suse.cz>
4837         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
4839 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4841         PR bootstrap/35273
4842         * config.build (build_file_translate): Set to `CMD //c' only if
4843         it works.
4844         * Makefile.in (build_file_translate): Improve comment.
4846 2008-02-21  Jan Hubicka  <jh@suse.cz>
4848         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
4849         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
4850         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
4852 2008-02-21  Michael Matz  <matz@suse.de>
4854         PR target/35264
4855         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
4857 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
4859         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
4860         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
4861         as insn constraint.
4862         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
4863         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
4864         SSE_VEC_FLOAT_MODE_P as insn constraint.
4865         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
4866         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
4867         sse4a_movntdf using MODEF mode iterator.
4868         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
4869         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
4870         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
4871         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
4872         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
4873         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
4874         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
4876 2008-02-21  Richard Guenther  <rguenther@suse.de>
4878         * tree.def (PAREN_EXPR): New tree code.
4879         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
4880         and PAREN_EXPR.
4881         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
4882         * expr.c (expand_expr_real_1): Likewise.
4883         * tree-inline.c (estimate_num_insns_1): Likewise.
4884         * tree-complex.c (expand_complex_move): Likewise.
4885         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
4886         as plain x.
4888 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
4890         PR target/35225
4891         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
4893 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
4895         PR target/35190
4896         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
4898         * config/sh/sh.c (find_barrier): Don't go past
4899         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
4901 2008-02-20  DJ Delorie  <dj@redhat.com>
4903         * config/h8300/h8300.md (insv): Force source operand to be a register.
4905         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
4906         as a jump, not as a plain insn.
4907         
4908 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
4910         * doc/invoke.texi (Warning Options): Add new option
4911         -Wframe-larger-than=.
4912         (-Wframe-larger-than): Document.
4914         * flags.h (warn_frame_larger_than, frame_larger_than_size):
4915         Add declarations for new option variables.
4917         * final.c (final_start_function): Check the frame size
4918         before emission and issue a Wframe-larger-than warning.
4920         * opts.c (warn_frame_larger_than, frame_larger_than_size):
4921         Add definitions for new option variables.
4922         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
4924         * common.opt (Wframe-larger-than=): New option.
4926 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
4928         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
4929         (<sse>_div<mode>3): Ditto.
4930         (<sse>_vmdiv<mode>3): Ditto.
4931         (<sse>_vmsqrt<mode>2): Ditto.
4932         (*smax<mode>3): Ditto.
4933         (sse5_frcz<mode>2): Ditto.
4934         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
4935         as insn constraint.
4937 2008-02-20  Richard Guenther  <rguenther@suse.de>
4939         PR middle-end/35265
4940         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
4941         be happy with INTEGRAL_TYPE_P.
4943 2008-02-20  Richard Guenther  <rguenther@suse.de>
4945         * fold-const.c (split_tree): Associate floatig-point expressions
4946         if flag_associative_math is set.
4948 2008-02-20  Richard Guenther  <rguenther@suse.de>
4950         * tree.h (fold_real_zero_addition_p): Declare.
4951         * fold-const.c (fold_real_zero_addition_p): Export.
4952         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
4953         floating-point operations with zero and one.
4955 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
4957         * doc/install.texi: Correct references to CFLAGS, replacing them
4958         with BOOT_CFLAGS.  Document flags used during bootstrap for
4959         target libraries.
4960                                 
4961 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
4963         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
4964         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
4965         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
4966         insn constraint.
4967         (smin<mode>3): Ditto from similar patterns.
4968         (smax<mode>3): Ditto.
4969         (*ieee_smin<mode>3): Ditto.
4970         (*ieee_smax<mode>3): Ditto.
4971         * config/i386/sse.md (sse): New mode attribute.
4972         (mov<mode>): Macroize expander from movv4sf and movv2df using
4973         SSEMODEF2P mode iterator.
4974         (<sse>_movnt<mode>): Ditto from similar patterns. Use
4975         SSE_VEC_FLOAT_MODE_P as insn constraint.
4976         (storent<mode>): Ditto.
4977         (storent<mode>): Macroize expander from storentsf and storentdf using
4978         MODEF mode iterator.
4979         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
4980         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
4981         (abs<mode>2): Ditto from similar patterns.
4982         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
4983         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
4984         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
4985         (<sse>_vmsqrt<mode>2): Ditto.
4986         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
4987         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
4988         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
4989         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
4990         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
4991         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
4992         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
4993         insn constraint.
4994         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
4995         iterator and SSE_FLOAT_MODE_P as insn constraint.
4996         (<sse>_ucomi): Ditto from similar patterns.
4997         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
4998         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
4999         SSE_VEC_FLOAT_MODE_P as insn constraint.
5000         (vcond<mode>): Ditto from similar patterns.
5001         (and<mode>3, *and<mode>3): Ditto.
5002         (<sse>_nand<mode>3): Ditto.
5003         (ior<mode>3, *ior<mode>3): Ditto.
5004         (xor<mode>3, *xor<mode>3): Ditto.
5005         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
5006         iterator and SSE_FLOAT_MODE_P as insn constraint.
5007         (*nand<mode>3): Ditto from similar patterns.
5008         (*ior<mode>3): Ditto.
5009         (*xor<mode>3): Ditto.
5011 2008-02-20  Ira Rosen  <irar@il.ibm.com>
5013         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
5014         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
5015         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
5017 2008-02-19  Jan Hubicka  <jh@suse.cz>
5019         * predict.c (tree_bb_level_predictions): Remove variable next
5020         mistakely introduced by previous commit.
5022 2008-02-19  Jan Hubicka  <jh@suse.cz>
5024         * predict.c (predict_paths_leading_to): Rewrite.
5025         (predict_paths_for_bb): New.
5026         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
5028 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5030         PR bootstrap/35218
5031         * Makefile.in (build_file_translate): New.
5032         (gcc-vers.texi): Use it for translating $(abs_srcdir).
5033         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
5034         * configure.ac (build_file_translate): Substitute it.
5035         * configure: Regenerate.
5037 2008-02-19  Jan Hubicka  <jh@suse.cz>
5039         PR rtl-optimization/34408
5040         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
5041         invalid sharing.
5043 2008-02-19  Jan Hubicka  <jh@suse.cz>
5045         PR middle-end/28779
5046         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
5047         call_expr.
5049 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
5051         PR Ada/35186
5052         * config/i386/i386-modes.def: Revert the last DI alignment
5053         change until Ada people can look into it.
5055 2008-02-19  Nick Clifton  <nickc@redhat.com>
5057         * opts.c (print_specific_help): Fix typo in --help text.
5059 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
5061         PR target/35239
5062         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
5063         32-bit inline asm without asm alternatives for host GCC < 3.0.
5065 2008-02-19  Richard Guenther  <rguenther@suse.de>
5067         PR tree-optimization/34989
5068         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
5069         Allow propagation to INDIRECT_REF if we can simplify only.
5071 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5073         * c-common.c (warn_for_collisions_1): Use appropriate option when
5074         warning.
5076 2008-02-19  Nick Clifton  <nickc@redhat.com>
5078         PR other/31349
5079         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
5080         (handle_options): Fix indentation.
5081         (print_filtered_help): If no language-specific options were
5082         displayed tell the user how to list all the options supported by
5083         the language's front-end.
5084         (print_specific_help): Fix indentation and remove duplicate line.
5085         (common_handle_option): Handle the -v option.
5086         For --help enable the display of undocumented options if the -v
5087         switch has been included on the command line.
5088         For --help= check for overlaps in the arguments between the option
5089         classes and the language names and issue a warning when they
5090         cannot be disambiguated.
5091         * c.opt (v): Pass on to the common option handler.
5093 2008-02-19  Revital Eres  <eres@il.ibm.com> 
5095         * modulo-sched.c (sms_schedule): Change dump message when
5096         create_ddg function fails.
5097         (try_scheduling_node_in_cycle): Rename row to cycle.
5098         (print_partial_schedule): Rename CYCLE to ROW.
5100 2008-02-19  Christian Bruel  <christian.bruel@st.com>
5101             Zdenek Dvorak  <ook@ucw.cz>
5103         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
5105 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
5107         PR target/33555
5108         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
5109         (*x86_movdicc_0_m1_se): Ditto.
5111 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
5113         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
5114         (CMPtype): Define as __gcc_CMPtype.
5115         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
5116         (CMPtype): Define as __gcc_CMPtype.
5118 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
5120         Support valgrind 3.3 for --enable-checking=valgrind.
5121         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
5122         here.
5123         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
5124         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
5125         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
5126         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
5127         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
5128         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
5129         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
5130         respectively.
5131         * ggc-zone.c: Similar.
5132         * ggc-page.c: Similar.
5134 2008-02-19  Paul Brook  <paul@codesourcery.com>
5136         PR target/35071
5137         * config/arm/ieee754-df.S: Fix do_it typo.
5138         * config/arm/ieee754-sf.S: Fix do_it typo.
5140 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5142         PR target/35189
5143         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
5144         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
5145         (OPTION_MASK_ISA_SSE_SET): Likewise.
5146         (OPTION_MASK_ISA_SSE2_SET): Likewise.
5147         (OPTION_MASK_ISA_SSE3_SET): Likewise.
5148         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
5149         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
5150         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
5151         (OPTION_MASK_ISA_SSE4_SET): Likewise.
5152         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
5153         (OPTION_MASK_ISA_SSE5_SET): Likewise.
5154         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
5155         (OPTION_MASK_ISA_MMX_UNSET): Updated.
5156         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
5157         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
5158         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
5159         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
5160         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
5161         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
5162         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
5163         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
5164         (OPTION_MASK_ISA_SSE4): Removed.
5165         (ix86_handle_option): Turn on bits in ix86_isa_flags and
5166         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
5167         (override_options): Don't turn on implied SSE/MMX bits in
5168         ix86_isa_flags.
5170 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5172         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
5173         32bit host.
5175 2008-02-18  Joey Ye  <joey.ye@intel.com>
5177         PR middle-end/34921
5178         * tree-nested.c (insert_field_into_struct): Set type alignment
5179         to field alignment if the former is less than the latter.
5181 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
5183         * BASE-VER: Set to 4.4.0.
5185 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5187         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
5188         * doc/cfg.texi: Likewise.
5189         * doc/extend.texi: Likewise.
5190         * doc/gty.texi: Likewise.
5191         * doc/invoke.texi: Likewise.
5192         * doc/loop.texi: Likewise.
5193         * doc/md.texi: Likewise.
5194         * doc/passes.texi: Likewise.
5195         * doc/rtl.texi: Likewise.
5196         * doc/sourcebuild.texi: Likewise.
5197         * doc/tm.texi: Likewise.
5198         * doc/tree-ssa.texi: Likewise.
5200 2008-02-17  Richard Guenther  <rguenther@suse.de>
5202         PR middle-end/35227
5203         * tree-complex.c (init_parameter_lattice_values): Handle parameters
5204         without default definition.
5206 2008-02-17  Richard Guenther  <rguenther@suse.de>
5208         PR tree-optimization/35231
5209         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
5210         if A | B != 1.
5212 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
5214         Revert:
5215         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
5216         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5217         libgcc_cmp_return mode.
5219 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5221         PR c/28368
5222         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
5224 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
5226         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
5227         multilibs.
5229 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5231         * doc/c-tree.texi: Use `@.' where appropriate.
5232         * doc/extend.texi: Likewise.
5233         * doc/install.texi: Likewise.
5234         * doc/invoke.texi: Likewise.
5235         * doc/loop.texi: Likewise.
5236         * doc/makefile.texi: Likewise.
5237         * doc/md.texi: Likewise.
5238         * doc/passes.texi: Likewise.
5239         * doc/standards.texi: Likewise.
5240         * doc/tm.texi: Likewise.
5242 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
5244         PR middle-end/35196
5245         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
5246         in entry_bb.
5247         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
5248         rather than in entry_bb.
5250 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
5252         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5253         libgcc_cmp_return mode.
5255 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
5257         PR middle-end/35130
5258         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
5259         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
5261 2008-02-15  Richard Guenther  <rguenther@suse.de>
5262             Zdenek Dvorak  <ook@ucw.cz>
5264         PR tree-optimization/35164
5265         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
5266         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
5267         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5268         Only propagate addresses which do not have abnormal SSA_NAMEs
5269         in their operands.
5271 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
5273         PR target/35088
5274         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
5276 2008-02-15  Jan Hubicka  <jh@suse.cz>
5278         PR middle-end/35149
5279         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
5281 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
5283         PR middle-end/34621
5284         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
5285         when calculating alignment_pad.
5287 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
5289         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
5290         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
5291         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
5292         and STACK_BOUNDARY define.
5294 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
5296         PR preprocessor/35061
5297         * c-pragma.c (handle_pragma_pop_macro): Check that
5298         pushed_macro_table has been allocated.
5300 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
5302         PR middle-end/35136
5303         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
5304         (force_gimple_operand): Likewise.
5305         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
5306         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
5307         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
5308         (find_interesting_uses_address): Check addressability and alignment
5309         of the base expression only after substituting bases of IVs into it.
5311 2008-02-14  Michael Matz  <matz@suse.de>
5313         PR target/34930
5314         * function.c (instantiate_virtual_regs_in_insn): Reload address
5315         before falling back to reloading the whole operand.
5317 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
5319         * config/s390/s390.c (s390_mainpool_start): Emit the pool
5320         before the first section switch note.
5322 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5324         * doc/bugreport.texi: Update copyright years.
5325         * doc/c-tree.texi: Likewise.
5326         * doc/cfg.texi: Likewise.
5327         * doc/cpp.texi: Likewise.
5328         * doc/cppinternals.texi: Likewise.
5329         * doc/fragments.texi: Likewise.
5330         * doc/frontends.texi: Likewise.
5331         * doc/gcc.texi: Likewise.
5332         * doc/gty.texi: Likewise.
5333         * doc/hostconfig.texi: Likewise.
5334         * doc/implement-c.texi: Likewise.
5335         * doc/libgcc.texi: Likewise.
5336         * doc/loop.texi: Likewise.
5337         * doc/makefile.texi: Likewise.
5338         * doc/options.texi: Likewise.
5339         * doc/passes.texi: Likewise.
5340         * doc/rtl.texi: Likewise.
5341         * doc/sourcebuild.texi: Likewise.
5342         * doc/standards.texi: Likewise.
5343         * doc/tree-ssa.texi: Likewise.
5344         * doc/trouble.texi: Likewise.
5346         * doc/extend.texi: Use @: or add comma where appropriate.
5347         * doc/invoke.texi: Likewise.
5348         * doc/tm.texi: Likewise.
5350 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
5352         PR target/34393
5353         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
5354         to a reg.
5356 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
5358         * doc/md.texi (clz, ctz): Add reference.
5359         * doc/rtl.texi (clz, ctz): Likewise.
5361 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5363         PR other/35148
5364         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
5365         srcdir.
5367 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
5369         * config/s390/s390.c (struct constant_pool): New field
5370         emit_pool_after added.
5371         (s390_mainpool_start): Set the emit_pool_after flag according
5372         to the section switch notes.
5373         (s390_mainpool_finish): Consider emit_pool_after when emitting
5374         the literal pool at the end of the function.
5375         (s390_chunkify_start): Force literal pool splits at section
5376         switch notes.
5378 2008-02-13  Michael Matz  <matz@suse.de>
5380         PR debug/35065
5381         * var-tracking.c (clobber_variable_part): Correctly traverse the
5382         list.
5384 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5386         PR 29673
5387         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
5388         Add -fdump-ipa-inline.
5389         * tree-dump.c (dump_files): Remove tree-inlined dump.
5390         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
5391         
5392 2008-02-12  Richard Guenther  <rguenther@suse.de>
5394         PR tree-optimization/35171
5395         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
5396         default defs.
5398 2008-02-12  Richard Guenther  <rguenther@suse.de>
5400         PR middle-end/35163
5401         * fold-const.c (fold_widened_comparison): Use get_unwidened in
5402         value-preserving mode.  Disallow final truncation.
5404 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
5406         PR middle-end/35136
5407         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
5408         code from here to...
5409         (force_gimple_operand): ...here.
5411 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
5413         PR c++/35144
5414         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
5415         non-compatible pointers.
5416         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
5417         different FIELD_DECLs, try harder by comparing field offsets, sizes
5418         and types.
5420         PR inline-asm/35160
5421         * function.c (match_asm_constraints_1): Don't replace the same input
5422         multiple times.
5424 2008-02-12  Anatoly Sokolov <aesok@post.ru>
5426         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
5427         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
5428         (expand_epilogue): Restore RAMPZ register.
5429         * config/avr/avr.md (RAMPZ_ADDR): New constant.
5431 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
5433         * config/i386/cygwin.asm: (__alloca): Correct calling
5434         convention and alignment.
5435         (__chkstk): Force 8 byte stack alignment.
5437 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
5438             Richard Guenther  <rguenther@suse.de>
5440         PR tree-optimization/33992
5441         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
5442         the zero we compare against.
5444 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
5446         PR libfortran/35063
5447         * gthr-win32.h (__gthread_mutex_destroy_function): New function
5448         to CloseHandle after unlocking to prevent accumulation of handle
5449         count.
5451 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5453         PR middle_end/34150
5454         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
5455         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
5456         and update LABEL_NUSES during and after reload.
5458 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
5460         PR middle-end/34627
5461         * combine.c (simplify_if_then_else): Make sure the comparison is
5462         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
5464 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
5466         PR bootstrap/35051
5467         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
5468         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
5469         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
5470         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
5471         * tree.h (get_type_static_bounds): Likewise.
5473 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5475         * doc/invoke.texi (Option Summary, C++ Dialect Options)
5476         (Objective-C and Objective-C++ Dialect Options, Warning Options):
5477         Make -Wfoo language annotations match what the compiler outputs.
5479 2008-02-08  Sa Liu  <saliu@de.ibm.com>
5481         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
5482         intrinsics spu_convts, spu_convtu, spu_convtf.
5483         * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
5485 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
5487         * doc/extend.texi (Function Attributes) <noinline>: Mention
5488         asm ("") as method to keep calls.
5490 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5492         PR other/32754
5493         * doc/options.texi (Options): Replace references to opts.sh with
5494         optc-gen.awk.
5495         * opts-common.c: Likewise.
5496         * optc-gen.awk: Likewise.
5497         
5498 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
5500         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
5502 2008-02-07  Richard Henderson  <rth@redhat.com>
5504         PR rtl-opt/33410
5505         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
5506         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
5507         funny mode.
5509 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
5511         PR tree-optimization/35085
5512         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
5513         for operand entry oe2 in addition to operand entry oe3 in order to
5514         expose more opportunities for vectorizer sum reduction.
5516 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5518         PR other/35107
5519         * Makefile.in (LIBS): Remove $(GMPLIBS).
5520         (cc1-dummy, cc1): Add $(GMPLIBS).
5522 2008-02-06  Jan Hubicka  <jh@suse.cz>
5524         PR target/23322
5525         * i386.md (moddf_integer): Do not produce partial memory stalls for
5526         targets where it hurts.
5528 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
5530         PR target/35083
5531         * optabs.c (expand_float): Do not check for decimal modes when
5532         expanding unsigned integer through signed conversion.
5534 2008-02-06  Nick Clifton  <nickc@redhat.com>
5536         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
5537         inside the clobber with a match_operand and duplicated operand
5538         number in the constraint.
5539         (ineqbranchsi): Delete redundant comment.
5541 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
5543         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
5544         builtin_define ("__USE_INIT_FINI__").
5545         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
5546         -msx multilibs.
5547         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
5549 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5551         PR documentation/30330
5552         * doc/invoke.texi (C++ Dialect Options)
5553         (Objective-C and Objective-C++ Dialect Options, Warning Options):
5554         For each warning option -Wfoo that allows -Wno-foo, ensure both
5555         -Wfoo and -Wno-foo are listed in the option index.  Fix index
5556         entry of -Wswitch-default, index -Wnormalized= including the
5557         `=', and -Wlarger-than-@var{len} including @var{len}.
5559 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
5561         * config/i386/i386.md (floatunssisf2): Use
5562         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
5563         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
5564         Macroize expander using MODEF mode iterator.
5566 2008-02-05  Diego Novillo  <dnovillo@google.com>
5568         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
5570         PR 33738
5571         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
5573 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5575         PR other/35070
5576         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
5578 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
5580         PR target/35084
5581         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
5582         to indicate if a message should be generated.
5583         (init_cumulative_args): Updated.
5584         (function_value_32): Likewise.
5586 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
5588         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
5590 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
5592         PR target/35083
5593         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
5594         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
5596 2008-02-04  Diego Novillo  <dnovillo@google.com>
5598         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
5600         PR 33738
5601         * tree-vrp.c (vrp_evaluate_conditional): With
5602         -Wtype-limits, emit a warning when comparing against a
5603         constant outside the natural range of OP0's type.
5605 2008-02-04  Richard Guenther  <rguenther@suse.de>
5607         PR middle-end/33631
5608         * expr.c (count_type_elements): Give for unions instead of
5609         guessing.
5611 2008-02-04  Richard Guenther  <rguenther@suse.de>
5613         PR middle-end/35043
5614         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
5615         to TYPE_DOMAINs base type instead of using bitsizetype here.
5617 2008-02-03  Jason Merrill  <jason@redhat.com>
5619         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
5621 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5623         PR other/29972
5624         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
5625         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
5626         (RS/6000 and PowerPC Options): Fix typos and markup.
5627         * doc/passes.texi (Tree-SSA passes): Likewise.
5629 2008-02-02  Michael Matz  <matz@suse.de>
5631         PR target/35045
5632         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
5633         from record_last_reg_set_info.
5634         (record_last_reg_set_info): Take an RTX argument, iterate over all
5635         constituent hardregs.
5636         (record_last_set_info, record_opr_changes): Change calls to
5637         new signature or to record_last_reg_set_info_regno.
5639 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
5641         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
5643 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
5645         PR rtl-optimization/34773
5646         * reg-notes.def (EQUAL): Mention significance of combination of
5647         REG_EQUAL and REG_RETVAL.
5648         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
5649         insn that has a REG_RETVAL.
5651 2008-02-01  Roger Sayle  <roger@eyesopen.com>
5653         PR bootstrap/33781
5654         * configure.ac (--enable-fixed-point): Disable unless explicitly
5655         requested on IRIX.
5656         * configure: Regenerate.
5658 2008-02-01  Richard Guenther  <rguenther@suse.de>
5660         PR other/35042
5661         * invoke.texi (-finline-limit): Remove no longer true parts
5662         of the documentation.  Note that there is no default value.
5664 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
5665             Mark Mitchell  <mark@codesourcery.com>
5666             Ben Elliston  <bje@au.ibm.com>
5668         PR c/29326
5669         * doc/extend.texi (Other Builtins): Document.
5671 2008-01-31  Tom Browder <tom.browder@gmail.com>
5673         * doc/c-tree.texi (Types): Fix grammar.
5674         (Expression trees): Ditto.
5675         * doc/passes.texi (Tree-SSA passes): Ditto.
5676         
5677         * doc/configterms.texi (Configure Terms): Fix typo.
5678         * doc/cpp.texi (Common Predefined Macros): Ditto.
5679         * doc/md.texi (Machine Constraints): Ditto.
5680         
5681         * doc/makefile.texi (Makefile): Add comma.
5683 2008-01-31  Tom Browder  <tom.browder@gmail.com>
5684             Gerald Pfeifer  <gerald@pfeifer.com>
5685         
5686         * doc/sourcebuild.texi (Front End): Remove references to CVS
5687         and CVSROOT/modules.
5688         (Texinfo Manuals): Replace reference to CVS by one to SVN.
5689         (Back End): Remove reference to CVS.
5691 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
5693         PR target/34900
5694         * config/mips/mips.c (gen_load_const_gp): New function, taking a
5695         comment from...
5696         (mips16_gp_pseudo_reg): ...here.
5697         * config/mips/mips.md (load_const_gp): Replace with...
5698         (load_const_gp_<mode>): ...this :P-based insn.
5700 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5702         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
5703         options. Minor fixes.
5704         (-std): Move reference to standards closer to where language
5705         standards are first mentioned.
5706         
5707 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
5709         PR rtl-optimization/34995
5710         * reload.c (alternative_allows_const_pool_ref): Take an rtx
5711         parameter and return a bool.  If the rtx parameter is nonnull,
5712         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
5713         (find_reloads): Update call accordingly.  Pass the new operand
5714         if it needed no address reloads, otherwise pass null.
5716 2008-01-30  Richard Henderson  <rth@redhat.com>
5718         PR c/34993
5719         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
5720         for unbounded arrays.
5722 2008-01-30  Silvius Rus  <rus@google.com>
5724         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
5726 2008-01-30  Jan Hubicka  <jh@suse.cz>
5728         PR target/34982
5729         * i386.c (init_cumulative_args): Use real function declaration when
5730         calling locally.
5732 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
5734         PR rtl-optimization/34998
5735         * global.c (build_insn_chain): Treat non-subreg_lowpart
5736         SUBREGs of pseudos as clobbering all the words covered by the
5737         SUBREG, not just all the bytes.
5738         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
5739         original df_ref rather than an extract parameter.
5740         (global_conflicts): Update call accordingly.
5742 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
5744         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
5745         the overflow check to make it easier to read.
5746         (__fixtfdi): Change the type of the ll member in union
5747         long_double to UDItype_x.
5749 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
5751         PR middle-end/34969
5752         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
5753         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
5754         * tree-inline.c (fold_marked_statements): Call
5755         cgraph_update_edges_for_call_stmt if folding a call statement.
5756         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
5757         debug_generic_stmt calls, reset it back afterwards.
5759         PR c/35017
5760         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
5761         static decls.
5762         * c-typeck.c (build_external_ref): Don't pedwarn about
5763         static vars in current function's scope.
5765 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
5767         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
5769 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
5771         PR c/35002
5772         * ipa-struct-reorg.c: Fix spelling.
5773         * params.def: Ditto.
5775 2008-01-29  Richard Guenther  <rguenther@suse.de>
5777         PR middle-end/35006
5778         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
5779         field.
5780         * tree-inline.c (remap_type): Increment remapping_type_depth
5781         around remapping types.
5782         (copy_body_r): Only add referenced variables if they are referenced
5783         from code, not types.
5785 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
5787         PR c++/34055
5788         PR c++/34103
5789         PR c++/34219
5790         PR c++/34606
5791         PR c++/34753
5792         PR c++/34754
5793         PR c++/34755
5794         PR c++/34919
5795         PR c++/34961
5796         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
5797         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
5799 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
5801         PR target/34412
5802         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
5803         pointer for tiny stack.
5805 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
5807         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
5809 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
5811         * config/vx-common.h: Fix typo in comment.
5813 2008-01-28  Ian Lance Taylor  <iant@google.com>
5815         PR c++/34862
5816         PR c++/33407
5817         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
5818         coalesce pointers if they have different DECL_NO_TBAA_P values.
5819         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
5820         between variables with different DECL_NO_TBAA_P values.
5822 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
5824         PR 31535
5825         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
5826         are not legitimate small data references on SPE targets.
5828 2008-01-28  David Daney  <ddaney@avtrex.com>
5830         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
5832 2008-01-28  David Daney  <ddaney@avtrex.com>
5834         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
5836 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
5838         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
5839         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
5840         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
5841         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
5842         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5843         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
5844         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
5845         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
5847 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
5849         * basic-block.h (condjump_equiv_p): Fix comment.
5851 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
5853         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
5854         print_generic_stmt_indented): Fix comment.
5856 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
5858         * configure.ac (__stack_chk_fail): Add detecion for availability
5859         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
5860         * configure: Regenerate.
5862 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
5864         PR middle-end/34688
5865         * final.c (output_addr_const): Handle TRUNCATE.
5867 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
5869         PR target/34711
5870         * tree-ssa-loop-ivopts.c (comp_cost): New type.
5871         (zero_cost, infinite_cost): New constants.
5872         (struct cost_pair): Change type of cost to comp_cost.
5873         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
5874         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
5875         New functions.
5876         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
5877         split_address_cost, ptr_difference_cost, difference_cost,
5878         get_computation_cost_at, get_computation_cost,
5879         determine_use_iv_cost_generic, determine_use_iv_cost_address,
5880         determine_use_iv_cost_condition, determine_use_iv_costs,
5881         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
5882         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
5883         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
5884         Change type of cost to comp_cost.
5885         (determine_iv_cost): Increase cost of non-original ivs, instead
5886         of decreasing the cost of original ones.
5887         (get_address_cost): Indicate the complexity of the addressing mode 
5888         in comp_cost.
5889         (try_add_cand_for): Prefer using ivs not specific to some object.
5890         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
5892 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
5893             Janis Johnson  <janis187@us.ibm.com>
5895         PR target/34814
5896         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
5897         (TARGET_INSTANTIATE_DECLS): Likewise.
5898         * target.h (expand_to_rtl_hook): New target hook.
5899         (instantiate_decls): Likewise.
5900         * function.c (instantiate_decl): Make non-static.  Rename to...
5901         (instantiate_decl_rtl): ... this.
5902         (instantiate_expr): Use instantiate_decl_rtl.
5903         (instantiate_decls_1): Likewise.
5904         (instantiate_decls): Likewise.
5905         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
5906         * function.h (instantiate_decl_rtl): Add prototype.
5907         * cfgexpand.c (target.h): New include.
5908         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
5909         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
5910         (TARGET_INSTANTIATE_DECLS): Likewise.
5911         (TARGET_INITIALIZER): New target hooks added.
5912         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
5913         New prototype.
5914         * config/rs6000/rs6000.c (tree-flow.h): New include.
5915         (machine_function): Add sdmode_stack_slot field.
5916         (rs6000_alloc_sdmode_stack_slot): New function.
5917         (rs6000_instantiate_decls): Likewise.
5918         (rs6000_secondary_memory_needed_rtx): Likewise.
5919         (rs6000_check_sdmode): Likewise.
5920         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
5921         (TARGET_INSTANTIATE_DECLS): Likewise.
5922         (rs6000_hard_regno_mode_ok): Allow SDmode.
5923         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
5924         (rs6000_emit_move): Handle SDmode.
5925         (function_arg_advance): Likewise.
5926         (function_arg): Likewise.
5927         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
5928         SDmode var args for 32-bit compiles.
5929         (rs6000_secondary_reload_class): Handle SDmode.
5930         (rs6000_output_function_epilogue): Likewise.
5931         (rs6000_function_value): Simplify if statement.
5932         (rs6000_libcall_value): Likewise.
5933         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
5934         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
5935         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
5936         (movsd_hardfloat): New define_insn.
5937         (movsd_softfloat): Likewise.
5938         (movsd_store): Likewise.
5939         (movsd_load): Likewise.
5940         (extendsddd2): Likewise.
5941         (extendsdtd2): Likewise.
5942         (truncddsd2): Likewise.
5943         (movdd_hardfloat64): Fixup comment.
5944         (UNSPEC_MOVSD_LOAD): New constant.
5945         (UNSPEC_MOVSD_STORE): Likewise.
5947 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
5949         PR c++/34965
5950         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
5951         TRUTH_XOR_EXPR.
5952         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
5953         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
5954         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
5955         and TRUTH_XOR_EXPR.
5957 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
5959         PR target/34794
5960         * config.gcc: Separate AIX 5.3 from AIX 6.1.
5961         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5962         __LONGDOUBLE128 too.
5963         * config/rs6000/aix61.h: New file.
5965 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
5967         PR rtl-optimization/34959
5968         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
5969         popcount and parity rtxes the same mode as their operand.
5970         Truncate or extend the result to the return value's mode
5971         if necessary.
5973 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
5975         PR target/34981
5976         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
5977         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
5978         to GOT_VERSION_REGNUM.
5979         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
5980         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
5981         * config/mips/mips.c (mips_emit_call_insn): New function.
5982         (mips_call_tls_get_addr): Call mips_expand_call directly.
5983         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
5984         emit_call_insn.
5985         (mips16_build_call_stub): Likewise.  Return the call insn or null.
5986         (mips_expand_call): Update the call to mips16_build_call_stub
5987         accordingly and a remove redundant condition.  Assert that MIPS16
5988         stubs do not use lazy binding.  Use mips_emit_call_insn and return
5989         the call insn.
5990         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
5991         TARGET_USE_GOT.
5992         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
5993         (mips_avoid_hazard): Remove hazard_set handling.
5994         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
5995         (UNSPEC_RESTORE_GP): ...this.
5996         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
5997         (FAKE_CALL_REGNO): Rename to...
5998         (GOT_VERSION_REGNUM): ...this.
5999         (type): Add "ghost" value.  Add an associated insn reservation.
6000         (hazard_set): Remove.
6001         (exception_receiver): Rename to...
6002         (restore_gp): ...this and update the unspec identifier accordingly.
6003         (exception_receiver, nonlocal_got_receiver): New expanders.
6004         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
6005         FAKE_CALL_REGNO.  Remove hazard_set attribute.
6006         (set_got_version, update_got_version): New patterns.
6008 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
6010         PR target/34970
6011         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
6013 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
6015         PR other/31955
6016         * doc/install.texi2html: Generate gcc-vers.texi.
6018 2008-01-25  DJ Delorie  <dj@redhat.com>
6020         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6022 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
6024         * config/c4x: Remove directory.
6025         * config.gcc (crx-*, mt-*): Mark obsolete.
6026         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
6027         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
6028         sh-*-rtemscoff*): Remove cases.
6029         * defaults.h (C4X_FLOAT_FORMAT): Remove.
6030         * real.c (encode_c4x_single, decode_c4x_single,
6031         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
6032         c4x_extended_format): Remove.
6033         * real.h (c4x_single_format, c4x_extended_format): Remove.
6034         * doc/extend.texi (interrupt, naked): Remove mention of attributes
6035         on C4x.
6036         (Pragmas): Remove comment about c4x pragmas.
6037         * doc/install.texi (c4x): Remove target-specific instructions.
6038         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
6039         * doc/md.texi (Machine Constraints): Remove C4x documentation.
6040         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
6041         refer to C4x source files as examples.
6042         (C4X_FLOAT_FORMAT): Remove documentation.
6044 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
6046         * config/bfin/bfin.c (override_options): Reorder tests so that
6047         flag_pic gets enabled for -msep-data.
6049 2008-01-25  Richard Guenther  <rguenther@suse.de>
6051         PR middle-end/32244
6052         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
6053         to its bitfield precision if required.
6055 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
6057         PR middle-end/33880
6058         * tree-nested.c (walk_omp_for): New function.
6059         (convert_nonlocal_reference, convert_local_reference): Call
6060         walk_omp_for on OMP_FOR.
6061         (convert_call_expr): Call walk_body on OMP_FOR's
6062         OMP_FOR_PRE_INIT_BODY.
6064 2008-01-25  Richard Guenther  <rguenther@suse.de>
6066         PR tree-optimization/34966
6067         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
6068         default defs and PHI_NODEs we have to insert after the
6069         defining statement.
6071 2008-01-24  Nick Clifton  <nickc@redhat.com>
6073         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
6074         Provide a default definition.
6075         (LIBGCC2_UNITS_PER_WORD): Likewise.
6077         * config/stormy16/stormy16.c: Include df.h for the prototype
6078         for df_regs_ever_live_p.
6079         (xstormy16_expand_builtin_va_start): Convert the stack offset
6080         into a component_ref and then use POINTER_PLUS_EXPR to add it
6081         to the incoming_virtual_args_rtx.
6082         (xstormy16_gimplify_va_arg_expr): Rename to
6083         xstormy16_gimplify_va_arg_expr.
6084         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
6085         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
6086         xstormy16_gimplify_va_arg_expr.
6087         Fix up some formatting issues.
6089         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
6090         Move to predicates.md.
6091         (xs_hi_general_operand): Likewise.
6092         (xs_hi_nonmemory_operand): Likewise.
6093         * config/stormy16/predicates.md:
6094         (xstormy16_carry_plus_operand): New predicate.
6095         (xs_hi_general_operand): New predicate.
6096         (xs_hi_nonmemory_operand): New predicate.
6097         * config/stormy16/stormy16-protos.h:
6098         (xstormy16_carry_plus_operand): Delete prototype.
6099         (xs_hi_general_operand): Likewise.
6100         (xs_hi_nonmemory_operand): Likewise.
6102         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
6103         modifiers as they are no longer needed and they can trigger
6104         reload spill failures.
6106         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
6107         with a match_operand in order to help reload.
6109         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
6110         constraint with 'e' for the 8th alternative as this version of
6111         the mov.w instruction only accepts the lower 8 registers.
6113 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
6115         PR target/34856
6116         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
6117         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
6118         vector elements.
6120 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
6122         PR middle-end/33333
6123         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
6125 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
6127         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
6128         New functions.
6129         (remove_structure): Update allocations list before removing structure.
6130         
6131 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
6133         * ipa-struct-reorg.c (is_safe_cond_expr, 
6134         create_new_stmts_for_cond_expr): Use integer_zerop function,
6135         that recognize not only zero-pointer, but zero-integer too.
6137 2008-01-25  Ben Elliston  <bje@au.ibm.com>
6139         PR other/22232
6140         * fixproto: Escape "." in sed expression that strips leading "./".
6142 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
6144         PR driver/34904
6145         * gcc.c (SWITCH_OK): Removed.
6146         (SWITCH_LIVE): Changed to bit.
6147         (SWITCH_FALSE): Likewise.
6148         (SWITCH_IGNORE): Likewise.
6149         (switchstr): Change live_cond to unsigned int.
6150         (process_command): Replace SWITCH_OK with 0.
6151         (do_self_spec): Likewise.
6152         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
6153         (give_switch): Likewise.
6154         (used_arg): Likewise.
6155         (do_spec_1): Set the SWITCH_IGNORE bit.
6156         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
6157         bits.  Set the SWITCH_LIVE bit.
6159 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
6161         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
6163 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
6165         PR tree-optimization/34472
6166         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
6167         parameter to a "bool *" and set *DATA to false if there is
6168         an unsafe access.  Do not delete the structure here.
6169         (check_cond_exprs): Delete it here instead.
6170         (check_cond_exprs, exclude_cold_structs): Do not increase
6171         I when removing a structure.
6173 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
6175         PR target/34856
6176         * config/i386/i386.c (ix86_expand_vector_init): Consider only
6177         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
6179 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
6181         PR middle-end/34934
6182         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
6183         a fixed vector for stack.
6185 2008-01-24  Ben Elliston  <bje@au.ibm.com>
6187         PR c++/25701
6188         * doc/gcc.texi (Software development): Add a direntry for g++.
6189         
6190 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
6192         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
6193         stale and straggling -fforce-addr comments above.
6195         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
6196         define.
6197         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
6198         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
6200 2008-01-23  Michael Matz  <matz@suse.de>
6202         PR debug/34895
6203         * dwarf2out.c (force_type_die): Use modified_type_die instead of
6204         gen_type_die.
6206 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
6208         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
6209         malloc result type.
6211 2008-01-23 Anatoly Sokolov <aesok@post.ru>
6213         * config/avr/avr.c (avr_current_arch): New variable.
6214         (avr_arch_types): Add 'avr31' and 'avr51' entries.
6215         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
6216         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
6217         (avr_override_options): Init 'avr_current_arch'. 
6218         (base_arch_s): Move from here...
6219         * config/avr/avr.h (base_arch_s): ... here. Add new members 
6220         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
6221         'mega' to 'have_jmp_call'.
6222         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
6223         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
6224         macros.
6225         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
6226         architectures.
6227         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
6228         MULTILIB_MATCHES): (Ditto.).
6230 2008-01-23  Richard Guenther  <rguenther@suse.de>
6232         PR middle-end/31529
6233         * cgraphunit.c (cgraph_reset_node): Always mark the node
6234         not reachable if it is not queued already.
6236 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
6238         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
6239         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
6240         (cputype_selected): New static variable.
6241         (bfin_handle_option): Set it if -mcpu is used.
6242         (override_option): Select default set of workarounds if no cpu type
6243         selected on the command line.
6244         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
6246         From  Michael Frysinger  <michael.frysinger@analog.com>
6247         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
6248         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
6250         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
6251         for bf547, bf523, bf524, and bf526.
6252         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
6253         bf526.
6254         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6255         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
6256         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
6257         __ADSPBF547__ and __ADSPBF54x__ for bf547.
6258         * doc/invoke.texi (Blackfin Options): Document that
6259         -mcpu now accept bf547, bf523, bf524, and bf526.
6261 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
6263         PR rtl-optimization/34628
6264         * combine.c (try_combine): Stop and undo after the first combination
6265         if an autoincrement side-effect on the first insn has effectively
6266         been lost.
6268 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
6270         PR target/34529
6271         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
6272         Offset addresses are not valid for Altivec or paired float modes.
6274 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
6276         PR c++/34607
6277         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
6278         if DECL_INITIAL (decl) is error_mark_node.
6280         PR c++/34914
6281         * c-common.c (handle_vector_size_attribute): Only allow
6282         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
6283         the same way as pointer, array etc. types.
6284         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
6286         PR c++/34917
6287         * tree.c (build_type_attribute_qual_variant): Call
6288         build_qualified_type if attributes are equal, but quals are not.
6290 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6292         PR 32102
6293         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
6294         * flags.h (warn_strict_aliasing): Remove.
6295         (warn_strict_overflow): Remove.
6296         * opts.c (warn_strict_aliasing): Remove.
6297         (warn_strict_overflow): Remove.
6298         * c-opts.c (c_common_handle_option): -Wall only sets
6299         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
6300         (c_common_post_options): Give default values to -Wstrict-aliasing
6301         and -Wstrict-overflow if they are uninitialized.
6302         * common.opt (Wstrict-aliasing): Specify Var and Init.
6303         (Wstrict-overflow): Likewise.
6305 2008-01-22  Kenneth Zadeck <zadeck@naturalbridge.com>
6307         PR rtl-optimization/26854
6308         PR rtl-optimization/34400
6309         PR rtl-optimization/34884
6310         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
6311         DF_RD->gen.
6312         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
6313         (df_rd_bb_info.expanded_lr_out): Deleted
6314         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
6315         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
6316         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
6317         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
6318         Removed code to allocate, initialize or free expanded_lr_out.
6319         (df_rd_bb_local_compute_process_def): Restructured to make more
6320         understandable.
6321         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
6322         sets if the sets are being trimmed.
6324 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
6326         PR bootstrap/32287
6327         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
6328         (as_vers): Likewise.
6329         * configure: Regenerated.
6331 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6333         PR middle-end/33092
6334         * tree-pass.h (pass_build_alias): New pass.
6335         * tree-ssa-alias.c (gate_build_alias): New.
6336         (pass_build_alias): New.
6337         * passes.c (init_optimization_passes): Add pass_build_alias after
6338         pass_create_structure_vars.
6340 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
6342         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
6343         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
6344         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
6345         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
6346         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
6347         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
6348         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
6349         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
6350         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
6351         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
6352         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
6353         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
6354         * config/s390/s390.md (FP_ALL): New mode iterator.
6355         (_d): New mode attribute.
6356         ("*signbit<mode>2>"): Changed mode of first operand.
6357         ("isinf<mode>2"): Changed mode of first operand.
6358         ("*TDC_insn"): Adaptation for DFP modes.
6360 2008-01-22  Ben Elliston  <bje@au.ibm.com>
6362         * tree.c (check_qualified_type): Improve function description.
6364 2008-01-21  Jason Merrill  <jason@redhat.com>
6366         PR c++/34196
6367         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
6368         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
6369         if it is set.
6371 2008-01-21  DJ Delorie  <dj@redhat.com>
6373         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
6374         return zero.
6376 2008-01-21  Richard Guenther  <rguenther@suse.de>
6378         PR middle-end/34856
6379         * tree-cfg.c (verify_expr): Allow all invariant expressions
6380         instead of just constant class ones as reference argument.
6381         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
6382         like any other constant.
6383         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6385 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
6387         * regmove.c (fixup_match_1): Update call crossed frequencies.
6389 2008-01-21  Richard Guenther  <rguenther@suse.de>
6391         PR c/34885
6392         * tree-inline.c (setup_one_parameter): Deal with mismatched
6393         types using a VIEW_CONVERT_EXPR.
6395 2008-01-21  Alon Dayan  <alond@il.ibm.com>
6396             Olga Golovanevsky  <olga@il.ibm.com>
6397         
6398         PR tree-optimization/34701
6399         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
6400         when the structure size is not a power of 2.
6402 2008-01-20  Kenneth Zadeck <zadeck@naturalbridge.com>
6404         * doc/install.texi: Add doc for --enable-checking=df.
6405         
6406 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6408         PR rtl-optimization/34808
6409         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
6411 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
6413         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
6414         input.
6416 2008-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
6418         PR rtl-optimization/26854
6419         PR rtl-optimization/34400
6420         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
6421         DF_RD->gen.
6422         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
6423         (df_rd_bb_info.expanded_lr_out): New.
6424         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
6425         * loop_iv.c (iv_analysis_loop_init): Ditto.
6426         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
6427         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
6428         Added code to allocate, initialize or free expanded_lr_out.
6429         (df_rd_bb_local_compute_process_def): Restructured to make
6430         more understandable.
6431         (df_rd_confluence_n): Add code to do nothing with fake edges and
6432         code to no apply invalidate_by_call sets if the sets are being trimmed.
6433         (df_lr_local_finalize): Renamed to df_lr_finalize.
6434         (df_live_local_finalize): Renamed to df_live_finalize.
6436 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
6438         PR target/34831
6439         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
6440         deciding whether to use reciprocal instructions.
6442 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
6444         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
6445         dwarf2out_note_section_used if cold_text_section is NULL.
6447 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
6449         PR gcov-profile/34610
6450         * tree-cfg.c (make_edges): Mark both outgoing edges from
6451         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
6452         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
6453         from OMP_FOR and OMP_CONTINUE outgoing edges.
6455         * tree-profile.c (tree_profiling): Return early if
6456         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
6457         at the end.
6458         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
6459         from cfun to child_cfun.
6460         * function.h (struct function): Add after_tree_profile bit.
6462 2008-01-19 Anatoly Sokolov <aesok@post.ru>
6464         * config/avr/avr.S (_exit): Disable interrupt.
6466 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
6467             Steven Bosscher  <stevenb.gcc@gmail.com>
6469         PR rtl-optimization/26854
6470         PR rtl-optimization/34400
6471         * df-problems.c (df_live_scratch): New scratch bitmap.
6472         (df_live_alloc): Allocate df_live_scratch when doing df_live.
6473         (df_live_reset): Clear the proper bitmaps.
6474         (df_live_bb_local_compute): Only process the artificial defs once
6475         since the order is not important.
6476         (df_live_init): Init the df_live sets only with the variables
6477         found live by df_lr.
6478         (df_live_transfer_function): Use the df_lr sets to prune the
6479         df_live sets as they are being computed.  
6480         (df_live_free): Free df_live_scratch.
6482 2008-01-18  Ian Lance Taylor  <iant@google.com>
6484         * common.opt: Add fmerge-debug-strings.
6485         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
6486         flag_merge_debug_strings rather than flag_merge_constants.
6487         * doc/invoke.texi (Option Summary): Mention
6488         -fmerge-debug-strings.
6489         (Debugging Options): Document -fmerge-debug-strings.
6491 2008-01-18  Ian Lance Taylor  <iant@google.com>
6493         PR c++/33407
6494         * tree.h (DECL_IS_OPERATOR_NEW): Define.
6495         (struct tree_function_decl): Add new field operator_new_flag.
6496         * tree-inline.c (expand_call_inline): When inlining a call to
6497         operator new, force the return value to go into a variable, and
6498         set DECL_NO_TBAA_P on that variable.
6499         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
6501 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
6503         PR debug/34484
6504         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
6505         DWARF2_DEBUGGING_INFO.
6506         (dwarf2out_note_section_used): Ditto.  Add prototype.
6507         (have_multiple_function_sections, text_section_used,
6508         cold_text_section_used, *cold_text_sections): Move declarations
6509         before their uses.
6511 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
6513         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
6514         field and add signal_ra.
6515         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
6516         assignments to frame state pc.  Move end of stack check after
6517         MD_FALLBACK_FRAME_STATE_FOR.
6518         (uw_update_context_1): Use frame state signal_regs if set, instead
6519         of checking signal_frame flag.
6520         (uw_update_context): Use frame state signal_ra if set.
6521         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
6522         * config/xtensa/linux-unwind.h: New file.
6524 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
6526         * modulo-sched.c (get_sched_window): Fix comment typo.
6528 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
6530         PR tree-optimization/34648
6531         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
6533 2008-01-17  Anatoly Sokolov <aesok@post.ru>
6535         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
6536         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
6538 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
6540         PR rtl-optimization/34400
6541         * df-core.c (df_worklist_dataflow_overeager,
6542         df_worklist_dataflow_doublequeue): New functions.
6543         (df_worklist_dataflow): Two different worklist solvers.
6544         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
6545         New param.
6547 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
6549         PR testsuite/34821
6550         * doc/invoke.texi: Document the dependence on pthread for fopenmp
6551         and ftree-parallelize-loops.
6553 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
6555         PR rtl-optimization/34826
6556         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
6558 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
6560         * global.c (find_reg): Mark the eh regs as used if necessary.
6561         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
6562         * ra.h (struct allocno): no_eh_reg field added.  Changed
6563         no_stack_reg type to bitfield.
6565 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
6567         * tree.c (substitute_in_expr): Add missing 'break'.
6569 2008-01-17  Richard Guenther  <rguenther@suse.de>
6571         PR tree-optimization/34825
6572         * tree-ssa-math-opts.c (is_division_by): Do not recognize
6573         x / x as division to handle.
6575 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6577         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
6578         "-pthread" is specified.
6579         * pa-hpux11.h (LIB_SPEC): Likewise.
6581 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
6582             Peter Bergner  <bergner@vnet.ibm.com>
6584         PR rtl-optimization/33796
6585         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
6587 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6589         PR libgfortran/34699
6590         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
6591         static links.
6592         * pa-hpux10.h (LINK_SPEC): Likewise.
6593         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
6595 2008-01-16  Richard Guenther  <rguenther@suse.de>
6597         PR middle-end/32628
6598         * fold-const.c (fold_convert_const_int_from_int): Do not
6599         set overflow if that occured only because of a sign extension
6600         change when converting from/to a sizetype with the same
6601         precision and signedness.
6603 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
6605         PR debug/34249
6606         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
6607         location address to the correct place.  Update copyright year.
6609 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
6611         * lambda-code.c (lambda_transform_legal_p): Handle the case of
6612         no dependences in the dependence_relations vector.
6614 2008-01-16  Jan Hubicka  <jh@suse.cz>
6616         PR rtl-optimization/31396
6617         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
6618         * cfg.c (dump_reg_info): Print it.
6619         * regs.h (struct reg_info_t): add freq_calls_crossed.
6620         (REG_FREQ_CALLS_CROSSED): New macro.
6621         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
6622         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
6623         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
6624         regmove_optimize): Update call crossed frequencies.
6625         * local-alloc.c (struct qty): Add freq_calls_crossed.
6626         (alloc_qty): Copute freq_calls_crossed.
6627         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
6628         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
6629         * ra.h (struct allocno): Add freq_calls_crossed.
6631 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
6633         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
6634         libgomp when compiling with ftree-parallelize-loops.
6635         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
6637 2008-01-16  Richard Guenther  <rguenther@suse.de>
6639         PR tree-optimization/34769
6640         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
6641         * tree.c (int_cst_value): Instead make this function more
6642         permissive in what it accepts as valid input.  Document this
6643         function always sign-extends the value.
6645 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
6646             Richard Guenther  <rguenther@suse.de>
6648         PR c/34668
6649         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
6650         (gimple_fold_indirect_ref_rhs): ... this.
6651         (gimple_fold_indirect_ref): New function with foldings
6652         that preserve lvalueness.
6653         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
6654         * tree-flow.h (gimple_fold_indirect_ref): Declare.
6655         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
6656         to fold an INDIRECT_REF, fall back to the old use of
6657         fold_indirect_ref_1.
6659 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
6661         * tree-data-ref.c (subscript_dependence_tester_1): Call 
6662         free_conflict_function.
6663         (compute_self_dependence): Same.
6665 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
6667         PR debug/34249
6668         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
6669         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
6670         function global.
6671         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
6672         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
6673         for DWARF2_UNWIND_INFO targets.
6675 2008-01-16  Richard Guenther  <rguenther@suse.de>
6677         PR c/34768
6678         * c-typeck.c (common_pointer_type): Do not merge inconsistent
6679         type qualifiers for function types.
6681 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
6683         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
6684         loop_iterator li from previous commit.
6686 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
6688         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
6690 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
6692         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
6693         (parallelize_loops): Don't parallelize irreducible components.
6695 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6697         PR c++/24924
6698         * c-opts (c_common_post_options): Do not enable CPP
6699         flag_pedantic_errors by default.
6700         
6701 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
6703         PR rtl-optimization/31944
6704         * cse.c (remove_pseudo_from_table): New function.
6705         (merge_equiv_classes): Use above function to remove pseudo-registers.
6706         (invalidate): Likewise.
6708 2008-01-13  Richard Guenther  <rguenther@suse.de>
6710         PR middle-end/34601
6711         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
6712         instead of TYPE_MODE to deal with calls from expand_one_error_var.
6714 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
6716         * gcse.c (cprop_jump): Call validate_unshare_change instead of
6717         validate_change to unshare the source of the PC set.
6719 2008-01-12  Jan Hubicka  <jh@suse.cz>
6721         PR middle-end/32135
6722         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
6723         references above array bounds.  This might trigger bounds checks for
6724         pointers to arrays.
6726 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
6728         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
6729         new_replaceable_dependencies.
6731 2008-01-12  Doug Kwan  <dougkwan@google.com>
6733         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
6734         instead of OPT_Wreturn_type in warning due to ignored return type
6735         qualifiers.
6736         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
6737         options included in -Wextra.
6738         * c.opt: New option -Wignored_qualifiers.
6739         * doc/invoke.texi (Warning Options, -Wextra): Add new option
6740         -Wignore_qualifiers.
6741         (-Wignored-qualifiers): Document.
6742         (-Wreturn-type): Remove description of functionality now handled
6743         by -Wignored-qualifiers.
6745 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
6747         PR ada/33788
6748         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
6749         NOP_EXPR if it is between integral types with the same precision.
6751 2008-01-12  Jan Hubicka  <jh@suse.cz>
6753         PR other/28023
6754         * invoke.texi (max-inline-recursive-depth): Fix default value.
6756 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
6758         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
6759         correct type.
6761 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
6762         
6763         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
6764         
6765 2008-01-11  James E. Wilson  <wilson@specifix.com>
6767         PR target/26015
6768         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
6770 2008-01-11  Anatoly Sokolov <aesok@post.ru>
6772         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
6773         save/restore frame pointer register and don't use 'call-prologues' 
6774         optimization in function with "OS_task" attribute.
6776 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
6778         PR middle-end/31309
6779         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
6780         when copying to memory.
6782 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
6784         PR rtl-optimization/30905
6785         * cfgcleanup.c: Include dce.h
6786         (crossjumps_occured): New global variable.
6787         (try_crossjump_bb): Exit loop after finding a fallthru edge.
6788         If something changed, set crossjumps_occured to true.
6789         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
6790         Don't add/remove fake edges to exit here...
6791         (cleanup_cfg): ...but do it here, when crossjumping.
6792         Run a fast DCE when successful crossjumps occured in the latest
6793         iteration of try_optimize_cfg.
6795 2008-01-11  Richard Guenther  <rguenther@suse.de>
6797         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
6798         (struct vn_unary_op_s): Likewise.
6799         (vn_reference_insert): Free old reference on hash collision.
6801 2008-01-10  Raksit Ashok  <raksit@google.com>
6803         PR rtl-optimization/27971
6804         * combine.c (find_split_point): Split PLUS expressions which are
6805         inside a MEM rtx, and whose first operand is complex.
6807 2008-01-10  DJ Delorie  <dj@redhat.com>
6809         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
6810         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
6811         (m32c_hard_regno_ok): Call the underlying function.
6813 2008-01-10  Richard Guenther  <rguenther@suse.de>
6815         PR middle-end/34683
6816         * tree-cfg.c (tree_merge_blocks): Do not go through the
6817         full-blown folding and stmt updating path if we just deal
6818         with virtual operands.
6819         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
6820         test for abnormal SSA_NAMEs.
6822 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
6824         PR middle-end/34641
6825         * reload.c (push_reload): Add assertions.  All constants from
6826         reg_equiv_constant should have been used for replacing the respective
6827         pseudo earlier.
6828         (find_reloads_address): Invoke find_reloads_address_part for
6829         constant taken from the reg_equiv_constant array.
6831 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
6833         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
6834         field (valnum) the first in the struct.  Replace bools with
6835         unit bit fields.
6837 2008-01-10  Richard Guenther  <rguenther@suse.de>
6839         PR tree-optimization/34651
6840         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
6841         types and ordering for masking and converting.
6843 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
6845         PR tree-optimization/34017
6846         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
6847         also for PHI_NODE expressions.
6849 2008-01-09  Jan Hubicka  <jh@suse.cz>
6851         PR tree-optimization/34708
6852         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
6853         based on number of case labels.
6854         (init_inline_once): Remove switch_cost.
6855         * tree-inline.h (eni_weights_d): Remove switch_cost.
6857 2008-01-09  Richard Guenther  <rguenther@suse.de>
6858         Andrew Pinski  <andrew_pinski@playstation.sony.com>
6860         PR middle-end/30132
6861         * gimplify.c (gimplify_cond_expr): Do not create an addressable
6862         temporary if an rvalue is ok or an lvalue is not required.
6864 2008-01-09  Richard Guenther  <rguenther@suse.de>
6866         PR middle-end/34458
6867         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
6868         adjust return type.
6870 2008-01-09  Richard Guenther  <rguenther@suse.de>
6872         PR middle-end/34679
6873         * tree.c (host_integerp): Check for sizetype only if the
6874         type is an integer type.
6876 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
6878         PR debug/26364
6879         * opts.c (decode_options): Disable inlining of functions called
6880         once if not in unit-at-a-time mode.
6882 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
6884         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
6886 2008-01-08  Richard Guenther  <rguenther@suse.de>
6888         PR middle-end/31863
6889         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
6890         out early if the result will be unused.
6892 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
6894         PR target/34709
6895         Revert:
6897         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
6898         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
6899         for TARGET_RECIP.       
6900         
6901 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
6902         
6903         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
6904         for vectorization tuned.
6905         
6906 2008-01-08  Richard Guenther  <rguenther@suse.de>
6908         PR tree-optimization/34683
6909         * tree-ssa-operands.c (operand_build_cmp): Export.
6910         * tree-ssa-operands.h (operand_build_cmp): Declare.
6911         * tree-vn.c (vuses_compare): Remove.
6912         (sort_vuses): Use operand_build_cmp.
6913         (sort_vuses_heap): Likewise.
6914         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
6915         to re-use old VEC if available.  Do not sort already sorted VUSEs.
6916         (vdefs_to_vec): Do not sort already sorted VDEFs.
6918 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
6920         PR middle-end/34694
6921         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
6923 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
6925         PR target/34702
6926         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
6927         limitations of reciprocal sequences on x86 targets.
6929 2008-01-08  Richard Guenther  <rguenther@suse.de>
6931         PR tree-optimization/34683
6932         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
6934 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
6936         PR target/34622
6937         * config/darwin.c (darwin_mergeable_string_section): Don't use
6938         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
6940 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
6942         PR target/34682
6943         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
6944         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
6945         predicates of op0 and op1 to register_operand.
6946         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
6947         expander using X87MODEF mode iterator.  Change predicates of
6948         op0 and op1 to register_operand.
6949         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
6950         corresponding patterns and macroize using MODEF macro.  Change
6951         predicates of op0 and op1 to register_operand and remove
6952         "m" constraint. Disparage "r" alternative with "!".
6953         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
6954         macroize using X87MODEF macro.  Change predicates of op0 and op1
6955         to register_operand and remove "m" constraint.  Disparage "r"
6956         alternative with "!".
6957         (absneg splitter with memory operands): Remove.
6958         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
6959         patterns and macroize using X87MODEF mode iterator.
6960         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
6961         Change predicate of op1 to register_operand.
6962         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
6963         for memory operands.
6965 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
6967         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
6969 2008-01-07  Richard Guenther  <rguenther@suse.de>
6971         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
6972         fields.
6974 2008-01-07  Richard Guenther  <rguenther@suse.de>
6976         PR tree-optimization/34683
6977         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
6978         VOPs of the needed size to save memory.  Use VEC_quick_push
6979         to save compile-time.
6980         (vdefs_to_vec): Likewise.
6982 2008-01-07  Sa Liu  <saliu@de.ibm.com>
6984         * config/spu/spu.md (divdf3): Genetate inline code for double
6985         division.  The implementation doesn't handle INF or NAN, therefore it
6986         only applies when -ffinite-math-only is given.
6988 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
6990         PR libstdc++/34680
6991         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
6992         * doc/cpp.texi ([Common Predefined Macros]): Document.
6994 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
6996         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
6997         order to use commutative addition instead of subtraction.
6999 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7000             Mircea Namolaru  <namolaru@il.ibm.com>
7001             Vladimir Yanovsky  <yanov@il.ibm.com>
7002             Revital Eres  <eres@il.ibm.com>
7004         PR tree-optimization/34263
7005         * tree-outof-ssa.c (process_single_block_loop_latch,
7006         contains_tree_r): New functions.
7007         (analyze_edges_for_bb): Call process_single_block_loop_latch
7008         function to empty single-basic-block latch block if possible.
7010 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
7012         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
7013         for TARGET_RECIP.
7014         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
7016 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
7018         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
7020 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
7022         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
7024 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7026         PR tree-optimization/34618
7027         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
7028         flag from T.
7030 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
7032         PR target/34673
7033         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
7034         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
7035         Update copyright year.
7037         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
7038         Update copyright year.
7039         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
7040         using NR fixup.
7042 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
7044         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
7045         edge does not point to current bb before changing need_assert.
7047 2008-01-04  Richard Guenther  <rguenther@suse.de>
7049         PR middle-end/34029
7050         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
7051         for verifying purposes if they are is_gimple_min_invariant.
7053 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
7055         PR tree-optimization/34448
7056         PR tree-optimization/34465
7057         * gimplify.c (gimplify_init_constructor): Add new parameter
7058         notify_temp_creation.  Use it.
7059         (gimplify_modify_expr_rhs): Take volatiles into account when
7060         optimizing constructors.
7061         Do not optimize constructors if gimplify_init_constructor will dump to
7062         memory.
7063         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
7064         * gcc.c-torture/compile/pr34448.c: New.
7066 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
7068         PR gcov-profile/34609
7069         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
7070         return_slot if result is TREE_ADDRESSABLE.
7072 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
7074         * config/mips/mips.md (sqrt_condition): Tweak comment.
7075         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
7077 2008-01-03  Tom Tromey  <tromey@redhat.com>
7079         PR c/34457
7080         * c-common.c (c_type_hash): Handle VLAs.
7082 2008-01-03  Jan Hubicka  <jh@suse.cz>
7084         PR tree-optimization/31081
7085         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
7086         0 when inlining and not inlining to first basic block.
7087         (remap_decl): When var is initialized to 0, don't set default_def.
7088         (expand_call_inline): Set entry_bb.
7089         * tree-inline.h (copy_body_data): Add entry_bb.
7091 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7093         PR c++/34619
7094         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
7095         before returning.
7097         PR tree-optimization/29484
7098         * tree-inline.c (inline_forbidden_p_2): New function.
7099         (inline_forbidden_p): Disallow inlining if some static var
7100         has an address of a local LABEL_DECL in its initializer.
7101         * doc/extend.texi (Labels as Values): Document &&foo behaviour
7102         vs. inlining.
7104 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
7106         PR tree-optimization/34635
7107         * tree-data-ref.c (add_other_self_distances): Make sure that the
7108         evolution step is constant.
7110 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7112         PR middle-end/34608
7113         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
7115 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
7117         * tree-sra.c (scalarize_init): Insert the generate_element_init
7118         statements after the generate_element_zero statements.
7120 2008-01-02  Richard Guenther  <rguenther@suse.de>
7122         PR middle-end/34093
7123         PR middle-end/31976
7124         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
7125         for very large number of operands instead of ICEing.
7127 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
7129         PR target/34013
7130         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
7131         while stack probing.
7133 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
7135         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
7136         in C++0x mode.
7138 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
7140         PR libmudflap/26442
7141         * tree-mudflap.c (mx_register_decls): Guard warning by
7142         !DECL_ARTIFICIAL check.
7144 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
7146         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
7147         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
7148         sse5_perm<mode>): Fix constraints.