1 2008-04-10 Vladimir Makarov <vmakarov@redhat.com>
3 * reload1.c (substitute, gen_reload_chain_without_interm_reg_p):
5 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
7 2008-04-09 Vladimir Makarov <vmakarov@redhat.com>
9 * ira.c (ira): Move allocate_initial_values after initializing reg
12 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
14 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
16 2008-04-08 Vladimir Makarov <vmakarov@redhat.com>
18 * ira-color.c (assign_hard_reg): Add debug printing.
20 * ira-lives.c (mark_reg_store, mark_reg_death,
21 process_bb_node_lives): Ignore hard regno of class NO_REGS.
23 * ira.c: Fix typos in comments.
25 2008-04-07 Vladimir Makarov <vmakarov@redhat.com>
27 * cfgloopanal.c (estimate_reg_pressure_cost): Decrease register
28 pressure cost for IRA regional allocation.
30 * ira.c: Add IRA overview.
32 2008-04-06 Vladimir Makarov <vmakarov@redhat.com>
34 * ira-int.h (reg_class_intersect, reg_class_union): Add comments.
36 * hard-reg-set.h (reg_class_subclasses): New external definition.
38 * ira.c (setup_reg_class_intersect_union): Define for classes
39 containing no hard registers available for allocation.
41 * regclass.c (reg_class_subclasses): Make it external.
43 * config/sh/sh.h (IRA_COVER_CLASSES): Add TARGET_REGS.
45 2008-04-05 Vladimir Makarov <vmakarov@redhat.com>
47 * toplev.c (backend_init_target): Move init_ira after
50 * config/sh/sh.c (sh_secondary_reload): Remove check of x on null.
52 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
54 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
56 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
58 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
59 * config/sh/sh.c (sh_secondary_reload): Return NO_REGS for
61 * config/sh/sh.md (movsicc_true+3): Check if emit returns
63 * final.c (update_regs_ever_live): Check null rtl.
65 2008-04-04 Vladimir Makarov <vmakarov@redhat.com>
67 * reload1.c: Remove spaces before [.
69 * ira-conflicts.c, ira-int.h, ira-color.c, ira-lives.c,
70 ira-emit.c, ira-build.c, ira.c, ira.h, ira-costs.c: Ditto. Use
73 * caller-save.c: Ditto.
74 (set_up_bb_rts_numbers, rpost_cmp): Remove.
75 (save_trans_fun, save_con_fun_0, save_con_fun_n): New functions.
76 (struct bb_info): Remove member rts_number.
77 (calculate_local_save_info): Setup empty_save_in_p for abnormal
79 (all_blocks): New variable.
80 (calculate_save_in_out): Use df_simple_dataflow.
81 (make_global_save_analysis): Allocate/setup/free all_blocks.
83 2008-04-04 Vladimir Makarov <vmakarov@redhat.com>
85 * ira-costs.c: Use GPL3 in the header.
86 (find_allocno_class_costs): Use all important
87 classes on the 1st iteration.
89 2008-04-03 Vladimir Makarov <vmakarov@redhat.com>
91 PR rtl-optimization/35817
92 * ira-costs.c (ira-costs.c): Check have_regs_of_mode.
94 2008-04-02 Vladimir Makarov <vmakarov@redhat.com>
96 * ira-color.c (start_allocno_priorities): Permit zero allocno
99 2008-03-31 Vladimir Makarov <vmakarov@redhat.com>
101 * ira-color.c (push_allocnos_to_stack): Don't use double. Use
102 const as the secondary heuristic.
104 * ira-emit.c (set_allocno_reg): Change cap reg too. Process all
107 * doc/invoke.texi (-fira-coalescing): Change to -fira-coalesce.
109 * toplev.h (flag_lower_subreg): Remove.
111 * global.c (build_insn_chain): Remove the prototype.
113 * alias.c (value_addr_p): Change comment.
115 * emit-rtl.c (gen_lowpart_common): Remove CONCATN.
117 * simplify-rtx.c (simplify_subreg): Ditto.
119 * common.opt (flower-subreg): Remove.
121 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Fix last
124 2008-03-29 Vladimir Makarov <vmakarov@redhat.com>
126 * ira-lives (process_single_reg_class_operands): Fix typo in
127 setting up cover_class.
129 2008-03-28 Vladimir Makarov <vmakarov@redhat.com>
131 * ira-conflicts.c, global.c, regmove.c, function.c,
132 ira-emit.c, alias.c, reload1.c: Add comments, fix comments.
134 * reload.h: Add 2008 to the Copyright.
136 * caller-save.c: Add comments.
137 (reg_save_code, reg_restore_code, initiate_saved_hard_regs,
138 new_saved_hard_reg, finish_saved_hard_regs,
139 saved_hard_reg_compare_func, calculate_local_save_info,
140 set_up_bb_rts_numbers, rpost_cmp, calculate_save_in_out,
141 calculate_save_here, make_global_save_analysis,
142 print_hard_reg_set_and_mode, print_hard_reg_set, print_save_data,
143 set_hard_reg_saved, add_stored_regs): Add prototypes.
145 * df-scan.c (df_get_call_refs): Use
146 get_call_invalidated_used_regs.
148 * ira-int.h: Add comments.
149 (loop_tree_node): Rename inner to children.
150 (ira_allocate_regset, ira_free_regset): Remove.
151 (reassign_conflict_allocnos): Remove one parameter.
153 * ira-color.c: Add comments.
154 (setup_curr_costs): Rename to update_curr_costs.
155 (allocno_cost_compare_func, print_coalesced_allocno,
156 allocno_reload_assign): Add prototypes.
157 (reassign_conflict_allocnos): Remove one parameter.
159 * ira-lives.c: Add comments.
160 (make_regno_dead, make_regno_born_and_dead,
161 create_start_finish_chains, print_allocno_live_ranges,
162 print_live_ranges): Add protoypes.
164 * ira-build.c: Add comments.
165 (copy_allocno_live_range_list): Make it static.
167 * ira.c: Add comments.
168 (setup_cover_classes): Rename to
169 setup_cover_and_important_classes.
170 (free_register_move_costs, chain_freq_compare, chain_bb_compare,
171 ira): New prototypes.
172 (mode_inner_mode, setup_inner_mode, ira_allocate_regset,
173 ira_free_regset): Remove.
175 * ira.h: Add comments.
176 (SECONDARY_INPUT_RELOAD_CLASS,
177 SECONDARY_OUTPUT_RELOAD_CLASS, HAVE_SECONDARY_RELOADS,
178 MEMORY_MOVE_COST, reg_equiv_memory_loc_varray, reg_equiv_constant,
179 reg_equiv_memory_loc, reg_equiv_address, reg_equiv_mem, ira):
182 * ira-costs.c: Add comments.
183 (find_allocno_class_costs): Make common class a cover class.
185 2008-03-20 Vladimir Makarov <vmakarov@redhat.com>
187 * ira-int.h (allocno): Rename conflict_allocno_vec and
188 conflict_allocno_vec_size into conflict_allocno_array and
189 conflict_allocno_array_size. Remove conflict_allocnos_num.
190 Rename total_conflict_allocnos_num into conflict_allocnos_num New
191 members child_renamed_p and conflict_vec_p.
192 (ALLOCNO_CONFLICT_ALLOCNO_VEC): Rename to
193 ALLOCNO_CONFLICT_ALLOCNO_ARRAY.
194 (ALLOCNO_CONFLICT_ALLOCNO_VEC_SIZE): Rename to
195 ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE.
196 (ALLOCNO_CHILD_RENAMED_P, ALLOCNO_CONFLICT_VEC_P): New macros.
197 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Change to
198 FOR_EACH_ALLOCNO_IN_SET.
199 (allocno_set_iterator): New typedef.
200 (allocno_set_iter_init, allocno_set_iter_cond,
201 allocno_set_iter_next): New functions.
202 (conflict_vector_profitable_p, allocate_allocno_conflict_vec): New
204 (allocno_iterator): New typedef.
205 (allocno_iter_init, allocno_iter_cond): New functions.
206 (FOR_EACH_ALLOCNO): New macro.
207 (copy_iterator): New typedef.
208 (copy_iter_init, copy_iter_cond): New functions.
209 (FOR_EACH_COPY): New macro.
210 (allocno_conflict_iterator): New typedef.
211 (allocno_conflict_iter_init, allocno_conflict_iter_cond,
212 allocno_conflict_iter_next): New functions.
213 (conflict_vector_profitable_p, allocate_allocno_conflict_vec): New
215 (FOR_EACH_ALLOCNO_CONFLICT): New macro.
217 * ira-conflicts.c (conflicts): Change type.
218 (CONFLICT_P): Use one more index for conflicts.
219 (build_conflict_bit_table): Change allocation and initialization
221 (mirror_conflicts): Rewrite.
222 (remove_conflict_allocno_copies): Use FOR_EACH_ALLOCNO.
223 (build_allocno_conflict_vects): Rename to build_allocno_conflicts.
225 (print_conflicts): Use FOR_EACH_ALLOCNO, don't print star.
226 (ira_build_conflicts): Use FOR_EACH_ALLOCNO.
228 * ira-color.c (assign_hard_reg): Use FOR_EACH_ALLOCNO_CONFLICT.
229 Use min_full_cost for finding register profitability.
230 (push_allocno_to_stack): Use FOR_EACH_ALLOCNO_CONFLICT.
231 (setup_allocno_left_conflicts_num, coalesced_allocno_conflict_p):
233 (move_spill_restore): Use FOR_EACH_ALLOCNO.
234 (reassign_conflict_allocnos): Ditto. Use
235 FOR_EACH_ALLOCNO_CONFLICT.
236 (sort_regnos_for_alter_reg): Use FOR_EACH_ALLOCNO.
237 (reassign_pseudos): Use FOR_EACH_ALLOCNO_CONFLICT.
239 * ira-lives.c (make_regno_born, clear_allocno_live,
240 mark_reg_death, process_single_reg_class_operands,
241 process_bb_node_lives): Use FOR_EACH_ALLOCNO_IN_SET.
242 (create_start_finish_chains, print_live_ranges): Use
245 * ira-emit.c (set_allocno_reg): Set up ALLOCNO_CHILD_RENAMED_P.
246 (set_allocno_somewhere_renamed_p): Use
247 ALLOCNO_CONFLICT_ALLOCNO_ARRAY.
248 (ira_emit): Use FOR_EACH_ALLOCNO.
250 * ira.c (setup_reg_renumber, setup_allocno_assignment_flags,
251 calculate_allocation_cost, check_allocation,
252 print_redundant_copies, setup_preferred_alternate_classes): Use
255 * ira-costs.c (print_costs, setup_allocno_cover_class_and_costs,
256 ira_costs, tune_allocno_costs_and_cover_classes): Use
259 * ira-build.c (check_allocno_conflict_vec): Remove.
260 (add_to_allocno_conflict_vec): Rename to
261 allocate_allocno_conflicts. Rewrite.
262 (allocate_allocno_conflict_bit_vec, allocate_allocno_conflicts,
263 remove_wrong_conflicts, change_allocno_conflicts): New functions.
264 (rebuild_regno_allocno_maps): Use FOR_EACH_ALLOCNO.
265 (create_allocno): Initialize ALLOCNO_CHILD_RENAMED_P and
266 ALLOCNO_CONFLICT_VEC_P.
267 (conflict_vector_profitable_p): New function.
268 (compress_allocno_conflict_vec): Use
269 ALLOCNO_CONFLICT_ALLOCNO_ARRAY and don't use
270 ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM.
271 (compress_conflict_vecs): Use FOR_EACH_ALLOCNO. Check
272 ALLOCNO_CONFLICT_VEC_P.
273 (propagate_info_to_cap): Use FOR_EACH_ALLOCNO_CONFLICT.
274 (finish_allocnos): Use FOR_EACH_ALLOCNO.
275 (finish_copies): Use FOR_EACH_COPY.
276 (check_and_add_conflicts): Change second parameter. Use
277 add_to_allocno_conflicts instead of add_to_allocno_conflict_vec.
278 (temp_change_bit_vec): New variable.
279 (ira_flattening): Use FOR_EACH_ALLOCNO and FOR_EACH_COPY. Use
280 remove_wrong_conflicts, change_allocno_conflicts. Allocate and
281 free temp_change_bit_vec. Nullify `allocnos' elements for removed
282 allocnos. Check ALLOCNO_CHILD_RENAMED_P for removing obsolete
283 conflicts. Don't compress and enumerate allocnos and copies.
284 Nullify `copies' elements for removed copies. Use
285 add_to_allocno_conflicts instead of add_to_allocno_conflict_vec.
286 (ira_build): Use FOR_EACH_ALLOCNO.
288 2008-03-18 Vladimir Makarov <vmakarov@redhat.com>
290 * common.opt (fira-algorithm): Fix description
292 * ira-int.h (allocno): Remove best_class.
293 (ALLOCNO_BEST_CLASS): Remove.
294 (strict_class_subset_p): Remove.
296 * ira-color.c (get_coalesced_allocnos_best_class_and_freq): Rename
297 to get_coalesced_allocnos_attributes. Change prototype.
298 Calculate available regs.
299 (bucket_allocno_compare_func, sort_bucket): New functions.
300 (sorted_allocnos_for_spilling): New variable.
301 (assign_hard_reg): Don't add prohibited_class_mode_regs to
302 conflicting_regs. Use it in loop for finding the best hard
304 (add_allocno_to_ordered_bucket): Use bucket_allocno_compare_func.
305 (push_only_colorable): Call sort_bucket.
306 (push_allocnos_to_stack): Use sorted_allocnos_for_spilling instead
308 (put_allocno_into_bucket): Use add_allocno_to_bucket instead of
309 add_allocno_to_ordered_bucket.
310 (initiate_ira_assign): Allocate sorted_allocnos_for_spilling.
311 (finish_ira_assign): Free sorted_allocnos_for_spilling.
313 * ira-emit.c (modify_move_list): Remove setting ALLOCNO_BEST_CLASS
316 * ira-build.c (create_allocno, create_cap_allocno): Ditto.
318 * ira.c (strict_class_subset_p): Remove.
319 (setup_class_subset_and_memory_move_costs): Remove setting
320 strict_class_subset_p up.
322 * ira-costs.c (setup_allocno_cover_class_and_costs): Remove
323 setting ALLOCNO_BEST_CLASS up.
325 2008-03-12 Vladimir Makarov <vmakarov@redhat.com>
327 * ira-int.h (allocno_pool, copy_pool, allocno_live_range_pool):
328 Remove external definitions.
329 (free_allocno_updated_costs, allocate_cost_vector,
330 free_cost_vector): New prototypes.
331 (allocate_and_set_costs, allocate_and_copy_costs,
332 allocate_and_set_or_copy_costs): Change prototypes. Use
333 allocate_cost_vector instead of ira_allocate.
335 * ira-conflicts.c (add_insn_allocno_copies): Pass register class
336 to allocate_and_set_costs.
338 * ira-color.c (update_copy_costs_1): Pass register class to
339 allocate_and_set_or_copy_costs.
340 (assign_hard_reg): Pass register class to allocate_and_copy_costs.
342 (pop_allocnos_from_stack, color_allocnos): Check updated costs.
343 (color_pass): Pass register class to allocate_and_set_costs. Free
345 (move_spill_restore): Check reg equivalences.
346 (setup_curr_costs): Pass register class to
347 allocate_and_set_or_copy_costs.
348 (reassign_conflict_allocnos, allocno_reload_assign): Check updated
350 (calculate_spill_cost): Use REG_N_REFS after checking regno.
352 * ira-lives.c (process_single_reg_class_operands): Pass register
353 class to allocate_and_set_costs.
355 * ira-build.c (allocno_pool, allocno_live_range_pool): New
357 (initiate_allocnos): Initiate the pools.
358 (free_allocno_updated_costs): New function.
359 (finish_allocno): Use free_cost_vector. Free the pools.
360 (copy_pool): New variable.
361 (initiate_copies): Initiate the pool.
362 (cost_vector_pool): New variable.
363 (initiate_cost_vectors, allocate_cost_vector, free_cost_vector,
364 finish_cost_vectors): New functions.
365 (ira_flattening): Call free_allocno_updated_costs. Check updated
367 (ira_build): Call initiate_cost_vectors.
368 (ira_destroy): Call finish_cost_vectors.
370 * ira.c (find_reg_equiv_invariant_const): Check read only memory.
371 (setup_reg_renumber, setup_allocno_assignment_flags): Call
372 free_allocno_updated_costs.
373 (ira): Remove initializations and freeing allocno_pool, copy_pool,
374 and allocno_live_range_pool. Call generate_setjmp_warnings.
376 * ira-costs.c (process_bb_node_for_hard_reg_moves,
377 tune_allocno_costs_and_cover_classes): Pass register class to
378 allocate_and_set_costs.
380 * caller-save.c (save_slots_num, save_slots): New variables.
381 (init_save_areas): Initiate save_slots_num.
382 (setup_save_areas): Use stack slots from the previous reload
383 iteration independetly what slot was used on the previous pass.
385 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
387 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
388 Remove commutativity hint.
390 2008-03-06 Vladimir Makarov <vmakarov@redhat.com>
392 * ira.h (sort_regnos_for_alter_reg): Add parameter.
394 * reload1.c (reload): Pass additional argument to
395 sort_regnos_for_alter_reg.
397 * ira-int.h (reg_equiv_len): New global variable.
399 * ira-emit.c (change_loop): Add assertion.
401 * ira.c (reg_equiv_len): New global variable.
402 (setup_reg_renumber): Use reg_equiv_len in assertion.
403 (ira): Initialize reg_equiv_len and spilled_reg_stack_slots.
405 * ira-color.c (coalesced_pseudo_reg_compare): Rename to
406 coalesced_pseudo_reg_freq_compare.
407 (coalesced_pseudo_reg_slot_compare,
408 setup_coalesced_allocno_costs_and_nums,
409 collect_spilled_coalesced_allocnos, coalesce_spill_slots): New
411 (coalesced_allocno_conflict_p): Add new parameter. Use live
412 ranges to find conflicts for the reload.
413 (coalesce_allocnos): Don't coalesce allocnos with equivalences.
414 (color_pass): Check reg_quiv_len.
415 (regno_max_ref_width): New variable.
416 (sort_regnos_for_alter_reg): Add secondary coalescing spilled
417 allocnos. Assign stack slot numbers. Use costs instead of
419 (mark_allocation_change): Set up allocno hard regno.
420 (allocno_reload_assign): Ditto.
421 (reuse_stack_slot): Use stack slot numbers.
422 (mark_new_stack_slot): Set up allocno slot number.
424 * doc/passes.texi: Add more info about IRA.
426 2008-03-03 Vladimir Makarov <vmakarov@redhat.com>
428 * ira-conflicts.c (allocno_conflict_p): Rename to
429 allocno_live_ranges_intersect_p.
430 (allocno_reg_conflict_p): Rename to
431 pseudo_live_ranges_intersect_p.
433 * ira-lives.c (high_pressure_start_point): New variable.
434 (update_allocno_pressure_excess_length): New function.
435 (make_regno_dead): Call it.
436 (set_allocno_live): Udpate high_pressure_start_point.
437 (clear_allocno_live, mark_reg_store, mark_reg_death): Ditto.
438 (process_bb_node_lives): Initialize high_pressure_start_point.
439 Consider only allocatable hard regs for liveness.
441 * ira-costs.c (record_reg_classes): Multiply cost by frequency.
442 Use half frequency when memory is allowed. Remove check for
443 prefferred small register classes of pseudo-registers.
444 (scan_one_insn): Continue processing operands for moves of
445 pseudo-registers with equivalence. Don't multiply cost by
447 (init_ira_costs): Use bigger initial cost value.
450 (allocno): New members somewhere_renamed_p and
451 excess_pressure_points_num.
452 (ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_EXCESS_PRESSURE_POINTS_NUM):
454 (allocno_reg_conflict_p): Rename to
455 pseudo_live_ranges_intersect_p.
456 (allocno_conflict_p): Rename to allocno_live_ranges_intersect_p.
458 * ira.h (sort_regnos_for_alter_reg, better_spill_reload_regno_p):
459 New function prototypes.
461 * ira-color.c (merge_allocnos): Remove mode check.
462 (coalesce_allocnos): Add parameter and modify to use it for
463 coalescing spilled allocnos.
464 (color_allocnos): Pass parameter to coalesce_allocnos.
465 (regno_coalesced_allocno_freq, regno_coalesced_allocno_num): New
467 (coalesced_pseudo_reg_compare, calculate_spill_cost,
468 sort_regnos_for_alter_reg, better_spill_reload_regno_p): New
470 (mark_allocation_change, allocno_reload_assign, reassign_pseudos
471 ): Use ALLOCNO_MEMORY_COST instead of ALLOCNO_UPDATED_MEMORY_COST.
472 (reuse_stack_slot): Use pseudo_live_ranges_intersect_p instead of
473 allocno_reg_conflict_p.
475 * ira-emit.c (set_allocno_somewhere_renamed_p): New function.
476 (renamed_regno_bitmap): New static variable.
477 (change_loop): Check register pressure for creating new pseudo.
478 Set up ALLOCNO_SOMEWHERE_RENAMED_P and renamed_regno_bitmap.
479 (ira_emit): Allocate/deallocate renamed_regno_bitmap.
480 Call set_allocno_somewhere_renamed_p.
482 * ira-build.c (ira_loops): Move to ira.c.
483 (create_allocno): Initialize ALLOCNO_SOMEWHERE_RENAMED_P and
485 (create_cap_allocno): Set up ALLOCNO_MEMORY_COST.
486 (check_and_add_conflicts): Use allocno_live_ranges_intersect_p
487 instead of allocno_conflict_p.
488 (ira_flattening): Check conflicts of allocno renamed somewhere
489 locally. Update ALLOCNO_EXCESS_PRESSURE_POINTS_NUM.
490 (ira_build): Move code for finding loops to ira.c.
491 (ira_destroy): Move code for freeing loops to ira.c.
493 * ira.c (setup_reg_class_intersect_union): Fix calculation of
495 (calculate_allocation_cost): Use ALLOCNO_MEMORY_COST instead of
496 ALLOCNO_UPDATED_MEMORY_COST.
497 (ira_loops): Move from ira-build.c.
498 (ira): Move code for finding and freeing loops from ira-build.c.
499 Don't use regional RA when there are too many loops.
501 * reload1.c (pseudo_reg_compare): Remove.
502 (reload): Use sort_regnos_for_alter_reg.
503 (hard_regno_to_pseudo_regno): New variable.
504 (count_pseudo): Set up hard_regno_to_pseudo_regno.
505 (order_regs_for_reload): Initialize hard_regno_to_pseudo_regno.
506 (count_spilled_pseudo): Update hard_regno_to_pseudo_regno.
507 (find_reg): Use better_spill_reload_regno_p. Check
508 hard_regno_to_pseudo_regno.
510 * cfgloopanal.c: Include params.h.
511 (estimate_reg_pressure_cost): Check number of loops.
513 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
515 * params.h (IRA_MAX_LOOPS_NUM): New macro.
517 * Makefile.in (cfgloopanal.o): Add PARAMS_H.
519 * doc/invoke.texi (ira-max-loops-num): Describe.
521 2008-02-20 Vladimir Makarov <vmakarov@redhat.com>
523 * ira.h, ira-emit.c: Add year 2008 to the copyright.
526 (struct copy): Rename move_insn to insn.
527 (initiate_ira_assign, finish_ira_assign, debug_allocno_copies):
528 New function prototypes.
530 * ira-build.c: Add year 2008 to the copyright. Rename member
531 move_insn of the copies to insn.
532 (find_allocno_copy): New function.
533 (propagate_info_to_cap, add_allocno_copy): Use it.
534 (print_allocno_copies, debug_allocno_copies): New functions.
536 * ira-conflicts.c: Add year 2008 to the copyright. Rename member
537 move_insn of the copies to insn.
540 (setup_reg_class_intersect_union): Fix reg_class_union for cover
542 (ira): Call initiate_ira_assign and finish_ira_assign. Remove
543 setting reload_completed up.
545 * ira-costs.c: Add year 2008 to the copyright.
546 (ira_costs): Check modes of registers.
548 * ira-lives.c: Add year 2008 to the copyright.
549 (mark_reg_store, mark_reg_death, process_bb_node_lives): Don't use
551 (process_single_reg_class_operands): Check that the hard reg
552 belongs to the cover class.
554 * ira-color.c: Add year 2008 to the copyright. Rename member
555 move_insn of the copies to insn.
556 (initiate_cost_update, finish_cost_update, update_copy_costs_1):
558 (allocno_update_cost_check, update_cost_check): New static
560 (update_copy_costs): Increment update_cost_check. Call
562 (coalesce_allocnos): Don't coalesce already assigned allocnos or
563 copies with null insn.
564 (color_pass): Check loop tree node of the subloop allocno.
565 (finish_allocno_priorities): Remove.
566 (do_coloring): Move allocation/deallocation of
567 consideration_allocno_bitmap into initiate_cost_update and
569 (reassign_conflict_allocnos): Remove allocation/deallocation of
570 sorted_allocnos. Remove call of finish_allocno_priorities.
571 (reassign_pseudos): Remove allocation/deallocation of
572 consideration_allocno_bitmap and sorted_allocnos. Remove call of
573 finish_allocno_priorities.
574 (initiate_ira_assign, finish_ira_assign): New fucntions.
575 (ira_color): Remove allocation/deallocation of sorted_allocnos.
576 Call initiate_ira_assign and finish_ira_assign.
578 * postreload.c (gate_handle_postreload): Don't do post reload
579 optimizations unless the reload is completed.
581 * cfgloopanal.c (estimate_reg_pressure_cost): Return zero if we
584 * recog.c (peep2_free_reg_search_ofs): New static variable.
585 (peep2_find_free_register): Remove search_ofs. Use
586 peep2_free_reg_search_ofs instead of it.
587 (peephole2_optimize): Reset peep2_free_reg_search_ofs.
589 2008-01-10 Vladimir Makarov <vmakarov@redhat.com>
591 * reload1.c (compute_use_by_pseudos): Permits spilled registers in
593 (temp_pseudo_reg_arr): New variable.
594 (reload): Use instead temp_pseudo_reg_arr of pseudo_regs. Move
595 freeing to the function end. Don't clear spilled_pseudos for IRA.
596 Restore original insn chain for IRA.
597 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
598 (count_pseudo, count_spilled_pseudo): Check spilled pseudos.
599 (alter_reg): Set up spilled_pseudos.
600 (finish_spills): Set up pseudo_previous_regs only for spilled
601 pseudos. Call reassign_pseudos once for all spilled pseudos,
602 pass more arguments. Don't clear live_throughout and dead_or_set
605 2008-01-10 Vladimir Makarov <vmakarov@redhat.com>
607 * reload1.c (compute_use_by_pseudos): Permits spilled registers in
609 (temp_pseudo_reg_arr): New variable.
610 (reload): Use instead temp_pseudo_reg_arr of pseudo_regs. Move
611 freeing to the function end. Don't clear spilled_pseudos for IRA.
612 Restore original insn chain for IRA.
613 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
614 (count_pseudo, count_spilled_pseudo): Check spilled pseudos.
615 (alter_reg): Set up spilled_pseudos.
616 (finish_spills): Set up pseudo_previous_regs only for spilled
617 pseudos. Call reassign_pseudos once for all spilled pseudos,
618 pass more arguments. Don't clear live_throughout and dead_or_set
621 * global.c (reg_becomes_live, build_insn_chain): Don't ignore
622 spilled pseudos for IRA.
624 * caller-save.c (calculate_local_save_info,
625 save_call_clobbered_regs): Ignore spilled pseudos for IRA.
627 * toplev.c (backend_init_target): Call init_ira.
628 (backend_init): Move call of init_ira_once before
631 * ira.h (init_ira, sort_insn_chain, mark_memory_move_deletion):
632 New function prototypes.
633 (retry_ira_color): Rename to reassign_pseudos. Change
636 * ira-int.h (allocno): New member dont_reassign_p.
637 (ALLOCNO_DONT_REASSIGN_P): New macro.
638 (memory_move_cost): Change element type.
639 (register_move_cost): Change type.
640 (register_may_move_in_cost, register_may_move_out_cost,
641 reg_class_intersect): New arrays.
642 (important_class_nums): Fix element type.
643 (hard_reg_not_in_set_p): Make it static inline.
644 (init_register_move_cost, init_ira_costs): New function
646 (allocno_conflict_index): Remove.
647 (allocate_and_set_costs, allocate_and_copy_costs,
648 allocate_and_set_or_copy_costs): New static inline functions.
650 * ira-build.c (compress_allocno_conflict_vec,
651 compress_conflict_vecs): New functions.
652 (allocno_conflict_index): Remove.
653 (allocno_conflict_check, curr_allocno_conflict_check_tick): New
655 (propagate_info_to_cap): Use allocate_and_copy_costs.
656 (check_and_add_conflicts): Don't call allocno_conflict_index.
657 (ira_flattening): Add some assertions. Check that cost vectors
658 have been allocated. Don't call allocno_conflict_index. Call
659 compress_conflict_vecs.
661 * ira.c (memory_move_cost, register_move_cost): Change types.
662 (register_may_move_in_cost, register_may_move_out_cost,
663 strict_class_subset_p): New variables.
664 (setup_class_subset_and_move_costs): Rename to
665 setup_class_subset_and_memory_move_costs. Remove
666 register_move_cost setup. Don't consider no_unit_alloc_regs. Add
667 strict_class_subset_p setup.
668 (setup_reg_class_intersect): Rename to
669 setup_reg_class_intersect_union. Don't consider
670 no_unit_alloc_regs. Add reg_class_union setup.
671 (hard_reg_not_in_set_p): Move to ira-int.h.
672 (setup_reg_subclasses): Use no_unit_alloc_regs instead of
673 fixed_reg_set. Don't consider no_unit_alloc_regs.
674 (important_class_nums): Fix element type.
675 (setup_cover_classes): Use no_unit_alloc_regs instead of
676 fixed_reg_set. Don't consider no_unit_alloc_regs.
677 (setup_class_translate): Ditto.
678 (reg_class_union): New variable.
679 (init_register_move_cost, free_register_move_costs): New
681 (init_ira_once): Initialize register_move_cost,
682 register_may_move_in_cost, register_may_move_out_cost. Move some
684 (init_ira): New function. Move some code from init_ira_once.
685 Call free_register_move_costs and init_ira_costs.
686 (calculate_allocation_cost): Check allocation of allocno hard reg
688 (basic_block_order_nums): New variable.
689 (chain_freq_compare, chain_bb_compare, sort_insn_chain): New
691 (ira): Call sort_insn_chain.
693 * ira-color.c (allocno_coalesced_p): New variable.
694 (update_copy_costs): Use allocate_and_set_or_copy_costs.
695 (assign_hard_reg): Clear and use
696 processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
697 Use allocate_and_copy_costs. Use allocno cover class cost if the
698 hard register cost vector is not allocated.
699 (get_coalesced_allocnos_best_class_and_freq): Use
700 reg_class_intersect instead of reg_class_subintersect.
701 (add_allocno_to_ordered_bucket): Use strict_class_subset_p.
702 (push_allocno_to_stack): Clear and use
703 processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
704 (setup_allocno_left_conflicts_num): Don't setup
705 ALLOCNO_UPDATED_HARD_REG_COSTS and
706 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS. Clear and use
707 processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
708 (put_allocno_into_bucket): Don't setup
709 ALLOCNO_UPDATED_HARD_REG_COSTS and
710 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
711 (coalesced_allocno_conflict_p): Clear and use
712 processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
713 (coalesce_allocnos): Setup allocno_coalesced_p.
714 (color_allocnos): Add processing reg class NO_REGS.
715 (color_pass): Propagate assignment of spilled allocno not
716 mentioned in the subregion for the mixed algorithm. Use
717 allocate_and_set_costs.
718 (move_spill_restore, mark_allocation_change): Check unallocated
719 hard reg cost vectors.
720 (setup_curr_costs): Don't setup ALLOCNO_UPDATED_HARD_REG_COSTS and
721 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS. Use
722 allocate_and_set_or_copy_costs.
723 (mark_memory_move_deletion, allocno_reload_assign,
724 pseudo_reg_compare, reassign_pseudos): New functions.
725 (retry_ira_color): Remove.
727 * ira-conflicts.c (add_insn_allocno_copies): Use
728 allocate_and_set_costs.
729 (allocno_conflict_p): Simplify the code.
731 * ira-costs.c: Rename reg_class_subunion to reg_class_union
733 (cost_classes, cost_classes_num, cost_class_nums,
734 max_struct_costs_size): New variables.
735 (copy_cost): Use init_register_move_cost instead of
737 (record_reg_classes): Ditto. Use cost_classes and
738 cost_classes_num instead of important_classes and
739 important_classes_num. Use register_may_move_{in,out}_cost
740 instead of may_move_{in,out}_cost. Check reg class intersection
742 (record_address_regs): Use init_register_move_cost instead of
743 init_move_cost. Use cost_classes and cost_classes_num instead of
744 important_classes and important_classes_num. Use
745 register_may_move_in_cost instead of may_move_in_cost.
746 (scan_one_insn): Use cost_classes_num instead of
747 important_classes_num.
748 (print_costs): Use cost_classes and cost_classes_num instead of
749 important_classes and important_classes_num.
750 (find_allocno_class_costs): Initialize cost_classes and
751 cost_class_nums. Use cost_classes and cost_classes_num instead of
752 important_classes and important_classes_num.
753 (process_bb_node_for_hard_reg_moves): Use allocate_and_set_costs.
754 (setup_allocno_cover_class_and_costs): Use cost_classes and
755 cost_classes_num instead of important_classes and
756 important_classes_num.
757 (init_ira_costs_once): Move some code to init_ira_costs. Initiate
759 (free_ira_costs: New function. Move some code from
760 finish_ira_costs_once.
761 (init_ira_costs): New function. Move some code from
762 init_ira_costs_once. Use max_struct_costs_size instead of
763 struct_costs_size. Call free_ira_costs. Allocate cost_classes.
764 (finish_ira_costs_once): Move some code to finish_ira_costs. Call
766 (ira_costs): Use max_struct_costs_size instead of
767 struct_costs_size. Use allocate_and_set_costs.
769 * ira-emit.c (modify_move_list): Remove allocation of hard reg
772 * ira-lives.c (process_single_reg_class_operands): Add new
773 parameter freq. Calculate costs basing on the frequency.
774 (process_bb_node_lives): Pass the frequency to
775 process_single_reg_class_operands.
777 2007-12-17 Vladimir Makarov <vmakarov@redhat.com>
779 * doc/invoke.texi (fira-algoirthm): Remove prioirity coloring.
780 Make mixed the default.
782 * flags.h (ira_algorithm): Remove IRA_ALGORITHM_PRIORITY.
784 * ira-color.c (priority_coloring): Remove.
785 (do_coloring): Don't call priority_coloring.
787 * opts.c (common_handle_option): Remove priority coloring option.
789 * toplev.c (flag_ira_algorithm): Assign IRA_ALGORITHM_MIXED.
791 * ira-build.c (check_and_add_conflicts, ira_flattening): Increase
792 threshold for internal_flag_ira_verbose.
794 2007-12-17 Vladimir Makarov <vmakarov@redhat.com>
796 * common.opt (fira-assign-after-call-split, fira-biased-coloring,
797 fira-split-around-calls): Remove.
798 (fdump-simple-rtl, fira-verbose): New options.
799 (fira, fira-coalesce): Initiate by 0.
801 * opts.c (common_handle_option): Process flag_ira_verbose.
803 * flags.h (flag_ira_verbose): New external definition.
805 * toplev.h (flag_ira_assign_after_call_split,
806 flag_ira_biased_coloring, flag_ira_split_around_calls): Remove.
808 * toplev.c (flag_ira_verbose): New external declaration.
809 (finalize): Call finish_ira_once.
811 * print-rtl.c (flag_simple): Rename to flag_dump_simple_rtl.
813 * doc/invoke.texi (-fno-ira-assign-after-call-split,
814 -fira-biased-coloring, -fno-ira-split-around-calls): Remove.
815 (-fdump-simple-rtl, -fira-verbose): New options.
817 * caller-save.c (insert_restore, insert_save): Use
818 adjust_address_nv instead of adjust_address. Check the mode by
821 * ira-call.c: Remove file.
823 * ira-lives.c: New file.
825 * Makefile.in (ira-live.o): Add
826 (ira-call.o): Remove.
827 (IRA_INT_H): Add alloc-pool.h.
829 * ira.h (finish_ira_once): New external definition.
831 * ira-int.h (internal_flag_ira_verbose, alloc_pool allocno_pool,
832 copy_pool, allocno_live_range_pool, ira_loop_tree_height,
833 max_point, start_point_ranges, finish_point_ranges,
834 prohibited_mode_move_regs, important_class_nums,
835 ira_curr_regno_allocno_map, allocno_set_words): New external
837 (loop_tree_node_t, allocno_live_range_t): New typedefs. Use them
839 (ira_loop_tree_node): Rename to loop_tree_node.
840 (loop_tree_node): New member level.
841 (allocno_live_range): New structure.
842 (allocno): New members nrefs, live_ranges,
843 total_conflict_hard_regs, conflict_allocnos_num,
844 total_conflict_allocnos_num, mem_optimized_dest,
845 mem_optimized_dest_p, total_no_stack_reg_p. Remove members
846 conflict_allocno_vec_active_size and original_memory_cost. Rename
847 member curr_hard_reg_costs to updated_hard_reg_costs.
848 (ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM,
849 ALLOCNO_TOTAL_CONFLICT_HARD_REGS, ALLOCNO_CONFLICT_ALLOCNOS_NUM,
850 ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM, ALLOCNO_NREFS,
851 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
852 ALLOCNO_TOTAL_NO_STACK_REG_P, ALLOCNO_LIVE_RANGES): New access
854 (ALLOCNO_CONFLICT_ALLOCNO_VEC_ACTIVE_SIZE,
855 ALLOCNO_ORIGINAL_MEMORY_COST): Remove.
856 (ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS): Rename to
857 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
858 (allocno_copy): New member loop_tree_node.
859 (INT_BITS, INT_TYPE, EXECUTE_IF_SET_IN_ALLOCNO_SET): Move from
861 (SET_ALLOCNO_SET_BIT, CLEAR_ALLOCNO_SET_BIT,
862 TEST_ALLOCNO_SET_BIT): New macros.
863 (ira_reallocate, allocno_conflict_index, add_allocno_conflict,
864 create_allocno_live_range, finish_allocno_live_range,
865 add_allocno_copy_to_list, swap_allocno_copy_ends_if_necessary,
866 remove_allocno_copy_from_list, add_allocno_copy, ira_flattening,
867 finish_ira_costs_once, rebuild_start_finish_chains,
868 print_live_range_list, debug_live_range_list,
869 debug_allocno_live_ranges, debug_live_ranges,
870 create_allocno_live_ranges, finish_allocno_live_ranges,
871 allocno_conflict_p, loop_edge_freq): New external function
873 (hard_reg_in_set_p, original_regno_call_crossed_p,
874 ira_max_regno_before, ira_max_regno_call_before): Remove.
875 (traverse_loop_tree): Add new parameter type.
876 (create_copy): Ditto.
877 (debug_conflicts, ira_emit, add_allocno_copy): Add parameter.
878 (debug_ira_call_data, split_around_calls, get_around_calls_regno):
881 * ira.c (setup_prohibited_mode_move_regs): New function.
882 (internal_flag_ira_verbose, allocno_pool, copy_pool,
883 allocno_live_range_pool, important_class_nums): New external
885 (IRA_NO_OBSTACK): Uncomment it.
886 (ira_reallocate): New function.
887 (setup_cover_classes): Set up important_class_nums.
888 (finish_ira_once): New function.
889 (prohibited_mode_move_regs,
890 prohibited_mode_move_regs_initialized_p): New global variables.
891 (setup_prohibited_mode_move_regs): New function.
892 (setup_reg_renumber): Remove parameters.
893 (setup_allocno_assignment_from_reg_renumber): Rename to
894 setup_allocno_assignment_flags. Set up ALLOCNO_ASSIGNED_P.
895 (calculate_allocation_cost): Use ALLOCNO_UPDATED_MEMORY_COST.
896 (ira_max_regno_before, ira_max_regno_call_before): Remove.
897 (ira): Set up internal_flag_ira_verbose. Call
898 setup_prohibited_mode_move_regs. Create and destroy allocno,
899 copy, and live range pools. Remove original_regno_call_crossed_p.
900 Report major passes. Use argument for ira_emit. Call
901 ira_flattening and df_analyze. Remove live range splitting around
904 * ira-build.c (setup_loop_tree_level, rebuild_regno_allocno_maps,
905 expand_calls, compress_calls, allocno_conflict_index,
906 add_to_allocno_conflict_vec, propagate_info_to_cap,
907 copy_allocno_live_range, copy_allocno_live_range_list,
908 finish_allocno, finish_copy,
909 propagate_info_to_loop_tree_node_caps, merge_ranges,
910 common_loop_tree_node_dominator, check_and_add_conflicts,
911 add_conflict_with_underlying_allocnos, ira_flattening): New
913 (check_coalesced_allocnos): Remove.
914 (ira_loop_tree_height): New external variable.
915 (form_loop_tree): Call setup_loop_tree_level.
916 (initiate_calls): Allocate a bit more. (create_allocno): Use
917 pool_alloc. Set up ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM,
918 ALLOCNO_TOTAL_CONFLICT_HARD_REGS, ALLOCNO_NREFS,
919 ALLOCNO_TOTAL_NO_STACK_REG_P, ALLOCNO_MEM_OPTIMIZED_DEST,
920 ALLOCNO_MEM_OPTIMIZED_DEST_P, ALLOCNO_UPDATED_MEMORY_COST, and
921 ALLOCNO_LIVE_RANGES. Rename
922 ALLOCNO_CONFLICT_ALLOCNO_VEC_ACTIVE_SIZE,
923 ALLOCNO_CURR_HARD_REG_COSTS, and
924 ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS to
925 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_UPDATED_HARD_REG_COSTS, and
926 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
927 (add_allocno_conflict): Make it external. Use
928 add_to_allocno_conflict_vec.
929 (create_cap_allocno): Move part of code to propagate_info_to_cap.
930 (finish_allocnos): Use finish_allocno.
931 (add_allocno_copy_to_list, remove_allocno_copy_from_list,
932 swap_allocno_copy_ends_if_necessary, add_allocno_copy): Move from
933 ira-conflicts.c. Make them external.
934 (create_copy): Use pool_alloc. Add parameter loop_tree_node.
935 (finish_copies): Use finish_copy.
936 (ira_curr_regno_allocno_map): New external variable.
937 (traverse_loop_tree): Add parameter bb_first_p.
938 (create_insn_allocnos): Update ALLOCNO_NREFS.
939 (create_loop_tree_node_allocnos): Traverse loop tree nodes with
940 BBs first. Update ALLOCNO_NREFS.
941 (create_loop_tree_node_caps): Move part of code to
942 propagate_info_to_loop_tree_node_cap.
943 (regno_top_level_allocno_map): New global variable.
944 (ira_build): Create caps before build conflicts. Call
945 create_allocno_live_ranges. Propagate info to caps. Report
947 (ira_destroy): Call finish_allocno_live_ranges.
949 * ira-conflicts.c (set_allocno_live, clear_allocno_live,
950 record_regno_conflict, mark_reg_store, mark_reg_clobber,
951 mark_reg_conflicts, mark_reg_death): Remove.
952 (add_insn_allocno_copies, add_copies): New functions.
953 (add_allocno_copy_to_list, remove_allocno_copy_from_list,
954 swap_allocno_copy_ends_if_necessary, add_allocno_copy): Remove.
955 (add_allocno_copies): Rename to add_insn_allocno_copies. Use
956 ira_curr_regno_allocno_map and add_insn_allocno_copies.
957 (single_reg_class, single_reg_operand_class,
958 process_single_reg_class_operands, process_bb_node_for_conflicts):
960 (INT_BITS, INT_TYPE, EXECUTE_IF_SET_IN_ALLOCNO_SET): Move to
962 (allocnos_live_bitmap, SET_ALLOCNO_CONFLICT_ROW,
963 CLEAR_ALLOCNO_CONFLICT_ROW, TEST_ALLOCNO_CONFLICT_ROW): Remove.
964 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, TEST_ALLOCNO_LIVE):
965 Use {SET, CLEAR, TEST}_ALLOCNO_SET_BIT.
966 (allocno_row_words, hard_regs_live, curr_bb_node,
967 curr_regno_allocno_map, curr_reg_pressure): Remove.
968 (CONFLICTP): Rename to CONFLICT_P.
970 (propagate_allocno_info): Use ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
971 Set up ALLOCNO_CALLS_CROSSED_START.
972 (allocno_conflict_p): New function.
973 (allocno_reg_conflict_p): Use allocno_conflict_p.
974 (build_allocno_conflict_vects): Divide original and propagated
976 (print_hard_reg_set): New function.
977 (print_conflicts): Use print_hard_reg_set. Set up mark for the
978 start of propagated conflicts.
979 (debug_conflicts): Add parameter.
980 (ira_build_conflicts): Call add_copies. Set up
981 ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
983 * ira-costs.c (struct costs): Make cost allocated dynamically.
984 (struct_costs_size, temp_cots, op_costs, this_op_costs): New
986 (costs): Rename to total_costs.
987 (COSTS_OF_ALLOCNO): New macro.
988 (curr_regno_allocno_map): Remove. Use ira_curr_regno_allocno_map
990 (record_reg_classes): Check NO_REGS in allocno_pref.
991 (record_address_regs): Use COSTS_OF_ALLOCNO.
992 (scan_one_insn): Ditto.
993 (print_costs): Ditto.
994 (find_allocno_class_costs): Ditto. Pass additional argument to
995 traverse_loop_tree. Set up NO_REGS if memory is cheaper.
996 (setup_allocno_cover_class_and_costs): Use
997 ALLOCNO_UPDATED_MEMORY_COST instead of
998 ALLOCNO_ORIGINAL_MEMORY_COST, ALLOCNO_UPDATED_HARD_REG_COSTS
999 instead of ALLOCNO_CURR_HARD_REG_COSTS, and
1000 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS instead of
1001 ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS. Pass additional argument to
1003 (init_ira_costs_once): Allocate init_cost, op_costs,
1004 this_op_costs, temp_costs.
1005 (finish_ira_costs_once): New function.
1007 * ira-color.c: Use ALLOCNO_UPDATED_MEMORY_COST instead of
1008 ALLOCNO_ORIGINAL_MEMORY_COST, ALLOCNO_UPDATED_HARD_REG_COSTS
1009 instead of ALLOCNO_CURR_HARD_REG_COSTS, and
1010 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS instead of
1011 ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS. Use
1012 ALLOCNO_TOTAL_CONFLICT_HARD_REGS instead of
1013 ALLOCNO_CONFLICT_HARD_REGS.
1014 (processed_allocno_bitmap): Rename into
1015 processed_coalesced_allocno_bitmap.
1016 (allocno_cost_compare_func): Use ALLOCNO_UPDATED_MEMORY_COST
1017 instead of ALLOCNO_MEMORY_COST.
1018 (assign_hard_reg): Remove biased coloring.
1019 (add_allocno_to_ordered_bucket): Check cover class first.
1020 (loop_edge_freq): Make it external.
1021 (setup_allocno_left_conflicts_num): Check that conflicting
1022 allocnos of one class.
1023 (allocno_conflict_p): Rename to coalesced_allocno_conflict_p.
1024 (color_pass): Check pressure in the loop (not in subloops) for
1026 (allocno_priorities): New variable.
1027 (start_allocno_priorities, finish_allocno_priorities): New
1029 (allocno_priority_compare_func): Use allocno_priorities.
1030 (priority_coloring): Call start_allocno_priorities and
1031 finish_allocno_priorities.
1032 (do_coloring): Pass additional argument to traverse_loop_tree.
1034 * ira-emit.c (struct move): Add member insn.
1035 (create_move): Initialize member insn.
1036 (generate_edge_moves): Set up ALLOCNO_MEM_OPTIMIZED_DEST and
1037 ALLOCNO_MEM_OPTIMIZED_DEST_P.
1038 (change_loop): Check prohibited_mode_move_regs.
1039 (curr_jump_map, can_move_through_p): Remove.
1040 (unify_moves): Don't move through jump.
1041 (modify_move_list): Set up attributes for new allocno used for
1042 breaking dependency loops.
1043 (emit_move_list): Set up insn codes.
1044 (update_costs, add_range_and_copies_from_move_list,
1045 add_ranges_and_copies): New functions.
1046 (ira_emit): Add a parameter. Call add_ranges_and_copies.
1048 2007-10-09 Vladimir Makarov <vmakarov@redhat.com>
1050 * toplev.h (flag_ira_coalesce): New external variable.
1052 * ira-int.h (allocno): New members first_coalesced_allocno,
1053 next_coalesced_allocno.
1054 (ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO):
1056 (reg_class_subintersect): New external variable.
1058 * ira-color.c (processed_allocno_bitmap): New variable.
1059 (allocno_cost_compare_func, print_coalesced_allocno): New
1061 (assign_hard_reg): Process coalesced allocnos.
1062 (get_coalesced_allocnos_best_class_and_freq): New function.
1063 (add_allocno_to_ordered_bucket): Use the function.
1064 (push_allocno_to_stack, push_allocnos_to_stack): Process coalesced
1066 (remove_allocno_from_bucket_and_push, pop_allocnos_from_stack):
1067 Use print_coalesced_allocno.
1068 (setup_allocno_available_regs_num,
1069 setup_allocno_left_conflicts_num): Process coalesced allocnos.
1070 (copy_freq_compare_func, allocno_conflict_p, coalesce_allocnos):
1072 (color_allocnos): Allocate/free processed_allocno_bitmap. Call
1074 (priority_coloring): Allocate/free processed_allocno_bitmap.
1076 * ira-build.c (check_coalesced_allocnos): New function.
1077 (create_allocno): Initiate next_coalesced_allocno,
1078 first_coalesced_allocno.
1079 (create_cap_allocno): Check next_coalesced_allocno,
1080 first_coalesced_allocno.
1082 * common.opt (fira-coalesce): New option.
1084 * ira.c (setup_reg_class_intersect): New function.
1085 (reg_class_subintersect): New global variable.
1086 (init_ira_once): Call setup_reg_class_intersect.
1088 * doc/invoke.texi (-fira-coalescing): New option.
1090 2007-09-20 Vladimir Makarov <vmakarov@redhat.com>
1092 * ira-build.c (create_allocno): Initialize ALLOCNO_BEST_CLASS.
1094 * ira-color.c (add_allocno_to_ordered_bucket): Use
1097 * ira-costs.c (setup_allocno_cover_class_and_costs): Initialize
1100 * ira-int.h (allocno): New member best_class.
1101 (ALLOCNO_BEST_CLASS): New macro.
1103 2007-09-19 Vladimir Makarov <vmakarov@redhat.com>
1105 * ira-int.h (allocno): Remove calls_crosed. Add
1106 calls_crossed_start.
1107 (ALLOCNO_CALLS_CROSSED): Remove.
1108 (ALLOCNO_CALLS_CROSSED_START): Add.
1110 (regno_calls, add_regno_call): New.
1112 * ira-build.c (initiate_calls, finish_calls, add_regno_call): New
1114 (regno_calls, regno_calls_num): New globals.
1116 (add_loop_to_tree): Use loop_outer.
1117 (form_loop_tree): Ditto.
1118 (initiate_allocnos, create_cap_allocno): Remove
1119 ALLOCNO_CALLS_CROSSED. Add ALLOCNO_CALLS_CROSSED_START.
1120 (finish_allocnos): Remove ALLOCNO_CALLS_CROSSED.
1121 (create_bb_allocnos, create_loop_allocnos): Use DF_LR_{IN,OUT}
1122 instead of DF_UPWARD_LIVE_{IN,OUT}.
1123 (ira_build): Remove adding df problems and call of
1124 free_dominance_info. Call initiate_calls.
1125 (ira_destroy): Add free_dominance_info and finish_calls. Remove
1128 * ira-emit.c (change_regs): Return the result.
1129 (generate_edge_moves): Use DF_LR_{IN,OUT} instead of
1130 DF_UPWARD_LIVE_{IN,OUT}.
1131 (change_loop): Call df_insn_rescan and df_note_rescan if there is
1133 (can_move_through_p): Use hard_reg_set_equal_p instead of
1134 GO_IF_HARD_REG_EQUAL.
1136 * ira-costs.c (copy_cost, record_reg_classes,
1137 record_address_regs): Call init_move_cost if it is necessary.
1138 (tune_allocno_costs_and_cover_classes): Use regno_calls and
1139 ALLOCNO_CALLS_CROSSED_START instead of ALLOCNO_CALLS_CROSSED.
1141 * ira-conflicts.c (n_regs_set): Remove.
1142 (regs_set): Make it a vector.
1143 (mark_reg_store, mark_reg_clobber): Change 2nd parameter type.
1144 (process_bb_node_for_conflicts): Use DF_LR_IN instead of
1145 DF_UPWARD_LIVE_IN. Call add_regno_call. Initialize
1146 ALLOCNO_CALLS_CROSSED_START. Remove ALLOCNO_CALLS_CROSSED.
1147 (build_conflict_bit_table): Initialize and finalize regs_set.
1148 (propagate_allocno_info): Remove ALLOCNO_CALLS_CROSSED.
1149 Initialzie ALLOCNO_CALLS_CROSSED_START.
1151 * ira-color.c (setup_allocno_available_regs_num,
1152 setup_allocno_left_conflicts_num): New functions.
1153 (update_allocno_avaialable_regs): Remove.
1154 (sorted_allocnos, allocno_stack_varray): Move upper.
1155 (assign_hard_reg): Use hard_reg_set_subset_p instead of
1156 GO_IF_HARD_REG_SUBSET.
1157 (loop_edge_freq): Use DF_LR_{IN,OUT} instead of
1158 DF_UPWARD_LIVE_{IN,OUT}.
1159 (put_allocno_into_bucket): Call setup_allocno_available_regs_num
1160 and setup_allocno_left_conflicts_num.
1161 (print_loop_title): Use loop_depth.
1162 (allocno_priority_compare_func): Remove REG_N_REFS and
1164 (retry_ira_color): Use SET_REGNO. Use ALLOCNO_CALLS_CROSSED_NUM
1165 instead of ALLOCNO_CALLS_CROSSED.
1166 (collect_pseudo_call_clobbered_regs): Use regno_calls and
1167 ALLOCNO_CALLS_CROSSED_START instead of ALLOCNO_CALLS_CROSSED.
1169 * ira-call.c (init_ira_call_data): Add argument to
1171 (n_regs_set): Remove.
1172 (regs_set): Make it a vector.
1173 (mark_reg_store, mark_reg_clobber): Change 2nd parameter type.
1174 (mark_referenced_regs): Check null x.
1175 (put_save_restore_and_calculate_local_info): Initialize and
1176 finalize regs_set. Use DF_LR_{IN,OUT} instead of
1177 DF_UPWARD_LIVE_{IN,OUT}. Use loop_outer.
1178 (do_init_nothing): Remove.
1179 (save_trans_fun, save_con_fun_0, restore_trans_fun,
1180 restore_con_fun_0): Remove 1st parameter.
1181 (save_con_fun_n, restore_con_fun_n): Ditto. Use
1182 df_simple_dataflow instead of df_analyze_problem.
1183 (put_save_restore): Use DF_LR_IN instead of DF_UPWARD_LIVE_IN.
1184 Call mark_all_referenced_regs for all insn. Use bitmap progress.
1185 (get_move_insn): New function.
1186 (put_save_restore_and_calculate_local_info, put_save_restore): Use
1189 * ira.c (insn_contains_asm_1, insn_contains_asm,
1190 compute_regs_asm_clobbered, expand_reg_info): New functions.
1191 (setup_class_subset_and_move_costs): Use hard_reg_set_subset_p
1192 instead of GO_IF_HARD_REG_SUBSET.
1193 (setup_reg_subclasses, setup_class_translate): Ditto. Use
1194 hard_reg_set_equal_p instead of GO_IF_HARD_REG_EQUAL.
1195 (setup_eliminable_regset): Call compute_regs_asm_clobbered. Use
1196 df_set_regs_ever_live instead of regs_ever_live.
1197 (setup_reg_renumber): Check reg_equiv_const and
1198 reg_equiv_invariant_p.
1199 (ira): Remove no_new_pseudos. Add df-problems and analyze. Call
1200 regstat_init_n_sets_and_refs and regstat_compute_ri. Remove
1201 delete_unreachable_blocks. Use expand_reg_info. Move
1202 setup_preferred_alternate_classes upper. Remove life_analysis.
1203 Prepare df-insfrastructure for reload.
1205 * regclass.c (setup_reg_classes): Don't use reg_pref_buffer.
1207 * function.[ch] (get_call_invalidated_used_regs): Change 1st
1210 * gengtype.c (main): Add HARD_REG_SET.
1212 * alias.c (value_addr_p): New function.
1213 (nonoverlapping_memrefs_p): Use it.
1215 * caller-save.c (init_caller_save): Use DF_LR_TOP for IRA instead
1216 of global_live_at_start.
1218 2007-05-04 Vladimir Makarov <vmakarov@redhat.com>
1220 * ira-conflicts.c: Change pseudo to allocno.
1221 * ira-color.c: Ditto.
1222 * ira-emit.c: Ditto.
1223 * ira-build.c: Ditto.
1225 (important_classes_num, important_classes): New variables.
1226 (setup_cover_classes): Set up the variable values.
1227 * ira-costs.c: Ditto.
1228 (record_reg_classes, record_address_regs, scan_one_insn,
1229 find_pseudo_class_costs): Process only important classes.
1230 * ira-call.c: Ditto. Add comments about placement optimization.
1232 (allocno) Use one bit field for boolean members.
1233 (important_classes_num, important_classes): New external
1236 2007-03-16 Vladimir Makarov <vmakarov@redhat.com>
1238 * flags.h (ira_algorithm): Add IRA_ALGORITHM_MIXED.
1240 * opts.c (common_handle_option): Set up IRA_ALGORITHM_MIXED from
1241 the option argument.
1243 * common.opt (fira-assign-after-call-split, fira-propagate-cost,
1244 fira-split-around-calls): New options.
1245 (fira-ipra): Switch off by default.
1247 * doc/invoke.texi (-fira-algorithm): Add mixed algorithm.
1248 (-fno-ira-ipra): Rename to -fira-ipra.
1249 (-fno-ira-assign-after-call-split, -fira-propagate-cost,
1250 -fno-ira-split-around-calls): Add new options.
1252 * ira-conflicts.c (curr_reg_pressure): New variable.
1253 (set_pseudo_live, clear_pseudo_live, mark_reg_store,
1254 mark_reg_death): Update reg pressure.
1255 (add_pseudo_copies): Decrease cost for copy with dead pseudo.
1256 (process_bb_node_for_conflicts): Propagate reg pressure.
1257 (build_conflict_bit_table): Call process_bb_node_for_conflicts in
1259 (ira_build_conflicts): Add new coloring algorithm.
1260 (ira_build_conflicts): Add flag_ira_split_around_calls.
1262 * ira-emit.c (change_loop): Print allocation on the region
1263 borders. Use pseudo_cap_member instead of regno.
1264 (modify_move_list): Add parameter to create pseudo.
1265 (ira_emit): Use pseudo_cap_member instead of regno.
1267 * ira-build.c (create_loop_tree_nodes): Set up initial reg
1269 (create_pseudo): Add parameter. Use the parameter value instead
1271 (print_expanded_pseudo): Use pseudo_cap_member instead of regno.
1272 (create_cap_pseudo, create_insn_pseudos, create_bb_pseudos,
1273 create_loop_pseudos): Add argument to create_pseudo call.
1274 (create_pseudos, ira_build): Process IRA_ALGORITHM_MIXED.
1275 (create_loop_tree_node_caps): Create cap pseudo for all pseudos
1276 not having father pseudo.
1278 * final.c (rest_of_handle_final): Process INCOMING_REGNO.
1280 * toplev.h (flag_ira_assign_after_call_split,
1281 flag_ira_propagate_cost, flag_ira_split_around_calls): New flags.
1283 * caller-save.c (save_call_clobbered_regs): Move declaration
1284 this_insn_sets to the function start.
1286 * ira-int.h (ira_loop_tree_node): Add reg_pressure.
1287 (pseudo): More comments for regno and cap_member
1288 (original_regno_call_crossed_p, ira_max_regno_before,
1289 ira_max_regno_call_before): New external variables.
1290 (create_pseudo): Add parameter.
1291 (reassign_conflict_pseudos, debug_ira_call_data,
1292 split_around_calls, get_around_calls_regno): New function
1295 * ira-color.c (assign_hard_reg): Set best_hard_regno and
1296 conflict_regs earlier. Check register availability earlier.
1297 Ignore conflict and copy cost for PSEUDO_MAY_BE_SPILLED_P.
1298 (calculate_pseudo_spill_cost): Use pseudo_cap instead of regno.
1299 Check father pseudo instead of subloop pseudos.
1300 (pop_pseudos_from_stack): Set up PSEUDO_ASSIGNED_P for NO_REGS
1302 (print_loop_title): Print reg pressure.
1303 (color_pass): Use PSEUDO_CAP_MEMBER instead of regno. Add mixed
1305 (move_spill_restore): Use PSEUDO_CAP_MEMBER instead of regno. Use
1306 subloop pseudos instead of father pseudo for cost calculation.
1307 (setup_curr_costs, reassign_conflict_pseudos): New functions.
1308 (retry_ira_color): Don't allocate call used registers when
1309 flag_caller_saves or flag_ira_split_around_calls. Call
1310 setup_curr_cost. Print about spilling pseudo split around calls.
1311 (reuse_stack_slot): Choose the slot with minimal memory-memory
1314 * ira.c (setup_reg_renumber): Add 2 parameters. Use cap_number
1315 instead of regno. Initialize caller_save_needed. Make assertion
1317 (setup_pseudo_assignment_from_reg_renumber): New function.
1318 (calculate_allocation_cost): Add assertion.
1319 (print_redundant_copies): Use cap_number instead of regno.
1320 (original_regno_call_crossed_p, ira_max_regno_before,
1321 ira_max_regno_call_before): New global variables.
1322 (ira): Process IRA_ALGORITHM_MIXED. Set up
1323 ira_max_regno_call_before and ira_max_regno_before. New arguments
1324 for setup_reg_renumber. Reassign if pseudo changed its class.
1325 Split pseudos around the call if necessary. Reassign if a pseudo
1328 * ira.h: New year for Copyright.
1330 * ira-costs.c (reg_pref): Rename to pseudo_pref.
1331 (reg_pref_buffer): rename to pseudo_pref_buffer.
1332 (find_pseudo_class_costs): Initialize best_cost and best_class.
1333 Process IRA_ALGORITHM_MIXED. Find best cover class for regno.
1334 (process_bb_node_for_hard_reg_moves): Process IRA_ALGORITHM_MIXED.
1336 * Makefile.in (ira-call.o): Add new file.
1338 * reload1.c (calculate_needs_all_insns): Remove unnecessary
1341 * ira-call.c: New file.
1343 2007-02-09 Vladimir Makarov <vmakarov@redhat.com>
1345 * common.opt (fipra): Rename to fira-ipra. Make it default.
1346 (fira-move-spills, fira-share-save-slots, fira-share-spill-slots):
1348 * toplev.h (flag_ipra): Rename to flag_ira_ipra.
1349 (flag_ira_move_spills, flag_ira_share_save_slots,
1350 flag_ira_share_spill_slots): New external definitions.
1351 * doc/invoke.texi (-fipra): Rename to -fno-ira-ipra.
1352 (-fno-ira-move-spills, -fno-ira-share-save-slots,
1353 -fno-ira-share-spill-slots): New options.
1354 * function.c (get_call_invalidated_used_regs): Rename flag_ipra to
1356 * ira-costs.c (tune_pseudo_costs_and_cover_classes): Ditto.
1357 * caller-save.c (setup_save_areas): Use flag_ira_share_save_slots.
1358 Rename flag_ipra to flag_ira_ipra.
1359 (flag_ira_share_save_slots): Use flag_ira_move_spills.
1360 * ira-color.c (assign_hard_reg): Skip pseudos with different cover
1362 (reuse_stack_slot): Use flag_ira_share_spill_slots.
1363 * config/arm/arm.h (IRA_COVER_CLASSES): New macro.
1365 2007-02-31 Vladimir Makarov <vmakarov@redhat.com>
1367 * reload.h (debug_save_data): New definition.
1369 * caller-save.c (struct bb_info): New.
1370 (BB_INFO, BB_INFO_BY_INDEX): New macros.
1371 (calculate_local_save_info, set_up_bb_rts_numbers, rpost_cmp,
1372 calculate_save_in_out, calculate_save_here,
1373 make_global_save_analysis, print_hard_reg_set_and_mode,
1374 print_hard_reg_set, print_save_data, debug_save_data,
1375 set_hard_reg_saved): New functions.
1376 (save_call_clobbered_regs): Make global save analysis and use it
1377 to put save/restore code.
1378 (insert_one_insn): Check CODE_LABEL.
1380 2007-01-19 Vladimir Makarov <vmakarov@redhat.com>
1382 * toplev.h (flag_ipra): New external definition.
1384 * common.opt (fipra): New option.
1386 * doc/invoke.texi (-fipra); Document the option.
1388 * cgraph.h (cgraph_node): New member function_used_regs.
1390 * cgraph.c (cgraph_create_node): Initialize function_used_regs.
1392 * final.c (update_regs_ever_live): New function.
1393 (rest_of_handle_final): Set up function_used_regs and
1396 * ira-build.c (ira_build): Clear function call_used_regs.
1398 * function.h: Add hard-reg-set.h header.
1399 (emit_status): New member call_used_regs.
1400 (get_call_invalidated_used_regs): New definition.
1402 * function.c (get_call, get_call_invalidated_used_regs): New
1405 * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
1406 (caller-save.o): Add dependence on output.h and ira.h
1408 * regrename.c (copyprop_hardreg_forward_1): Use function
1409 get_call_invalidated_used_regs.
1411 * ira-conflicts.c (process_bb_node_for_conflicts): Ditto.
1413 * postreload-gcse.c (record_opr_changes,
1414 reg_set_between_after_reload_p, reg_used_between_after_reload_p):
1417 * postreload.c (reload_combine, reload_cse_move2add): Ditto.
1419 * rtlanal.c (reg_set_between_p): Ditto.
1421 * flow.c (propagate_one_insn): Ditto.
1423 * df-scan.c (df_insn_refs_record): Ditto.
1425 * gcse.c (compute_hash_table_work, compute_store_table): Ditto.
1427 * cselib.c (cselib_process_insn): Ditto.
1429 * loop-iv.c (simplify_using_assignment): Ditto.
1431 * sched-deps.c (sched_analyze): Ditto.
1433 * combine.c (record_dead_and_set_regs): Ditto.
1435 * resource.c (mark_set_resources, mark_set_resources): Ditto.
1437 * var-tracking.c (var-tracking.c): Ditto.
1439 * reload1.c (reload): Ditto.
1441 * cse.c (invalidate_for_call): Ditto. Add parameter.
1442 (cse_insn): Pass the parameter.
1444 * ira.h (try_to_migrate): Remove the definition.
1445 (collect_pseudo_call_clobbered_regs): New external definition.
1447 * ira-color.c (collect_pseudo_call_clobbered_regs): New function.
1449 * ira-costs.c (tune_pseudo_costs_and_cover_classes): Add cost
1450 calculation when IPRA is used.
1452 * caller-save.c: Include headers output.h and ira.h.
1453 (saved_hard_reg): New structure.
1454 (hard_reg_map, hard_reg_map, all_saved_regs): New variables.
1455 (all_saved_regs, new_saved_hard_reg, finish_saved_hard_regs,
1456 saved_hard_reg_compare_func): New functions.
1457 (setup_save_areas): Add code for sharing stack slots.
1458 (save_call_clobbered_regs): Use function
1459 get_call_invalidated_used_regs.
1461 2007-01-12 Vladimir Makarov <vmakarov@redhat.com>
1463 * doc/tm.texi (IRA_HARD_REGNO_ADD_COST_MULTIPLIER): New macro.
1465 * ira-conflicts.c (add_pseudo_copies): Add copy between output and
1466 died operand pseudos.
1468 * ira.c (setup_cover_classes, setup_class_translate): Define and
1469 call only when IRA_COVER_CLASSES is defined.
1470 (no_alloc_regs): Rename to no_unit_alloc_regs.
1471 (setup_eliminable_regset): Set up no_alloc_regs.
1473 * ira-costs.c (tune_pseudo_costs_and_cover_classes): Modify cost
1474 if IRA_HARD_REGNO_ADD_COST_MULTIPLIER is defined.
1476 * config/s390/s390.h (IRA_COVER_CLASSES,
1477 IRA_HARD_REGNO_ADD_COST_MULTIPLIER(regno)): Define.
1479 2006-12-22 Vladimir Makarov <vmakarov@redhat.com>
1481 * rtl.h (setup_reg_classes): New function prototype.
1483 * regclass.c (setup_reg_classes): New function.
1485 * global.c (global_alloc): Dump information about register
1488 * ira-int.h (ira_build): Change prototype signature.
1490 * ira-color.c (pseudo_compare_func): Rename to
1491 pseudo_priority_compare_func.
1492 (priority_coloring): Dump information about register
1495 * ira-build.c (ira_build): Return true if we have loops for the
1498 * ira.c (setup_preferred_alternate_classes): New function.
1499 (ira): Use it instead of regclass. Rebuild only if we have loops.
1501 2006-12-15 Vladimir Makarov <vmakarov@redhat.com>
1503 * ira.h, ira-int.h, ira.c, ira-build.c, ira-costs.c
1504 ira-conflicts.c, ira-color.c, ira-emit.c: New files.
1506 * flags.h (ira_algorithm): New enumeration.
1507 (flag_ira_algorithm): New external variable declaration.
1509 * tree-pass.h (pass_ira): New external variable declaration.
1511 * toplev.c (ira.h): New include.
1512 (flag_ira_algorithm): New global variable.
1513 (backend_init): Call init_ira_once.
1515 * toplev.h (flag_ira, flag_ira_biased_coloring): New external
1516 variable declarations.
1518 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
1519 may_move_out_cost): New external variable declarations.
1521 * caller-save.c (no_caller_save_reg_set): New global variable.
1522 (init_caller_save): Set up no_caller_save_reg_set.
1524 * global.c (eliminable_regset): Make it external.
1525 (gate_handle_global_alloc): New function.
1526 (pass_global_alloc): Add the gate function.
1528 * opts.c (decode_options): Print the warning for -fira.
1529 (common_handle_option): Process -fira-algorithm option.
1531 * timevar.def (TV_IRA): New pass.
1533 * hard-reg-set.h (no_caller_save_reg_set): New external variable
1536 * regmove.c (regmove_optimize): Don't do replacement of output
1537 operands by input operands.
1538 (rest_of_handle_regmove): Don't do CFG cleanup for IRA.
1540 * local-alloc.c (update_equiv_regs): Make it external. Return
1541 true if jump label rebuilding should be done.
1542 (gate_handle_local_alloc): New function.
1543 (pass_local_alloc): Add the gate function.
1545 * alias.c (stack_addr_p): New function.
1546 (nonoverlapping_memrefs_p): Add code for IRA.
1548 * common.opt (fira, fira-algorithm, fira-biased-coloring): New
1551 * regclass.c (contains_reg_of_mode, move_cost, may_move_in_cost,
1552 may_move_out_cost): Make the variables external.
1554 * rtl.h (eliminable_regset): New external variable declaration.
1555 (update_equiv_regs): New external function definition.
1557 * Makefile.in (IRA_INT_H): New definition.
1558 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
1559 ira-conflicts.o, ira-color.o, and ira-emit.o.
1560 (reload1.o, toplev.o): Add dependence on ira.h.
1561 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
1562 ira-emit.o): New entries.
1564 * passes.c (pass_ira): New pass.
1566 * reload1.c (alter_reg): Add a new parameter.
1567 (pseudo_reg_compare): New function.
1568 (reload): Sort pseudos for IRA. Call alter_reg with the
1569 additional parameter.
1570 (count_spilled_pseudo): New variable freq. Use it.
1571 (alter_reg): Add code for IRA.
1572 (eliminate_regs_1, finish_spills, emit_input_reload_insns,
1573 delete_output_reload): Use additional parameter for alter_reg.
1574 (finish_spills, emit_input_reload_insns, delete_output_reload):
1575 Call mark_allocation_change.
1576 (finish_spills): Call retry_ira_color.
1578 * doc/invoke.texi: Describe new options -fira,
1579 -fira-biased-coloring, and -fira-algorithm.
1581 * doc/passes.texi: Decribe IRA.
1583 * doc/tm.texi: Decribe macro IRA_COVER_CLASSES.
1585 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
1587 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
1589 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
1591 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
1593 Richard Henderson <rth@redhat.com>
1595 * tree-pass.h (pass_lower_subreg): New external definition.
1596 * toplev.h (flag_lower_subreg): New external definition.
1597 * rtl.def (CONCATN): New rtl expression.
1598 * dwarf2out.c (concatn_loc_descriptor): New function.
1599 (loc_descriptor): Process CONCATN.
1600 * timevar.def (TV_LOWER_SUBREG): New definition.
1601 * emit-rtl.c (gen_reg_rtx_offset): New function.
1602 (gen_lowpart_common): Process CONCATN.
1603 * simplify-rtx.c (simplify_subreg): Process CONCATN.
1604 * common.opt (flower-subreg): New options.
1605 * rtl.h (gen_reg_rtx_offset): New external definition.
1606 * Makefile.in (OBJS-common): Add lower-subreg.o.
1607 (lower-subreg.o): New entry.
1608 * passes.c (pass_lower_subreg): Add new pass.
1609 * lower-subreg.c: New file.
1611 2008-03-28 Rafael Espindola <espindola@google.com>
1613 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
1614 (tree_binary_nonnegative_warnv_p): Make it public.
1615 (tree_single_nonnegative_warnv_p): Make it public.
1616 (tree_invalid_nonnegative_warnv_p): Make it public.
1617 (tree_unary_nonzero_warnv_p): Make it public.
1618 (tree_binary_nonzero_warnv_p): Make it public
1619 (tree_single_nonzero_warnv_p): Make it public.
1620 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
1621 (extract_range_from_binary_expr): Split the expr argument.
1622 (extract_range_from_unary_expr): Split the expr argument.
1623 (extract_range_from_comparison): Split the expr argument.
1624 (extract_range_from_expr): Use the new aux functions.
1625 (vrp_evaluate_conditional_warnv): Use
1626 vrp_evaluate_conditional_warnv_with_ops.
1627 * tree.h (tree_unary_nonzero_warnv_p): Declare.
1628 (tree_binary_nonzero_warnv_p): Declare.
1629 (tree_single_nonzero_warnv_p): Declare.
1630 (tree_expr_nonzero_warnv_p): Declare.
1631 (tree_unary_nonnegative_warnv_p): Declare.
1632 (tree_binary_nonnegative_warnv_p): Declare.
1633 (tree_single_nonnegative_warnv_p): Declare.
1634 (tree_invalid_nonnegative_warnv_p): Declare.
1636 2008-03-28 Richard Guenther <rguenther@suse.de>
1638 PR tree-optimization/30317
1639 PR tree-optimization/30911
1640 PR tree-optimization/34793
1641 * tree-vrp.c (set_and_canonicalize_value_range): New function.
1642 (struct assert_locus_d): New member EXPR.
1643 (register_new_assert_for): Add EXPR parameter to support
1644 ASSERT_EXPR <name, expr OP limit>.
1645 (register_edge_assert_for_1): Adjust callers.
1646 (find_assert_locations): Likewise.
1647 (process_assert_insertions_for): Build condition from
1649 (extract_range_from_assert): Handle ASSERT_EXPRs
1650 of the form ASSERT_EXPR <name, expr OP limit>.
1651 (register_edge_assert_for_2): New helper registering
1652 asserts for comparisons. Recognize range tests of the form
1653 (unsigned)i - CST1 OP CST2.
1654 (register_edge_assert_for_1): Use it.
1655 (register_edge_assert_for): Likewise.
1656 (needs_overflow_infinity): Integer sub-types
1657 do not need overflow infinities.
1658 (vrp_val_is_max): The extreme values of integer sub-types
1659 are those of the base type.
1660 (vrp_val_is_min): Likewise.
1661 * tree.def (ASSERT_EXPR): Document extra allowed conditional
1664 2008-03-28 Nick Clifton <nickc@redhat.com>
1666 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
1667 Return GENERAL_REGS for stack adjustment reloads.
1669 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
1672 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
1673 const_vector when all the vectors are constant.
1675 2008-03-27 Bob Wilson <bob.wilson@acm.org>
1677 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
1679 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
1680 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
1682 (s<code>_sf): Use new scc_sf attribute for opcode names.
1684 2008-03-27 Tom Tromey <tromey@redhat.com>
1686 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
1687 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
1688 config/spu/t-spu-elf, config/i386/t-interix,
1689 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
1690 config/i386/x-darwin, config/i386/x-mingw32,
1691 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
1692 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
1693 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
1694 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
1695 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
1696 config/rs6000/x-darwin, config/rs6000/t-rs6000,
1697 config/score/t-score-elf, config/arm/t-strongarm-pe,
1698 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
1699 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
1700 Revert automatic dependency patch.
1702 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
1705 * config/i386/i386.c (ix86_function_arg_boundary): Align
1706 decimal floating point to its natural boundary.
1708 2008-03-27 Richard Guenther <rguenther@suse.de>
1711 * fold-const.c (fold_comparison): Restrict distinct decl
1712 comparison folding to VAR_DECLs and PARM_DECLs. Do not
1713 solely rely on operand_equal_p.
1715 2008-03-27 Richard Guenther <rguenther@suse.de>
1718 * c-common.c (handle_weak_attribute): Reject combination of
1721 2008-03-27 Richard Guenther <rguenther@suse.de>
1723 PR tree-optimization/32810
1724 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
1725 conversions from DECL_INITIAL.
1726 (fold_const_aggregate_ref): Likewise from constructor elements.
1728 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
1730 * tree-affine.h (aff_combination_expand): Declare.
1731 (get_inner_reference_aff): Likewise.
1732 * tree-affine.c (aff_combination_expand): Split out from
1733 tree_to_aff_combination_expand.
1734 (get_inner_reference_aff): New function.
1735 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
1736 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
1737 (struct lim_aux_data): sm_done field removed.
1738 (mem_ref_loc_p, mem_ref_locs_p): New types.
1739 (struct mem_ref): Added id, stored, accesses_in_loop,
1740 indep_loop, dep_loop, indep_ref, dep_ref fields.
1741 Removed is_stored, locs and next fields.
1742 (memory_accesses): New variable.
1743 (movement_possibility): Do not allow moving statements
1744 that store to memory.
1745 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
1747 (determine_max_movement): For statements with memory references,
1748 find the outermost loop in that the reference is independent.
1749 (move_computations_stmt): Mark the virtual operands for
1751 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
1752 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
1753 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
1754 add_vop_ref_mapping, create_vop_ref_mapping_loop,
1755 create_vop_ref_mapping, analyze_memory_references,
1756 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
1757 get_all_locs_in_loop, ref_always_accessed_p,
1758 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
1759 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
1760 store_motion_loop, store_motion): New functions.
1761 (struct vop_to_refs_elt): New type.
1762 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
1763 memref_hash, memref_eq, hoist_memory_references): Rewritten.
1764 (schedule_sm): Replaced by...
1765 (execute_sm): ... this.
1766 (determine_lsm_ref, hoist_memory_references,
1767 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
1768 find_more_ref_vops, free_mem_ref, free_mem_refs,
1769 determine_lsm_loop, determine_lsm): Removed.
1770 (tree_ssa_lim_finalize): Free data structures used by store
1772 (tree_ssa_lim): Call analyze_memory_references. Use
1773 store_motion instead of determine_lsm.
1775 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
1777 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
1778 rename tmake_file to m68hc11/t-m68hc11.
1779 (mcore): Set inhibit_libc to true.
1780 * config.host (alpha*-dec-*vms*): Set extra_programs.
1781 (interix3*): Don't use host_xmake_file.
1782 * configure.ac: Let config.gcc override inhibit_libc.
1783 * configure: Regenerate.
1785 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
1786 * config/t-openbsd-thread: Remove commented out lines.
1788 * config/x-interix: Remove.
1790 * config/m68hc11/t-m68hc11-gas: Rename to...
1791 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
1793 * config/mcore/t-mcore: Remove T_CFLAGS.
1794 * config/mcore/t-mcore-pe: Likewise.
1796 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
1798 * configure.ac: Replace custom __GNU_SOURCE test with
1799 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
1800 * aclocal.m4: Regenerate.
1801 * configure: Regenerate.
1802 * config.in: Regenerate.
1804 2008-03-27 Richard Guenther <rguenther@suse.de>
1806 * fold-const.c (target.h): Include.
1807 (fold_comparison): Fold comparison of addresses of decls
1808 that bind locally or of constants. Consolidate address folding code.
1809 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
1810 results from fold_binary_to_constant.
1811 (compare_values_warnv): Likewise.
1813 2008-03-27 Andrew Pinski <pinskia@gmail.com>
1816 * fold-const.c (fold_truthop): Check for integeral types when folding
1817 a == 0 && b == 0 and a != 0 || b != 0 .
1819 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
1821 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
1823 2008-03-26 Andreas Schwab <schwab@suse.de>
1825 * doc/invoke.texi: Fix use of @item vs. @itemx.
1827 2008-03-26 Tom Tromey <tromey@redhat.com>
1829 * Makefile.in (build/gensupport.o, build/print-rtl.o,
1830 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
1831 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
1832 build/gencodes.o, build/genconditions.o, build/genconfig.o,
1833 build/genconstants.o, build/genemit.o, build/genextract.o,
1834 build/genflags.o, build/genmddeps.o, build/genopinit.o,
1835 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
1838 2008-03-26 Richard Guenther <rguenther@suse.de>
1841 2008-03-26 Richard Guenther <rguenther@suse.de>
1843 * fold-const.c (target.h): Include.
1844 (fold_comparison): Fold comparison of addresses of two decls
1845 that bind locally. Consolidate address folding code.
1847 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1849 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
1850 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
1851 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
1852 dconstsqrt2, dconstthird, dconste and/or dconst10.
1853 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
1854 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
1855 dconstsqrt2, dconste): Delete.
1856 (init_emit_once): Likewise. Simplify initializing dconstm1.
1858 * real.c (get_real_const): New.
1859 * real.h (dconst3, dconst10, dconstm2, dconstthird,
1860 dconstsqrt2, dconste): Delete.
1861 (real_value_const, get_real_const): New.
1863 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
1865 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
1867 * config/i386/i386.c (ix86_function_arg_boundary): Check
1868 BIGGEST_ALIGNMENT instead of 128.
1869 (setup_incoming_varargs_64): Likewise.
1871 2008-03-26 Tom Tromey <tromey@redhat.com>
1873 * Makefile.in (DEPFILES): Add missing '/'.
1875 2008-03-26 Richard Guenther <rguenther@suse.de>
1877 * fold-const.c (target.h): Include.
1878 (fold_comparison): Fold comparison of addresses of two decls
1879 that bind locally. Consolidate address folding code.
1881 2008-03-26 Nick Clifton <nickc@redhat.com>
1884 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
1885 not allow INT+INT as a legitimate addressing mode.
1887 2008-03-26 Richard Guenther <rguenther@suse.de>
1889 * tree-flow.h (widen_bitfield): Remove declaration.
1890 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
1891 (widen_bitfield): Remove function.
1892 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
1895 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
1898 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
1901 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
1903 PR rtl-optimization/35232
1904 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
1905 (forget_old_reloads_1, forget_marked_reloads): Don't clear
1906 reg_reloaded_call_part_clobbered here.
1907 (reload_regs_reach_end_p): New function.
1908 (reload_reg_rtx_for_input): New variable.
1909 (reload_reg_rtx_for_output): Likewise.
1910 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
1911 when reassigning a pseudo register. Load reloadreg from
1912 reload_reg_rtx_for_input, moving the mode and register
1914 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
1915 instead of the original when deciding whether an input reload
1916 would be a no-op or whether an output reload can be deleted.
1917 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
1918 when setting up new_spill_reg_store. Load it from
1919 reload_reg_rtx_for_output, moving the mode and register
1921 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
1922 instead of the original when deciding whether an output reload
1923 would be a no-op. Do the same when modifying insn notes.
1924 Use rtx_equal_p instead of == to compare the registers.
1925 (inherit_piecemeal_p): Take a mode and two register numbers
1927 (emit_reload_insns): Clear new_spill_reg_store for every hard
1928 register in the reload register. Remove spill registers
1929 from reg_reloaded_valid before considering whether to record
1930 inheritance information for them. Use reload_reg_rtx_for_output
1931 instead of reg_rtx when recording output reloads. Use
1932 reload_reg_rtx_for_input instead of reg_rtx when recording
1933 input reloads. Set or clear reg_reloaded_call_part_clobbered
1934 at the same time as setting reg_reloaded_valid.
1935 (delete_output_reload): Add a new_reload_reg parameter and use it
1936 instead of rld[j].reg_rtx.
1937 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
1940 2008-03-25 Tom Tromey <tromey@redhat.com>
1942 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
1943 (build/genattr.o): Likewise.
1944 (build/genattrtab.o): Likewise.
1945 (build/gencodes.o): Likewise.
1946 (build/genconfig.o): Likewise.
1947 (build/genconstants.o): Likewise.
1948 (build/genemit.o): Likewise.
1949 (build/genextract.o): Likewise.
1950 (build/genflags.o): Likewise.
1952 2008-03-25 Bob Wilson <bob.wilson@acm.org>
1954 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
1955 instead of size_int for integer types.
1956 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
1957 to match type of MINUS_EXPR.
1959 2008-03-25 Tom Tromey <tromey@redhat.com>
1961 * configure: Rebuilt.
1962 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
1965 2008-03-25 Tom Tromey <tromey@redhat.com>
1967 * config/x-solaris (host-solaris.o): Update.
1968 * config/x-linux (host-linux.o): Update.
1969 * config/x-hpux (host-hpux.o): Update.
1970 * config/x-darwin (host-darwin.o): Update.
1971 * config/v850/t-v850e (v850-c.o): Update.
1972 * config/v850/t-v850 (v850-c.o): Update.
1973 * config/t-vxworks (vxworks.o): Update.
1974 * config/t-sol2 (sol2-c.o, sol2.o): Update.
1975 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
1976 * config/spu/t-spu-elf (spu-c.o): Update.
1978 * config/sh/t-symbian (sh-c.o): Update.
1979 (symbian.o): Update.
1980 * config/sh/t-sh (sh-c.o): Update.
1981 * config/score/t-score-elf (score7.o, score3.o): Update.
1982 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
1983 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
1984 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
1985 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
1987 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
1988 * config/m32c/t-m32c (m32c-pragma.o): Update.
1989 * config/ia64/t-ia64 (ia64-c.o): Update.
1990 * config/i386/x-mingw32 (host-mingw32.o): Update.
1991 * config/i386/x-i386 (driver-i386.o): Update.
1992 * config/i386/x-darwin (host-i386-darwin.o): Update.
1993 * config/i386/x-cygwin (host-cygwin.o): Update.
1994 * config/i386/t-nwld (nwld.o): Update.
1995 * config/i386/t-netware (netware.o): Update.
1996 * config/i386/t-interix (winnt.o): Update.
1997 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
1998 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
1999 msformat-c.o): Update.
2000 * config/bfin/t-bfin-linux (generated_files): Add
2001 linux-sysroot-suffix.h.
2002 * config/arm/t-wince-pe (pe.o): Update.
2003 * config/arm/t-strongarm-pe (pe.o): Update.
2004 * config/arm/t-pe (pe.o): Update.
2005 * config/arm/t-arm (arm-c.o): Update.
2006 * doc/install.texi (Prerequisites): Require make 3.80.
2007 * Makefile.in: Remove .o targets.
2008 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
2009 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
2010 (simple_generated_h, simple_generated_c): Move earlier.
2011 (generated_files): New variable.
2012 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
2013 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
2014 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
2015 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
2016 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
2017 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
2018 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
2019 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
2020 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
2021 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
2022 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
2023 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
2025 (COMPILE.base, COMPILE): New variables.
2026 (%.o): New pattern rule.
2027 (ALL_HOST_OBJS): New variable.
2028 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
2029 (dummy-checksum.o, cc1-checksum.o): Remove.
2030 (DRIVER_SHLIB): New variable.
2031 (DRIVER_DEFINES): Use it.
2032 (gencondmd.c): Move out of build/.
2033 (s-conditions): Update.
2034 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
2035 (ALL_BUILD_OBJS): Likewise.
2036 (build/%.o): Use BUILDCOMPILE.
2037 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
2038 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
2039 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
2040 build/gencheck.o, build/gencodes.o, build/genconditions.o,
2041 build/genconfig.o, build/genconstants.o, build/genemit.o,
2042 build/genextract.o, build/genflags.o, build/genmddeps.o,
2043 build/genopinit.o, build/genoutput.o, build/genpeep.o,
2044 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
2045 build/gen-protos.o, build/scan.o, build/fix-header.o,
2046 build/scan-decls.o): Simplify.
2047 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
2048 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
2049 prefix.o, toplev.o): Reduce to variable setting.
2050 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
2051 ($(out_object_file), gcc-options.o): New targets.
2052 ($(ALL_HOST_OBJS)): New target. Include dependency files.
2053 * configure: Rebuilt.
2054 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
2055 * doc/sourcebuild.texi (Front End Directory): Document new variable.
2057 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
2059 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
2060 complain when we hit an error, return ERROR_MARK_NODE.
2062 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2064 * config/sh/constraints.md (Pso, Psz): New constraints.
2065 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
2066 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
2068 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2070 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
2071 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
2073 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2075 * config/sh/sh.md (prefetch): Add condition for SH2A target.
2076 (prefetch_sh2a): New.
2078 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
2079 Naveen.H.S <naveen.hs@kpitcummins.com>
2081 * config/sh/constraints.md (I28): New constraint.
2082 * config/sh/sh.c (broken_move): Add support for movi20s.
2083 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
2085 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
2086 Jayant Sonar <Jayant.sonar@kpitcummins.com>
2087 Naveen.H.S <naveen.hs@kpitcummins.com>
2089 * config/sh/sh.c (SH_ATTRIBUTES): Define.
2090 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
2091 (print_operand): Handle resbank in %@ operand code.
2092 (sh_encode_section_info): New.
2093 (push_regs): Add conditions for resbank.
2094 (sh_expand_epilogue): Likewise.
2095 (sh_insert_attributes): Likewise.
2096 (sh_attribute_table): Likewise.
2097 (sh_handle_resbank_handler_attribute): New.
2098 (sh2a_handle_function_vector_handler_attribute): New.
2099 (sh2a_is_function_vector_call): New.
2100 (sh2a_get_function_vector_number): New.
2101 (sh2a_function_vector_p): New.
2102 (sh_cfun_resbank_handler_p): New.
2103 * config/sh/sh.md (calli): Emit jsr/n if possible.
2104 (calli_tbr_rel): New.
2105 (calli_pcrel): Emit jsr/n if possible.
2106 (return_i): Emit rts/n if possible.
2107 (call_valuei_tbr_rel): New.
2108 (call_valuei_pcrel): Add condition for SH2A target.
2109 (call_value): Likewise.
2110 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
2111 (sh2a_get_function_vector_number): Likewise.
2112 (sh2a_is_function_vector_call): Likewise.
2113 * doc/extend.texi: Document TBR relative addressing of SH2A.
2114 (resbank): Add description for SH2A.
2116 2008-03-24 Richard Guenther <rguenther@suse.de>
2119 * gimplify.c (gimplify_modify_expr): For frontend type-correct
2120 pointer assignments change conversions according to middle-end rules.
2121 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
2122 * configure.ac: Include type checking in yes.
2123 * configure: Regenerate.
2125 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2127 * diagnostic.c (diagnostic_count_diagnostic): Delete.
2128 (diagnostic_report_diagnostic): Update. Handle ICEs here.
2130 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
2132 * gthr-vxworks.h (UNUSED): Define.
2134 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
2136 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and
2139 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
2141 * doc/extend.texi (Function Attributes): Add missing comma in the
2142 example of the "alloc_size" attribute.
2144 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
2147 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
2149 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2152 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
2155 * stor-layout.c (update_alignment_for_field): Set minimum alignment
2156 of the underlying type of a MS bitfield layout to the natural
2157 alignment of the type.
2159 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
2161 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2162 to their natural alignment to avoid store forwarding stalls.
2164 2008-03-22 Richard Guenther <rguenther@suse.de>
2166 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
2167 For PHI nodes verify the address is invariant.
2168 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
2169 (get_symbol_constant_value): Use is_gimple_min_invariant.
2170 (maybe_fold_stmt_indirect): Likewise.
2172 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
2174 PR rtl-optimization/33927
2175 * Makefile.in (dse.o): Depend on $(TM_P_H).
2176 * expr.h (extract_low_bits): Declare.
2177 * expmed.c (extract_low_bits): New function.
2178 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
2179 * dse.c: Include tm_p.h.
2180 (find_shift_sequence): Remove the read_reg argument and return the
2181 read value. Emit the instructions instead of returning them.
2182 Iterate on new_mode rather than calculating it each time.
2183 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
2184 source to NEW_MODE and extract_low_bits to convert the shifted
2186 (replace_read): Allow the load and store to have different mode
2187 classes. Use extract_low_bits when SHIFT == 0. Create the shift
2188 or extraction instructions before trying the replacement. Update
2189 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
2191 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
2193 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2194 to their natural alignment to avoid store forwarding stalls.
2196 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
2199 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
2200 encouraging but not allowing gprs for input;
2201 change the input constraint to !f#r.
2202 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
2204 change the output constraint to !f#r.
2206 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
2209 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
2210 corresponding post-reload splitters.
2211 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
2212 when x87 FP math is selected.
2213 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
2214 New function prototype.
2215 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
2216 unreachable function to ease macroization of insn patterns.
2218 2008-03-21 Martin Jambor <mjambor@suse.cz>
2220 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
2221 reference dumps if ddr is NULL or dependence is unknown.
2223 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
2225 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
2226 unsigned extension into account.
2227 (ATOMIC_COMPARE_AND_SWAP): Likewise.
2228 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
2229 Do computations on a scratch register.
2231 2008-03-21 Richard Guenther <rguenther@suse.de>
2233 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2234 Use is_gimple_min_invariant instead of TREE_INVARIANT.
2235 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
2236 * tree-ssa-dom.c (record_equality): Likewise.
2237 * tree-inline.c (copy_body_r): Likewise.
2238 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
2241 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
2243 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
2244 as 'delete_unused' argument.
2246 2008-03-20 Richard Guenther <rguenther@suse.de>
2248 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
2249 special casing of constant qualifiers.
2250 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
2251 care about them in general.
2252 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
2253 regardless of their type.
2254 (fold_stmt_r): Forcefully fold *& if we end up with that.
2256 2008-03-20 Paul Brook <paul@codesourcery.com>
2258 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
2259 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
2261 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
2263 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
2264 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
2266 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
2268 * common.opt (Wmudflap): New option.
2269 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
2270 (mx_register_decls): Likewise.
2271 (mudflap_finish_file): Likewise.
2272 * doc/invoke.texi: Document -Wno-mudflap.
2274 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
2276 * c-format.c (replace_format_name_to_system_name): New.
2278 (convert_format_name_to_system_name): New.
2279 (decode_format_attr): Add use of convert_format_name_to_system_name.
2280 (format_types_orig): Add gnu_ prefix to names.
2281 (check_format_info_main): Special treating of \0 escaped names for
2282 supporting multi-character format specifiers as I32, I64.
2283 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
2284 (gnu_target_overrides_format_attributes): New.
2285 * c-format.h: Add structure target_ovr_attr to hold
2286 system specific formatter names.
2287 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
2288 msformat-c.o file to c_target_objs and cxx_target_objs.
2289 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2290 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
2291 (TARGET_N_FORMAT_TYPES): New.
2292 * config/i386/msformat-c.c: New.
2293 * config/i386/t-cygming: Add build rule for msformat-c.o.
2294 * doc/extend.texi: Add new format names gnu_* and ms_* and
2296 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2298 2008-03-20 Ira Rosen <irar@il.ibm.com>
2300 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
2301 optimizations turned on under -O3.
2302 (ftree-vectorize): Add that the flag is turned on with -O3.
2304 2008-03-20 Ben Elliston <bje@au.ibm.com>
2306 * regmove.c (try_auto_increment): Fix spelling error in comment.
2307 * final.c (final_scan_insn): Likewise.
2309 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
2312 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
2313 allocator preferences for "y" and "r" class registers.
2314 ("*mov<mode>_internal"): Ditto.
2315 ("*movv2sf_internal_rex64"): Ditto.
2316 ("*movv2sf_internal"): Ditto.
2318 2008-03-19 Michael Matz <matz@suse.de>
2321 * calls.c (expand_call): Check overlap of arguments with call
2322 address for sibcalls.
2324 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
2327 * stor-layout.c (update_alignment_for_field): Set minimum alignment
2328 of the underlying type of a MS bitfield layout to the natural
2329 alignment of the type.
2331 2008-03-19 Jan Hubicka <jh@suse.cz>
2334 * toplev.c (decode_d_option): Handle all CPP flags.
2335 * tree-vrp.c: Update tree_pass descriptors.
2336 * regrename.c: Update tree_pass descriptors.
2337 * fwprop.c: Update tree_pass descriptors.
2338 * doc/invoke.texi: Remove documentation of dropped -d? flags.
2339 * tree-into-ssa.c: Update tree_pass descriptors.
2340 * tree-dump.c: Update tree_pass descriptors.
2341 * tree-complex.c: Update tree_pass descriptors.
2342 * tree-dump.h: Update tree_pass descriptors.
2343 * see.c: Update tree_pass descriptors.
2344 * cgraphbuild.c: Update tree_pass descriptors.
2345 * tracer.c: Update tree_pass descriptors.
2346 * tree-loop-distribution.c: Update tree_pass descriptors.
2347 * cgraph.c: Update tree_pass descriptors.
2348 * postreload-gcse.c: Update tree_pass descriptors.
2349 * postreload.c: Update tree_pass descriptors.
2350 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
2351 * tree-tailcall.c: Update tree_pass descriptors.
2352 * tree-pass.h (tree_opt_pass): Rename to ...
2353 (opt_pass) ... this one; add "type" field and remove letter field.
2354 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
2355 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
2356 all_lowering_passes): Update declaration.
2357 * ipa-cp.c: Update tree_pass descriptors.
2358 * final.c: Update tree_pass descriptors.
2359 * omp-low.c: Update tree_pass descriptors.
2360 * tree-ssa-dse.c: Update tree_pass descriptors.
2361 * ipa-reference.c: Update tree_pass descriptors.
2362 * tree-ssa-uncprop.c: Update tree_pass descriptors.
2363 * auto-inc-dec.c: Update tree_pass descriptors.
2364 * reorg.c: Update tree_pass descriptors.
2365 * cgraphunit.c: Update tree_pass descriptors.
2366 * tree-ssa-copyrename.c: Update tree_pass descriptors.
2367 * tree-ssa-ccp.c: Update tree_pass descriptors.
2368 * df-core.c: Update tree_pass descriptors.
2369 * mode-switching.c: Update tree_pass descriptors.
2370 * tree-nomudflap.c: Update tree_pass descriptors.
2371 * modulo-sched.c: Update tree_pass descriptors.
2372 * ipa-pure-const.c: Update tree_pass descriptors.
2373 * cse.c: Update tree_pass descriptors.
2374 * web.c: Update tree_pass descriptors.
2375 * tree-stdarg.c: Update tree_pass descriptors.
2376 * tree-ssa-math-opts.c: Update tree_pass descriptors.
2377 * tree-ssa-dom.c: Update tree_pass descriptors.
2378 * tree-nrv.c: Update tree_pass descriptors.
2379 * tree-ssa-alias.c: Update tree_pass descriptors.
2380 * loop-init.c: Update tree_pass descriptors.
2381 * gimple-low.c: Update tree_pass descriptors.
2382 * ipa-inline.c: Update tree_pass descriptors.
2383 * tree-ssa-sink.c: Update tree_pass descriptors.
2384 * global.c: Update tree_pass descriptors.
2385 * ifcvt.c: Update tree_pass descriptors.
2386 * jump.c: Update tree_pass descriptors.
2387 * predict.c: Update tree_pass descriptors.
2388 * tree-ssa-loop.c: Update tree_pass descriptors.
2389 * recog.c: Update tree_pass descriptors.
2390 * dse.c: Update tree_pass descriptors.
2391 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
2392 * tree-eh.c: Update tree_pass descriptors.
2393 * regmove.c: Update tree_pass descriptors.
2395 * function.c: Update tree_pass descriptors.
2396 * tree-vectorizer.c: Update tree_pass descriptors.
2397 * gcse.c: Update tree_pass descriptors.
2398 * ipa-type-escape.c: Update tree_pass descriptors.
2399 * tree-if-conv.c: Update tree_pass descriptors.
2400 * init-regs.c: Update tree_pass descriptors.
2401 * ipa.c: Update tree_pass descriptors.
2402 * tree-ssa-phiopt.c: Update tree_pass descriptors.
2403 * rtl-factoring.c: Update tree_pass descriptors.
2404 * lower-subreg.c: Update tree_pass descriptors.
2405 * bt-load.c: Update tree_pass descriptors.
2406 * tree-dfa.c: Update tree_pass descriptors.
2407 * except.c: Update tree_pass descriptors.
2408 * emit-rtl.c: Update tree_pass descriptors.
2409 * cfgexpand.c: Update tree_pass descriptors.
2410 * tree-cfgcleanup.c: Update tree_pass descriptors.
2411 * cfgcleanup.c: Update tree_pass descriptors.
2412 * tree-ssa-pre.c: Update tree_pass descriptors.
2413 * tree-sra.c: Update tree_pass descriptors.
2414 * tree-mudflap.c: Update tree_pass descriptors.
2415 * tree-ssa-copy.c: Update tree_pass descriptors.
2416 * cfglayout.c: Update tree_pass descriptors.
2417 * tree-ssa-forwprop.c: Update tree_pass descriptors.
2418 * tree-ssa-dce.c: Update tree_pass descriptors.
2419 * tree-ssa.c: Update tree_pass descriptors.
2420 * regclass.c: Update tree_pass descriptors.
2421 * integrate.c: Update tree_pass descriptors.
2422 * tree-optimize.c: Update tree_pass descriptors.
2423 * tree-ssa-phiprop.c: Update tree_pass descriptors.
2424 * tree-object-size.c: Update tree_pass descriptors.
2425 * combine.c: Update tree_pass descriptors.
2426 * tree-outof-ssa.c: Update tree_pass descriptors.
2427 * bb-reorder.c: Update tree_pass descriptors.
2428 * stack-ptr-mod.c: Update tree_pass descriptors.
2429 * var-tracking.c: Update tree_pass descriptors.
2430 * tree-profile.c: Update tree_pass descriptors.
2431 * tree-vect-generic.c: Update tree_pass descriptors.
2432 * reg-stack.c: Update tree_pass descriptors.
2433 * sched-rgn.c: Update tree_pass descriptors.
2434 * tree-ssa-structalias.c: Update tree_pass descriptors.
2435 * tree-cfg.c: Update tree_pass descriptors.
2436 * passes.c (current_pass): Update declaration.
2437 (finish_optimization_passes): Update.
2438 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
2439 (register_one_dump_file, register_dump_files_1, next_pass_1):
2441 (init_optimization_passes): Update handling of new types.
2442 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
2443 * ipa-struct-reorg.c: Update tree_pass descriptors.
2444 * tree-ssa-reassoc.c: Update tree_pass descriptors.
2445 * combine-stack-adj.c: Update tree_pass descriptors.
2446 * cfgrtl.c: Update tree_pass descriptors.
2447 * dce.c: Update tree_pass descriptors.
2448 * tree-ssanames.c: Update tree_pass descriptors.
2450 2008-03-19 Richard Guenther <rguenther@suse.de>
2453 * tree-ssa.c (walk_data): New structure.
2454 (warn_uninitialized_var): If not always_executed warn with "maybe"
2456 (execute_early_warn_uninitialized): Compute post-dominators.
2457 Initialize always_executed before processing each basic block.
2459 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
2462 * config/i386/i386.c (x86_this_parameter): Calculate correct location
2463 of "this" pointer when "regparm = N" or "fastcall" is in effect.
2465 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2467 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
2469 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
2471 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
2473 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
2474 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
2475 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
2476 target after ignore has been set, and move there also the commputation
2477 of subtarget and original_target.
2478 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2479 (LANG_HOOKS_INITIALIZER): Remove it.
2480 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
2482 2008-03-18 Richard Guenther <rguenther@suse.de>
2484 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
2485 found an expression with constants, note that in the VN for the lhs.
2486 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
2487 fold them to constants if possible. Run cleanup_cfg if done so.
2488 (execute_pre): Return todo.
2490 (execute_fre): Likewise.
2491 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
2493 (get_prop_source_stmt): Look through pointer conversions.
2495 2008-03-18 Jan Hubicka <jh@suse.cz>
2497 * tree-pretty-print.c: Include predict.h.
2498 (dump_generic_node): Dump predictor.
2499 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
2500 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
2501 * gimple-low.c (lower_stmt): Likewise.
2502 * expr.c (expand_expr_real): Likewise.
2503 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
2505 (build_predict_expr, build_predict_expr): New.
2506 * predict.h (predictor_name, build_predict_expr): Update.
2507 * c-typeck.c (c_finish_bc_stmt): Add prediction.
2508 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
2509 * predict.def (PRED_CONTINUE): Update hitrate.
2510 * tree.def (PREDICT_EXPR): Define.
2511 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
2512 do not handle BIND_EXPR.
2513 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
2514 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
2515 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
2518 2008-03-18 Michael Matz <matz@suse.de>
2520 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
2522 2008-03-18 Richard Guenther <rguenther@suse.de>
2524 * tree-gimple.h (is_gimple_invariant_address): Declare.
2525 (is_gimple_constant): Likewise.
2526 * tree-gimple.c (is_gimple_constant): New function.
2527 (is_gimple_invariant_address): Likewise.
2528 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
2529 and is_gimple_invariant_address.
2530 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
2532 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
2533 an addressable base.
2535 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2538 * gimplify.c (gimplify_expr): Gimplify second operand of
2541 2008-03-17 Richard Guenther <rguenther@suse.de>
2543 PR tree-optimization/19637
2544 * fold-const.c (fold_unary): Remove restrictions of removing
2545 intermediate pointer-conversions (P2)(P1)P0.
2546 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
2547 conversion to void pointer.
2548 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
2550 2008-03-16 James E. Wilson <wilson@tuliptree.org>
2553 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
2554 emulated thread local variables.
2556 2008-03-16 Richard Guenther <rguenther@suse.de>
2559 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2560 expand TREE_INVARIANT operations that are not gimple invariant.
2562 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
2564 * doc/extend.texi (Alignment): Say that the ABI controls
2565 the __alignof__ for non-strict-alignment targets rather
2566 than being a recommendation.
2568 2008-03-15 Paul Brook <paul@codesourcery.com>
2570 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
2572 (arm_output_fn_unwind): Mark functions that can not be unwound.
2574 2008-03-15 Paul Brook <paul@codesourcery.com>
2576 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
2577 extension instructions.
2579 2008-03-15 Richard Guenther <rguenther@suse.de>
2581 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
2582 and fold constant aggregate refs.
2583 (fold_const_aggregate_ref): Handle string constants
2584 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
2585 (evaluate_stmt): Simplify now that ccp_fold folds constant
2588 2008-03-15 Paul Brook <paul@codesourcery.com>
2590 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
2591 (extzv): Use gen_extzv_t2.
2592 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
2594 2008-03-15 Richard Guenther <rguenther@suse.de>
2596 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
2597 (fold_const_aggregate_ref): Likewise.
2598 (get_value): Return NULL if we don't have any values.
2599 (ccp_finalize): Set const_val to NULL after freeing it.
2600 * tree-flow.h (get_symbol_constant_value): Declare.
2601 (fold_const_aggregate_ref): Likewise.
2602 * tree-ssa-sccvn.c (try_to_simplify): Use them.
2604 2008-03-15 Richard Guenther <rguenther@suse.de>
2607 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
2608 to not produce negative array indices if not allowed. Add
2609 parameter to indicate that.
2610 (maybe_fold_offset_to_component_ref): Allow negative array
2611 indices only for the first member of a structure.
2612 (maybe_fold_offset_to_reference): Allow negative array indices.
2613 (maybe_fold_stmt_addition): Likewise.
2615 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
2616 Anatoly Sokolov <aesok@post.ru>
2618 * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
2619 (avr_arch): Add ARCH_AVR6.
2620 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
2621 (initial_elimination_offset): Initialize and use 'avr_pc_size'
2622 instead of fixed value 2.
2623 (print_operand_address): Use gs() asm specifier instead of pm().
2624 (avr_assemble_integer): (Ditto.).
2625 (avr_output_addr_vec_elt): (Ditto.).
2626 (print_operand): Handle "!" code.
2627 * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
2628 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
2629 (AVR_HAVE_EIJMP_EICALL): Define.
2630 (AVR_3_BYTE_PC): Redefine.
2631 (AVR_2_BYTE_PC): (Ditto.).
2632 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
2633 (LINK_SPEC): Add atmega2560 and atmega2561.
2634 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
2636 * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall
2637 for 3 byte PC devices.
2638 (call_value_insn): (Ditto.).
2639 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
2640 (indirect_jump): Use only for for 2 byte PC devices.
2641 (*tablejump): (Ditto.).
2642 (*indirect_jump_avr6): Add insn.
2643 (*tablejump_rjmp): Don't use for 3 byte PC devices.
2644 * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp
2645 instead of ijmp for 3 byte PC devices.
2646 (__tablejump2__): (Ditto.).
2647 * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
2648 (MULITLIB_DIRNAMES): (Ditto.).
2649 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
2651 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
2653 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
2654 "sse2_umulsidi3". Use V1DI mode for operand 0.
2655 ("mmx_psadbw"): Use V1DI mode for operand 0.
2656 * config/i386/i386-modes.def (V1SI): New vector mode.
2657 * config/i386/i386.c (struct builtin_description)
2658 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
2659 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
2660 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
2661 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
2662 v1di_ftype_v8qi_v8qi type.
2663 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
2665 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
2666 __builtin_ia32_pmuludq]: Fix the mode of return value.
2668 2008-03-15 Richard Guenther <rguenther@suse.de>
2671 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
2674 2008-03-14 Bob Wilson <bob.wilson@acm.org>
2676 * doc/invoke.texi (Option Summary, Xtensa Options): Document
2677 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
2678 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
2679 unless TARGET_SERIALIZE_VOLATILE is enabled.
2680 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
2681 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
2682 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
2684 2008-03-14 Richard Guenther <rguenther@suse.de>
2686 PR tree-optimization/34172
2687 * tree-flow.h (refs_may_alias_p): Declare.
2688 (get_single_def_stmt): Likewise.
2689 (get_single_def_stmt_from_phi): Likewise.
2690 (get_single_def_stmt_with_phi): Likewise.
2691 * tree-dfa.c (refs_may_alias_p): New function.
2692 (get_single_def_stmt): Likewise.
2693 (get_single_def_stmt_from_phi): Likewise.
2694 (get_single_def_stmt_with_phi): Likewise.
2695 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
2696 (vn_reference_lookup_1): New helper function.
2697 (vn_reference_lookup): Walk the virtual use-def chain to
2698 continue searching for a match if the def does not alias the
2699 reference we are looking for.
2701 2008-03-14 David Edelsohn <edelsohn@gnu.org>
2703 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
2704 archive and Perzl. Update The Written Word listing.
2706 2008-03-14 Richard Guenther <rguenther@suse.de>
2708 PR tree-optimization/34043
2709 PR tree-optimization/33989
2710 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
2712 (bitmap_find_leader): Use extra argument to verify dominance
2713 relationship inside a basic-block.
2714 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
2715 (find_leader_in_sets): Adjust.
2716 (create_component_ref_by_pieces): Take extra argument for
2717 dominance check, handle lookup failures.
2718 (find_or_generate_expression): Likewise.
2719 (create_expression_by_pieces): Likewise.
2720 (insert_into_preds_of_block): Adjust.
2721 (create_value_expr_from): If asked for, verify all operands
2722 are in the blocks AVAIL_OUT set.
2723 (make_values_for_stmt): Check for SSA_NAMEs that are life
2724 over an abnormal edge.
2725 (compute_avail): Remove such check.
2726 (do_SCCVN_insertion): New function.
2727 (eliminate): If we do not find a leader suitable for replacement
2728 insert a replacement expression from SCCVN if available.
2729 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
2730 (struct vn_ssa_aux): Add needs_insertion flag.
2731 * tree-ssa-sccvn.c (may_insert): New global flag.
2732 (copy_reference_ops_from_ref): Value-number union member access
2733 based on its size, not type and member if insertion is allowed.
2734 (visit_reference_op_load): For a weak match from union type
2735 punning lookup a view-converted value and insert a SSA_NAME
2736 for that value if that is not found.
2737 (visit_use): Make dumps shorter. Do not disallow value numbering
2738 SSA_NAMEs that are life over an abnormal edge to constants.
2739 (free_scc_vn): Release inserted SSA_NAMEs.
2740 (run_scc_vn): New flag to specify whether insertion is allowed.
2741 Process SSA_NAMEs in forward order.
2742 * tree-ssa-loop-im.c (for_each_index): Handle invariant
2743 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
2744 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
2745 pointer type to/from integral types that do not change the
2746 precision to regular conversions.
2748 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
2750 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
2751 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
2752 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
2753 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
2754 input arguments and the mode of return value. Built-in functions
2755 that operate on whole 64-bit MMX register now use V1DI mode.
2757 2008-03-13 Alon Dayan <alond@il.ibm.com>
2758 Olga Golovanevsky <olga@il.ibm.com>
2760 PR tree-optimization/35041
2761 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
2762 to locate the right position in a statement.
2764 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
2768 * config/i386/xmmintrin.h: Change all static inline functions to
2769 extern inline and add __gnu_inline__ attribute.
2770 * config/i386/bmintrin.h: Ditto.
2771 * config/i386/smmintrin.h: Ditto.
2772 * config/i386/tmmintrin.h: Ditto.
2773 * config/i386/mmintrin-common.h: Ditto.
2774 * config/i386/ammintrin.h: Ditto.
2775 * config/i386/emmintrin.h: Ditto.
2776 * config/i386/pmmintrin.h: Ditto.
2777 * config/i386/mmintrin.h: Ditto.
2778 * config/i386/mm3dnow.h: Ditto.
2780 2008-03-13 Jakub Jelinek <jakub@redhat.com>
2783 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
2784 (lower_omp_2): New function.
2785 (lower_omp_1, lower_omp): Rewritten.
2787 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
2790 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
2791 with the phrase "Microsoft Windows compilers".
2792 (Push/Pop Macro Pragmas): New subsection. Document
2793 #pragma push_macro and pragma pop_macro.
2795 2008-03-12 Paul Brook <paul@codesourcery.com>
2797 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
2799 2008-03-12 Paul Brook <paul@codesourcery.com>
2801 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
2802 (thumb2_alusi3_short): Exclude PLUS and MINUS.
2803 (thumb2_addsi_shortim): Rename ...
2804 (thumb2_addsi_short): ... to this. Allow register operands.
2805 (thumb2_subsi_short): New pattern.
2806 (thumb2_one_cmplsi2_short,
2807 thumb2_negsi2_short): New patterns and peepholes.
2809 2008-03-12 Paul Brook <paul@codesourcery.com>
2811 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
2813 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
2815 * config/i386/i386.md (int_cond): New code iterator.
2817 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
2818 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
2819 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
2820 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
2821 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
2822 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
2823 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
2824 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
2826 2008-03-12 Paul Brook <paul@codesourcery.com>
2828 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
2829 instead of {arm,thumb}_compute_save_reg_mask.
2830 (output_return_instruction): Ditto.
2831 (thumb_unexpanded_epilogue): Ditto.
2832 (thumb1_expand_prologue): Ditto.
2833 (thumb1_output_function_prologue): Ditto.
2834 (arm_set_return_address): Ditto.
2835 (thumb_set_return_address): Ditto.
2836 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
2837 regs to achieve stack alignment.
2838 (thumb1_compute_save_reg_mask): Fix compiler warning.
2839 (arm_output_epilogue): Use offsets->saved_regs_mask.
2840 Adjust stack pointer by poping call clobered registers.
2841 (arm_expand_prologue): Use offsets->saved_regs_mask.
2842 Adjust stack pointer by pushing extra registers.
2843 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
2845 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
2848 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
2849 conversion to the operands of a multiplication.
2851 2008-03-12 Richard Guenther <rguenther@suse.de>
2853 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
2854 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
2855 * timevar.def (TV_TREE_PHIPROP): Add.
2856 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
2857 pass description. Use TV_TREE_PHIPROP.
2858 * tree-ssa-forwprop.c: Remove phiprop code.
2860 2008-03-12 Jakub Jelinek <jakub@redhat.com>
2863 * omp-low.c (maybe_lookup_decl): Constify first argument.
2864 (use_pointer_for_field): Change last argument from bool to
2865 omp_context *. Disallow shared copy-in/out in nested
2866 parallel if decl is shared in outer parallel too.
2867 (build_outer_var_ref, scan_sharing_clauses,
2868 lower_rec_input_clauses, lower_copyprivate_clauses,
2869 lower_send_clauses, lower_send_shared_vars): Adjust callers.
2871 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
2872 Ira Rosen <irar@il.ibm.com>
2874 * tree-vectorizer.c (free_stmt_vec_info): New function.
2875 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
2876 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
2877 * tree-vectorizer.h (free_stmt_vec_info): Declare.
2878 * tree-vect-transform.c (vectorizable_conversion): Free
2879 vec_oprnds0 if it was allocated.
2880 (vect_permute_store_chain): Remove unused VECs.
2881 (vectorizable_store): Free VECs that are allocated in the..
2883 (vect_transform_strided_load, vectorizable_load): Likewise.
2884 (vect_remove_stores): Simplify the code.
2885 (vect_transform_loop): Move code to vect_remove_stores().
2886 Call vect_remove_stores() and free_stmt_vec_info().
2888 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2890 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
2891 TARGET_HPUX. Revise comment.
2892 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
2893 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
2894 Use sr4 variant of `be' instruction when not generating PIC code.
2895 (attr_length_call): Adjust for above change.
2897 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
2899 * ipa-reference.c (static_execute): Remove module_statics_const and
2900 associated setting code.
2902 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
2905 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
2906 predicate for operand 1.
2907 (paritysi2_cmp): Use register_operand predicate for operand 2.
2908 Use earlyclobber modifier for operand 1. Remove support for
2910 (paritydi2_cmp): Use register_operand predicate for operand 3.
2911 Use earlyclobber modifier for operand 1. Remove support for
2914 2008-03-11 Paul Brook <paul@codesourcery.com>
2915 Vladimir Prus <vladimir@codesourcery.com>
2917 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
2918 (arm_compute_save_reg0_reg12_mask): Always
2919 check if register 11 must be saved. Always safe hard frame pointer
2920 when frame_pointer_needeed.
2921 (arm_compute_save_reg_mask): Save IP and PC
2922 only with apcs frames.
2923 (arm_output_epilogue): Adjust Thumb2 codepath to
2924 be also invoked and work for ARM non-apcs frames.
2925 (arm_expand_prologue): Don't bother saving IP
2926 for non-apcs frame, since it's not clobbered by
2927 prologue code. Implement non-apcs frame
2930 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
2932 PR rtl-optimization/35281
2933 * expr.c (convert_move): Use a new pseudo for the intermediate
2934 from_mode->word_mode result.
2936 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
2938 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
2939 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
2940 * toplev.c (compile_file): Don't call it.
2942 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
2945 * expr.c (store_expr): Call emit_block_move if the mode
2946 of "temp" RTX is BLKmode.
2948 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
2949 Richard Guenther <rguenther@suse.de>
2951 PR tree-optimization/31358
2952 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
2953 the step with a NULL_TREE.
2954 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
2955 to sizetype if type is a pointer type.
2956 (add_candidate_1): Don't convert the base and step to
2957 the generic type if the orginal type is a pointer type.
2958 (add_iv_value_candidates): Use sizetype for the step
2959 if type is a pointer type.
2960 (cand_value_at): Likewise.
2961 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
2963 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
2964 Don't convert the tem affine to the type.
2965 (add_elt_to_tree): Use sizetype for the step if a pointer.
2966 Use POINTER_PLUS_EXPR for pointers.
2967 (aff_combination_to_tree): Use sizetype for the step if a
2970 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
2972 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
2973 Remove commutativity hint.
2975 2008-03-10 Jakub Jelinek <jakub@redhat.com>
2979 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
2980 errorneous type. Check that v is a VAR_DECL.
2983 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
2985 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
2987 PR tree-optimization/35494
2988 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
2989 may be overriden at link and run time.
2991 2008-03-10 Richard Guenther <rguenther@suse.de>
2993 PR tree-optimization/34677
2994 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
2995 (poolify_tree): Likewise.
2996 (modify_expr_template): Likewise.
2997 (poolify_modify_stmt): Likewise.
2998 (insert_fake_stores): Handle all component-ref style stores
2999 in addition to INDIRECT_REF. Also handle complex types.
3000 Do not poolify the inserted load.
3001 (realify_fake_stores): Do not rebuild the tree but only
3002 make it a SSA_NAME copy.
3003 (init_pre): Remove initialzation of modify_expr_template.
3004 Do not allocate modify_expr_node_pool.
3005 (fini_pre): Do not free modify_expr_node_pool.
3007 2008-03-10 Paul Brook <paul@codesourcery.com>
3009 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
3012 2008-03-10 Paul Brook <paul@codesourcery.com>
3013 Mark Shinwell <shinwell@codesourcery.com>
3015 * config/arm/cortex-r4.md: New.
3016 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
3018 * config/arm/arm.md: Include cortex-r4.md.
3019 (insn): Add smmls, sdiv and udiv values.
3020 (generic_sched): Don't use generic scheduling for Cortex-R4.
3021 (arm_issue_rate): New function.
3022 (TARGET_SCHED_ISSUE_RATE): Define.
3024 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
3026 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
3028 2008-03-10 Richard Guenther <rguenther@suse.de>
3030 * tree-ssa-pre.c (get_sccvn_value): Simplify.
3031 (compute_avail): Do not add stmt uses to AVAIL_OUT.
3033 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
3035 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
3036 Set default to true.
3038 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3040 * c.opt (Wsynth): Deprecate.
3041 * doc/invoke.texi (Option Summary, Warning Options): Document
3042 -Wno-format-contains-nul.
3044 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
3047 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
3048 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
3050 2008-03-09 Ira Rosen <irar@il.ibm.com>
3052 * config/rs6000/rs6000.c (builtin_description): Rename vector
3053 left shift operations.
3054 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
3055 (altivec_vsl<VI_char>): Rename to ...
3056 (ashl<mode>3): ... new name.
3057 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
3059 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
3061 2008-03-08 Richard Guenther <rguenther@suse.de>
3063 * coverage.h (tree_coverage_counter_addr): Declare.
3064 * coverage.c (tree_coverage_counter_addr): New function.
3065 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
3067 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
3068 (tree_gen_one_value_profiler): Likewise.
3069 (tree_gen_ic_profiler): Likewise.
3070 (tree_gen_average_profiler): Likewise.
3071 (tree_gen_ior_profiler): Likewise.
3073 2008-03-08 Richard Guenther <rguenther@suse.de>
3075 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
3076 (vn_binary_op_insert): Likewise.
3077 (vn_unary_op_lookup): Likewise.
3078 (vn_unary_op_insert): Likewise.
3079 (vn_nary_op_lookup): Declare.
3080 (vn_nary_op_insert): Likewise.
3081 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
3082 and binary hashes, use a single obstack for unary_op_pool
3084 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
3085 a single struct vn_nary_op_s. Store tree code length and
3086 a variable number of operands.
3087 (struct vn_reference_op_struct): Remove unused op2.
3088 (vn_reference_op_eq): Do not compare op2.
3089 (vn_reference_op_compute_hash): Do not compute hash of op2.
3090 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
3091 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
3092 with vn_nary_op_compute_hash.
3093 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
3094 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
3096 (vn_unary_op_insert, vn_binary_op_insert): Replace with
3098 (visit_unary_op): Call nary functions.
3099 (visit_binary_op): Likewise.
3100 (process_scc): Adjust for struct vn_tables_s changes.
3101 (allocate_vn_table): Likewise.
3102 (free_vn_table): Likewise.
3103 * tree-vn.c (vn_add): Call nary functions.
3104 (vn_lookup): Likewise.
3106 2008-03-08 Jakub Jelinek <jakub@redhat.com>
3109 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
3110 wdst back after sync_compare_and_swapqhi_internal.
3112 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
3115 * config/i386/i386-modes.def (V1DI): New vector mode.
3116 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
3117 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
3118 (MMXMODE248): Ditto.
3119 (MMXMODE): Add V1DI mode.
3120 (mmxvecsize): Change DI mode to V1DI mode.
3121 ("mov<mode>): Use MMXMODEI8 mode iterator.
3122 ("*mov<mode>_internal_rex64"): Ditto.
3123 ("*mov<mode>_internal"): Ditto.
3124 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
3125 ("mmx_sub<mode>3"): Ditto.
3126 ("mmx_adddi3"): Remove insn pattern.
3127 ("mmx_subdi3"): Ditto.
3128 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
3129 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
3130 ("mmx_ashl<mode>3"): Ditto.
3131 ("mmx_lshrdi3"): Remove insn pattern.
3132 ("mmx_ashldi3"): Ditto.
3133 * config/i386/i386.c (classify_argument): Handle V1DImode.
3134 (function_arg_advance_32): Ditto.
3135 (function_arg_32): Ditto.
3136 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
3137 mmx_addv1di3 insn pattern.
3138 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
3139 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
3140 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
3141 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
3142 Remove definitions of built-in functions.
3143 (V1DI_type_node): New node.
3144 (v1di_ftype_v1di_int): Ditto.
3145 (v1di_ftype_v1di_v1di): Ditto.
3146 (v2si_ftype_v2si_si): Ditto.
3147 (v4hi_ftype_v4hi_di): Remove node.
3148 (v2si_ftype_v2si_di): Ditto.
3149 (ix86_init_mmx_sse_builtins): Handle V1DImode.
3150 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
3151 Redefine builtins using def_builtin_const with *_ftype_*_int node.
3152 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
3153 Add new builtins using def_builtin_const.
3154 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
3155 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
3156 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
3157 * config/i386/mmintrin.h (__v1di): New typedef.
3158 (_mm_add_si64): Cast arguments to __v1di type.
3159 (_mm_sub_si64): Ditto.
3160 (_mm_sll_pi16): Cast __count to __v4hi type.
3161 (_mm_sll_pi32): Cast __count to __v2si type.
3162 (_mm_sll_si64): Cast arguments to __v1di type.
3163 (_mm_srl_pi16): Cast __count to __v4hi type.
3164 (_mm_srl_pi32): Cast __count to __v2si type.
3165 (_mm_srl_si64): Cast arguments to __v1di type.
3166 (_mm_sra_pi16): Cast __count to __v4hi type.
3167 (_mm_sra_pi32): Cast __count to __v2si type.
3168 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
3169 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
3170 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
3171 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
3172 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
3173 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
3174 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
3175 (_mm_srai_pi32): Use __builtin_ia32_psradi.
3176 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
3177 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3178 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3179 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
3181 2008-03-07 Joseph Myers <joseph@codesourcery.com>
3183 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
3185 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
3188 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
3189 reg+const addressing for Altivec modes. Don't generate reg+reg
3190 addressing for TFmode or TDmode quantities.
3192 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
3194 * c-common.c (vector_types_convertible_p): Call langhook
3195 instead of comptypes.
3197 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
3200 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
3201 integral and scalar float variables which have a
3204 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
3206 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
3207 dwarf_register_span hook when emitting unwind information for
3208 register-to-memory saves.
3209 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
3210 (rs6000_frame_related): Remove call to spe_synthesize_frame.
3212 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3214 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
3215 for the same VAR_DECL.
3217 2008-03-06 Tom Tromey <tromey@redhat.com>
3220 * doc/standards.texi (Standards): Don't mention treelang.
3221 * doc/invoke.texi (Overall Options): Don't mention treelang.
3222 * doc/install.texi (Prerequisites): Don't mention bison or
3224 (Configuration): Don't mention treelang.
3225 (Building): Likewise.
3226 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
3228 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
3230 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
3231 word-extractions out of a multi-word object.
3233 2008-03-06 Richard Guenther <rguenther@suse.de>
3235 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
3236 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
3237 result type and precision.
3238 * expr.c (get_inner_reference): Set unsignedp based on the result
3239 type of BIT_FIELD_REF.
3240 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
3241 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
3242 (try_instantiate_multiple_fields): Likewise. Use the correct type
3244 (sra_build_assignment): Likewise.
3245 (sra_build_elt_assignment): Likewise.
3246 (sra_explode_bitfield_assignment): Likewise.
3247 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
3248 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
3249 set BIT_FIELD_REF_UNSIGNED.
3250 (vectorizable_load): Likewise.
3252 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
3254 * cse.c (cse_extended_basic_block): Invalidate artificial defs
3257 2008-03-06 Richard Guenther <rguenther@suse.de>
3259 * alias.c (struct alias_set_entry): Move has_zero_child field
3260 to pack with alias_set.
3262 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
3264 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
3267 2008-03-05 Ian Lance Taylor <iant@google.com>
3269 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
3271 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
3273 * fwprop.c (update_df): Support width and offset parameters of
3275 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
3276 global_conflicts): Change DF_REF_EXTRACT to either
3277 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
3278 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3279 * df-scan.c (df_ref_record, df_defs_record,
3280 df_ref_create_structure, df_def_record_1, df_uses_record,
3281 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
3282 df_bb_refs_collect, df_entry_block_defs_collect,
3283 df_exit_block_uses_collect): Support new width and offset fields.
3284 (ref_extract_pool): New storage pool.
3285 (df_free_ref): New function.
3286 (df_reg_chain_unlink, df_free_collection_rec,
3287 df_sort_and_compress_refs): Call df_free_ref.
3288 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
3290 (df_ref_create_structure): Allocate df_ref_extract if offset and
3291 width fields are used.
3292 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
3293 (df_uses_record): Get offset and width from ZERO_EXTRACT
3295 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
3296 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
3297 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3298 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
3299 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
3300 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3301 (df_ref_extract): New structure.
3302 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
3303 (df_ref_create): Add width and offset parameters.
3305 2008-03-05 Richard Guenther <rguenther@suse.de>
3307 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3308 Use ranges_overlap_p.
3309 (offset_overlaps_with_access): Rename
3310 to ranges_overlap_p and move ...
3311 * tree-flow-inline.h (ranges_overlap_p): ... here.
3313 * tree.h (get_inner_reference, handled_component_p): Update
3316 * tree.h (record_component_aliases, get_alias_set,
3317 alias_sets_conflict_p, alias_sets_must_conflict_p,
3318 objects_must_conflict_p): Move declarations ...
3319 * alias.h (record_component_aliases, get_alias_set,
3320 alias_sets_conflict_p, alias_sets_must_conflict_p,
3321 objects_must_conflict_p): ... here.
3322 Include coretypes.h.
3323 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
3325 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
3327 * cfg.c: Include tree-flow.h.
3328 (remove_edge_raw): Call redirect_edge_var_map_clear.
3329 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
3330 * tree-flow-inline.h (redirect_edge_var_map_def): New.
3331 (redirect_edge_var_map_result): New.
3332 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
3333 PENDING_STMT use with redirect_edge_var_map_*.
3334 * tree-ssa.c (edge_var_maps): New definition.
3335 (redirect_edge_var_map_add): New.
3336 (redirect_edge_var_map_clear): New.
3337 (redirect_edge_var_map_dup): New.
3338 (redirect_edge_var_map_vector): New.
3339 (redirect_edge_var_map_destroy): New.
3340 (ssa_redirect_edge): Replace PENDING_STMT use with
3341 redirect_edge_var_map_*.
3342 (flush_pending_stmts): Same.
3343 (delete_tree_ssa): Destroy edge var map.
3344 * tree-flow.h (struct _edge_var_map): New.
3345 Define edge_var_map vector type.
3346 Declare redirect_edge_var_map_* prototypes.
3347 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
3348 * tree-cfg.c (reinstall_phi_args): Replace
3349 PENDING_STMT use with redirect_edge_var_map_*.
3351 2008-03-05 Richard Guenther <rguenther@suse.de>
3353 PR tree-optimization/35472
3354 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
3355 whose single use_stmt has a overlapping set of loaded and
3356 stored symbols as that use_stmt might be a noop assignment then.
3358 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
3360 * gthr-rtems.h: Implement __gthread_mutex_destroy.
3362 2008-03-05 Richard Guenther <rguenther@suse.de>
3365 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
3366 should be constants.
3367 * tree-cfg.c (verify_expr): Verify it.
3368 * fold-const.c (fold_truthop): Remove code generating
3369 BIT_FIELD_REFs of structure bases.
3370 (fold_binary): Likewise.
3371 (fold_ternary): Position and size of BIT_FIELD_REFs are
3372 always host integers.
3373 (make_bit_field_ref): Remove.
3374 (optimize_bit_field_compare): Remove.
3375 (all_ones_mask_p): Remove.
3377 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
3380 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
3381 (split_block_and_df_analyze): New. Split basic block and rebuild
3383 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
3385 (split_pattern_seq): Likewise.
3386 (erase_matching_seqs): Likewise.
3387 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
3389 2008-03-04 Geoff Keating <geoffk@apple.com>
3391 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
3392 declaration and code.
3393 (tree_invalid_nonnegative_warnv_p): Likewise.
3395 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
3397 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
3398 examples. Truncate option-names then causing overfull hbox.
3400 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3403 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
3405 * configure: Rebuilt.
3407 2008-03-04 Rafael Espindola <espindola@google.com>
3409 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
3410 (tree_unary_nonnegative_warnv_p): New.
3411 (tree_binary_nonnegative_warnv_p): New.
3412 (tree_single_nonnegative_warnv_p): New.
3413 (tree_invalid_nonnegative_warnv_p): New.
3414 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
3416 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3419 * opts.c (handle_option): Postpone 'unknown option' errors only for
3422 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
3425 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
3428 2008-03-04 Rafael Espindola <espindola@google.com>
3430 * fold-const.c (tree_unary_nonzero_warnv_p): New.
3431 (tree_binary_nonzero_warnv_p): New.
3432 (tree_single_nonzero_warnv_p): New.
3433 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
3435 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
3438 * fold-const.c (fold_cond_expr_with_comparison): Prevent
3439 transformations for modes that have signed zeros.
3440 * ifcvt.c (noce_try_abs): Ditto.
3442 2008-03-04 Joseph Myers <joseph@codesourcery.com>
3444 * config/i386/i386.c (override_options): Force
3445 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
3447 2008-03-04 Jan Hubicka <jh@suse.cz>
3450 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
3453 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
3455 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
3456 label to probe the stack.
3458 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
3460 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
3461 (__gthr_win32_mutex_destroy): Declare.
3462 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
3463 __gthr_win32_mutex_destroy.
3464 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
3466 2008-03-03 Jan Hubicka <jh@suse.cz>
3469 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
3470 aggressive on inlining cold calls.
3472 2008-03-03 Richard Guenther <rguenther@suse.de>
3474 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
3475 struct copies into the expression table.
3476 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
3477 (try_to_simplify): Likewise.
3478 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
3479 integral and pointer arguments which do not change the
3480 precision to NOP_EXPRs.
3481 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
3482 VIEW_CONVERT_EXPR case.
3484 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
3486 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
3487 defined in a loop at depth 0 is invariant.
3488 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
3489 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
3490 be called at loop depth 0.
3492 2008-03-02 Jakub Jelinek <jakub@redhat.com>
3495 * gcc.c (process_command): Update copyright notice dates.
3496 * gcov.c (print_version): Likewise.
3497 * gcov-dump.c (print_version): Likewise.
3498 * mips-tfile.c (main): Likewise.
3499 * mips-tdump.c (main): Likewise.
3501 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3504 * c-common.c (flag_permissive): Delete.
3505 (constant_expression_warnings): Check flags first.
3506 (constant_expression_error): New.
3507 * c-common.h (flag_permissive): Delete.
3508 (constant_expression_error): Declare.
3509 * flags.h (flag_permissive): Declare. Update description.
3510 * diagnostic.c (pedwarn): Update.
3512 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
3513 (permissive_error_kind): New.
3514 * toplev.c (flag_permissive): Define. Update description.
3515 * toplev.h (permissive_error_kind): Declare.
3516 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
3517 (pedwarn_c90): Use pedantic_warning_kind.
3518 * c-opts.c (c_common_post_options): flag_permissive does not affect
3519 flag_pedantic_errors.
3521 2008-03-02 Joseph Myers <joseph@codesourcery.com>
3523 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
3524 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
3525 __absvsi2, __absvDI2): Use unsigned arithmetic.
3527 2008-03-02 Andi Kleen <ak@suse.de>
3528 Richard Guenther <rguenther@suse.de>
3530 * struct-equiv.c: Remove file.
3531 * cfg_cleanup.c (condjump_equiv_p): Remove.
3532 * Makefile.in (OBJS-common): Remove struct-equiv.o.
3533 (struct-equiv.o): Remove rule.
3534 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
3535 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
3536 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
3538 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
3540 * ifcvt.c (noce_process_if_block): Try to handle only the then
3541 block if the else block exists but isn't suitable.
3543 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
3546 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
3547 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
3548 regression from previous patch.
3550 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
3553 * gthr.h: Add __gthread_mutex_destroy as a function that must be
3555 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
3556 * gthr-single.h (__gthread_mutex_destroy): Likewise.
3557 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
3558 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
3559 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
3560 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
3561 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
3562 (__gthread_mutex_destroy_function): Rename to
3563 __gthread_mutex_destroy.
3564 * gthr-dce.h (__gthread_mutex_destroy): Call
3565 pthread_mutex_destroy.
3566 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
3567 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
3568 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
3570 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
3572 * df-scan.c (df_ref_chain_change_bb): Simplify.
3573 (df_insn_change_bb): Add new_bb argument. Simplify. Call
3574 set_block_for_insn if there's any change.
3575 * df.h ((df_insn_change_bb): Fix prototype.
3576 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
3577 df_insn_change_bb, don't call set_block_for_insn.
3578 * emit-rtl.c (reorder_insns): Likewise.
3579 * haifa-sched.c (move_insn): Likewise.
3581 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
3583 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
3585 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
3587 * tree-flow-inline.h (next_readonly_imm_use): Return
3588 NULL_USE_OPERAND_P after the end.
3590 2008-03-01 Richard Guenther <rguenther@suse.de>
3592 PR tree-optimization/35411
3593 * tree-sra.c (sra_build_assignment): Split conversion to
3594 final type to a separate statement if we are not assigning
3597 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3599 * fold-const.c (fold_convertible_p): Correct the logic to follow
3600 that in fold_convert().
3602 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
3605 * tree-inline.c (build_duplicate_type): When we make a
3606 duplicate type, make it unique in the canonical types system.
3608 2008-02-29 Tom Tromey <tromey@redhat.com>
3610 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
3611 input_file_stack_history, input_file_stack_restored): Remove.
3612 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3613 * input.h (struct file_stack): Remove.
3614 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3615 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
3617 * diagnostic.h (struct diagnostic_context) <last_module>: Change
3619 (diagnostic_last_module_changed): Add 'map' argument.
3620 (diagnostic_set_last_function): Likewise.
3621 * diagnostic.c (undiagnostic_report_current_module): Iterate using
3622 line map, not input_file_stack.
3623 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
3625 2008-02-29 Paul Brook <paul@codesourcery.com>
3627 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
3629 2008-02-29 Paul Brook <paul@codesourcery.com>
3631 * config/arm/ieee754-df.S (muldf3): Use RET macros.
3633 2008-02-29 Richard Guenther <rguenther@suse.de>
3635 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
3637 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
3638 value for comparing for a store match.
3639 (simplify_unary_expression): Do nothing for SSA_NAMEs.
3640 (try_to_simplify): Do not do a full-blown reference lookup.
3642 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
3644 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
3645 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3647 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
3649 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
3651 * tree-loop-linear.c (try_interchange_loops): Compare memory access
3652 strides against cache sizes.
3654 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
3656 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
3659 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
3661 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
3662 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
3663 is smaller than the original promoted value.
3664 (simplify_subreg): If OP is a SUBREG, try to preserve its
3665 SUBREG_PROMOTED_VAR_P information.
3667 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
3669 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
3670 (VN_INFO_GET): Allocate new objects on the obstack.
3671 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
3672 for rpo_numbers_temp, for consistency.
3673 (free_scc_vn): Free the obstack.
3675 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
3677 * doc/invoke.texi: Document -ftree-loop-distribution.
3678 * tree-loop-distribution.c: New.
3679 * tree-pass.h (pass_loop_distribution): New.
3680 * graphds.h (struct graph): Add htab_t indices.
3681 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
3682 * tree-vectorizer.c (rename_variables_in_loop): Extern.
3683 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
3684 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
3685 * tree-data-ref.c (debug_data_dependence_relations): New.
3686 (dump_data_dependence_relation): Also print data references.
3687 (free_data_ref): Extern.
3688 (same_access_functions): Moved...
3689 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
3690 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
3691 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
3692 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
3693 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
3694 (stmts_from_loop): Skip LABEL_EXPR.
3695 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
3697 (build_rdg): Initialize rdg->indices htab.
3698 (free_rdg, stores_from_loop, ref_base_address,
3699 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
3700 have_similar_memory_accesses_1, ref_base_address_1,
3701 remove_similar_memory_refs): New.
3702 * tree-data-ref.h: Depend on tree-chrec.h.
3703 (debug_data_dependence_relations, free_data_ref): Declared.
3704 (same_access_functions): ... here.
3705 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
3707 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
3708 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
3709 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
3710 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
3711 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
3712 rdg_vertex_for_stmt): Declared.
3713 (struct rdg_edge): Add level.
3715 (free_rdg, stores_from_loop, remove_similar_memory_refs,
3716 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
3718 (rdg_has_similar_memory_accesses): New.
3719 * tree-vect-analyze.c: Remove unused static decls.
3720 * lambda.h (dependence_level): New.
3721 * common.opt (ftree-loop-distribution): New.
3722 * tree-flow.h (mark_virtual_ops_in_bb,
3723 slpeel_tree_duplicate_loop_to_edge_cfg,
3724 rename_variables_in_loop): Declared.
3725 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
3726 (OBJS-common): Add tree-loop-distribution.o.
3727 (tree-loop-distribution.o): New rule.
3728 * tree-cfg.c (mark_virtual_ops_in_bb): New.
3729 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
3730 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
3732 2008-02-28 Joseph Myers <joseph@codesourcery.com>
3735 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
3736 other than structures and unions.
3738 2008-02-28 Richard Guenther <rguenther@suse.de>
3741 2008-02-26 Richard Guenther <rguenther@suse.de>
3743 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3744 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3745 (lookup_decl_from_uid): Declare.
3746 (remove_decl_from_map): Likewise.
3747 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3748 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3749 (decl_for_uid_map): New global hashtable mapping DECL_UID
3751 (init_ttree): Allocate it.
3752 (insert_decl_to_uid_decl_map): New helper function.
3753 (make_node_stat): Insert new decls into the map.
3754 (copy_node_stat): Likewise.
3755 (lookup_decl_from_uid): New function.
3756 (remove_decl_from_map): Likewise.
3757 (print_decl_for_uid_map_statistics): New helper.
3758 (dump_tree_statistics): Call it.
3760 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3761 (referenced_var_iterator): Adjust.
3762 (FOR_EACH_REFERENCED_VAR): Adjust.
3763 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3764 (num_referenced_vars): Adjust.
3765 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3766 (first_referenced_var): Remove.
3767 (end_referenced_vars_p): Likewise.
3768 (next_referenced_var): Likewise.
3769 (referenced_var_iterator_set): New helper function.
3770 * tree-dfa.c (referenced_var_lookup): Adjust.
3771 (referenced_var_check_and_insert): Likewise.
3772 (remove_referenced_var): Likewise.
3773 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3774 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3775 (verify_call_clobbering): Likewise.
3776 (verify_memory_partitions): Likewise.
3777 (init_tree_ssa): Allocate bitmap instead of hashtable for
3779 (delete_tree_ssa): Adjust.
3780 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3781 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3782 (compute_tag_properties): Likewise.
3783 (set_initial_properties): Likewise.
3784 (find_partition_for): Likewise.
3785 (update_reference_counts): Likewise.
3786 (dump_may_aliases_for): Likewise.
3787 * tree-ssa-operands.c (add_virtual_operand): Likewise.
3788 (add_call_clobber_ops): Likewise.
3789 (add_call_read_ops): Likewise.
3790 (get_asm_expr_operands): Likewise.
3791 * tree-into-ssa.c (dump_decl_set): Likewise.
3792 (update_ssa): Likewise.
3793 * tree-sra.c (scan_function): Likewise.
3794 (decide_instantiations): Likewise.
3795 (scalarize_parms): Likewise.
3796 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3797 (dsa_named_for): Likewise.
3798 * tree-ssa-structalias.c (update_alias_info): Likewise.
3799 (merge_smts_into): Likewise.
3801 2008-02-27 David Daney <ddaney@avtrex.com>
3804 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
3805 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
3806 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
3807 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
3808 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
3810 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
3813 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
3814 (BUILT_IN_NEXTTOWARD): Remove.
3815 (BUILT_IN_NEXTTOWARDF): Ditto.
3816 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
3817 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
3819 2008-02-27 Tom Tromey <tromey@redhat.com>
3821 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
3822 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
3824 2008-02-27 Jan Beulich <jbeulich@novell.com>
3826 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
3827 update the respective field on newdecl.
3829 2008-02-27 Revital Eres <eres@il.ibm.com>
3831 PR rtl-optimization/34999
3832 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
3833 crossing edges that ends with a call insn.
3834 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
3835 call insn and clear the EDGE_CROSSING flag of the crossing edge
3836 when fixing fallthru edges.
3838 2008-02-27 Richard Guenther <rguenther@suse.de>
3841 * fold-const.c (fold_unary): Return the correct argument,
3842 converted to the result type.
3844 2008-02-27 Richard Guenther <rguenther@suse.de>
3847 * expr.c (expand_expr_real_1): Assert on rotates that operate
3849 * fold-const.c (fold_binary): Use the types precision, not the
3850 bitsize of the mode if folding rotate expressions. Build rotates
3851 only for full modes.
3853 2008-02-27 Jakub Jelinek <jakub@redhat.com>
3855 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
3857 * c-pragma.c (pragma_ns_name): New typedef.
3858 (registered_pp_pragmas): New variable.
3859 (c_pp_lookup_pragma): New function.
3860 (c_register_pragma_1): If flag_preprocess_only, do nothing
3861 for non-expanded pragmas, for expanded ones push pragma's
3862 namespace and name into registered_pp_pragmas vector.
3863 (c_invoke_pragma_handler): Register OpenMP pragmas even when
3864 flag_preprocess_only, don't register GCC pch_preprocess
3865 pragma if flag_preprocess_only.
3866 * c-opts.c (c_common_init): Call init_pragma even if
3867 flag_preprocess_only.
3868 * c-pragma.c (c_pp_lookup_pragma): New prototype.
3869 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
3870 cpp_register_pragma if flag_preprocess_only.
3872 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3875 * c-parser.c (c_parser_translation_unit): Warn for empty
3876 translation unit, not empty source file.
3878 2008-02-26 Paul Brook <paul@codesourcery.com>
3880 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
3881 operand for Thumb-2.
3882 * config/arm/arm.h (reg_class): Add CORE_REGS.
3883 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
3884 (BASE_REG_CLASS): Use CORE_REGS.
3885 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
3886 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
3887 (REGNO_OK_FOR_INDEX_P): Exclude SP.
3888 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
3889 ARM_REGNO_OK_FOR_INDEX_P.
3890 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
3891 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
3892 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
3893 (ldm/stm peepholes): Ditto.
3894 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
3895 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
3896 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
3897 * config/arm/constraints.md: Enable "k" constraint on ARM.
3899 2008-02-27 Ben Elliston <bje@au.ibm.com>
3901 * config/rs6000/rs6000.c: Annotate cache line size field in all
3902 instances of struct processor_costs.
3904 2008-02-26 David Edelsohn <edelsohn@gnu.org>
3906 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
3907 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
3908 jump_bypass): New counters.
3909 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
3910 * dce.c (gate_ud_dce): Same.
3911 (gate_fast_dce): Same.
3912 * dse.c (gate_dse1): New function.
3913 (gate_dse2): New function.
3914 (gate_dse): Merge results of new gate functions.
3915 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
3916 (gate_handle_jump_bypass): Add dbg_cnt.
3917 (gate_handle_gcse): Add dbg_cnt.
3918 * ifcvt.c (gate_handle_if_conversion): Same.
3919 (gate_handle_if_after_combine): Same.
3920 (gate_handle_if_after_reload): Same.
3921 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
3923 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
3925 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
3927 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
3929 2008-02-26 Jason Merrill <jason@redhat.com>
3932 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
3933 alone if it's the naming decl for the type's main variant.
3935 2008-02-26 Tom Tromey <tromey@redhat.com>
3937 * system.h (USE_MAPPED_LOCATION): Poison.
3938 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
3939 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
3940 (make_goto_expr_edges): Likewise.
3941 (remove_bb): Likewise.
3942 (execute_warn_function_return): Likewise.
3943 * basic-block.h (struct edge_def) <goto_locus>: Change type to
3945 * c-common.c (fname_decl): Remove old location code.
3946 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
3948 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
3950 (ASM_INPUT_SOURCE_LOCATION): Likewise.
3951 (gen_rtx_ASM_INPUT): Likewise.
3952 (gen_rtx_ASM_INPUT_loc): Likewise.
3953 (get_rtx_asm_OPERANDS): Remove.
3954 * cfglayout.c (insn_locators_alloc): Remove old location code.
3955 (set_curr_insn_source_location): Likewise.
3956 (curr_insn_locator): Likewise.
3957 * print-tree.c (print_node): Remove old location code.
3958 * tree-mudflap.c (mf_varname_tree): Remove old location code.
3959 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
3960 * cfgexpand.c (expand_gimple_cond_expr): Don't use
3961 location_from_locus.
3962 (construct_exit_block): Remove old location code.
3963 * emit-rtl.c (force_next_line_note): Remove old location code.
3964 * profile.c (branch_prob): Remove old location code.
3965 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
3966 LOC_LINE): Remove old-location variants.
3967 * langhooks.c (lhd_print_error_function): Remove old location
3969 * configure, config.in: Rebuilt.
3970 * configure.ac (--enable-mapped-location): Remove.
3971 * c-decl.c (c_init_decl_processing): Remove old location code.
3972 (finish_function): Likewise.
3973 * recog.c (decode_asm_operands): Remove old location code.
3974 * c-pch.c (c_common_read_pch): Remove old location code.
3975 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
3977 * gimple-low.c (lower_function_body): Remove old location code.
3978 * toplev.c (unknown_location): Remove.
3979 (push_srcloc): Remove old-location variant.
3980 (process_options): Remove old location code.
3981 (lang_dependent_init): Likewise.
3982 * input.h (UNKNOWN_LOCATION): Move definition.
3983 (location_t): Undeprecate.
3984 (source_locus): Remove.
3985 (location_from_locus): Remove.
3986 (struct location_s): Remove.
3987 Remove all old-location code.
3988 (input_line, input_filename): Remove.
3989 * final.c (final_scan_insn): Remove old location code.
3990 * diagnostic.c (diagnostic_build_prefix): Remove
3991 USE_MAPPED_LOCATION test.
3992 * tree.h (gimple_stmt) <locus>: Now a location_t.
3993 (tree_exp) <locus>: Likewise.
3994 (DECL_IS_BUILTIN): Remove old-location variant.
3995 (annotate_with_file_line, annotate_with_locus): Likewise.
3996 (expr_locus, set_expr_locus): Update.
3997 * tree.c (build1_stat): Remove old location code.
3998 (last_annotated_node): Remove.
3999 (annotate_with_file_line): Remove old-location variant.
4000 (annotate_with_locus): Likewise.
4001 (expr_location): Remove old location code.
4002 (set_expr_location): Likewise.
4003 (expr_has_location): Likewise.
4004 (expr_locus): Likewise.
4005 (set_expr_locus): Likewise.
4006 (expr_filename): Don't use location_from_locus.
4007 (expr_lineno): Likewise.
4008 * rtl-error.c (location_for_asm): Remove old location code.
4009 * c-lex.c (cb_line_change): Remove old location code.
4010 (fe_file_change): Likewise.
4011 (cb_def_pragma): Likewise.
4012 (c_lex_with_flags): Likewise.
4013 * gengtype.c (do_typedef): Don't special-case location types.
4014 (define_location_structures): Remove.
4015 (main): Don't call define_location_structures.
4016 * tree-pretty-print.c (dump_implicit_edges): Remove old location
4019 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4022 * builtins.def (BUILT_IN_STDARG_START): Remove.
4023 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
4024 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4025 * tree-inline.c (inline_forbidden_p_1): Likewise.
4027 2008-02-26 Richard Guenther <rguenther@suse.de>
4029 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4030 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4031 (lookup_decl_from_uid): Declare.
4032 (remove_decl_from_map): Likewise.
4033 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4034 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4035 (decl_for_uid_map): New global hashtable mapping DECL_UID
4037 (init_ttree): Allocate it.
4038 (insert_decl_to_uid_decl_map): New helper function.
4039 (make_node_stat): Insert new decls into the map.
4040 (copy_node_stat): Likewise.
4041 (lookup_decl_from_uid): New function.
4042 (remove_decl_from_map): Likewise.
4043 (print_decl_for_uid_map_statistics): New helper.
4044 (dump_tree_statistics): Call it.
4046 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4047 (referenced_var_iterator): Adjust.
4048 (FOR_EACH_REFERENCED_VAR): Adjust.
4049 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4050 (num_referenced_vars): Adjust.
4051 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4052 (first_referenced_var): Remove.
4053 (end_referenced_vars_p): Likewise.
4054 (next_referenced_var): Likewise.
4055 (referenced_var_iterator_set): New helper function.
4056 * tree-dfa.c (referenced_var_lookup): Adjust.
4057 (referenced_var_check_and_insert): Likewise.
4058 (remove_referenced_var): Likewise.
4059 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4060 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4061 (verify_call_clobbering): Likewise.
4062 (verify_memory_partitions): Likewise.
4063 (init_tree_ssa): Allocate bitmap instead of hashtable for
4065 (delete_tree_ssa): Adjust.
4066 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4067 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4068 (compute_tag_properties): Likewise.
4069 (set_initial_properties): Likewise.
4070 (find_partition_for): Likewise.
4071 (update_reference_counts): Likewise.
4072 (dump_may_aliases_for): Likewise.
4073 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4074 (add_call_clobber_ops): Likewise.
4075 (add_call_read_ops): Likewise.
4076 (get_asm_expr_operands): Likewise.
4077 * tree-into-ssa.c (dump_decl_set): Likewise.
4078 (update_ssa): Likewise.
4079 * tree-sra.c (scan_function): Likewise.
4080 (decide_instantiations): Likewise.
4081 (scalarize_parms): Likewise.
4082 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4083 (dsa_named_for): Likewise.
4084 * tree-ssa-structalias.c (update_alias_info): Likewise.
4085 (merge_smts_into): Likewise.
4087 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4090 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
4091 * c-opts.c (c_common_handle_option): Wall enables
4092 Wvolatile-register-var.
4093 * common.opt: Move Wvolatile-register-var to...
4096 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4098 * common.opt (Wlarger-than=): New.
4099 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
4101 * opts.c (common_handle_option): Handle -Wlarger-than=.
4102 * optc-gen.awk: Likewise.
4103 * opth-gen.awk: Likewise.
4104 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
4105 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4107 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4109 * c-common.c (match_case_to_enum_1): Add appropriate
4110 OPT_W* parameter to warning.
4111 (c_do_switch_warnings): Likewise.
4112 * c-typeck.c (warning_init): Add one more parameter following
4114 (push_init_level): Update call to warning_init.
4115 (pop_init_level): Likewise.
4116 (add_pending_init): Likewise.
4117 (output_init_element: Likewise.
4119 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4122 * toplev.c (toplev_main): If there are warnings or error, print
4123 errors for ignored options.
4124 * opts.c (ignored_options): New static variable.
4125 (postpone_unknown_option_error): New.
4126 (print_ignored_options): New.
4127 (handle_option): Postpone errors for unknown -Wno-* options.
4128 * opts.h (print_ignored_options): Declare.
4130 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
4132 * config/mips/mips.md (loadgp_blockage, blockage): Change type
4135 2008-02-25 Richard Guenther <rguenther@suse.de>
4138 2008-02-25 Richard Guenther <rguenther@suse.de>
4140 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4141 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4142 (lookup_decl_from_uid): Declare.
4143 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4144 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4145 (decl_for_uid_map): New global hashtable mapping DECL_UID
4147 (init_ttree): Allocate it.
4148 (insert_decl_to_uid_decl_map): New helper function.
4149 (make_node_stat): Insert new decls into the map.
4150 (copy_node_stat): Likewise.
4151 (lookup_decl_from_uid): New function.
4152 (print_decl_for_uid_map_statistics): New helper.
4153 (dump_tree_statistics): Call it.
4155 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4156 (referenced_var_iterator): Adjust.
4157 (FOR_EACH_REFERENCED_VAR): Adjust.
4158 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4159 (num_referenced_vars): Adjust.
4160 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4161 (first_referenced_var): Remove.
4162 (end_referenced_vars_p): Likewise.
4163 (next_referenced_var): Likewise.
4164 (referenced_var_iterator_set): New helper function.
4165 * tree-dfa.c (referenced_var_lookup): Adjust.
4166 (referenced_var_check_and_insert): Likewise.
4167 (remove_referenced_var): Likewise.
4168 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4169 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4170 (verify_call_clobbering): Likewise.
4171 (verify_memory_partitions): Likewise.
4172 (init_tree_ssa): Allocate bitmap instead of hashtable for
4174 (delete_tree_ssa): Adjust.
4175 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4176 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4177 (compute_tag_properties): Likewise.
4178 (set_initial_properties): Likewise.
4179 (find_partition_for): Likewise.
4180 (update_reference_counts): Likewise.
4181 (dump_may_aliases_for): Likewise.
4182 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4183 (add_call_clobber_ops): Likewise.
4184 (add_call_read_ops): Likewise.
4185 (get_asm_expr_operands): Likewise.
4186 * tree-into-ssa.c (dump_decl_set): Likewise.
4187 (update_ssa): Likewise.
4188 * tree-sra.c (scan_function): Likewise.
4189 (decide_instantiations): Likewise.
4190 (scalarize_parms): Likewise.
4191 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4192 (dsa_named_for): Likewise.
4193 * tree-ssa-structalias.c (update_alias_info): Likewise.
4194 (merge_smts_into): Likewise.
4196 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
4199 * doc/invoke.texi (-fcx-limited-range): Document new option.
4200 * toplev.c (process_options): Handle -fcx-fortran-rules.
4201 * common.opt: Add documentation for -fcx-fortran-rules.
4203 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
4206 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
4207 actual behaviour and C99.
4209 2008-02-26 Ben Elliston <bje@au.ibm.com>
4211 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
4212 (ASM_CPU_POWER6_SPEC): Likewise.
4213 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
4214 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
4215 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
4217 2008-02-25 Richard Guenther <rguenther@suse.de>
4219 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4220 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4221 (lookup_decl_from_uid): Declare.
4222 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4223 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4224 (decl_for_uid_map): New global hashtable mapping DECL_UID
4226 (init_ttree): Allocate it.
4227 (insert_decl_to_uid_decl_map): New helper function.
4228 (make_node_stat): Insert new decls into the map.
4229 (copy_node_stat): Likewise.
4230 (lookup_decl_from_uid): New function.
4231 (print_decl_for_uid_map_statistics): New helper.
4232 (dump_tree_statistics): Call it.
4234 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4235 (referenced_var_iterator): Adjust.
4236 (FOR_EACH_REFERENCED_VAR): Adjust.
4237 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4238 (num_referenced_vars): Adjust.
4239 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4240 (first_referenced_var): Remove.
4241 (end_referenced_vars_p): Likewise.
4242 (next_referenced_var): Likewise.
4243 (referenced_var_iterator_set): New helper function.
4244 * tree-dfa.c (referenced_var_lookup): Adjust.
4245 (referenced_var_check_and_insert): Likewise.
4246 (remove_referenced_var): Likewise.
4247 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4248 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4249 (verify_call_clobbering): Likewise.
4250 (verify_memory_partitions): Likewise.
4251 (init_tree_ssa): Allocate bitmap instead of hashtable for
4253 (delete_tree_ssa): Adjust.
4254 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4255 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4256 (compute_tag_properties): Likewise.
4257 (set_initial_properties): Likewise.
4258 (find_partition_for): Likewise.
4259 (update_reference_counts): Likewise.
4260 (dump_may_aliases_for): Likewise.
4261 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4262 (add_call_clobber_ops): Likewise.
4263 (add_call_read_ops): Likewise.
4264 (get_asm_expr_operands): Likewise.
4265 * tree-into-ssa.c (dump_decl_set): Likewise.
4266 (update_ssa): Likewise.
4267 * tree-sra.c (scan_function): Likewise.
4268 (decide_instantiations): Likewise.
4269 (scalarize_parms): Likewise.
4270 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4271 (dsa_named_for): Likewise.
4272 * tree-ssa-structalias.c (update_alias_info): Likewise.
4273 (merge_smts_into): Likewise.
4275 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
4278 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
4279 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
4280 * alias.h (nonoverlapping_memrefs_p): Likewise.
4282 2008-02-25 Jan Beulich <jbeulich@novell.com>
4284 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
4285 * config/i386/netware-libgcc.exp: Add __bswap?i2,
4286 __emultls_get_address, __emultls_register_common,
4287 __floatundi?f, and _Unwind_GetIPInfo.
4288 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
4289 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
4290 (gen_regparm_prefix): Likewise.
4291 (i386_nlm_encode_section_info): Sync with
4292 config/i386/winnt.c:i386_pe_encode_section_info().
4293 (i386_nlm_maybe_mangle_decl_assembler_name): New.
4294 i386_nlm_mangle_decl_assembler_name): New.
4295 (netware_override_options): New.
4296 * config/i386/netware.h (netware_override_options): Declare.
4297 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
4298 (i386_nlm_mangle_decl_assembler_name): Declare.
4299 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
4301 2008-02-25 Ben Elliston <bje@au.ibm.com>
4304 * c-decl.c (grokdeclarator): Remove unused local variables
4305 `typedef_type' and `type_as_written'.
4307 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
4308 unused local variable `has_hot_blocks'.
4309 (fix_crossing_conditional_branches): Remove unused local variable
4312 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
4315 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
4316 using DEF_C99_BUILTIN.
4317 (BUILT_IN_NANF): Ditto.
4318 (BUILT_IN_NANL): Ditto.
4320 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
4321 Revital Eres <eres@il.ibm.com>
4323 * modulo-sched.c (calculate_must_precede_follow): Address TODO
4324 regarding the order of two dependent insns in the same row.
4326 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
4328 * stor-layout.c (layout_decl): Do not bump the alignment of a
4329 bit-field to more than byte alignment if it is packed.
4331 2008-02-24 David Edelsohn <edelsohn@gnu.org>
4333 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
4336 2008-02-24 Diego Novillo <dnovillo@google.com>
4338 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
4341 * tree-vrp.c (vrp_evaluate_conditional): With
4342 -Wtype-limits, emit a warning when comparing against a
4343 constant outside the natural range of OP0's type.
4344 * c.opt (Wtype-limits): Move ...
4345 * common.opt (Wtype-limits): ... here.
4347 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
4349 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
4350 * config/rs6000/e300c2c3.md: New file.
4351 * config/rs6000/rs6000.c (processor_costs): Add new costs for
4353 (rs6000_override_options): Add e300c2 and e300c3 cases to
4354 processor_target_table. Do not allow usage of Altivec or Spe
4355 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
4356 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
4357 * config/rs6000/rs6000.h (processor_type): Add
4358 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
4359 (ASM_CPU_SPEC): Add e300c2 and e300c3.
4360 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
4361 and ppce300c3. Include e300c2c3.md.
4363 2008-02-23 David Edelsohn <edelsohn@gnu.org>
4365 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
4366 instead of TARGET_STRICT_ALIGN.
4368 2008-02-23 Joseph Myers <joseph@codesourcery.com>
4370 * explow.c (memory_address): Assert that the generated address is
4373 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4376 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
4377 * config/darwin-ppc-ldouble-patch.def: New file.
4378 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
4379 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
4380 SUBTARGET_INIT_BUILTINS if defined.
4381 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
4384 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
4387 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
4388 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
4390 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
4393 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
4394 file" warning condtional on -Winvalid-PCH.
4396 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
4398 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
4400 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
4404 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
4405 prevent reload from using MMX registers.
4406 (*mov<mode>_internal): Ditto.
4407 (*movv2sf_internal_rex64): Ditto.
4408 (*movv2sf_internal): Ditto.
4410 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4412 PR documentation/31569
4413 * doc/install.texi2html: Use makeinfo --no-number-sections.
4415 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4417 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
4418 ensure that we can address an entire entity > 8 bytes. Don't
4419 generate reg+reg addressing for such data.
4421 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4423 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
4424 strings when optimizing for size, unless the target cares about
4427 2008-02-22 Tom Tromey <tromey@redhat.com>
4429 * regclass.c (current_pass): Remove declaration.
4431 2008-02-22 Anatoly Sokolov <aesok@post.ru>
4433 * config/avr/libgcc.S (__RAMPZ__): Define.
4434 (__do_copy_data): Add for devices with 128KB code memory.
4436 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4438 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4440 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4442 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
4444 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
4447 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4450 * c-typeck.c (build_binary_op): Warn about floating point
4451 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
4453 2008-02-21 Janis Johnson <janis187@us.ibm.com>
4456 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
4457 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
4459 (rs6000_override_options): Set altivec_abi as default, not override,
4460 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
4461 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
4462 is used; use new member spe_abi.
4463 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
4464 spe_abi and altivec_abi.
4466 2008-02-22 Tomas Bily <tbily@suse.cz>
4468 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
4470 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4473 * config.build (build_file_translate): Set to `CMD //c' only if
4475 * Makefile.in (build_file_translate): Improve comment.
4477 2008-02-21 Jan Hubicka <jh@suse.cz>
4479 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
4480 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
4481 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
4483 2008-02-21 Michael Matz <matz@suse.de>
4486 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
4488 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
4490 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
4491 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
4493 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
4494 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
4495 SSE_VEC_FLOAT_MODE_P as insn constraint.
4496 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
4497 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
4498 sse4a_movntdf using MODEF mode iterator.
4499 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
4500 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
4501 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
4502 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
4503 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
4504 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
4505 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
4507 2008-02-21 Richard Guenther <rguenther@suse.de>
4509 * tree.def (PAREN_EXPR): New tree code.
4510 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
4512 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
4513 * expr.c (expand_expr_real_1): Likewise.
4514 * tree-inline.c (estimate_num_insns_1): Likewise.
4515 * tree-complex.c (expand_complex_move): Likewise.
4516 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
4519 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
4522 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
4524 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
4527 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
4529 * config/sh/sh.c (find_barrier): Don't go past
4530 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
4532 2008-02-20 DJ Delorie <dj@redhat.com>
4534 * config/h8300/h8300.md (insv): Force source operand to be a register.
4536 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
4537 as a jump, not as a plain insn.
4539 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
4541 * doc/invoke.texi (Warning Options): Add new option
4542 -Wframe-larger-than=.
4543 (-Wframe-larger-than): Document.
4545 * flags.h (warn_frame_larger_than, frame_larger_than_size):
4546 Add declarations for new option variables.
4548 * final.c (final_start_function): Check the frame size
4549 before emission and issue a Wframe-larger-than warning.
4551 * opts.c (warn_frame_larger_than, frame_larger_than_size):
4552 Add definitions for new option variables.
4553 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
4555 * common.opt (Wframe-larger-than=): New option.
4557 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
4559 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
4560 (<sse>_div<mode>3): Ditto.
4561 (<sse>_vmdiv<mode>3): Ditto.
4562 (<sse>_vmsqrt<mode>2): Ditto.
4563 (*smax<mode>3): Ditto.
4564 (sse5_frcz<mode>2): Ditto.
4565 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
4568 2008-02-20 Richard Guenther <rguenther@suse.de>
4571 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
4572 be happy with INTEGRAL_TYPE_P.
4574 2008-02-20 Richard Guenther <rguenther@suse.de>
4576 * fold-const.c (split_tree): Associate floatig-point expressions
4577 if flag_associative_math is set.
4579 2008-02-20 Richard Guenther <rguenther@suse.de>
4581 * tree.h (fold_real_zero_addition_p): Declare.
4582 * fold-const.c (fold_real_zero_addition_p): Export.
4583 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
4584 floating-point operations with zero and one.
4586 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
4588 * doc/install.texi: Correct references to CFLAGS, replacing them
4589 with BOOT_CFLAGS. Document flags used during bootstrap for
4592 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
4594 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
4595 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
4596 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
4598 (smin<mode>3): Ditto from similar patterns.
4599 (smax<mode>3): Ditto.
4600 (*ieee_smin<mode>3): Ditto.
4601 (*ieee_smax<mode>3): Ditto.
4602 * config/i386/sse.md (sse): New mode attribute.
4603 (mov<mode>): Macroize expander from movv4sf and movv2df using
4604 SSEMODEF2P mode iterator.
4605 (<sse>_movnt<mode>): Ditto from similar patterns. Use
4606 SSE_VEC_FLOAT_MODE_P as insn constraint.
4607 (storent<mode>): Ditto.
4608 (storent<mode>): Macroize expander from storentsf and storentdf using
4609 MODEF mode iterator.
4610 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
4611 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
4612 (abs<mode>2): Ditto from similar patterns.
4613 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
4614 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
4615 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
4616 (<sse>_vmsqrt<mode>2): Ditto.
4617 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
4618 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
4619 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
4620 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
4621 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
4622 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
4623 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
4625 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
4626 iterator and SSE_FLOAT_MODE_P as insn constraint.
4627 (<sse>_ucomi): Ditto from similar patterns.
4628 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
4629 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
4630 SSE_VEC_FLOAT_MODE_P as insn constraint.
4631 (vcond<mode>): Ditto from similar patterns.
4632 (and<mode>3, *and<mode>3): Ditto.
4633 (<sse>_nand<mode>3): Ditto.
4634 (ior<mode>3, *ior<mode>3): Ditto.
4635 (xor<mode>3, *xor<mode>3): Ditto.
4636 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
4637 iterator and SSE_FLOAT_MODE_P as insn constraint.
4638 (*nand<mode>3): Ditto from similar patterns.
4639 (*ior<mode>3): Ditto.
4640 (*xor<mode>3): Ditto.
4642 2008-02-20 Ira Rosen <irar@il.ibm.com>
4644 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
4645 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
4646 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
4648 2008-02-19 Jan Hubicka <jh@suse.cz>
4650 * predict.c (tree_bb_level_predictions): Remove variable next
4651 mistakely introduced by previous commit.
4653 2008-02-19 Jan Hubicka <jh@suse.cz>
4655 * predict.c (predict_paths_leading_to): Rewrite.
4656 (predict_paths_for_bb): New.
4657 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
4659 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4662 * Makefile.in (build_file_translate): New.
4663 (gcc-vers.texi): Use it for translating $(abs_srcdir).
4664 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
4665 * configure.ac (build_file_translate): Substitute it.
4666 * configure: Regenerate.
4668 2008-02-19 Jan Hubicka <jh@suse.cz>
4670 PR rtl-optimization/34408
4671 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
4674 2008-02-19 Jan Hubicka <jh@suse.cz>
4677 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
4680 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
4683 * config/i386/i386-modes.def: Revert the last DI alignment
4684 change until Ada people can look into it.
4686 2008-02-19 Nick Clifton <nickc@redhat.com>
4688 * opts.c (print_specific_help): Fix typo in --help text.
4690 2008-02-19 Jakub Jelinek <jakub@redhat.com>
4693 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
4694 32-bit inline asm without asm alternatives for host GCC < 3.0.
4696 2008-02-19 Richard Guenther <rguenther@suse.de>
4698 PR tree-optimization/34989
4699 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
4700 Allow propagation to INDIRECT_REF if we can simplify only.
4702 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4704 * c-common.c (warn_for_collisions_1): Use appropriate option when
4707 2008-02-19 Nick Clifton <nickc@redhat.com>
4710 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
4711 (handle_options): Fix indentation.
4712 (print_filtered_help): If no language-specific options were
4713 displayed tell the user how to list all the options supported by
4714 the language's front-end.
4715 (print_specific_help): Fix indentation and remove duplicate line.
4716 (common_handle_option): Handle the -v option.
4717 For --help enable the display of undocumented options if the -v
4718 switch has been included on the command line.
4719 For --help= check for overlaps in the arguments between the option
4720 classes and the language names and issue a warning when they
4721 cannot be disambiguated.
4722 * c.opt (v): Pass on to the common option handler.
4724 2008-02-19 Revital Eres <eres@il.ibm.com>
4726 * modulo-sched.c (sms_schedule): Change dump message when
4727 create_ddg function fails.
4728 (try_scheduling_node_in_cycle): Rename row to cycle.
4729 (print_partial_schedule): Rename CYCLE to ROW.
4731 2008-02-19 Christian Bruel <christian.bruel@st.com>
4732 Zdenek Dvorak <ook@ucw.cz>
4734 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
4736 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
4739 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
4740 (*x86_movdicc_0_m1_se): Ditto.
4742 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
4744 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
4745 (CMPtype): Define as __gcc_CMPtype.
4746 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
4747 (CMPtype): Define as __gcc_CMPtype.
4749 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
4751 Support valgrind 3.3 for --enable-checking=valgrind.
4752 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
4754 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
4755 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
4756 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
4757 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
4758 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
4759 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
4760 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
4762 * ggc-zone.c: Similar.
4763 * ggc-page.c: Similar.
4765 2008-02-19 Paul Brook <paul@codesourcery.com>
4768 * config/arm/ieee754-df.S: Fix do_it typo.
4769 * config/arm/ieee754-sf.S: Fix do_it typo.
4771 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
4774 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
4775 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
4776 (OPTION_MASK_ISA_SSE_SET): Likewise.
4777 (OPTION_MASK_ISA_SSE2_SET): Likewise.
4778 (OPTION_MASK_ISA_SSE3_SET): Likewise.
4779 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
4780 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
4781 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
4782 (OPTION_MASK_ISA_SSE4_SET): Likewise.
4783 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
4784 (OPTION_MASK_ISA_SSE5_SET): Likewise.
4785 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
4786 (OPTION_MASK_ISA_MMX_UNSET): Updated.
4787 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
4788 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
4789 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
4790 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
4791 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
4792 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
4793 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
4794 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
4795 (OPTION_MASK_ISA_SSE4): Removed.
4796 (ix86_handle_option): Turn on bits in ix86_isa_flags and
4797 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
4798 (override_options): Don't turn on implied SSE/MMX bits in
4801 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
4803 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
4806 2008-02-18 Joey Ye <joey.ye@intel.com>
4809 * tree-nested.c (insert_field_into_struct): Set type alignment
4810 to field alignment if the former is less than the latter.
4812 2008-02-18 Jakub Jelinek <jakub@redhat.com>
4814 * BASE-VER: Set to 4.4.0.
4816 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4818 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
4819 * doc/cfg.texi: Likewise.
4820 * doc/extend.texi: Likewise.
4821 * doc/gty.texi: Likewise.
4822 * doc/invoke.texi: Likewise.
4823 * doc/loop.texi: Likewise.
4824 * doc/md.texi: Likewise.
4825 * doc/passes.texi: Likewise.
4826 * doc/rtl.texi: Likewise.
4827 * doc/sourcebuild.texi: Likewise.
4828 * doc/tm.texi: Likewise.
4829 * doc/tree-ssa.texi: Likewise.
4831 2008-02-17 Richard Guenther <rguenther@suse.de>
4834 * tree-complex.c (init_parameter_lattice_values): Handle parameters
4835 without default definition.
4837 2008-02-17 Richard Guenther <rguenther@suse.de>
4839 PR tree-optimization/35231
4840 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
4843 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
4846 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
4847 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
4848 libgcc_cmp_return mode.
4850 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4853 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
4855 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
4857 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
4860 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4862 * doc/c-tree.texi: Use `@.' where appropriate.
4863 * doc/extend.texi: Likewise.
4864 * doc/install.texi: Likewise.
4865 * doc/invoke.texi: Likewise.
4866 * doc/loop.texi: Likewise.
4867 * doc/makefile.texi: Likewise.
4868 * doc/md.texi: Likewise.
4869 * doc/passes.texi: Likewise.
4870 * doc/standards.texi: Likewise.
4871 * doc/tm.texi: Likewise.
4873 2008-02-15 Jakub Jelinek <jakub@redhat.com>
4876 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
4878 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
4879 rather than in entry_bb.
4881 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
4883 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
4884 libgcc_cmp_return mode.
4886 2008-02-15 Jakub Jelinek <jakub@redhat.com>
4889 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
4890 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
4892 2008-02-15 Richard Guenther <rguenther@suse.de>
4893 Zdenek Dvorak <ook@ucw.cz>
4895 PR tree-optimization/35164
4896 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
4897 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
4898 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
4899 Only propagate addresses which do not have abnormal SSA_NAMEs
4902 2008-02-15 Joseph Myers <joseph@codesourcery.com>
4905 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
4907 2008-02-15 Jan Hubicka <jh@suse.cz>
4910 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
4912 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
4915 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
4916 when calculating alignment_pad.
4918 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
4920 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
4921 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
4922 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
4923 and STACK_BOUNDARY define.
4925 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
4927 PR preprocessor/35061
4928 * c-pragma.c (handle_pragma_pop_macro): Check that
4929 pushed_macro_table has been allocated.
4931 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
4934 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
4935 (force_gimple_operand): Likewise.
4936 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
4937 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
4938 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
4939 (find_interesting_uses_address): Check addressability and alignment
4940 of the base expression only after substituting bases of IVs into it.
4942 2008-02-14 Michael Matz <matz@suse.de>
4945 * function.c (instantiate_virtual_regs_in_insn): Reload address
4946 before falling back to reloading the whole operand.
4948 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
4950 * config/s390/s390.c (s390_mainpool_start): Emit the pool
4951 before the first section switch note.
4953 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4955 * doc/bugreport.texi: Update copyright years.
4956 * doc/c-tree.texi: Likewise.
4957 * doc/cfg.texi: Likewise.
4958 * doc/cpp.texi: Likewise.
4959 * doc/cppinternals.texi: Likewise.
4960 * doc/fragments.texi: Likewise.
4961 * doc/frontends.texi: Likewise.
4962 * doc/gcc.texi: Likewise.
4963 * doc/gty.texi: Likewise.
4964 * doc/hostconfig.texi: Likewise.
4965 * doc/implement-c.texi: Likewise.
4966 * doc/libgcc.texi: Likewise.
4967 * doc/loop.texi: Likewise.
4968 * doc/makefile.texi: Likewise.
4969 * doc/options.texi: Likewise.
4970 * doc/passes.texi: Likewise.
4971 * doc/rtl.texi: Likewise.
4972 * doc/sourcebuild.texi: Likewise.
4973 * doc/standards.texi: Likewise.
4974 * doc/tree-ssa.texi: Likewise.
4975 * doc/trouble.texi: Likewise.
4977 * doc/extend.texi: Use @: or add comma where appropriate.
4978 * doc/invoke.texi: Likewise.
4979 * doc/tm.texi: Likewise.
4981 2008-02-14 Alan Modra <amodra@bigpond.net.au>
4984 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
4987 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
4989 * doc/md.texi (clz, ctz): Add reference.
4990 * doc/rtl.texi (clz, ctz): Likewise.
4992 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4995 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
4998 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
5000 * config/s390/s390.c (struct constant_pool): New field
5001 emit_pool_after added.
5002 (s390_mainpool_start): Set the emit_pool_after flag according
5003 to the section switch notes.
5004 (s390_mainpool_finish): Consider emit_pool_after when emitting
5005 the literal pool at the end of the function.
5006 (s390_chunkify_start): Force literal pool splits at section
5009 2008-02-13 Michael Matz <matz@suse.de>
5012 * var-tracking.c (clobber_variable_part): Correctly traverse the
5015 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5018 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
5019 Add -fdump-ipa-inline.
5020 * tree-dump.c (dump_files): Remove tree-inlined dump.
5021 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
5023 2008-02-12 Richard Guenther <rguenther@suse.de>
5025 PR tree-optimization/35171
5026 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
5029 2008-02-12 Richard Guenther <rguenther@suse.de>
5032 * fold-const.c (fold_widened_comparison): Use get_unwidened in
5033 value-preserving mode. Disallow final truncation.
5035 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
5038 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
5039 code from here to...
5040 (force_gimple_operand): ...here.
5042 2008-02-12 Jakub Jelinek <jakub@redhat.com>
5045 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
5046 non-compatible pointers.
5047 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
5048 different FIELD_DECLs, try harder by comparing field offsets, sizes
5052 * function.c (match_asm_constraints_1): Don't replace the same input
5055 2008-02-12 Anatoly Sokolov <aesok@post.ru>
5057 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
5058 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
5059 (expand_epilogue): Restore RAMPZ register.
5060 * config/avr/avr.md (RAMPZ_ADDR): New constant.
5062 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
5064 * config/i386/cygwin.asm: (__alloca): Correct calling
5065 convention and alignment.
5066 (__chkstk): Force 8 byte stack alignment.
5068 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
5069 Richard Guenther <rguenther@suse.de>
5071 PR tree-optimization/33992
5072 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
5073 the zero we compare against.
5075 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
5078 * gthr-win32.h (__gthread_mutex_destroy_function): New function
5079 to CloseHandle after unlocking to prevent accumulation of handle
5082 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5085 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
5086 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
5087 and update LABEL_NUSES during and after reload.
5089 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
5092 * combine.c (simplify_if_then_else): Make sure the comparison is
5093 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
5095 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
5098 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
5099 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
5100 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
5101 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
5102 * tree.h (get_type_static_bounds): Likewise.
5104 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5106 * doc/invoke.texi (Option Summary, C++ Dialect Options)
5107 (Objective-C and Objective-C++ Dialect Options, Warning Options):
5108 Make -Wfoo language annotations match what the compiler outputs.
5110 2008-02-08 Sa Liu <saliu@de.ibm.com>
5112 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
5113 intrinsics spu_convts, spu_convtu, spu_convtf.
5114 * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
5116 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
5118 * doc/extend.texi (Function Attributes) <noinline>: Mention
5119 asm ("") as method to keep calls.
5121 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5124 * doc/options.texi (Options): Replace references to opts.sh with
5126 * opts-common.c: Likewise.
5127 * optc-gen.awk: Likewise.
5129 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
5131 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
5133 2008-02-07 Richard Henderson <rth@redhat.com>
5136 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
5137 EXPR_LIST for the REG_EQUAL instead of a comparison with a
5140 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
5142 PR tree-optimization/35085
5143 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
5144 for operand entry oe2 in addition to operand entry oe3 in order to
5145 expose more opportunities for vectorizer sum reduction.
5147 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5150 * Makefile.in (LIBS): Remove $(GMPLIBS).
5151 (cc1-dummy, cc1): Add $(GMPLIBS).
5153 2008-02-06 Jan Hubicka <jh@suse.cz>
5156 * i386.md (moddf_integer): Do not produce partial memory stalls for
5157 targets where it hurts.
5159 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
5162 * optabs.c (expand_float): Do not check for decimal modes when
5163 expanding unsigned integer through signed conversion.
5165 2008-02-06 Nick Clifton <nickc@redhat.com>
5167 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
5168 inside the clobber with a match_operand and duplicated operand
5169 number in the constraint.
5170 (ineqbranchsi): Delete redundant comment.
5172 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
5174 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
5175 builtin_define ("__USE_INIT_FINI__").
5176 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
5178 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
5180 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5182 PR documentation/30330
5183 * doc/invoke.texi (C++ Dialect Options)
5184 (Objective-C and Objective-C++ Dialect Options, Warning Options):
5185 For each warning option -Wfoo that allows -Wno-foo, ensure both
5186 -Wfoo and -Wno-foo are listed in the option index. Fix index
5187 entry of -Wswitch-default, index -Wnormalized= including the
5188 `=', and -Wlarger-than-@var{len} including @var{len}.
5190 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
5192 * config/i386/i386.md (floatunssisf2): Use
5193 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
5194 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
5195 Macroize expander using MODEF mode iterator.
5197 2008-02-05 Diego Novillo <dnovillo@google.com>
5199 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
5202 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
5204 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5207 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
5209 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
5212 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
5213 to indicate if a message should be generated.
5214 (init_cumulative_args): Updated.
5215 (function_value_32): Likewise.
5217 2008-02-05 Joseph Myers <joseph@codesourcery.com>
5219 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
5221 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
5224 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
5225 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
5227 2008-02-04 Diego Novillo <dnovillo@google.com>
5229 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
5232 * tree-vrp.c (vrp_evaluate_conditional): With
5233 -Wtype-limits, emit a warning when comparing against a
5234 constant outside the natural range of OP0's type.
5236 2008-02-04 Richard Guenther <rguenther@suse.de>
5239 * expr.c (count_type_elements): Give for unions instead of
5242 2008-02-04 Richard Guenther <rguenther@suse.de>
5245 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
5246 to TYPE_DOMAINs base type instead of using bitsizetype here.
5248 2008-02-03 Jason Merrill <jason@redhat.com>
5250 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
5252 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5255 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
5256 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
5257 (RS/6000 and PowerPC Options): Fix typos and markup.
5258 * doc/passes.texi (Tree-SSA passes): Likewise.
5260 2008-02-02 Michael Matz <matz@suse.de>
5263 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
5264 from record_last_reg_set_info.
5265 (record_last_reg_set_info): Take an RTX argument, iterate over all
5266 constituent hardregs.
5267 (record_last_set_info, record_opr_changes): Change calls to
5268 new signature or to record_last_reg_set_info_regno.
5270 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
5272 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
5274 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
5276 PR rtl-optimization/34773
5277 * reg-notes.def (EQUAL): Mention significance of combination of
5278 REG_EQUAL and REG_RETVAL.
5279 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
5280 insn that has a REG_RETVAL.
5282 2008-02-01 Roger Sayle <roger@eyesopen.com>
5285 * configure.ac (--enable-fixed-point): Disable unless explicitly
5287 * configure: Regenerate.
5289 2008-02-01 Richard Guenther <rguenther@suse.de>
5292 * invoke.texi (-finline-limit): Remove no longer true parts
5293 of the documentation. Note that there is no default value.
5295 2008-02-01 Andrew Pinski <pinskia@gmail.com>
5296 Mark Mitchell <mark@codesourcery.com>
5297 Ben Elliston <bje@au.ibm.com>
5300 * doc/extend.texi (Other Builtins): Document.
5302 2008-01-31 Tom Browder <tom.browder@gmail.com>
5304 * doc/c-tree.texi (Types): Fix grammar.
5305 (Expression trees): Ditto.
5306 * doc/passes.texi (Tree-SSA passes): Ditto.
5308 * doc/configterms.texi (Configure Terms): Fix typo.
5309 * doc/cpp.texi (Common Predefined Macros): Ditto.
5310 * doc/md.texi (Machine Constraints): Ditto.
5312 * doc/makefile.texi (Makefile): Add comma.
5314 2008-01-31 Tom Browder <tom.browder@gmail.com>
5315 Gerald Pfeifer <gerald@pfeifer.com>
5317 * doc/sourcebuild.texi (Front End): Remove references to CVS
5318 and CVSROOT/modules.
5319 (Texinfo Manuals): Replace reference to CVS by one to SVN.
5320 (Back End): Remove reference to CVS.
5322 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
5325 * config/mips/mips.c (gen_load_const_gp): New function, taking a
5327 (mips16_gp_pseudo_reg): ...here.
5328 * config/mips/mips.md (load_const_gp): Replace with...
5329 (load_const_gp_<mode>): ...this :P-based insn.
5331 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5333 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
5334 options. Minor fixes.
5335 (-std): Move reference to standards closer to where language
5336 standards are first mentioned.
5338 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
5340 PR rtl-optimization/34995
5341 * reload.c (alternative_allows_const_pool_ref): Take an rtx
5342 parameter and return a bool. If the rtx parameter is nonnull,
5343 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
5344 (find_reloads): Update call accordingly. Pass the new operand
5345 if it needed no address reloads, otherwise pass null.
5347 2008-01-30 Richard Henderson <rth@redhat.com>
5350 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
5351 for unbounded arrays.
5353 2008-01-30 Silvius Rus <rus@google.com>
5355 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
5357 2008-01-30 Jan Hubicka <jh@suse.cz>
5360 * i386.c (init_cumulative_args): Use real function declaration when
5363 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
5365 PR rtl-optimization/34998
5366 * global.c (build_insn_chain): Treat non-subreg_lowpart
5367 SUBREGs of pseudos as clobbering all the words covered by the
5368 SUBREG, not just all the bytes.
5369 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
5370 original df_ref rather than an extract parameter.
5371 (global_conflicts): Update call accordingly.
5373 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
5375 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
5376 the overflow check to make it easier to read.
5377 (__fixtfdi): Change the type of the ll member in union
5378 long_double to UDItype_x.
5380 2008-01-30 Jakub Jelinek <jakub@redhat.com>
5383 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
5384 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
5385 * tree-inline.c (fold_marked_statements): Call
5386 cgraph_update_edges_for_call_stmt if folding a call statement.
5387 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
5388 debug_generic_stmt calls, reset it back afterwards.
5391 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
5393 * c-typeck.c (build_external_ref): Don't pedwarn about
5394 static vars in current function's scope.
5396 2008-01-29 Joseph Myers <joseph@codesourcery.com>
5398 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
5400 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
5403 * ipa-struct-reorg.c: Fix spelling.
5404 * params.def: Ditto.
5406 2008-01-29 Richard Guenther <rguenther@suse.de>
5409 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
5411 * tree-inline.c (remap_type): Increment remapping_type_depth
5412 around remapping types.
5413 (copy_body_r): Only add referenced variables if they are referenced
5414 from code, not types.
5416 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
5427 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
5428 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
5430 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
5433 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
5434 pointer for tiny stack.
5436 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
5438 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
5440 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
5442 * config/vx-common.h: Fix typo in comment.
5444 2008-01-28 Ian Lance Taylor <iant@google.com>
5448 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
5449 coalesce pointers if they have different DECL_NO_TBAA_P values.
5450 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
5451 between variables with different DECL_NO_TBAA_P values.
5453 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
5456 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
5457 are not legitimate small data references on SPE targets.
5459 2008-01-28 David Daney <ddaney@avtrex.com>
5461 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
5463 2008-01-28 David Daney <ddaney@avtrex.com>
5465 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
5467 2008-01-27 Joseph Myers <joseph@codesourcery.com>
5469 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
5470 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
5471 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
5472 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
5473 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5474 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
5475 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
5476 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
5478 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
5480 * basic-block.h (condjump_equiv_p): Fix comment.
5482 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
5484 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
5485 print_generic_stmt_indented): Fix comment.
5487 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
5489 * configure.ac (__stack_chk_fail): Add detecion for availability
5490 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
5491 * configure: Regenerate.
5493 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
5496 * final.c (output_addr_const): Handle TRUNCATE.
5498 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
5501 * tree-ssa-loop-ivopts.c (comp_cost): New type.
5502 (zero_cost, infinite_cost): New constants.
5503 (struct cost_pair): Change type of cost to comp_cost.
5504 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
5505 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
5507 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
5508 split_address_cost, ptr_difference_cost, difference_cost,
5509 get_computation_cost_at, get_computation_cost,
5510 determine_use_iv_cost_generic, determine_use_iv_cost_address,
5511 determine_use_iv_cost_condition, determine_use_iv_costs,
5512 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
5513 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
5514 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
5515 Change type of cost to comp_cost.
5516 (determine_iv_cost): Increase cost of non-original ivs, instead
5517 of decreasing the cost of original ones.
5518 (get_address_cost): Indicate the complexity of the addressing mode
5520 (try_add_cand_for): Prefer using ivs not specific to some object.
5521 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
5523 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
5524 Janis Johnson <janis187@us.ibm.com>
5527 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
5528 (TARGET_INSTANTIATE_DECLS): Likewise.
5529 * target.h (expand_to_rtl_hook): New target hook.
5530 (instantiate_decls): Likewise.
5531 * function.c (instantiate_decl): Make non-static. Rename to...
5532 (instantiate_decl_rtl): ... this.
5533 (instantiate_expr): Use instantiate_decl_rtl.
5534 (instantiate_decls_1): Likewise.
5535 (instantiate_decls): Likewise.
5536 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
5537 * function.h (instantiate_decl_rtl): Add prototype.
5538 * cfgexpand.c (target.h): New include.
5539 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
5540 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
5541 (TARGET_INSTANTIATE_DECLS): Likewise.
5542 (TARGET_INITIALIZER): New target hooks added.
5543 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
5545 * config/rs6000/rs6000.c (tree-flow.h): New include.
5546 (machine_function): Add sdmode_stack_slot field.
5547 (rs6000_alloc_sdmode_stack_slot): New function.
5548 (rs6000_instantiate_decls): Likewise.
5549 (rs6000_secondary_memory_needed_rtx): Likewise.
5550 (rs6000_check_sdmode): Likewise.
5551 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
5552 (TARGET_INSTANTIATE_DECLS): Likewise.
5553 (rs6000_hard_regno_mode_ok): Allow SDmode.
5554 (num_insns_constant): Likewise. Handle _Decimal32 constants.
5555 (rs6000_emit_move): Handle SDmode.
5556 (function_arg_advance): Likewise.
5557 (function_arg): Likewise.
5558 (rs6000_gimplify_va_arg): Likewise. Add special handling of
5559 SDmode var args for 32-bit compiles.
5560 (rs6000_secondary_reload_class): Handle SDmode.
5561 (rs6000_output_function_epilogue): Likewise.
5562 (rs6000_function_value): Simplify if statement.
5563 (rs6000_libcall_value): Likewise.
5564 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
5565 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
5566 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
5567 (movsd_hardfloat): New define_insn.
5568 (movsd_softfloat): Likewise.
5569 (movsd_store): Likewise.
5570 (movsd_load): Likewise.
5571 (extendsddd2): Likewise.
5572 (extendsdtd2): Likewise.
5573 (truncddsd2): Likewise.
5574 (movdd_hardfloat64): Fixup comment.
5575 (UNSPEC_MOVSD_LOAD): New constant.
5576 (UNSPEC_MOVSD_STORE): Likewise.
5578 2008-01-26 Jakub Jelinek <jakub@redhat.com>
5581 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
5583 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
5584 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
5585 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
5588 2008-01-26 David Edelsohn <edelsohn@gnu.org>
5591 * config.gcc: Separate AIX 5.3 from AIX 6.1.
5592 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5593 __LONGDOUBLE128 too.
5594 * config/rs6000/aix61.h: New file.
5596 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
5598 PR rtl-optimization/34959
5599 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
5600 popcount and parity rtxes the same mode as their operand.
5601 Truncate or extend the result to the return value's mode
5604 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
5607 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
5608 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
5609 to GOT_VERSION_REGNUM.
5610 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
5611 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
5612 * config/mips/mips.c (mips_emit_call_insn): New function.
5613 (mips_call_tls_get_addr): Call mips_expand_call directly.
5614 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
5616 (mips16_build_call_stub): Likewise. Return the call insn or null.
5617 (mips_expand_call): Update the call to mips16_build_call_stub
5618 accordingly and a remove redundant condition. Assert that MIPS16
5619 stubs do not use lazy binding. Use mips_emit_call_insn and return
5621 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
5623 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
5624 (mips_avoid_hazard): Remove hazard_set handling.
5625 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
5626 (UNSPEC_RESTORE_GP): ...this.
5627 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
5628 (FAKE_CALL_REGNO): Rename to...
5629 (GOT_VERSION_REGNUM): ...this.
5630 (type): Add "ghost" value. Add an associated insn reservation.
5631 (hazard_set): Remove.
5632 (exception_receiver): Rename to...
5633 (restore_gp): ...this and update the unspec identifier accordingly.
5634 (exception_receiver, nonlocal_got_receiver): New expanders.
5635 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
5636 FAKE_CALL_REGNO. Remove hazard_set attribute.
5637 (set_got_version, update_got_version): New patterns.
5639 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
5642 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
5644 2008-01-25 Joseph Myers <joseph@codesourcery.com>
5647 * doc/install.texi2html: Generate gcc-vers.texi.
5649 2008-01-25 DJ Delorie <dj@redhat.com>
5651 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5653 2008-01-25 Joseph Myers <joseph@codesourcery.com>
5655 * config/c4x: Remove directory.
5656 * config.gcc (crx-*, mt-*): Mark obsolete.
5657 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
5658 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
5659 sh-*-rtemscoff*): Remove cases.
5660 * defaults.h (C4X_FLOAT_FORMAT): Remove.
5661 * real.c (encode_c4x_single, decode_c4x_single,
5662 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
5663 c4x_extended_format): Remove.
5664 * real.h (c4x_single_format, c4x_extended_format): Remove.
5665 * doc/extend.texi (interrupt, naked): Remove mention of attributes
5667 (Pragmas): Remove comment about c4x pragmas.
5668 * doc/install.texi (c4x): Remove target-specific instructions.
5669 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
5670 * doc/md.texi (Machine Constraints): Remove C4x documentation.
5671 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
5672 refer to C4x source files as examples.
5673 (C4X_FLOAT_FORMAT): Remove documentation.
5675 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
5677 * config/bfin/bfin.c (override_options): Reorder tests so that
5678 flag_pic gets enabled for -msep-data.
5680 2008-01-25 Richard Guenther <rguenther@suse.de>
5683 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
5684 to its bitfield precision if required.
5686 2008-01-25 Jakub Jelinek <jakub@redhat.com>
5689 * tree-nested.c (walk_omp_for): New function.
5690 (convert_nonlocal_reference, convert_local_reference): Call
5691 walk_omp_for on OMP_FOR.
5692 (convert_call_expr): Call walk_body on OMP_FOR's
5693 OMP_FOR_PRE_INIT_BODY.
5695 2008-01-25 Richard Guenther <rguenther@suse.de>
5697 PR tree-optimization/34966
5698 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
5699 default defs and PHI_NODEs we have to insert after the
5702 2008-01-24 Nick Clifton <nickc@redhat.com>
5704 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
5705 Provide a default definition.
5706 (LIBGCC2_UNITS_PER_WORD): Likewise.
5708 * config/stormy16/stormy16.c: Include df.h for the prototype
5709 for df_regs_ever_live_p.
5710 (xstormy16_expand_builtin_va_start): Convert the stack offset
5711 into a component_ref and then use POINTER_PLUS_EXPR to add it
5712 to the incoming_virtual_args_rtx.
5713 (xstormy16_gimplify_va_arg_expr): Rename to
5714 xstormy16_gimplify_va_arg_expr.
5715 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
5716 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
5717 xstormy16_gimplify_va_arg_expr.
5718 Fix up some formatting issues.
5720 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
5721 Move to predicates.md.
5722 (xs_hi_general_operand): Likewise.
5723 (xs_hi_nonmemory_operand): Likewise.
5724 * config/stormy16/predicates.md:
5725 (xstormy16_carry_plus_operand): New predicate.
5726 (xs_hi_general_operand): New predicate.
5727 (xs_hi_nonmemory_operand): New predicate.
5728 * config/stormy16/stormy16-protos.h:
5729 (xstormy16_carry_plus_operand): Delete prototype.
5730 (xs_hi_general_operand): Likewise.
5731 (xs_hi_nonmemory_operand): Likewise.
5733 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
5734 modifiers as they are no longer needed and they can trigger
5735 reload spill failures.
5737 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
5738 with a match_operand in order to help reload.
5740 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
5741 constraint with 'e' for the 8th alternative as this version of
5742 the mov.w instruction only accepts the lower 8 registers.
5744 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
5747 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
5748 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
5751 2008-01-25 Jakub Jelinek <jakub@redhat.com>
5754 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
5756 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
5758 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
5760 (remove_structure): Update allocations list before removing structure.
5762 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
5764 * ipa-struct-reorg.c (is_safe_cond_expr,
5765 create_new_stmts_for_cond_expr): Use integer_zerop function,
5766 that recognize not only zero-pointer, but zero-integer too.
5768 2008-01-25 Ben Elliston <bje@au.ibm.com>
5771 * fixproto: Escape "." in sed expression that strips leading "./".
5773 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
5776 * gcc.c (SWITCH_OK): Removed.
5777 (SWITCH_LIVE): Changed to bit.
5778 (SWITCH_FALSE): Likewise.
5779 (SWITCH_IGNORE): Likewise.
5780 (switchstr): Change live_cond to unsigned int.
5781 (process_command): Replace SWITCH_OK with 0.
5782 (do_self_spec): Likewise.
5783 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
5784 (give_switch): Likewise.
5785 (used_arg): Likewise.
5786 (do_spec_1): Set the SWITCH_IGNORE bit.
5787 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
5788 bits. Set the SWITCH_LIVE bit.
5790 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
5792 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
5794 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
5796 PR tree-optimization/34472
5797 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
5798 parameter to a "bool *" and set *DATA to false if there is
5799 an unsafe access. Do not delete the structure here.
5800 (check_cond_exprs): Delete it here instead.
5801 (check_cond_exprs, exclude_cold_structs): Do not increase
5802 I when removing a structure.
5804 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
5807 * config/i386/i386.c (ix86_expand_vector_init): Consider only
5808 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
5810 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
5813 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
5814 a fixed vector for stack.
5816 2008-01-24 Ben Elliston <bje@au.ibm.com>
5819 * doc/gcc.texi (Software development): Add a direntry for g++.
5821 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
5823 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
5824 stale and straggling -fforce-addr comments above.
5826 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
5828 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
5829 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
5831 2008-01-23 Michael Matz <matz@suse.de>
5834 * dwarf2out.c (force_type_die): Use modified_type_die instead of
5837 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
5839 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
5842 2008-01-23 Anatoly Sokolov <aesok@post.ru>
5844 * config/avr/avr.c (avr_current_arch): New variable.
5845 (avr_arch_types): Add 'avr31' and 'avr51' entries.
5846 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
5847 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
5848 (avr_override_options): Init 'avr_current_arch'.
5849 (base_arch_s): Move from here...
5850 * config/avr/avr.h (base_arch_s): ... here. Add new members
5851 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
5852 'mega' to 'have_jmp_call'.
5853 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
5854 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
5856 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
5858 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5859 MULTILIB_MATCHES): (Ditto.).
5861 2008-01-23 Richard Guenther <rguenther@suse.de>
5864 * cgraphunit.c (cgraph_reset_node): Always mark the node
5865 not reachable if it is not queued already.
5867 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
5869 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
5870 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
5871 (cputype_selected): New static variable.
5872 (bfin_handle_option): Set it if -mcpu is used.
5873 (override_option): Select default set of workarounds if no cpu type
5874 selected on the command line.
5875 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
5877 From Michael Frysinger <michael.frysinger@analog.com>
5878 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
5879 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
5881 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
5882 for bf547, bf523, bf524, and bf526.
5883 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
5885 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5886 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
5887 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
5888 __ADSPBF547__ and __ADSPBF54x__ for bf547.
5889 * doc/invoke.texi (Blackfin Options): Document that
5890 -mcpu now accept bf547, bf523, bf524, and bf526.
5892 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
5894 PR rtl-optimization/34628
5895 * combine.c (try_combine): Stop and undo after the first combination
5896 if an autoincrement side-effect on the first insn has effectively
5899 2008-01-22 David Edelsohn <edelsohn@gnu.org>
5902 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
5903 Offset addresses are not valid for Altivec or paired float modes.
5905 2008-01-22 Jakub Jelinek <jakub@redhat.com>
5908 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
5909 if DECL_INITIAL (decl) is error_mark_node.
5912 * c-common.c (handle_vector_size_attribute): Only allow
5913 integral, scalar float and fixed point types. Handle OFFSET_TYPE
5914 the same way as pointer, array etc. types.
5915 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
5918 * tree.c (build_type_attribute_qual_variant): Call
5919 build_qualified_type if attributes are equal, but quals are not.
5921 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5924 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
5925 * flags.h (warn_strict_aliasing): Remove.
5926 (warn_strict_overflow): Remove.
5927 * opts.c (warn_strict_aliasing): Remove.
5928 (warn_strict_overflow): Remove.
5929 * c-opts.c (c_common_handle_option): -Wall only sets
5930 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
5931 (c_common_post_options): Give default values to -Wstrict-aliasing
5932 and -Wstrict-overflow if they are uninitialized.
5933 * common.opt (Wstrict-aliasing): Specify Var and Init.
5934 (Wstrict-overflow): Likewise.
5936 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
5938 PR rtl-optimization/26854
5939 PR rtl-optimization/34400
5940 PR rtl-optimization/34884
5941 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
5943 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
5944 (df_rd_bb_info.expanded_lr_out): Deleted
5945 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
5946 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
5947 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
5948 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
5949 Removed code to allocate, initialize or free expanded_lr_out.
5950 (df_rd_bb_local_compute_process_def): Restructured to make more
5952 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
5953 sets if the sets are being trimmed.
5955 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
5958 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
5959 (as_vers): Likewise.
5960 * configure: Regenerated.
5962 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5965 * tree-pass.h (pass_build_alias): New pass.
5966 * tree-ssa-alias.c (gate_build_alias): New.
5967 (pass_build_alias): New.
5968 * passes.c (init_optimization_passes): Add pass_build_alias after
5969 pass_create_structure_vars.
5971 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
5973 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
5974 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
5975 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
5976 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
5977 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
5978 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
5979 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
5980 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
5981 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
5982 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
5983 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
5984 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
5985 * config/s390/s390.md (FP_ALL): New mode iterator.
5986 (_d): New mode attribute.
5987 ("*signbit<mode>2>"): Changed mode of first operand.
5988 ("isinf<mode>2"): Changed mode of first operand.
5989 ("*TDC_insn"): Adaptation for DFP modes.
5991 2008-01-22 Ben Elliston <bje@au.ibm.com>
5993 * tree.c (check_qualified_type): Improve function description.
5995 2008-01-21 Jason Merrill <jason@redhat.com>
5998 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
5999 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
6002 2008-01-21 DJ Delorie <dj@redhat.com>
6004 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
6007 2008-01-21 Richard Guenther <rguenther@suse.de>
6010 * tree-cfg.c (verify_expr): Allow all invariant expressions
6011 instead of just constant class ones as reference argument.
6012 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
6013 like any other constant.
6014 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6016 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
6018 * regmove.c (fixup_match_1): Update call crossed frequencies.
6020 2008-01-21 Richard Guenther <rguenther@suse.de>
6023 * tree-inline.c (setup_one_parameter): Deal with mismatched
6024 types using a VIEW_CONVERT_EXPR.
6026 2008-01-21 Alon Dayan <alond@il.ibm.com>
6027 Olga Golovanevsky <olga@il.ibm.com>
6029 PR tree-optimization/34701
6030 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
6031 when the structure size is not a power of 2.
6033 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6035 * doc/install.texi: Add doc for --enable-checking=df.
6037 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
6039 PR rtl-optimization/34808
6040 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
6042 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
6044 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
6047 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
6049 PR rtl-optimization/26854
6050 PR rtl-optimization/34400
6051 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
6053 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
6054 (df_rd_bb_info.expanded_lr_out): New.
6055 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
6056 * loop_iv.c (iv_analysis_loop_init): Ditto.
6057 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
6058 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
6059 Added code to allocate, initialize or free expanded_lr_out.
6060 (df_rd_bb_local_compute_process_def): Restructured to make
6061 more understandable.
6062 (df_rd_confluence_n): Add code to do nothing with fake edges and
6063 code to no apply invalidate_by_call sets if the sets are being trimmed.
6064 (df_lr_local_finalize): Renamed to df_lr_finalize.
6065 (df_live_local_finalize): Renamed to df_live_finalize.
6067 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
6070 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
6071 deciding whether to use reciprocal instructions.
6073 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
6075 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
6076 dwarf2out_note_section_used if cold_text_section is NULL.
6078 2008-01-19 Jakub Jelinek <jakub@redhat.com>
6080 PR gcov-profile/34610
6081 * tree-cfg.c (make_edges): Mark both outgoing edges from
6082 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
6083 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
6084 from OMP_FOR and OMP_CONTINUE outgoing edges.
6086 * tree-profile.c (tree_profiling): Return early if
6087 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
6089 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
6090 from cfun to child_cfun.
6091 * function.h (struct function): Add after_tree_profile bit.
6093 2008-01-19 Anatoly Sokolov <aesok@post.ru>
6095 * config/avr/avr.S (_exit): Disable interrupt.
6097 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
6098 Steven Bosscher <stevenb.gcc@gmail.com>
6100 PR rtl-optimization/26854
6101 PR rtl-optimization/34400
6102 * df-problems.c (df_live_scratch): New scratch bitmap.
6103 (df_live_alloc): Allocate df_live_scratch when doing df_live.
6104 (df_live_reset): Clear the proper bitmaps.
6105 (df_live_bb_local_compute): Only process the artificial defs once
6106 since the order is not important.
6107 (df_live_init): Init the df_live sets only with the variables
6108 found live by df_lr.
6109 (df_live_transfer_function): Use the df_lr sets to prune the
6110 df_live sets as they are being computed.
6111 (df_live_free): Free df_live_scratch.
6113 2008-01-18 Ian Lance Taylor <iant@google.com>
6115 * common.opt: Add fmerge-debug-strings.
6116 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
6117 flag_merge_debug_strings rather than flag_merge_constants.
6118 * doc/invoke.texi (Option Summary): Mention
6119 -fmerge-debug-strings.
6120 (Debugging Options): Document -fmerge-debug-strings.
6122 2008-01-18 Ian Lance Taylor <iant@google.com>
6125 * tree.h (DECL_IS_OPERATOR_NEW): Define.
6126 (struct tree_function_decl): Add new field operator_new_flag.
6127 * tree-inline.c (expand_call_inline): When inlining a call to
6128 operator new, force the return value to go into a variable, and
6129 set DECL_NO_TBAA_P on that variable.
6130 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
6132 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
6135 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
6136 DWARF2_DEBUGGING_INFO.
6137 (dwarf2out_note_section_used): Ditto. Add prototype.
6138 (have_multiple_function_sections, text_section_used,
6139 cold_text_section_used, *cold_text_sections): Move declarations
6142 2008-01-17 Bob Wilson <bob.wilson@acm.org>
6144 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
6145 field and add signal_ra.
6146 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
6147 assignments to frame state pc. Move end of stack check after
6148 MD_FALLBACK_FRAME_STATE_FOR.
6149 (uw_update_context_1): Use frame state signal_regs if set, instead
6150 of checking signal_frame flag.
6151 (uw_update_context): Use frame state signal_ra if set.
6152 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
6153 * config/xtensa/linux-unwind.h: New file.
6155 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
6157 * modulo-sched.c (get_sched_window): Fix comment typo.
6159 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
6161 PR tree-optimization/34648
6162 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
6164 2008-01-17 Anatoly Sokolov <aesok@post.ru>
6166 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
6167 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
6169 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
6171 PR rtl-optimization/34400
6172 * df-core.c (df_worklist_dataflow_overeager,
6173 df_worklist_dataflow_doublequeue): New functions.
6174 (df_worklist_dataflow): Two different worklist solvers.
6175 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
6178 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
6181 * doc/invoke.texi: Document the dependence on pthread for fopenmp
6182 and ftree-parallelize-loops.
6184 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
6186 PR rtl-optimization/34826
6187 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
6189 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
6191 * global.c (find_reg): Mark the eh regs as used if necessary.
6192 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
6193 * ra.h (struct allocno): no_eh_reg field added. Changed
6194 no_stack_reg type to bitfield.
6196 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
6198 * tree.c (substitute_in_expr): Add missing 'break'.
6200 2008-01-17 Richard Guenther <rguenther@suse.de>
6202 PR tree-optimization/34825
6203 * tree-ssa-math-opts.c (is_division_by): Do not recognize
6204 x / x as division to handle.
6206 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6208 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
6209 "-pthread" is specified.
6210 * pa-hpux11.h (LIB_SPEC): Likewise.
6212 2008-01-16 Janis Johnson <janis187@us.ibm.com>
6213 Peter Bergner <bergner@vnet.ibm.com>
6215 PR rtl-optimization/33796
6216 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
6218 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6220 PR libgfortran/34699
6221 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
6223 * pa-hpux10.h (LINK_SPEC): Likewise.
6224 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
6226 2008-01-16 Richard Guenther <rguenther@suse.de>
6229 * fold-const.c (fold_convert_const_int_from_int): Do not
6230 set overflow if that occured only because of a sign extension
6231 change when converting from/to a sizetype with the same
6232 precision and signedness.
6234 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
6237 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
6238 location address to the correct place. Update copyright year.
6240 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
6242 * lambda-code.c (lambda_transform_legal_p): Handle the case of
6243 no dependences in the dependence_relations vector.
6245 2008-01-16 Jan Hubicka <jh@suse.cz>
6247 PR rtl-optimization/31396
6248 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
6249 * cfg.c (dump_reg_info): Print it.
6250 * regs.h (struct reg_info_t): add freq_calls_crossed.
6251 (REG_FREQ_CALLS_CROSSED): New macro.
6252 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
6253 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
6254 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
6255 regmove_optimize): Update call crossed frequencies.
6256 * local-alloc.c (struct qty): Add freq_calls_crossed.
6257 (alloc_qty): Copute freq_calls_crossed.
6258 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
6259 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
6260 * ra.h (struct allocno): Add freq_calls_crossed.
6262 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
6264 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
6265 libgomp when compiling with ftree-parallelize-loops.
6266 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
6268 2008-01-16 Richard Guenther <rguenther@suse.de>
6270 PR tree-optimization/34769
6271 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
6272 * tree.c (int_cst_value): Instead make this function more
6273 permissive in what it accepts as valid input. Document this
6274 function always sign-extends the value.
6276 2008-01-16 Jakub Jelinek <jakub@redhat.com>
6277 Richard Guenther <rguenther@suse.de>
6280 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
6281 (gimple_fold_indirect_ref_rhs): ... this.
6282 (gimple_fold_indirect_ref): New function with foldings
6283 that preserve lvalueness.
6284 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
6285 * tree-flow.h (gimple_fold_indirect_ref): Declare.
6286 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
6287 to fold an INDIRECT_REF, fall back to the old use of
6288 fold_indirect_ref_1.
6290 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
6292 * tree-data-ref.c (subscript_dependence_tester_1): Call
6293 free_conflict_function.
6294 (compute_self_dependence): Same.
6296 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
6299 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
6300 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
6302 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
6303 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
6304 for DWARF2_UNWIND_INFO targets.
6306 2008-01-16 Richard Guenther <rguenther@suse.de>
6309 * c-typeck.c (common_pointer_type): Do not merge inconsistent
6310 type qualifiers for function types.
6312 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
6314 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
6315 loop_iterator li from previous commit.
6317 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
6319 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
6321 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
6323 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
6324 (parallelize_loops): Don't parallelize irreducible components.
6326 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6329 * c-opts (c_common_post_options): Do not enable CPP
6330 flag_pedantic_errors by default.
6332 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
6334 PR rtl-optimization/31944
6335 * cse.c (remove_pseudo_from_table): New function.
6336 (merge_equiv_classes): Use above function to remove pseudo-registers.
6337 (invalidate): Likewise.
6339 2008-01-13 Richard Guenther <rguenther@suse.de>
6342 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
6343 instead of TYPE_MODE to deal with calls from expand_one_error_var.
6345 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
6347 * gcse.c (cprop_jump): Call validate_unshare_change instead of
6348 validate_change to unshare the source of the PC set.
6350 2008-01-12 Jan Hubicka <jh@suse.cz>
6353 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
6354 references above array bounds. This might trigger bounds checks for
6357 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
6359 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
6360 new_replaceable_dependencies.
6362 2008-01-12 Doug Kwan <dougkwan@google.com>
6364 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
6365 instead of OPT_Wreturn_type in warning due to ignored return type
6367 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
6368 options included in -Wextra.
6369 * c.opt: New option -Wignored_qualifiers.
6370 * doc/invoke.texi (Warning Options, -Wextra): Add new option
6371 -Wignore_qualifiers.
6372 (-Wignored-qualifiers): Document.
6373 (-Wreturn-type): Remove description of functionality now handled
6374 by -Wignored-qualifiers.
6376 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
6379 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
6380 NOP_EXPR if it is between integral types with the same precision.
6382 2008-01-12 Jan Hubicka <jh@suse.cz>
6385 * invoke.texi (max-inline-recursive-depth): Fix default value.
6387 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
6389 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
6392 2008-01-11 Bob Wilson <bob.wilson@acm.org>
6394 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
6396 2008-01-11 James E. Wilson <wilson@specifix.com>
6399 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
6401 2008-01-11 Anatoly Sokolov <aesok@post.ru>
6403 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
6404 save/restore frame pointer register and don't use 'call-prologues'
6405 optimization in function with "OS_task" attribute.
6407 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
6410 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
6411 when copying to memory.
6413 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
6415 PR rtl-optimization/30905
6416 * cfgcleanup.c: Include dce.h
6417 (crossjumps_occured): New global variable.
6418 (try_crossjump_bb): Exit loop after finding a fallthru edge.
6419 If something changed, set crossjumps_occured to true.
6420 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
6421 Don't add/remove fake edges to exit here...
6422 (cleanup_cfg): ...but do it here, when crossjumping.
6423 Run a fast DCE when successful crossjumps occured in the latest
6424 iteration of try_optimize_cfg.
6426 2008-01-11 Richard Guenther <rguenther@suse.de>
6428 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
6429 (struct vn_unary_op_s): Likewise.
6430 (vn_reference_insert): Free old reference on hash collision.
6432 2008-01-10 Raksit Ashok <raksit@google.com>
6434 PR rtl-optimization/27971
6435 * combine.c (find_split_point): Split PLUS expressions which are
6436 inside a MEM rtx, and whose first operand is complex.
6438 2008-01-10 DJ Delorie <dj@redhat.com>
6440 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
6441 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
6442 (m32c_hard_regno_ok): Call the underlying function.
6444 2008-01-10 Richard Guenther <rguenther@suse.de>
6447 * tree-cfg.c (tree_merge_blocks): Do not go through the
6448 full-blown folding and stmt updating path if we just deal
6449 with virtual operands.
6450 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
6451 test for abnormal SSA_NAMEs.
6453 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
6456 * reload.c (push_reload): Add assertions. All constants from
6457 reg_equiv_constant should have been used for replacing the respective
6459 (find_reloads_address): Invoke find_reloads_address_part for
6460 constant taken from the reg_equiv_constant array.
6462 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
6464 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
6465 field (valnum) the first in the struct. Replace bools with
6468 2008-01-10 Richard Guenther <rguenther@suse.de>
6470 PR tree-optimization/34651
6471 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
6472 types and ordering for masking and converting.
6474 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
6476 PR tree-optimization/34017
6477 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
6478 also for PHI_NODE expressions.
6480 2008-01-09 Jan Hubicka <jh@suse.cz>
6482 PR tree-optimization/34708
6483 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
6484 based on number of case labels.
6485 (init_inline_once): Remove switch_cost.
6486 * tree-inline.h (eni_weights_d): Remove switch_cost.
6488 2008-01-09 Richard Guenther <rguenther@suse.de>
6489 Andrew Pinski <andrew_pinski@playstation.sony.com>
6492 * gimplify.c (gimplify_cond_expr): Do not create an addressable
6493 temporary if an rvalue is ok or an lvalue is not required.
6495 2008-01-09 Richard Guenther <rguenther@suse.de>
6498 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
6501 2008-01-09 Richard Guenther <rguenther@suse.de>
6504 * tree.c (host_integerp): Check for sizetype only if the
6505 type is an integer type.
6507 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
6510 * opts.c (decode_options): Disable inlining of functions called
6511 once if not in unit-at-a-time mode.
6513 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
6515 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
6517 2008-01-08 Richard Guenther <rguenther@suse.de>
6520 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
6521 out early if the result will be unused.
6523 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
6528 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
6529 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
6532 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
6534 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
6535 for vectorization tuned.
6537 2008-01-08 Richard Guenther <rguenther@suse.de>
6539 PR tree-optimization/34683
6540 * tree-ssa-operands.c (operand_build_cmp): Export.
6541 * tree-ssa-operands.h (operand_build_cmp): Declare.
6542 * tree-vn.c (vuses_compare): Remove.
6543 (sort_vuses): Use operand_build_cmp.
6544 (sort_vuses_heap): Likewise.
6545 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
6546 to re-use old VEC if available. Do not sort already sorted VUSEs.
6547 (vdefs_to_vec): Do not sort already sorted VDEFs.
6549 2008-01-08 Jakub Jelinek <jakub@redhat.com>
6552 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
6554 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
6557 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
6558 limitations of reciprocal sequences on x86 targets.
6560 2008-01-08 Richard Guenther <rguenther@suse.de>
6562 PR tree-optimization/34683
6563 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
6565 2008-01-07 Jakub Jelinek <jakub@redhat.com>
6568 * config/darwin.c (darwin_mergeable_string_section): Don't use
6569 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
6571 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
6574 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
6575 negxf2. Macroize expander using X87MODEF mode iterator. Change
6576 predicates of op0 and op1 to register_operand.
6577 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
6578 expander using X87MODEF mode iterator. Change predicates of
6579 op0 and op1 to register_operand.
6580 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
6581 corresponding patterns and macroize using MODEF macro. Change
6582 predicates of op0 and op1 to register_operand and remove
6583 "m" constraint. Disparage "r" alternative with "!".
6584 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
6585 macroize using X87MODEF macro. Change predicates of op0 and op1
6586 to register_operand and remove "m" constraint. Disparage "r"
6587 alternative with "!".
6588 (absneg splitter with memory operands): Remove.
6589 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
6590 patterns and macroize using X87MODEF mode iterator.
6591 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
6592 Change predicate of op1 to register_operand.
6593 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
6594 for memory operands.
6596 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
6598 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
6600 2008-01-07 Richard Guenther <rguenther@suse.de>
6602 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
6605 2008-01-07 Richard Guenther <rguenther@suse.de>
6607 PR tree-optimization/34683
6608 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
6609 VOPs of the needed size to save memory. Use VEC_quick_push
6610 to save compile-time.
6611 (vdefs_to_vec): Likewise.
6613 2008-01-07 Sa Liu <saliu@de.ibm.com>
6615 * config/spu/spu.md (divdf3): Genetate inline code for double
6616 division. The implementation doesn't handle INF or NAN, therefore it
6617 only applies when -ffinite-math-only is given.
6619 2008-01-06 Paolo Carlini <pcarlini@suse.de>
6622 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
6623 * doc/cpp.texi ([Common Predefined Macros]): Document.
6625 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
6627 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
6628 order to use commutative addition instead of subtraction.
6630 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
6631 Mircea Namolaru <namolaru@il.ibm.com>
6632 Vladimir Yanovsky <yanov@il.ibm.com>
6633 Revital Eres <eres@il.ibm.com>
6635 PR tree-optimization/34263
6636 * tree-outof-ssa.c (process_single_block_loop_latch,
6637 contains_tree_r): New functions.
6638 (analyze_edges_for_bb): Call process_single_block_loop_latch
6639 function to empty single-basic-block latch block if possible.
6641 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
6643 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
6645 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
6647 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
6649 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
6651 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
6653 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
6655 2008-01-05 Jakub Jelinek <jakub@redhat.com>
6657 PR tree-optimization/34618
6658 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
6661 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
6664 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
6665 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
6666 Update copyright year.
6668 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
6669 Update copyright year.
6670 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
6673 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
6675 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
6676 edge does not point to current bb before changing need_assert.
6678 2008-01-04 Richard Guenther <rguenther@suse.de>
6681 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
6682 for verifying purposes if they are is_gimple_min_invariant.
6684 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
6686 PR tree-optimization/34448
6687 PR tree-optimization/34465
6688 * gimplify.c (gimplify_init_constructor): Add new parameter
6689 notify_temp_creation. Use it.
6690 (gimplify_modify_expr_rhs): Take volatiles into account when
6691 optimizing constructors.
6692 Do not optimize constructors if gimplify_init_constructor will dump to
6694 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
6695 * gcc.c-torture/compile/pr34448.c: New.
6697 2008-01-04 Jakub Jelinek <jakub@redhat.com>
6699 PR gcov-profile/34609
6700 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
6701 return_slot if result is TREE_ADDRESSABLE.
6703 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
6705 * config/mips/mips.md (sqrt_condition): Tweak comment.
6706 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
6708 2008-01-03 Tom Tromey <tromey@redhat.com>
6711 * c-common.c (c_type_hash): Handle VLAs.
6713 2008-01-03 Jan Hubicka <jh@suse.cz>
6715 PR tree-optimization/31081
6716 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
6717 0 when inlining and not inlining to first basic block.
6718 (remap_decl): When var is initialized to 0, don't set default_def.
6719 (expand_call_inline): Set entry_bb.
6720 * tree-inline.h (copy_body_data): Add entry_bb.
6722 2008-01-03 Jakub Jelinek <jakub@redhat.com>
6725 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
6728 PR tree-optimization/29484
6729 * tree-inline.c (inline_forbidden_p_2): New function.
6730 (inline_forbidden_p): Disallow inlining if some static var
6731 has an address of a local LABEL_DECL in its initializer.
6732 * doc/extend.texi (Labels as Values): Document &&foo behaviour
6735 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
6737 PR tree-optimization/34635
6738 * tree-data-ref.c (add_other_self_distances): Make sure that the
6739 evolution step is constant.
6741 2008-01-03 Jakub Jelinek <jakub@redhat.com>
6744 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
6746 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
6748 * tree-sra.c (scalarize_init): Insert the generate_element_init
6749 statements after the generate_element_zero statements.
6751 2008-01-02 Richard Guenther <rguenther@suse.de>
6755 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
6756 for very large number of operands instead of ICEing.
6758 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
6761 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
6762 while stack probing.
6764 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
6766 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
6769 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
6772 * tree-mudflap.c (mx_register_decls): Guard warning by
6773 !DECL_ARTIFICIAL check.
6775 2008-01-01 Jakub Jelinek <jakub@redhat.com>
6777 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
6778 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
6779 sse5_perm<mode>): Fix constraints.