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