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