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