1 2008-06-26 Kenneth Zadeck <zadeck@naturalbridge.com>
3 * ira-conflicts.c ira-color.c ira-lives.c ira-emit.c ira-build.c
4 ira.c ira-costs.c : Fix comments.
6 2008-06-11 Vladimir Makarov <vmakarov@redhat.com>
8 * caller-save.c (restore_con_fun_n, save_con_fun_n): Use loop
9 mentioned_regs instead of clearing all result.
11 2008-06-11 Vladimir Makarov <vmakarov@redhat.com>
13 * doc/tm.texi (IRA_HARD_REGNO_ADD_COST_MULTIPLIER,
14 IRA_COVER_CLASSES): Fix macro descriptions.
16 * doc/invoke.texi (fira): Fix the description.
18 * flags.h (ira_algorithm): Fix formatting.
20 * ira-conflicts.c: Remove all forward prototypes of static
21 functions. Use type bool and true and false for boolean values.
22 Change father to parent.
23 (get_dup_num): Remove equiv_const. More comments.
24 (process_regs_for_copy, process_reg_shuffles): New functions.
25 (add_insn_allocno_copies): Use them.
27 * ira-int.h: Use type bool and true and false for boolean values.
28 Change father to parent.
30 * ira-color.c: Remove all forward prototypes of static
31 functions. Use type bool and true and false for boolean values.
32 Change father to parent.
34 * ira-lives.c: Remove all forward prototypes of static
35 functions. Use type bool and true and false for boolean values.
36 Change father to parent.
42 * ira-costs.c: Remove all forward prototypes of static
43 functions. Use type bool and true and false for boolean values.
44 Change father to parent.
47 * ira-build.c: Remove all forward prototypes of static functions
48 except for find_allocno_copy. Use type bool and true and false
49 for boolean values. Change father to parent.
51 * ira.h: Use type bool for boolean values.
53 * reload1.c (reload): Pass false instead of FALSE.
55 2008-06-10 Vladimir Makarov <vmakarov@redhat.com>
57 * caller-save.c (insert_restore, insert_save): Don't require
58 alignment more than PREFERRED_STACK_BOUNDARY in asserts.
60 2008-06-10 Vladimir Makarov <vmakarov@redhat.com>
62 * ira-int.h (allocno_copy): Change comments.
64 * ira-conflicts.c (build_conflict_bit_table): Use cast in printf
67 2008-06-10 Vladimir Makarov <vmakarov@redhat.com>
69 * common.opt (fira-move-spills): Remove.
71 * caller-save.c: Add more comments.
72 (save_call_clobbered_regs): Remove flag_ira_move_spills.
74 * doc/invoke.texi (-fno-ira-move-spills): Remove.
76 2008-06-06 Vladimir Makarov <vmakarov@redhat.com>
78 * ira-build.c (ira_flattening): Check first info propagation.
80 * config/alpha/alpha.h (IRA_COVER_CLASSES): New.
82 2008-06-03 Vladimir Makarov <vmakarov@redhat.com>
84 * caller-saves.c (mark_referenced_regs): Add new parameter.
85 Process increments/decrements.
86 (set_regs): Rename to modified_regs.
87 (calculate_local_save_info, save_call_clobbered_regs): Pass the
88 new parameter value to mark_referenced_regs.
90 * ira-costs.c (find_allocno_class_costs): Always use important
93 * reload1.c (reload): Clear changed_allocation_pseudos at the end
96 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
98 * ira-build.c (allocno_range_compare_func): Stabilize sort.
100 2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
101 Merge 132243:136204 from trunk
102 * ira.c (setup_eliminable_regset): Use cfun.
103 (ira): Set up DF_VERIFY_SCHEDULED.
105 * ira-lives.c (process_bb_node_lives): Use cfun.
107 * ira_build (ira_build): Use crtl.
109 * local-alloc.c (update_equiv_regs): Rescan equivalent insn.
111 * final (rest_of_handle_final): Use crtl.
113 * caller-save.c (save_call_clobbered_regs): Initialize save.
115 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
117 * config/avr/avr.h (IRA_COVER_CLASSES): New macro
119 * reload1.c (find_reg): Process registers in register allocation
122 2008-05-29 Vladimir Makarov <vmakarov@redhat.com>
124 * Makefile.in (caller-save.o): Add CFGLOOP_H.
126 * ira.c (ira): Call flow_loops_find after the allocation before
129 * global.c (print_insn_chain): Print bitmap saved.
131 * reload.h (insn_chain): Add members saved and saved_pseudo_regno.
133 * reload1.c (changed_allocation_pseudos): New bitmap.
134 (init_reload): Initiate the bitmap.
135 (new_insn_chain): Initiate bitmap saved.
136 (order_regs_for_reload): Check bitmap saved.
137 (find_reg): Check bitmap saved to find register.
138 (delete_caller_save_insns): Print about removing caller-save insn.
139 Invalidate reload register taken from saved registers.
140 Recalculate used_spill_regs.
141 (finish_spills): Check bitmap saved. Set up
142 changed_allocation_pseudos. Remove sanity check.
144 * caller-save.c (cfgloop.h): Add the header.
145 (set_regs): New variable.
146 (bb_info): Remove members empty_save_in_p, kill, gen. Add members
147 empty_save_out_p, empty_restore_in_p, save_kill, save_gen,
148 restore_kill, restore_gen, free_gen, restore_in, restore_out,
149 free_in, free_out, live_at_end, restore_here, restore_in_mode,
150 restore_out_mode, save_in_pseudo, save_out_pseudo,
151 restore_in_pseudo, restore_out_pseudo.
152 (loop_info): New structure.
153 (LOOP_INFO): New macro.
154 (calculate_local_save_info): Add calculation of new bb_info
155 members for local info.
156 (restore_trans_fun, restore_con_fun_0, restore_con_fun_n,
157 calculate_restore_in_out, calculate_restore_here, free_trans_fun,
158 free_con_fun_0, free_con_fun_n, calculate_free_in_out): New
160 (make_global_save_analysis): Add calculation of new bb_info
161 members for global info.
162 (print_hard_reg_set_and_mode): Rename to
163 print_annotated_hard_reg_set. Print pseudo regnos too.
164 (print_save_data): Add printing new bb_info members.
165 (set_hard_reg_saved): New parameters from_saved_pseudo,
166 save_pseudo. Set them up.
167 (save_call_clobbered_regs): Rewrite.
168 (mark_referenced_regs): Set up set_regs.
169 (insert_restore, insert_save): New parameter save_pseudo. Use it
170 for setting save_pseudo_regno and for debugging output.
172 * ira-conflicts.c (build_conflict_bit_table): Check min/max.
174 * ira-build.c (conflict_vector_profitable_p): Ditto.
175 (clear_allocno_conflicts): Check that conflict allocno array size.
177 2008-05-21 Vladimir Makarov <vmakarov@redhat.com>
179 * ira.c (setup_preferred_alternate_classes): Remove.
180 (setup_preferred_alternate_classes_for_new_pseudos): New.
181 (setup_preferred_alternate_classes): Set memory cost for NO_REGS
183 (ira): Remove setup_preferred_alternate_classes. Call
184 setup_preferred_alternate_classes_for_new_pseudos.
186 * ira-costs.c (record_reg_classes): Don't decrease frequency for
188 (record_operand_costs): Use memcpy instead of memmove.
189 (print_costs): Use regno instead of allocno number in
190 invalid_mode_change_p.
191 (find_allocno_class_costs): Set up preferred and alternative
194 2008-05-18 Vladimir Makarov <vmakarov@redhat.com>
195 PR tree-optimization/26854
197 * timevar.def (TV_RELOAD): New timer.
199 * ira.c (ira): Use TV_IRA and TV_RELOAD.
200 (pass_ira): Remove TV_IRA.
202 * Makefile.in (ira-color.o): Add SPLAY_TREE_H.
204 * ira-conflicts.c (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
206 * ira-int.h (DEF_VEC_P, DEF_ALLOCC_P): Move from ira-conflicts.c and
208 (struct allocno): New bitfield splay_removed_p.
209 (ALLOCNO_MAY_BE_SPILLED_P): New macro.
211 * ira-color.c (splay-tree.h): Add the header.
212 (allocno_spill_priority_compare, splay_tree_allocate,
213 splay_tree_free): New functions.
214 (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
215 (sorted_allocnos_for_spilling): Rename to allocnos_for_spilling.
216 (splay_tree_node_pool, removed_splay_allocno_vec,
217 uncolorable_allocnos_num, uncolorable_allocnos_splay_tree): New
219 (add_allocno_to_bucket, add_allocno_to_ordered_bucket,
220 delete_allocno_from_bucket): Update uncolorable_allocnos_num.
221 (USE_SPLAY_P): New macro.
222 (push_allocno_to_stack): Remove allocno from the splay tree.
223 (push_allocnos_to_stack): Use the splay trees.
224 (do_coloring): Create and finish splay_tree_node_pool.
225 Move allocation/deallocation of allocnos_for_spilling to here...
226 (initiate_ira_assign, finish_ira_assign): Move
227 allocnos_for_spilling from here...
228 (ira_color): Allocate/deallocate removed_splay_allocno_vec.
230 * ira-build.c (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
231 (create_allocno): Initiate ALLOCNO_SPLAY_REMOVED_P.
233 2008-05-12 Vladimir Makarov <vmakarov@redhat.com>
235 * Makefile.in (ira-build.o): Add sparseset.h.
237 * ira-build.c (sparseset.h): Add.
238 (remove_wrong_conflicts, change_allocno_conflicts,
239 check_and_add_conflicts, add_conflict_with_underlying_allocnos):
241 (finish_loop_tree_node, clear_allocno_conflicts,
242 change_allocno_in_range_list): New functions.
243 (allocnos_bitmap): New variable.
244 (finish_loop_tree_nodes): Use finish_loop_tree_node.
245 (initiate_allocnos): Initiate allocno conflict id by its allocno
247 (conflict_vector_profitable_p): Use allocno min/max attributes.
248 (temp_change_bit_vec): Remove.
249 (finish_allocno): Nullify the corresponding element in allocnos
250 and conflict_id_allocno_map.
251 (local_allocnos_bitmap): Remove.
252 (create_loop_tree_node_caps): Use local_allocnos_bitmap instead of
253 local_allocnos_bitmap.
254 (regno_top_level_allocno_map): Move to ira_flattening.
255 (ira_flattening): Rewriting conflict rebuilding.
256 (ira_build): Allocate/free allocnos_bitmap. Move
257 create_allocno_live_ranges before creation of allocno caps.
259 * ira-lives.c (propagate_new_allocno_info, propagate_new_info):
261 (create_allocno_live_ranges): Call propagate_new_info.
263 * ira-color.c (ira_fast_allocation): Collect allocnos for sorting.
265 * ira-conflicts.c (propagate_allocno_info): Rename to
266 propagate_allocno_copy_info. Propagate only copies.
267 (propagate_info): Rename to propagate_copy_info.
269 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
271 * toplev.c (backend_init_target): Move init_ira call from here...
272 (lang_dependent_init_target): ...to here.
274 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
276 * ira.c (setup_class_subset_and_memory_move_costs): Don't calculate
277 memory move costs for NO_REGS.
279 2008-05-08 Vladimir Makarov <vmakarov@redhat.com>
281 * ira-int.h (loop_tree_node): New members subloops and
284 * ira-conflicts.c (propagate_modified_regnos): Check that it is a
286 (ira_build_conflicts): Use TRUE for traverse_loop_tree.
288 * ira-color.c (color_pass): Check that it is a
289 loop node. Use subloops and subloop_next for traversing.
290 (move_spill_restore): Ditto.
291 (coalesced_pseudo_reg_freq_compare,
292 coalesced_pseudo_reg_slot_compare, pseudo_reg_compare): Don't
295 * ira-lives.c (create_allocno_live_ranges): Use TRUE for
298 * ira-emit.c (ira_emit): Ditto.
300 * ira-build.c (add_loop_to_tree): Set up subloops and
302 (setup_loop_tree_level): Use subloops and subloop_next for
304 (form_loop_tree): Initialize subloops and subloop_next.
305 (traverse_loop_tree): Change 1st parameter semantics. Rewrite the
307 (create_loop_tree_node_caps): Check that it is a loop node.
308 (check_and_add_conflicts): Check allocno loop nodes.
309 (add_conflict_with_underlying_allocnos): Use subloops and
310 subloop_next for traversing.
312 * ira.c (chain_freq_compare, chain_bb_compare): Don't discard
314 (ira): Call regstat functions second time only if new pseudos are
317 * ira-costs.c (find_allocno_class_costs): Use TRUE for
319 (setup_allocno_cover_class_and_costs): Ditto.
321 2008-05-06 Vladimir Makarov <vmakarov@redhat.com>
323 PR rtl-optimization/36028
324 * caller-save.c (setup_save_areas): Adjust reused stack slot.
326 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
328 * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
329 STACK_REGS is defined.
331 2008-05-05 Vladimir Makarov <vmakarov@redhat.com>
333 * ira-color.c (allocno_assign_compare_func): Remove.
334 (ira_fast_allocation): Rewrite.
336 2008-05-02 Vladimir Makarov <vmakarov@redhat.com>
338 * ira-conflicts.c (print_conflicts): Exclude non-allocatable hard
339 regs and hard regs from different cover classes.
340 (ira_build_conflicts): Build conflicts only for optimization mode.
342 * cfgloopanal.c (estimate_reg_pressure_cost): Decrease cost only
343 for optimization mode.
345 * caller-save.c (caller-save.c, calculate_local_save_info,
346 save_call_clobbered_regs): Do save/restore placement optimization
347 and sharing stack slots only for optimization mode.
349 * ira-int.h (set_allocno_cover_class, ira_fast_allocation): New
352 * ira-color.c (assign_hard_reg): Clear conflicting_regs.
353 (allocno_assign_compare_func, allocno_assign_compare_func): New
356 * global.c (build_insn_chain): Add spilled pseudos only in
359 * ira-emit.c (modify_move_list): Use set_allocno_cover_class.
361 * alias.c (nonoverlapping_memrefs_p): Check addresses only in
364 * ira-build.c (create_allocno): Initialize
365 ALLOCNO_CONFLICT_HARD_REGS and ALLOCNO_TOTAL_CONFLICT_HARD_REGS by
366 non-allocatable hard reg set.
367 (set_allocno_cover_class): New function.
368 (create_cap_allocno): Use set_allocno_cover_class.
369 (ira_build): Call create_loop_tree_node_caps,
370 propagate_info_to_loop_tree_node_caps, and
371 propagate_info_to_loop_tree_node_caps only in optimization mode.
372 * ira.c (setup_reg_renumber): Add optimize to ira_assert.
373 (ira): Call find_reg_equiv_invariant_const, ira_color,
374 sort_insn_chain, and fix_reg_equiv_init only in optimization mode.
375 Call ira_fast_allocation for -O0. Use right argument for reload.
377 * ira-costs.c (find_allocno_class_costs): Use important_classes
378 only for optimization mode.
379 (setup_allocno_cover_class_and_costs): Use
380 set_allocno_cover_class. Initialize cost vectors only in
381 optimization mode. Call process_bb_node_for_hard_reg_moves only
382 in optimization mode.
384 * reload1.c (compute_use_by_pseudos): Add optimize to ira_assert.
385 (reload): Sort pseudo-registers only optimization mode. Restore
386 original order for insn chain only in optimization mode.
387 (calculate_needs_all_insns): Call mark_memory_move_deletion only
388 in optimization mode.
389 (count_pseudo, count_spilled_pseudo): Check spilled pseudos only
390 in optimization mode.
391 (alter_reg): Share stack slots only in optimization mode.
392 (finish_spills): Check spilled pseudos only in optimization mode.
393 (emit_input_reload_insns, delete_output_reload): Call
394 mark_allocation_change only in optimization mode.
396 2008-05-01 Vladimir Makarov <vmakarov@redhat.com>
398 * ira-int.h (IRA_BB_NODE_BY_INDEX, IRA_LOOP_NODE_BY_INDEX): Use
399 gcc_unreachable instead of exit.
400 (struct allocno): New members min, max, and conflict_id.
401 (ALLOCNO_MIN, ALLOCNO_MAX, ALLOCNO_CONFLICT_ID): New macros.
402 (conflict_id_allocno_map):
403 (SET_ALLOCNO_SET_BIT, CLEAR_ALLOCNO_SET_BIT,
404 TEST_ALLOCNO_SET_BIT): Add two new parameters. Add versions for
406 (allocno_set_iterator): Add new member start_val.
407 (allocno_set_iter_init): Add two new parameters. Set up
409 (allocno_set_iter_cond): Use start_val.
410 (FOR_EACH_ALLOCNO_IN_SET): Add two new parameters.
411 (allocno_set_words): Remove.
412 (allocno_conflict_iterator): Add new member base_conflict_id.
413 (allocno_conflict_iter_init): Set up base_conflict_id. Use
414 ALLOCNO_MIN and ALLOCNO_MAX.
415 (allocno_conflict_iter_cond): Use conflict_id_allocno_map and
418 * ira-lives.c: Include sparseset.h.
419 (allocno_set_words, SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE,
420 TEST_ALLOCNO_LIVE, allocnos_live_bitmap): Remove.
421 (allocnos_live): Define as sparseset.
422 (make_regno_born, clear_allocno_live, mark_reg_store,
423 mark_reg_death, process_single_reg_class_operands,
424 process_bb_node_lives, create_allocno_live_ranges): Don't use
425 allocnos_live_bitmap. Use allocnos_live as sparseset.
427 * Makefile.in (ira-conflicts.o, ira-lives.o): Add sparseset.h
429 * ira-conflicts.c: Add sparseset.h header.
430 (mirror_conflicts): Remove.
431 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, TEST_ALLOCNO_LIVE): Remove.
432 (allocnos_live): Remove.
434 (CONFLICT_ALLOCNO_P): New.
435 (build_conflict_bit_table): Use sparseset. Use FOR_EACH_ALLOCNO.
436 Allocate bits for [min..max] range. Report conflict bit table
437 sizes. Setup conflicts for both allocnos.
438 (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for copy vectors.
439 (remove_conflict_allocno_copies): Use CONFLICT_ALLOCNO_P. Rename
440 conflict_allocno_copy_varray to conflict_allocno_copy_vec and make
442 (build_allocno_conflicts): Use two new arguments for
443 FOR_EACH_ALLOCNO_IN_SET. Use conflict_id_allocno_map. Modify
444 calculation of ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE. Use two new
445 arguments for SET_ALLOCNO_SET_BIT.
446 (ira_build_conflicts): Don't call mirror_conflicts.
448 * ira-color.c (varray.h): Remove.
449 (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for
451 (allocno_stack_varray): Rename to allocno_stack_vec. Make it a
453 (assign_hard_reg, push_allocno_to_stack, pop_allocnos_from_stack,
454 ira_color): Use allocno_stack_vec as VEC.
456 * ira-build.c (setup_min_max_allocno_live_range_point,
457 allocno_range_compare_func, sort_conflict_id_allocno_map,
458 setup_min_max_conflict_allocno_ids): New function.
459 (conflict_id_allocno_map, conflict_id_allocno_map_vec): New global
461 (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for allocno vectors.
462 (allocno_varray): Rename to allocno_vec and make it a VEC.
463 (initiate_allocnos): Initiate conflict_id_allocno_map_vec. Use
464 allocno_vec as a VEC.
465 (create_allocno): Initiate min, max, and conflict_id_allocno.
466 Update conflict_id_allocno_map. Use allocno_vec as a VEC.
467 (allocate_allocno_conflict_bit_vec): Use ALLOCNO_MIN and
469 (add_to_allocno_conflicts): Ditto.
470 (remove_wrong_conflicts): Ditto. Use conflict_id_allocno_map.
471 (change_allocno_conflicts): Ditto. Use add_to_allocno_conflicts
472 instead of SET_ALLOCNO_SET_BIT.
473 (finish_allocnos): Free conflict_id_allocno_map_vec. Use
474 allocno_vec as a VEC.
475 (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for copy vectors.
476 (copy_varray): Rename to copy_vec and make it a VEC.
477 (initiate_copies, create_copy, finish_copies): Use copy_vec as
479 (ira_build): Call setup_min_max_allocno_live_range_point,
480 sort_conflict_id_allocno_map, and
481 setup_min_max_conflict_allocno_ids.
483 * ira-emit.c (move_t): New typedef.
484 (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for move vectors.
485 (move_varray): Rename it to move_vec and make it a VEC.
486 (emit_move_list, add_range_and_copies_from_move_list): Use move_t.
487 (traverse_moves, ira_emit): Ditto. Use move_vec as a VEC.
488 (modify_move_list): Ditto. Set up conflict_id, min, and max for
491 2008-04-10 Vladimir Makarov <vmakarov@redhat.com>
493 * reload1.c (substitute, gen_reload_chain_without_interm_reg_p):
495 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
497 2008-04-09 Vladimir Makarov <vmakarov@redhat.com>
499 * ira.c (ira): Move allocate_initial_values after initializing reg
502 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
504 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
506 2008-04-08 Vladimir Makarov <vmakarov@redhat.com>
508 * ira-color.c (assign_hard_reg): Add debug printing.
510 * ira-lives.c (mark_reg_store, mark_reg_death,
511 process_bb_node_lives): Ignore hard regno of class NO_REGS.
513 * ira.c: Fix typos in comments.
515 2008-04-07 Vladimir Makarov <vmakarov@redhat.com>
517 * cfgloopanal.c (estimate_reg_pressure_cost): Decrease register
518 pressure cost for IRA regional allocation.
520 * ira.c: Add IRA overview.
522 2008-04-06 Vladimir Makarov <vmakarov@redhat.com>
524 * ira-int.h (reg_class_intersect, reg_class_union): Add comments.
526 * hard-reg-set.h (reg_class_subclasses): New external definition.
528 * ira.c (setup_reg_class_intersect_union): Define for classes
529 containing no hard registers available for allocation.
531 * regclass.c (reg_class_subclasses): Make it external.
533 * config/sh/sh.h (IRA_COVER_CLASSES): Add TARGET_REGS.
535 2008-04-05 Vladimir Makarov <vmakarov@redhat.com>
537 * toplev.c (backend_init_target): Move init_ira after
538 init_fake_stack_mems.
540 * config/sh/sh.c (sh_secondary_reload): Remove check of x on null.
542 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
544 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
546 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
548 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
549 * config/sh/sh.c (sh_secondary_reload): Return NO_REGS for
551 * config/sh/sh.md (movsicc_true+3): Check if emit returns
553 * final.c (update_regs_ever_live): Check null rtl.
555 2008-04-04 Vladimir Makarov <vmakarov@redhat.com>
557 * reload1.c: Remove spaces before [.
559 * ira-conflicts.c, ira-int.h, ira-color.c, ira-lives.c,
560 ira-emit.c, ira-build.c, ira.c, ira.h, ira-costs.c: Ditto. Use
563 * caller-save.c: Ditto.
564 (set_up_bb_rts_numbers, rpost_cmp): Remove.
565 (save_trans_fun, save_con_fun_0, save_con_fun_n): New functions.
566 (struct bb_info): Remove member rts_number.
567 (calculate_local_save_info): Setup empty_save_in_p for abnormal
569 (all_blocks): New variable.
570 (calculate_save_in_out): Use df_simple_dataflow.
571 (make_global_save_analysis): Allocate/setup/free all_blocks.
573 2008-04-04 Vladimir Makarov <vmakarov@redhat.com>
575 * ira-costs.c: Use GPL3 in the header.
576 (find_allocno_class_costs): Use all important
577 classes on the 1st iteration.
579 2008-04-03 Vladimir Makarov <vmakarov@redhat.com>
581 PR rtl-optimization/35817
582 * ira-costs.c (ira-costs.c): Check have_regs_of_mode.
584 2008-04-02 Vladimir Makarov <vmakarov@redhat.com>
586 * ira-color.c (start_allocno_priorities): Permit zero allocno
589 2008-03-31 Vladimir Makarov <vmakarov@redhat.com>
591 * ira-color.c (push_allocnos_to_stack): Don't use double. Use
592 const as the secondary heuristic.
594 * ira-emit.c (set_allocno_reg): Change cap reg too. Process all
597 * doc/invoke.texi (-fira-coalescing): Change to -fira-coalesce.
599 * toplev.h (flag_lower_subreg): Remove.
601 * global.c (build_insn_chain): Remove the prototype.
603 * alias.c (value_addr_p): Change comment.
605 * emit-rtl.c (gen_lowpart_common): Remove CONCATN.
607 * simplify-rtx.c (simplify_subreg): Ditto.
609 * common.opt (flower-subreg): Remove.
611 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Fix last
614 2008-03-29 Vladimir Makarov <vmakarov@redhat.com>
616 * ira-lives (process_single_reg_class_operands): Fix typo in
617 setting up cover_class.
619 2008-03-28 Vladimir Makarov <vmakarov@redhat.com>
621 * ira-conflicts.c, global.c, regmove.c, function.c,
622 ira-emit.c, alias.c, reload1.c: Add comments, fix comments.
624 * reload.h: Add 2008 to the Copyright.
626 * caller-save.c: Add comments.
627 (reg_save_code, reg_restore_code, initiate_saved_hard_regs,
628 new_saved_hard_reg, finish_saved_hard_regs,
629 saved_hard_reg_compare_func, calculate_local_save_info,
630 set_up_bb_rts_numbers, rpost_cmp, calculate_save_in_out,
631 calculate_save_here, make_global_save_analysis,
632 print_hard_reg_set_and_mode, print_hard_reg_set, print_save_data,
633 set_hard_reg_saved, add_stored_regs): Add prototypes.
635 * df-scan.c (df_get_call_refs): Use
636 get_call_invalidated_used_regs.
638 * ira-int.h: Add comments.
639 (loop_tree_node): Rename inner to children.
640 (ira_allocate_regset, ira_free_regset): Remove.
641 (reassign_conflict_allocnos): Remove one parameter.
643 * ira-color.c: Add comments.
644 (setup_curr_costs): Rename to update_curr_costs.
645 (allocno_cost_compare_func, print_coalesced_allocno,
646 allocno_reload_assign): Add prototypes.
647 (reassign_conflict_allocnos): Remove one parameter.
649 * ira-lives.c: Add comments.
650 (make_regno_dead, make_regno_born_and_dead,
651 create_start_finish_chains, print_allocno_live_ranges,
652 print_live_ranges): Add protoypes.
654 * ira-build.c: Add comments.
655 (copy_allocno_live_range_list): Make it static.
657 * ira.c: Add comments.
658 (setup_cover_classes): Rename to
659 setup_cover_and_important_classes.
660 (free_register_move_costs, chain_freq_compare, chain_bb_compare,
661 ira): New prototypes.
662 (mode_inner_mode, setup_inner_mode, ira_allocate_regset,
663 ira_free_regset): Remove.
665 * ira.h: Add comments.
666 (SECONDARY_INPUT_RELOAD_CLASS,
667 SECONDARY_OUTPUT_RELOAD_CLASS, HAVE_SECONDARY_RELOADS,
668 MEMORY_MOVE_COST, reg_equiv_memory_loc_varray, reg_equiv_constant,
669 reg_equiv_memory_loc, reg_equiv_address, reg_equiv_mem, ira):
672 * ira-costs.c: Add comments.
673 (find_allocno_class_costs): Make common class a cover class.
675 2008-03-20 Vladimir Makarov <vmakarov@redhat.com>
677 * ira-int.h (allocno): Rename conflict_allocno_vec and
678 conflict_allocno_vec_size into conflict_allocno_array and
679 conflict_allocno_array_size. Remove conflict_allocnos_num.
680 Rename total_conflict_allocnos_num into conflict_allocnos_num New
681 members child_renamed_p and conflict_vec_p.
682 (ALLOCNO_CONFLICT_ALLOCNO_VEC): Rename to
683 ALLOCNO_CONFLICT_ALLOCNO_ARRAY.
684 (ALLOCNO_CONFLICT_ALLOCNO_VEC_SIZE): Rename to
685 ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE.
686 (ALLOCNO_CHILD_RENAMED_P, ALLOCNO_CONFLICT_VEC_P): New macros.
687 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Change to
688 FOR_EACH_ALLOCNO_IN_SET.
689 (allocno_set_iterator): New typedef.
690 (allocno_set_iter_init, allocno_set_iter_cond,
691 allocno_set_iter_next): New functions.
692 (conflict_vector_profitable_p, allocate_allocno_conflict_vec): New
694 (allocno_iterator): New typedef.
695 (allocno_iter_init, allocno_iter_cond): New functions.
696 (FOR_EACH_ALLOCNO): New macro.
697 (copy_iterator): New typedef.
698 (copy_iter_init, copy_iter_cond): New functions.
699 (FOR_EACH_COPY): New macro.
700 (allocno_conflict_iterator): New typedef.
701 (allocno_conflict_iter_init, allocno_conflict_iter_cond,
702 allocno_conflict_iter_next): New functions.
703 (conflict_vector_profitable_p, allocate_allocno_conflict_vec): New
705 (FOR_EACH_ALLOCNO_CONFLICT): New macro.
707 * ira-conflicts.c (conflicts): Change type.
708 (CONFLICT_P): Use one more index for conflicts.
709 (build_conflict_bit_table): Change allocation and initialization
711 (mirror_conflicts): Rewrite.
712 (remove_conflict_allocno_copies): Use FOR_EACH_ALLOCNO.
713 (build_allocno_conflict_vects): Rename to build_allocno_conflicts.
715 (print_conflicts): Use FOR_EACH_ALLOCNO, don't print star.
716 (ira_build_conflicts): Use FOR_EACH_ALLOCNO.
718 * ira-color.c (assign_hard_reg): Use FOR_EACH_ALLOCNO_CONFLICT.
719 Use min_full_cost for finding register profitability.
720 (push_allocno_to_stack): Use FOR_EACH_ALLOCNO_CONFLICT.
721 (setup_allocno_left_conflicts_num, coalesced_allocno_conflict_p):
723 (move_spill_restore): Use FOR_EACH_ALLOCNO.
724 (reassign_conflict_allocnos): Ditto. Use
725 FOR_EACH_ALLOCNO_CONFLICT.
726 (sort_regnos_for_alter_reg): Use FOR_EACH_ALLOCNO.
727 (reassign_pseudos): Use FOR_EACH_ALLOCNO_CONFLICT.
729 * ira-lives.c (make_regno_born, clear_allocno_live,
730 mark_reg_death, process_single_reg_class_operands,
731 process_bb_node_lives): Use FOR_EACH_ALLOCNO_IN_SET.
732 (create_start_finish_chains, print_live_ranges): Use
735 * ira-emit.c (set_allocno_reg): Set up ALLOCNO_CHILD_RENAMED_P.
736 (set_allocno_somewhere_renamed_p): Use
737 ALLOCNO_CONFLICT_ALLOCNO_ARRAY.
738 (ira_emit): Use FOR_EACH_ALLOCNO.
740 * ira.c (setup_reg_renumber, setup_allocno_assignment_flags,
741 calculate_allocation_cost, check_allocation,
742 print_redundant_copies, setup_preferred_alternate_classes): Use
745 * ira-costs.c (print_costs, setup_allocno_cover_class_and_costs,
746 ira_costs, tune_allocno_costs_and_cover_classes): Use
749 * ira-build.c (check_allocno_conflict_vec): Remove.
750 (add_to_allocno_conflict_vec): Rename to
751 allocate_allocno_conflicts. Rewrite.
752 (allocate_allocno_conflict_bit_vec, allocate_allocno_conflicts,
753 remove_wrong_conflicts, change_allocno_conflicts): New functions.
754 (rebuild_regno_allocno_maps): Use FOR_EACH_ALLOCNO.
755 (create_allocno): Initialize ALLOCNO_CHILD_RENAMED_P and
756 ALLOCNO_CONFLICT_VEC_P.
757 (conflict_vector_profitable_p): New function.
758 (compress_allocno_conflict_vec): Use
759 ALLOCNO_CONFLICT_ALLOCNO_ARRAY and don't use
760 ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM.
761 (compress_conflict_vecs): Use FOR_EACH_ALLOCNO. Check
762 ALLOCNO_CONFLICT_VEC_P.
763 (propagate_info_to_cap): Use FOR_EACH_ALLOCNO_CONFLICT.
764 (finish_allocnos): Use FOR_EACH_ALLOCNO.
765 (finish_copies): Use FOR_EACH_COPY.
766 (check_and_add_conflicts): Change second parameter. Use
767 add_to_allocno_conflicts instead of add_to_allocno_conflict_vec.
768 (temp_change_bit_vec): New variable.
769 (ira_flattening): Use FOR_EACH_ALLOCNO and FOR_EACH_COPY. Use
770 remove_wrong_conflicts, change_allocno_conflicts. Allocate and
771 free temp_change_bit_vec. Nullify `allocnos' elements for removed
772 allocnos. Check ALLOCNO_CHILD_RENAMED_P for removing obsolete
773 conflicts. Don't compress and enumerate allocnos and copies.
774 Nullify `copies' elements for removed copies. Use
775 add_to_allocno_conflicts instead of add_to_allocno_conflict_vec.
776 (ira_build): Use FOR_EACH_ALLOCNO.
778 2008-03-18 Vladimir Makarov <vmakarov@redhat.com>
780 * common.opt (fira-algorithm): Fix description
782 * ira-int.h (allocno): Remove best_class.
783 (ALLOCNO_BEST_CLASS): Remove.
784 (strict_class_subset_p): Remove.
786 * ira-color.c (get_coalesced_allocnos_best_class_and_freq): Rename
787 to get_coalesced_allocnos_attributes. Change prototype.
788 Calculate available regs.
789 (bucket_allocno_compare_func, sort_bucket): New functions.
790 (sorted_allocnos_for_spilling): New variable.
791 (assign_hard_reg): Don't add prohibited_class_mode_regs to
792 conflicting_regs. Use it in loop for finding the best hard
794 (add_allocno_to_ordered_bucket): Use bucket_allocno_compare_func.
795 (push_only_colorable): Call sort_bucket.
796 (push_allocnos_to_stack): Use sorted_allocnos_for_spilling instead
798 (put_allocno_into_bucket): Use add_allocno_to_bucket instead of
799 add_allocno_to_ordered_bucket.
800 (initiate_ira_assign): Allocate sorted_allocnos_for_spilling.
801 (finish_ira_assign): Free sorted_allocnos_for_spilling.
803 * ira-emit.c (modify_move_list): Remove setting ALLOCNO_BEST_CLASS
806 * ira-build.c (create_allocno, create_cap_allocno): Ditto.
808 * ira.c (strict_class_subset_p): Remove.
809 (setup_class_subset_and_memory_move_costs): Remove setting
810 strict_class_subset_p up.
812 * ira-costs.c (setup_allocno_cover_class_and_costs): Remove
813 setting ALLOCNO_BEST_CLASS up.
815 2008-03-12 Vladimir Makarov <vmakarov@redhat.com>
817 * ira-int.h (allocno_pool, copy_pool, allocno_live_range_pool):
818 Remove external definitions.
819 (free_allocno_updated_costs, allocate_cost_vector,
820 free_cost_vector): New prototypes.
821 (allocate_and_set_costs, allocate_and_copy_costs,
822 allocate_and_set_or_copy_costs): Change prototypes. Use
823 allocate_cost_vector instead of ira_allocate.
825 * ira-conflicts.c (add_insn_allocno_copies): Pass register class
826 to allocate_and_set_costs.
828 * ira-color.c (update_copy_costs_1): Pass register class to
829 allocate_and_set_or_copy_costs.
830 (assign_hard_reg): Pass register class to allocate_and_copy_costs.
832 (pop_allocnos_from_stack, color_allocnos): Check updated costs.
833 (color_pass): Pass register class to allocate_and_set_costs. Free
835 (move_spill_restore): Check reg equivalences.
836 (setup_curr_costs): Pass register class to
837 allocate_and_set_or_copy_costs.
838 (reassign_conflict_allocnos, allocno_reload_assign): Check updated
840 (calculate_spill_cost): Use REG_N_REFS after checking regno.
842 * ira-lives.c (process_single_reg_class_operands): Pass register
843 class to allocate_and_set_costs.
845 * ira-build.c (allocno_pool, allocno_live_range_pool): New
847 (initiate_allocnos): Initiate the pools.
848 (free_allocno_updated_costs): New function.
849 (finish_allocno): Use free_cost_vector. Free the pools.
850 (copy_pool): New variable.
851 (initiate_copies): Initiate the pool.
852 (cost_vector_pool): New variable.
853 (initiate_cost_vectors, allocate_cost_vector, free_cost_vector,
854 finish_cost_vectors): New functions.
855 (ira_flattening): Call free_allocno_updated_costs. Check updated
857 (ira_build): Call initiate_cost_vectors.
858 (ira_destroy): Call finish_cost_vectors.
860 * ira.c (find_reg_equiv_invariant_const): Check read only memory.
861 (setup_reg_renumber, setup_allocno_assignment_flags): Call
862 free_allocno_updated_costs.
863 (ira): Remove initializations and freeing allocno_pool, copy_pool,
864 and allocno_live_range_pool. Call generate_setjmp_warnings.
866 * ira-costs.c (process_bb_node_for_hard_reg_moves,
867 tune_allocno_costs_and_cover_classes): Pass register class to
868 allocate_and_set_costs.
870 * caller-save.c (save_slots_num, save_slots): New variables.
871 (init_save_areas): Initiate save_slots_num.
872 (setup_save_areas): Use stack slots from the previous reload
873 iteration independetly what slot was used on the previous pass.
875 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
877 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
878 Remove commutativity hint.
880 2008-03-06 Vladimir Makarov <vmakarov@redhat.com>
882 * ira.h (sort_regnos_for_alter_reg): Add parameter.
884 * reload1.c (reload): Pass additional argument to
885 sort_regnos_for_alter_reg.
887 * ira-int.h (reg_equiv_len): New global variable.
889 * ira-emit.c (change_loop): Add assertion.
891 * ira.c (reg_equiv_len): New global variable.
892 (setup_reg_renumber): Use reg_equiv_len in assertion.
893 (ira): Initialize reg_equiv_len and spilled_reg_stack_slots.
895 * ira-color.c (coalesced_pseudo_reg_compare): Rename to
896 coalesced_pseudo_reg_freq_compare.
897 (coalesced_pseudo_reg_slot_compare,
898 setup_coalesced_allocno_costs_and_nums,
899 collect_spilled_coalesced_allocnos, coalesce_spill_slots): New
901 (coalesced_allocno_conflict_p): Add new parameter. Use live
902 ranges to find conflicts for the reload.
903 (coalesce_allocnos): Don't coalesce allocnos with equivalences.
904 (color_pass): Check reg_quiv_len.
905 (regno_max_ref_width): New variable.
906 (sort_regnos_for_alter_reg): Add secondary coalescing spilled
907 allocnos. Assign stack slot numbers. Use costs instead of
909 (mark_allocation_change): Set up allocno hard regno.
910 (allocno_reload_assign): Ditto.
911 (reuse_stack_slot): Use stack slot numbers.
912 (mark_new_stack_slot): Set up allocno slot number.
914 * doc/passes.texi: Add more info about IRA.
916 2008-03-03 Vladimir Makarov <vmakarov@redhat.com>
918 * ira-conflicts.c (allocno_conflict_p): Rename to
919 allocno_live_ranges_intersect_p.
920 (allocno_reg_conflict_p): Rename to
921 pseudo_live_ranges_intersect_p.
923 * ira-lives.c (high_pressure_start_point): New variable.
924 (update_allocno_pressure_excess_length): New function.
925 (make_regno_dead): Call it.
926 (set_allocno_live): Udpate high_pressure_start_point.
927 (clear_allocno_live, mark_reg_store, mark_reg_death): Ditto.
928 (process_bb_node_lives): Initialize high_pressure_start_point.
929 Consider only allocatable hard regs for liveness.
931 * ira-costs.c (record_reg_classes): Multiply cost by frequency.
932 Use half frequency when memory is allowed. Remove check for
933 prefferred small register classes of pseudo-registers.
934 (scan_one_insn): Continue processing operands for moves of
935 pseudo-registers with equivalence. Don't multiply cost by
937 (init_ira_costs): Use bigger initial cost value.
940 (allocno): New members somewhere_renamed_p and
941 excess_pressure_points_num.
942 (ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_EXCESS_PRESSURE_POINTS_NUM):
944 (allocno_reg_conflict_p): Rename to
945 pseudo_live_ranges_intersect_p.
946 (allocno_conflict_p): Rename to allocno_live_ranges_intersect_p.
948 * ira.h (sort_regnos_for_alter_reg, better_spill_reload_regno_p):
949 New function prototypes.
951 * ira-color.c (merge_allocnos): Remove mode check.
952 (coalesce_allocnos): Add parameter and modify to use it for
953 coalescing spilled allocnos.
954 (color_allocnos): Pass parameter to coalesce_allocnos.
955 (regno_coalesced_allocno_freq, regno_coalesced_allocno_num): New
957 (coalesced_pseudo_reg_compare, calculate_spill_cost,
958 sort_regnos_for_alter_reg, better_spill_reload_regno_p): New
960 (mark_allocation_change, allocno_reload_assign, reassign_pseudos
961 ): Use ALLOCNO_MEMORY_COST instead of ALLOCNO_UPDATED_MEMORY_COST.
962 (reuse_stack_slot): Use pseudo_live_ranges_intersect_p instead of
963 allocno_reg_conflict_p.
965 * ira-emit.c (set_allocno_somewhere_renamed_p): New function.
966 (renamed_regno_bitmap): New static variable.
967 (change_loop): Check register pressure for creating new pseudo.
968 Set up ALLOCNO_SOMEWHERE_RENAMED_P and renamed_regno_bitmap.
969 (ira_emit): Allocate/deallocate renamed_regno_bitmap.
970 Call set_allocno_somewhere_renamed_p.
972 * ira-build.c (ira_loops): Move to ira.c.
973 (create_allocno): Initialize ALLOCNO_SOMEWHERE_RENAMED_P and
975 (create_cap_allocno): Set up ALLOCNO_MEMORY_COST.
976 (check_and_add_conflicts): Use allocno_live_ranges_intersect_p
977 instead of allocno_conflict_p.
978 (ira_flattening): Check conflicts of allocno renamed somewhere
979 locally. Update ALLOCNO_EXCESS_PRESSURE_POINTS_NUM.
980 (ira_build): Move code for finding loops to ira.c.
981 (ira_destroy): Move code for freeing loops to ira.c.
983 * ira.c (setup_reg_class_intersect_union): Fix calculation of
985 (calculate_allocation_cost): Use ALLOCNO_MEMORY_COST instead of
986 ALLOCNO_UPDATED_MEMORY_COST.
987 (ira_loops): Move from ira-build.c.
988 (ira): Move code for finding and freeing loops from ira-build.c.
989 Don't use regional RA when there are too many loops.
991 * reload1.c (pseudo_reg_compare): Remove.
992 (reload): Use sort_regnos_for_alter_reg.
993 (hard_regno_to_pseudo_regno): New variable.
994 (count_pseudo): Set up hard_regno_to_pseudo_regno.
995 (order_regs_for_reload): Initialize hard_regno_to_pseudo_regno.
996 (count_spilled_pseudo): Update hard_regno_to_pseudo_regno.
997 (find_reg): Use better_spill_reload_regno_p. Check
998 hard_regno_to_pseudo_regno.
1000 * cfgloopanal.c: Include params.h.
1001 (estimate_reg_pressure_cost): Check number of loops.
1003 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
1005 * params.h (IRA_MAX_LOOPS_NUM): New macro.
1007 * Makefile.in (cfgloopanal.o): Add PARAMS_H.
1009 * doc/invoke.texi (ira-max-loops-num): Describe.
1011 2008-02-20 Vladimir Makarov <vmakarov@redhat.com>
1013 * ira.h, ira-emit.c: Add year 2008 to the copyright.
1016 (struct copy): Rename move_insn to insn.
1017 (initiate_ira_assign, finish_ira_assign, debug_allocno_copies):
1018 New function prototypes.
1020 * ira-build.c: Add year 2008 to the copyright. Rename member
1021 move_insn of the copies to insn.
1022 (find_allocno_copy): New function.
1023 (propagate_info_to_cap, add_allocno_copy): Use it.
1024 (print_allocno_copies, debug_allocno_copies): New functions.
1026 * ira-conflicts.c: Add year 2008 to the copyright. Rename member
1027 move_insn of the copies to insn.
1030 (setup_reg_class_intersect_union): Fix reg_class_union for cover
1032 (ira): Call initiate_ira_assign and finish_ira_assign. Remove
1033 setting reload_completed up.
1035 * ira-costs.c: Add year 2008 to the copyright.
1036 (ira_costs): Check modes of registers.
1038 * ira-lives.c: Add year 2008 to the copyright.
1039 (mark_reg_store, mark_reg_death, process_bb_node_lives): Don't use
1041 (process_single_reg_class_operands): Check that the hard reg
1042 belongs to the cover class.
1044 * ira-color.c: Add year 2008 to the copyright. Rename member
1045 move_insn of the copies to insn.
1046 (initiate_cost_update, finish_cost_update, update_copy_costs_1):
1048 (allocno_update_cost_check, update_cost_check): New static
1050 (update_copy_costs): Increment update_cost_check. Call
1051 update_copy_costs_1.
1052 (coalesce_allocnos): Don't coalesce already assigned allocnos or
1053 copies with null insn.
1054 (color_pass): Check loop tree node of the subloop allocno.
1055 (finish_allocno_priorities): Remove.
1056 (do_coloring): Move allocation/deallocation of
1057 consideration_allocno_bitmap into initiate_cost_update and
1059 (reassign_conflict_allocnos): Remove allocation/deallocation of
1060 sorted_allocnos. Remove call of finish_allocno_priorities.
1061 (reassign_pseudos): Remove allocation/deallocation of
1062 consideration_allocno_bitmap and sorted_allocnos. Remove call of
1063 finish_allocno_priorities.
1064 (initiate_ira_assign, finish_ira_assign): New fucntions.
1065 (ira_color): Remove allocation/deallocation of sorted_allocnos.
1066 Call initiate_ira_assign and finish_ira_assign.
1068 * postreload.c (gate_handle_postreload): Don't do post reload
1069 optimizations unless the reload is completed.
1071 * cfgloopanal.c (estimate_reg_pressure_cost): Return zero if we
1074 * recog.c (peep2_free_reg_search_ofs): New static variable.
1075 (peep2_find_free_register): Remove search_ofs. Use
1076 peep2_free_reg_search_ofs instead of it.
1077 (peephole2_optimize): Reset peep2_free_reg_search_ofs.
1079 2008-01-10 Vladimir Makarov <vmakarov@redhat.com>
1081 * reload1.c (compute_use_by_pseudos): Permits spilled registers in
1083 (temp_pseudo_reg_arr): New variable.
1084 (reload): Use instead temp_pseudo_reg_arr of pseudo_regs. Move
1085 freeing to the function end. Don't clear spilled_pseudos for IRA.
1086 Restore original insn chain for IRA.
1087 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
1088 (count_pseudo, count_spilled_pseudo): Check spilled pseudos.
1089 (alter_reg): Set up spilled_pseudos.
1090 (finish_spills): Set up pseudo_previous_regs only for spilled
1091 pseudos. Call reassign_pseudos once for all spilled pseudos,
1092 pass more arguments. Don't clear live_throughout and dead_or_set
1093 for spilled pseudos.
1095 2008-01-10 Vladimir Makarov <vmakarov@redhat.com>
1097 * reload1.c (compute_use_by_pseudos): Permits spilled registers in
1099 (temp_pseudo_reg_arr): New variable.
1100 (reload): Use instead temp_pseudo_reg_arr of pseudo_regs. Move
1101 freeing to the function end. Don't clear spilled_pseudos for IRA.
1102 Restore original insn chain for IRA.
1103 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
1104 (count_pseudo, count_spilled_pseudo): Check spilled pseudos.
1105 (alter_reg): Set up spilled_pseudos.
1106 (finish_spills): Set up pseudo_previous_regs only for spilled
1107 pseudos. Call reassign_pseudos once for all spilled pseudos,
1108 pass more arguments. Don't clear live_throughout and dead_or_set
1109 for spilled pseudos.
1111 * global.c (reg_becomes_live, build_insn_chain): Don't ignore
1112 spilled pseudos for IRA.
1114 * caller-save.c (calculate_local_save_info,
1115 save_call_clobbered_regs): Ignore spilled pseudos for IRA.
1117 * toplev.c (backend_init_target): Call init_ira.
1118 (backend_init): Move call of init_ira_once before
1119 backend_init_target.
1121 * ira.h (init_ira, sort_insn_chain, mark_memory_move_deletion):
1122 New function prototypes.
1123 (retry_ira_color): Rename to reassign_pseudos. Change
1126 * ira-int.h (allocno): New member dont_reassign_p.
1127 (ALLOCNO_DONT_REASSIGN_P): New macro.
1128 (memory_move_cost): Change element type.
1129 (register_move_cost): Change type.
1130 (register_may_move_in_cost, register_may_move_out_cost,
1131 reg_class_intersect): New arrays.
1132 (important_class_nums): Fix element type.
1133 (hard_reg_not_in_set_p): Make it static inline.
1134 (init_register_move_cost, init_ira_costs): New function
1136 (allocno_conflict_index): Remove.
1137 (allocate_and_set_costs, allocate_and_copy_costs,
1138 allocate_and_set_or_copy_costs): New static inline functions.
1140 * ira-build.c (compress_allocno_conflict_vec,
1141 compress_conflict_vecs): New functions.
1142 (allocno_conflict_index): Remove.
1143 (allocno_conflict_check, curr_allocno_conflict_check_tick): New
1145 (propagate_info_to_cap): Use allocate_and_copy_costs.
1146 (check_and_add_conflicts): Don't call allocno_conflict_index.
1147 (ira_flattening): Add some assertions. Check that cost vectors
1148 have been allocated. Don't call allocno_conflict_index. Call
1149 compress_conflict_vecs.
1151 * ira.c (memory_move_cost, register_move_cost): Change types.
1152 (register_may_move_in_cost, register_may_move_out_cost,
1153 strict_class_subset_p): New variables.
1154 (setup_class_subset_and_move_costs): Rename to
1155 setup_class_subset_and_memory_move_costs. Remove
1156 register_move_cost setup. Don't consider no_unit_alloc_regs. Add
1157 strict_class_subset_p setup.
1158 (setup_reg_class_intersect): Rename to
1159 setup_reg_class_intersect_union. Don't consider
1160 no_unit_alloc_regs. Add reg_class_union setup.
1161 (hard_reg_not_in_set_p): Move to ira-int.h.
1162 (setup_reg_subclasses): Use no_unit_alloc_regs instead of
1163 fixed_reg_set. Don't consider no_unit_alloc_regs.
1164 (important_class_nums): Fix element type.
1165 (setup_cover_classes): Use no_unit_alloc_regs instead of
1166 fixed_reg_set. Don't consider no_unit_alloc_regs.
1167 (setup_class_translate): Ditto.
1168 (reg_class_union): New variable.
1169 (init_register_move_cost, free_register_move_costs): New
1171 (init_ira_once): Initialize register_move_cost,
1172 register_may_move_in_cost, register_may_move_out_cost. Move some
1174 (init_ira): New function. Move some code from init_ira_once.
1175 Call free_register_move_costs and init_ira_costs.
1176 (calculate_allocation_cost): Check allocation of allocno hard reg
1178 (basic_block_order_nums): New variable.
1179 (chain_freq_compare, chain_bb_compare, sort_insn_chain): New
1181 (ira): Call sort_insn_chain.
1183 * ira-color.c (allocno_coalesced_p): New variable.
1184 (update_copy_costs): Use allocate_and_set_or_copy_costs.
1185 (assign_hard_reg): Clear and use
1186 processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
1187 Use allocate_and_copy_costs. Use allocno cover class cost if the
1188 hard register cost vector is not allocated.
1189 (get_coalesced_allocnos_best_class_and_freq): Use
1190 reg_class_intersect instead of reg_class_subintersect.
1191 (add_allocno_to_ordered_bucket): Use strict_class_subset_p.
1192 (push_allocno_to_stack): Clear and use
1193 processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
1194 (setup_allocno_left_conflicts_num): Don't setup
1195 ALLOCNO_UPDATED_HARD_REG_COSTS and
1196 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS. Clear and use
1197 processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
1198 (put_allocno_into_bucket): Don't setup
1199 ALLOCNO_UPDATED_HARD_REG_COSTS and
1200 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
1201 (coalesced_allocno_conflict_p): Clear and use
1202 processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
1203 (coalesce_allocnos): Setup allocno_coalesced_p.
1204 (color_allocnos): Add processing reg class NO_REGS.
1205 (color_pass): Propagate assignment of spilled allocno not
1206 mentioned in the subregion for the mixed algorithm. Use
1207 allocate_and_set_costs.
1208 (move_spill_restore, mark_allocation_change): Check unallocated
1209 hard reg cost vectors.
1210 (setup_curr_costs): Don't setup ALLOCNO_UPDATED_HARD_REG_COSTS and
1211 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS. Use
1212 allocate_and_set_or_copy_costs.
1213 (mark_memory_move_deletion, allocno_reload_assign,
1214 pseudo_reg_compare, reassign_pseudos): New functions.
1215 (retry_ira_color): Remove.
1217 * ira-conflicts.c (add_insn_allocno_copies): Use
1218 allocate_and_set_costs.
1219 (allocno_conflict_p): Simplify the code.
1221 * ira-costs.c: Rename reg_class_subunion to reg_class_union
1223 (cost_classes, cost_classes_num, cost_class_nums,
1224 max_struct_costs_size): New variables.
1225 (copy_cost): Use init_register_move_cost instead of
1227 (record_reg_classes): Ditto. Use cost_classes and
1228 cost_classes_num instead of important_classes and
1229 important_classes_num. Use register_may_move_{in,out}_cost
1230 instead of may_move_{in,out}_cost. Check reg class intersection
1232 (record_address_regs): Use init_register_move_cost instead of
1233 init_move_cost. Use cost_classes and cost_classes_num instead of
1234 important_classes and important_classes_num. Use
1235 register_may_move_in_cost instead of may_move_in_cost.
1236 (scan_one_insn): Use cost_classes_num instead of
1237 important_classes_num.
1238 (print_costs): Use cost_classes and cost_classes_num instead of
1239 important_classes and important_classes_num.
1240 (find_allocno_class_costs): Initialize cost_classes and
1241 cost_class_nums. Use cost_classes and cost_classes_num instead of
1242 important_classes and important_classes_num.
1243 (process_bb_node_for_hard_reg_moves): Use allocate_and_set_costs.
1244 (setup_allocno_cover_class_and_costs): Use cost_classes and
1245 cost_classes_num instead of important_classes and
1246 important_classes_num.
1247 (init_ira_costs_once): Move some code to init_ira_costs. Initiate
1249 (free_ira_costs: New function. Move some code from
1250 finish_ira_costs_once.
1251 (init_ira_costs): New function. Move some code from
1252 init_ira_costs_once. Use max_struct_costs_size instead of
1253 struct_costs_size. Call free_ira_costs. Allocate cost_classes.
1254 (finish_ira_costs_once): Move some code to finish_ira_costs. Call
1256 (ira_costs): Use max_struct_costs_size instead of
1257 struct_costs_size. Use allocate_and_set_costs.
1259 * ira-emit.c (modify_move_list): Remove allocation of hard reg
1262 * ira-lives.c (process_single_reg_class_operands): Add new
1263 parameter freq. Calculate costs basing on the frequency.
1264 (process_bb_node_lives): Pass the frequency to
1265 process_single_reg_class_operands.
1267 2007-12-17 Vladimir Makarov <vmakarov@redhat.com>
1269 * doc/invoke.texi (fira-algoirthm): Remove prioirity coloring.
1270 Make mixed the default.
1272 * flags.h (ira_algorithm): Remove IRA_ALGORITHM_PRIORITY.
1274 * ira-color.c (priority_coloring): Remove.
1275 (do_coloring): Don't call priority_coloring.
1277 * opts.c (common_handle_option): Remove priority coloring option.
1279 * toplev.c (flag_ira_algorithm): Assign IRA_ALGORITHM_MIXED.
1281 * ira-build.c (check_and_add_conflicts, ira_flattening): Increase
1282 threshold for internal_flag_ira_verbose.
1284 2007-12-17 Vladimir Makarov <vmakarov@redhat.com>
1286 * common.opt (fira-assign-after-call-split, fira-biased-coloring,
1287 fira-split-around-calls): Remove.
1288 (fdump-simple-rtl, fira-verbose): New options.
1289 (fira, fira-coalesce): Initiate by 0.
1291 * opts.c (common_handle_option): Process flag_ira_verbose.
1293 * flags.h (flag_ira_verbose): New external definition.
1295 * toplev.h (flag_ira_assign_after_call_split,
1296 flag_ira_biased_coloring, flag_ira_split_around_calls): Remove.
1298 * toplev.c (flag_ira_verbose): New external declaration.
1299 (finalize): Call finish_ira_once.
1301 * print-rtl.c (flag_simple): Rename to flag_dump_simple_rtl.
1303 * doc/invoke.texi (-fno-ira-assign-after-call-split,
1304 -fira-biased-coloring, -fno-ira-split-around-calls): Remove.
1305 (-fdump-simple-rtl, -fira-verbose): New options.
1307 * caller-save.c (insert_restore, insert_save): Use
1308 adjust_address_nv instead of adjust_address. Check the mode by
1311 * ira-call.c: Remove file.
1313 * ira-lives.c: New file.
1315 * Makefile.in (ira-live.o): Add
1316 (ira-call.o): Remove.
1317 (IRA_INT_H): Add alloc-pool.h.
1319 * ira.h (finish_ira_once): New external definition.
1321 * ira-int.h (internal_flag_ira_verbose, alloc_pool allocno_pool,
1322 copy_pool, allocno_live_range_pool, ira_loop_tree_height,
1323 max_point, start_point_ranges, finish_point_ranges,
1324 prohibited_mode_move_regs, important_class_nums,
1325 ira_curr_regno_allocno_map, allocno_set_words): New external
1327 (loop_tree_node_t, allocno_live_range_t): New typedefs. Use them
1329 (ira_loop_tree_node): Rename to loop_tree_node.
1330 (loop_tree_node): New member level.
1331 (allocno_live_range): New structure.
1332 (allocno): New members nrefs, live_ranges,
1333 total_conflict_hard_regs, conflict_allocnos_num,
1334 total_conflict_allocnos_num, mem_optimized_dest,
1335 mem_optimized_dest_p, total_no_stack_reg_p. Remove members
1336 conflict_allocno_vec_active_size and original_memory_cost. Rename
1337 member curr_hard_reg_costs to updated_hard_reg_costs.
1338 (ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM,
1339 ALLOCNO_TOTAL_CONFLICT_HARD_REGS, ALLOCNO_CONFLICT_ALLOCNOS_NUM,
1340 ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM, ALLOCNO_NREFS,
1341 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
1342 ALLOCNO_TOTAL_NO_STACK_REG_P, ALLOCNO_LIVE_RANGES): New access
1344 (ALLOCNO_CONFLICT_ALLOCNO_VEC_ACTIVE_SIZE,
1345 ALLOCNO_ORIGINAL_MEMORY_COST): Remove.
1346 (ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS): Rename to
1347 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
1348 (allocno_copy): New member loop_tree_node.
1349 (INT_BITS, INT_TYPE, EXECUTE_IF_SET_IN_ALLOCNO_SET): Move from
1351 (SET_ALLOCNO_SET_BIT, CLEAR_ALLOCNO_SET_BIT,
1352 TEST_ALLOCNO_SET_BIT): New macros.
1353 (ira_reallocate, allocno_conflict_index, add_allocno_conflict,
1354 create_allocno_live_range, finish_allocno_live_range,
1355 add_allocno_copy_to_list, swap_allocno_copy_ends_if_necessary,
1356 remove_allocno_copy_from_list, add_allocno_copy, ira_flattening,
1357 finish_ira_costs_once, rebuild_start_finish_chains,
1358 print_live_range_list, debug_live_range_list,
1359 debug_allocno_live_ranges, debug_live_ranges,
1360 create_allocno_live_ranges, finish_allocno_live_ranges,
1361 allocno_conflict_p, loop_edge_freq): New external function
1363 (hard_reg_in_set_p, original_regno_call_crossed_p,
1364 ira_max_regno_before, ira_max_regno_call_before): Remove.
1365 (traverse_loop_tree): Add new parameter type.
1366 (create_copy): Ditto.
1367 (debug_conflicts, ira_emit, add_allocno_copy): Add parameter.
1368 (debug_ira_call_data, split_around_calls, get_around_calls_regno):
1371 * ira.c (setup_prohibited_mode_move_regs): New function.
1372 (internal_flag_ira_verbose, allocno_pool, copy_pool,
1373 allocno_live_range_pool, important_class_nums): New external
1375 (IRA_NO_OBSTACK): Uncomment it.
1376 (ira_reallocate): New function.
1377 (setup_cover_classes): Set up important_class_nums.
1378 (finish_ira_once): New function.
1379 (prohibited_mode_move_regs,
1380 prohibited_mode_move_regs_initialized_p): New global variables.
1381 (setup_prohibited_mode_move_regs): New function.
1382 (setup_reg_renumber): Remove parameters.
1383 (setup_allocno_assignment_from_reg_renumber): Rename to
1384 setup_allocno_assignment_flags. Set up ALLOCNO_ASSIGNED_P.
1385 (calculate_allocation_cost): Use ALLOCNO_UPDATED_MEMORY_COST.
1386 (ira_max_regno_before, ira_max_regno_call_before): Remove.
1387 (ira): Set up internal_flag_ira_verbose. Call
1388 setup_prohibited_mode_move_regs. Create and destroy allocno,
1389 copy, and live range pools. Remove original_regno_call_crossed_p.
1390 Report major passes. Use argument for ira_emit. Call
1391 ira_flattening and df_analyze. Remove live range splitting around
1394 * ira-build.c (setup_loop_tree_level, rebuild_regno_allocno_maps,
1395 expand_calls, compress_calls, allocno_conflict_index,
1396 add_to_allocno_conflict_vec, propagate_info_to_cap,
1397 copy_allocno_live_range, copy_allocno_live_range_list,
1398 finish_allocno, finish_copy,
1399 propagate_info_to_loop_tree_node_caps, merge_ranges,
1400 common_loop_tree_node_dominator, check_and_add_conflicts,
1401 add_conflict_with_underlying_allocnos, ira_flattening): New
1403 (check_coalesced_allocnos): Remove.
1404 (ira_loop_tree_height): New external variable.
1405 (form_loop_tree): Call setup_loop_tree_level.
1406 (initiate_calls): Allocate a bit more. (create_allocno): Use
1407 pool_alloc. Set up ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM,
1408 ALLOCNO_TOTAL_CONFLICT_HARD_REGS, ALLOCNO_NREFS,
1409 ALLOCNO_TOTAL_NO_STACK_REG_P, ALLOCNO_MEM_OPTIMIZED_DEST,
1410 ALLOCNO_MEM_OPTIMIZED_DEST_P, ALLOCNO_UPDATED_MEMORY_COST, and
1411 ALLOCNO_LIVE_RANGES. Rename
1412 ALLOCNO_CONFLICT_ALLOCNO_VEC_ACTIVE_SIZE,
1413 ALLOCNO_CURR_HARD_REG_COSTS, and
1414 ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS to
1415 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_UPDATED_HARD_REG_COSTS, and
1416 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
1417 (add_allocno_conflict): Make it external. Use
1418 add_to_allocno_conflict_vec.
1419 (create_cap_allocno): Move part of code to propagate_info_to_cap.
1420 (finish_allocnos): Use finish_allocno.
1421 (add_allocno_copy_to_list, remove_allocno_copy_from_list,
1422 swap_allocno_copy_ends_if_necessary, add_allocno_copy): Move from
1423 ira-conflicts.c. Make them external.
1424 (create_copy): Use pool_alloc. Add parameter loop_tree_node.
1425 (finish_copies): Use finish_copy.
1426 (ira_curr_regno_allocno_map): New external variable.
1427 (traverse_loop_tree): Add parameter bb_first_p.
1428 (create_insn_allocnos): Update ALLOCNO_NREFS.
1429 (create_loop_tree_node_allocnos): Traverse loop tree nodes with
1430 BBs first. Update ALLOCNO_NREFS.
1431 (create_loop_tree_node_caps): Move part of code to
1432 propagate_info_to_loop_tree_node_cap.
1433 (regno_top_level_allocno_map): New global variable.
1434 (ira_build): Create caps before build conflicts. Call
1435 create_allocno_live_ranges. Propagate info to caps. Report
1437 (ira_destroy): Call finish_allocno_live_ranges.
1439 * ira-conflicts.c (set_allocno_live, clear_allocno_live,
1440 record_regno_conflict, mark_reg_store, mark_reg_clobber,
1441 mark_reg_conflicts, mark_reg_death): Remove.
1442 (add_insn_allocno_copies, add_copies): New functions.
1443 (add_allocno_copy_to_list, remove_allocno_copy_from_list,
1444 swap_allocno_copy_ends_if_necessary, add_allocno_copy): Remove.
1445 (add_allocno_copies): Rename to add_insn_allocno_copies. Use
1446 ira_curr_regno_allocno_map and add_insn_allocno_copies.
1447 (single_reg_class, single_reg_operand_class,
1448 process_single_reg_class_operands, process_bb_node_for_conflicts):
1450 (INT_BITS, INT_TYPE, EXECUTE_IF_SET_IN_ALLOCNO_SET): Move to
1452 (allocnos_live_bitmap, SET_ALLOCNO_CONFLICT_ROW,
1453 CLEAR_ALLOCNO_CONFLICT_ROW, TEST_ALLOCNO_CONFLICT_ROW): Remove.
1454 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, TEST_ALLOCNO_LIVE):
1455 Use {SET, CLEAR, TEST}_ALLOCNO_SET_BIT.
1456 (allocno_row_words, hard_regs_live, curr_bb_node,
1457 curr_regno_allocno_map, curr_reg_pressure): Remove.
1458 (CONFLICTP): Rename to CONFLICT_P.
1460 (propagate_allocno_info): Use ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
1461 Set up ALLOCNO_CALLS_CROSSED_START.
1462 (allocno_conflict_p): New function.
1463 (allocno_reg_conflict_p): Use allocno_conflict_p.
1464 (build_allocno_conflict_vects): Divide original and propagated
1466 (print_hard_reg_set): New function.
1467 (print_conflicts): Use print_hard_reg_set. Set up mark for the
1468 start of propagated conflicts.
1469 (debug_conflicts): Add parameter.
1470 (ira_build_conflicts): Call add_copies. Set up
1471 ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
1473 * ira-costs.c (struct costs): Make cost allocated dynamically.
1474 (struct_costs_size, temp_cots, op_costs, this_op_costs): New
1476 (costs): Rename to total_costs.
1477 (COSTS_OF_ALLOCNO): New macro.
1478 (curr_regno_allocno_map): Remove. Use ira_curr_regno_allocno_map
1480 (record_reg_classes): Check NO_REGS in allocno_pref.
1481 (record_address_regs): Use COSTS_OF_ALLOCNO.
1482 (scan_one_insn): Ditto.
1483 (print_costs): Ditto.
1484 (find_allocno_class_costs): Ditto. Pass additional argument to
1485 traverse_loop_tree. Set up NO_REGS if memory is cheaper.
1486 (setup_allocno_cover_class_and_costs): Use
1487 ALLOCNO_UPDATED_MEMORY_COST instead of
1488 ALLOCNO_ORIGINAL_MEMORY_COST, ALLOCNO_UPDATED_HARD_REG_COSTS
1489 instead of ALLOCNO_CURR_HARD_REG_COSTS, and
1490 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS instead of
1491 ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS. Pass additional argument to
1493 (init_ira_costs_once): Allocate init_cost, op_costs,
1494 this_op_costs, temp_costs.
1495 (finish_ira_costs_once): New function.
1497 * ira-color.c: Use ALLOCNO_UPDATED_MEMORY_COST instead of
1498 ALLOCNO_ORIGINAL_MEMORY_COST, ALLOCNO_UPDATED_HARD_REG_COSTS
1499 instead of ALLOCNO_CURR_HARD_REG_COSTS, and
1500 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS instead of
1501 ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS. Use
1502 ALLOCNO_TOTAL_CONFLICT_HARD_REGS instead of
1503 ALLOCNO_CONFLICT_HARD_REGS.
1504 (processed_allocno_bitmap): Rename into
1505 processed_coalesced_allocno_bitmap.
1506 (allocno_cost_compare_func): Use ALLOCNO_UPDATED_MEMORY_COST
1507 instead of ALLOCNO_MEMORY_COST.
1508 (assign_hard_reg): Remove biased coloring.
1509 (add_allocno_to_ordered_bucket): Check cover class first.
1510 (loop_edge_freq): Make it external.
1511 (setup_allocno_left_conflicts_num): Check that conflicting
1512 allocnos of one class.
1513 (allocno_conflict_p): Rename to coalesced_allocno_conflict_p.
1514 (color_pass): Check pressure in the loop (not in subloops) for
1516 (allocno_priorities): New variable.
1517 (start_allocno_priorities, finish_allocno_priorities): New
1519 (allocno_priority_compare_func): Use allocno_priorities.
1520 (priority_coloring): Call start_allocno_priorities and
1521 finish_allocno_priorities.
1522 (do_coloring): Pass additional argument to traverse_loop_tree.
1524 * ira-emit.c (struct move): Add member insn.
1525 (create_move): Initialize member insn.
1526 (generate_edge_moves): Set up ALLOCNO_MEM_OPTIMIZED_DEST and
1527 ALLOCNO_MEM_OPTIMIZED_DEST_P.
1528 (change_loop): Check prohibited_mode_move_regs.
1529 (curr_jump_map, can_move_through_p): Remove.
1530 (unify_moves): Don't move through jump.
1531 (modify_move_list): Set up attributes for new allocno used for
1532 breaking dependency loops.
1533 (emit_move_list): Set up insn codes.
1534 (update_costs, add_range_and_copies_from_move_list,
1535 add_ranges_and_copies): New functions.
1536 (ira_emit): Add a parameter. Call add_ranges_and_copies.
1538 2007-10-09 Vladimir Makarov <vmakarov@redhat.com>
1540 * toplev.h (flag_ira_coalesce): New external variable.
1542 * ira-int.h (allocno): New members first_coalesced_allocno,
1543 next_coalesced_allocno.
1544 (ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO):
1546 (reg_class_subintersect): New external variable.
1548 * ira-color.c (processed_allocno_bitmap): New variable.
1549 (allocno_cost_compare_func, print_coalesced_allocno): New
1551 (assign_hard_reg): Process coalesced allocnos.
1552 (get_coalesced_allocnos_best_class_and_freq): New function.
1553 (add_allocno_to_ordered_bucket): Use the function.
1554 (push_allocno_to_stack, push_allocnos_to_stack): Process coalesced
1556 (remove_allocno_from_bucket_and_push, pop_allocnos_from_stack):
1557 Use print_coalesced_allocno.
1558 (setup_allocno_available_regs_num,
1559 setup_allocno_left_conflicts_num): Process coalesced allocnos.
1560 (copy_freq_compare_func, allocno_conflict_p, coalesce_allocnos):
1562 (color_allocnos): Allocate/free processed_allocno_bitmap. Call
1564 (priority_coloring): Allocate/free processed_allocno_bitmap.
1566 * ira-build.c (check_coalesced_allocnos): New function.
1567 (create_allocno): Initiate next_coalesced_allocno,
1568 first_coalesced_allocno.
1569 (create_cap_allocno): Check next_coalesced_allocno,
1570 first_coalesced_allocno.
1572 * common.opt (fira-coalesce): New option.
1574 * ira.c (setup_reg_class_intersect): New function.
1575 (reg_class_subintersect): New global variable.
1576 (init_ira_once): Call setup_reg_class_intersect.
1578 * doc/invoke.texi (-fira-coalescing): New option.
1580 2007-09-20 Vladimir Makarov <vmakarov@redhat.com>
1582 * ira-build.c (create_allocno): Initialize ALLOCNO_BEST_CLASS.
1584 * ira-color.c (add_allocno_to_ordered_bucket): Use
1587 * ira-costs.c (setup_allocno_cover_class_and_costs): Initialize
1590 * ira-int.h (allocno): New member best_class.
1591 (ALLOCNO_BEST_CLASS): New macro.
1593 2007-09-19 Vladimir Makarov <vmakarov@redhat.com>
1595 * ira-int.h (allocno): Remove calls_crosed. Add
1596 calls_crossed_start.
1597 (ALLOCNO_CALLS_CROSSED): Remove.
1598 (ALLOCNO_CALLS_CROSSED_START): Add.
1600 (regno_calls, add_regno_call): New.
1602 * ira-build.c (initiate_calls, finish_calls, add_regno_call): New
1604 (regno_calls, regno_calls_num): New globals.
1606 (add_loop_to_tree): Use loop_outer.
1607 (form_loop_tree): Ditto.
1608 (initiate_allocnos, create_cap_allocno): Remove
1609 ALLOCNO_CALLS_CROSSED. Add ALLOCNO_CALLS_CROSSED_START.
1610 (finish_allocnos): Remove ALLOCNO_CALLS_CROSSED.
1611 (create_bb_allocnos, create_loop_allocnos): Use DF_LR_{IN,OUT}
1612 instead of DF_UPWARD_LIVE_{IN,OUT}.
1613 (ira_build): Remove adding df problems and call of
1614 free_dominance_info. Call initiate_calls.
1615 (ira_destroy): Add free_dominance_info and finish_calls. Remove
1618 * ira-emit.c (change_regs): Return the result.
1619 (generate_edge_moves): Use DF_LR_{IN,OUT} instead of
1620 DF_UPWARD_LIVE_{IN,OUT}.
1621 (change_loop): Call df_insn_rescan and df_note_rescan if there is
1623 (can_move_through_p): Use hard_reg_set_equal_p instead of
1624 GO_IF_HARD_REG_EQUAL.
1626 * ira-costs.c (copy_cost, record_reg_classes,
1627 record_address_regs): Call init_move_cost if it is necessary.
1628 (tune_allocno_costs_and_cover_classes): Use regno_calls and
1629 ALLOCNO_CALLS_CROSSED_START instead of ALLOCNO_CALLS_CROSSED.
1631 * ira-conflicts.c (n_regs_set): Remove.
1632 (regs_set): Make it a vector.
1633 (mark_reg_store, mark_reg_clobber): Change 2nd parameter type.
1634 (process_bb_node_for_conflicts): Use DF_LR_IN instead of
1635 DF_UPWARD_LIVE_IN. Call add_regno_call. Initialize
1636 ALLOCNO_CALLS_CROSSED_START. Remove ALLOCNO_CALLS_CROSSED.
1637 (build_conflict_bit_table): Initialize and finalize regs_set.
1638 (propagate_allocno_info): Remove ALLOCNO_CALLS_CROSSED.
1639 Initialzie ALLOCNO_CALLS_CROSSED_START.
1641 * ira-color.c (setup_allocno_available_regs_num,
1642 setup_allocno_left_conflicts_num): New functions.
1643 (update_allocno_avaialable_regs): Remove.
1644 (sorted_allocnos, allocno_stack_varray): Move upper.
1645 (assign_hard_reg): Use hard_reg_set_subset_p instead of
1646 GO_IF_HARD_REG_SUBSET.
1647 (loop_edge_freq): Use DF_LR_{IN,OUT} instead of
1648 DF_UPWARD_LIVE_{IN,OUT}.
1649 (put_allocno_into_bucket): Call setup_allocno_available_regs_num
1650 and setup_allocno_left_conflicts_num.
1651 (print_loop_title): Use loop_depth.
1652 (allocno_priority_compare_func): Remove REG_N_REFS and
1654 (retry_ira_color): Use SET_REGNO. Use ALLOCNO_CALLS_CROSSED_NUM
1655 instead of ALLOCNO_CALLS_CROSSED.
1656 (collect_pseudo_call_clobbered_regs): Use regno_calls and
1657 ALLOCNO_CALLS_CROSSED_START instead of ALLOCNO_CALLS_CROSSED.
1659 * ira-call.c (init_ira_call_data): Add argument to
1661 (n_regs_set): Remove.
1662 (regs_set): Make it a vector.
1663 (mark_reg_store, mark_reg_clobber): Change 2nd parameter type.
1664 (mark_referenced_regs): Check null x.
1665 (put_save_restore_and_calculate_local_info): Initialize and
1666 finalize regs_set. Use DF_LR_{IN,OUT} instead of
1667 DF_UPWARD_LIVE_{IN,OUT}. Use loop_outer.
1668 (do_init_nothing): Remove.
1669 (save_trans_fun, save_con_fun_0, restore_trans_fun,
1670 restore_con_fun_0): Remove 1st parameter.
1671 (save_con_fun_n, restore_con_fun_n): Ditto. Use
1672 df_simple_dataflow instead of df_analyze_problem.
1673 (put_save_restore): Use DF_LR_IN instead of DF_UPWARD_LIVE_IN.
1674 Call mark_all_referenced_regs for all insn. Use bitmap progress.
1675 (get_move_insn): New function.
1676 (put_save_restore_and_calculate_local_info, put_save_restore): Use
1679 * ira.c (insn_contains_asm_1, insn_contains_asm,
1680 compute_regs_asm_clobbered, expand_reg_info): New functions.
1681 (setup_class_subset_and_move_costs): Use hard_reg_set_subset_p
1682 instead of GO_IF_HARD_REG_SUBSET.
1683 (setup_reg_subclasses, setup_class_translate): Ditto. Use
1684 hard_reg_set_equal_p instead of GO_IF_HARD_REG_EQUAL.
1685 (setup_eliminable_regset): Call compute_regs_asm_clobbered. Use
1686 df_set_regs_ever_live instead of regs_ever_live.
1687 (setup_reg_renumber): Check reg_equiv_const and
1688 reg_equiv_invariant_p.
1689 (ira): Remove no_new_pseudos. Add df-problems and analyze. Call
1690 regstat_init_n_sets_and_refs and regstat_compute_ri. Remove
1691 delete_unreachable_blocks. Use expand_reg_info. Move
1692 setup_preferred_alternate_classes upper. Remove life_analysis.
1693 Prepare df-insfrastructure for reload.
1695 * regclass.c (setup_reg_classes): Don't use reg_pref_buffer.
1697 * function.[ch] (get_call_invalidated_used_regs): Change 1st
1700 * gengtype.c (main): Add HARD_REG_SET.
1702 * alias.c (value_addr_p): New function.
1703 (nonoverlapping_memrefs_p): Use it.
1705 * caller-save.c (init_caller_save): Use DF_LR_TOP for IRA instead
1706 of global_live_at_start.
1708 2007-05-04 Vladimir Makarov <vmakarov@redhat.com>
1710 * ira-conflicts.c: Change pseudo to allocno.
1711 * ira-color.c: Ditto.
1712 * ira-emit.c: Ditto.
1713 * ira-build.c: Ditto.
1715 (important_classes_num, important_classes): New variables.
1716 (setup_cover_classes): Set up the variable values.
1717 * ira-costs.c: Ditto.
1718 (record_reg_classes, record_address_regs, scan_one_insn,
1719 find_pseudo_class_costs): Process only important classes.
1720 * ira-call.c: Ditto. Add comments about placement optimization.
1722 (allocno) Use one bit field for boolean members.
1723 (important_classes_num, important_classes): New external
1726 2007-03-16 Vladimir Makarov <vmakarov@redhat.com>
1728 * flags.h (ira_algorithm): Add IRA_ALGORITHM_MIXED.
1730 * opts.c (common_handle_option): Set up IRA_ALGORITHM_MIXED from
1731 the option argument.
1733 * common.opt (fira-assign-after-call-split, fira-propagate-cost,
1734 fira-split-around-calls): New options.
1735 (fira-ipra): Switch off by default.
1737 * doc/invoke.texi (-fira-algorithm): Add mixed algorithm.
1738 (-fno-ira-ipra): Rename to -fira-ipra.
1739 (-fno-ira-assign-after-call-split, -fira-propagate-cost,
1740 -fno-ira-split-around-calls): Add new options.
1742 * ira-conflicts.c (curr_reg_pressure): New variable.
1743 (set_pseudo_live, clear_pseudo_live, mark_reg_store,
1744 mark_reg_death): Update reg pressure.
1745 (add_pseudo_copies): Decrease cost for copy with dead pseudo.
1746 (process_bb_node_for_conflicts): Propagate reg pressure.
1747 (build_conflict_bit_table): Call process_bb_node_for_conflicts in
1749 (ira_build_conflicts): Add new coloring algorithm.
1750 (ira_build_conflicts): Add flag_ira_split_around_calls.
1752 * ira-emit.c (change_loop): Print allocation on the region
1753 borders. Use pseudo_cap_member instead of regno.
1754 (modify_move_list): Add parameter to create pseudo.
1755 (ira_emit): Use pseudo_cap_member instead of regno.
1757 * ira-build.c (create_loop_tree_nodes): Set up initial reg
1759 (create_pseudo): Add parameter. Use the parameter value instead
1761 (print_expanded_pseudo): Use pseudo_cap_member instead of regno.
1762 (create_cap_pseudo, create_insn_pseudos, create_bb_pseudos,
1763 create_loop_pseudos): Add argument to create_pseudo call.
1764 (create_pseudos, ira_build): Process IRA_ALGORITHM_MIXED.
1765 (create_loop_tree_node_caps): Create cap pseudo for all pseudos
1766 not having father pseudo.
1768 * final.c (rest_of_handle_final): Process INCOMING_REGNO.
1770 * toplev.h (flag_ira_assign_after_call_split,
1771 flag_ira_propagate_cost, flag_ira_split_around_calls): New flags.
1773 * caller-save.c (save_call_clobbered_regs): Move declaration
1774 this_insn_sets to the function start.
1776 * ira-int.h (ira_loop_tree_node): Add reg_pressure.
1777 (pseudo): More comments for regno and cap_member
1778 (original_regno_call_crossed_p, ira_max_regno_before,
1779 ira_max_regno_call_before): New external variables.
1780 (create_pseudo): Add parameter.
1781 (reassign_conflict_pseudos, debug_ira_call_data,
1782 split_around_calls, get_around_calls_regno): New function
1785 * ira-color.c (assign_hard_reg): Set best_hard_regno and
1786 conflict_regs earlier. Check register availability earlier.
1787 Ignore conflict and copy cost for PSEUDO_MAY_BE_SPILLED_P.
1788 (calculate_pseudo_spill_cost): Use pseudo_cap instead of regno.
1789 Check father pseudo instead of subloop pseudos.
1790 (pop_pseudos_from_stack): Set up PSEUDO_ASSIGNED_P for NO_REGS
1792 (print_loop_title): Print reg pressure.
1793 (color_pass): Use PSEUDO_CAP_MEMBER instead of regno. Add mixed
1795 (move_spill_restore): Use PSEUDO_CAP_MEMBER instead of regno. Use
1796 subloop pseudos instead of father pseudo for cost calculation.
1797 (setup_curr_costs, reassign_conflict_pseudos): New functions.
1798 (retry_ira_color): Don't allocate call used registers when
1799 flag_caller_saves or flag_ira_split_around_calls. Call
1800 setup_curr_cost. Print about spilling pseudo split around calls.
1801 (reuse_stack_slot): Choose the slot with minimal memory-memory
1804 * ira.c (setup_reg_renumber): Add 2 parameters. Use cap_number
1805 instead of regno. Initialize caller_save_needed. Make assertion
1807 (setup_pseudo_assignment_from_reg_renumber): New function.
1808 (calculate_allocation_cost): Add assertion.
1809 (print_redundant_copies): Use cap_number instead of regno.
1810 (original_regno_call_crossed_p, ira_max_regno_before,
1811 ira_max_regno_call_before): New global variables.
1812 (ira): Process IRA_ALGORITHM_MIXED. Set up
1813 ira_max_regno_call_before and ira_max_regno_before. New arguments
1814 for setup_reg_renumber. Reassign if pseudo changed its class.
1815 Split pseudos around the call if necessary. Reassign if a pseudo
1818 * ira.h: New year for Copyright.
1820 * ira-costs.c (reg_pref): Rename to pseudo_pref.
1821 (reg_pref_buffer): rename to pseudo_pref_buffer.
1822 (find_pseudo_class_costs): Initialize best_cost and best_class.
1823 Process IRA_ALGORITHM_MIXED. Find best cover class for regno.
1824 (process_bb_node_for_hard_reg_moves): Process IRA_ALGORITHM_MIXED.
1826 * Makefile.in (ira-call.o): Add new file.
1828 * reload1.c (calculate_needs_all_insns): Remove unnecessary
1831 * ira-call.c: New file.
1833 2007-02-09 Vladimir Makarov <vmakarov@redhat.com>
1835 * common.opt (fipra): Rename to fira-ipra. Make it default.
1836 (fira-move-spills, fira-share-save-slots, fira-share-spill-slots):
1838 * toplev.h (flag_ipra): Rename to flag_ira_ipra.
1839 (flag_ira_move_spills, flag_ira_share_save_slots,
1840 flag_ira_share_spill_slots): New external definitions.
1841 * doc/invoke.texi (-fipra): Rename to -fno-ira-ipra.
1842 (-fno-ira-move-spills, -fno-ira-share-save-slots,
1843 -fno-ira-share-spill-slots): New options.
1844 * function.c (get_call_invalidated_used_regs): Rename flag_ipra to
1846 * ira-costs.c (tune_pseudo_costs_and_cover_classes): Ditto.
1847 * caller-save.c (setup_save_areas): Use flag_ira_share_save_slots.
1848 Rename flag_ipra to flag_ira_ipra.
1849 (flag_ira_share_save_slots): Use flag_ira_move_spills.
1850 * ira-color.c (assign_hard_reg): Skip pseudos with different cover
1852 (reuse_stack_slot): Use flag_ira_share_spill_slots.
1853 * config/arm/arm.h (IRA_COVER_CLASSES): New macro.
1855 2007-02-31 Vladimir Makarov <vmakarov@redhat.com>
1857 * reload.h (debug_save_data): New definition.
1859 * caller-save.c (struct bb_info): New.
1860 (BB_INFO, BB_INFO_BY_INDEX): New macros.
1861 (calculate_local_save_info, set_up_bb_rts_numbers, rpost_cmp,
1862 calculate_save_in_out, calculate_save_here,
1863 make_global_save_analysis, print_hard_reg_set_and_mode,
1864 print_hard_reg_set, print_save_data, debug_save_data,
1865 set_hard_reg_saved): New functions.
1866 (save_call_clobbered_regs): Make global save analysis and use it
1867 to put save/restore code.
1868 (insert_one_insn): Check CODE_LABEL.
1870 2007-01-19 Vladimir Makarov <vmakarov@redhat.com>
1872 * toplev.h (flag_ipra): New external definition.
1874 * common.opt (fipra): New option.
1876 * doc/invoke.texi (-fipra); Document the option.
1878 * cgraph.h (cgraph_node): New member function_used_regs.
1880 * cgraph.c (cgraph_create_node): Initialize function_used_regs.
1882 * final.c (update_regs_ever_live): New function.
1883 (rest_of_handle_final): Set up function_used_regs and
1886 * ira-build.c (ira_build): Clear function call_used_regs.
1888 * function.h: Add hard-reg-set.h header.
1889 (emit_status): New member call_used_regs.
1890 (get_call_invalidated_used_regs): New definition.
1892 * function.c (get_call, get_call_invalidated_used_regs): New
1895 * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
1896 (caller-save.o): Add dependence on output.h and ira.h
1898 * regrename.c (copyprop_hardreg_forward_1): Use function
1899 get_call_invalidated_used_regs.
1901 * ira-conflicts.c (process_bb_node_for_conflicts): Ditto.
1903 * postreload-gcse.c (record_opr_changes,
1904 reg_set_between_after_reload_p, reg_used_between_after_reload_p):
1907 * postreload.c (reload_combine, reload_cse_move2add): Ditto.
1909 * rtlanal.c (reg_set_between_p): Ditto.
1911 * flow.c (propagate_one_insn): Ditto.
1913 * df-scan.c (df_insn_refs_record): Ditto.
1915 * gcse.c (compute_hash_table_work, compute_store_table): Ditto.
1917 * cselib.c (cselib_process_insn): Ditto.
1919 * loop-iv.c (simplify_using_assignment): Ditto.
1921 * sched-deps.c (sched_analyze): Ditto.
1923 * combine.c (record_dead_and_set_regs): Ditto.
1925 * resource.c (mark_set_resources, mark_set_resources): Ditto.
1927 * var-tracking.c (var-tracking.c): Ditto.
1929 * reload1.c (reload): Ditto.
1931 * cse.c (invalidate_for_call): Ditto. Add parameter.
1932 (cse_insn): Pass the parameter.
1934 * ira.h (try_to_migrate): Remove the definition.
1935 (collect_pseudo_call_clobbered_regs): New external definition.
1937 * ira-color.c (collect_pseudo_call_clobbered_regs): New function.
1939 * ira-costs.c (tune_pseudo_costs_and_cover_classes): Add cost
1940 calculation when IPRA is used.
1942 * caller-save.c: Include headers output.h and ira.h.
1943 (saved_hard_reg): New structure.
1944 (hard_reg_map, hard_reg_map, all_saved_regs): New variables.
1945 (all_saved_regs, new_saved_hard_reg, finish_saved_hard_regs,
1946 saved_hard_reg_compare_func): New functions.
1947 (setup_save_areas): Add code for sharing stack slots.
1948 (save_call_clobbered_regs): Use function
1949 get_call_invalidated_used_regs.
1951 2007-01-12 Vladimir Makarov <vmakarov@redhat.com>
1953 * doc/tm.texi (IRA_HARD_REGNO_ADD_COST_MULTIPLIER): New macro.
1955 * ira-conflicts.c (add_pseudo_copies): Add copy between output and
1956 died operand pseudos.
1958 * ira.c (setup_cover_classes, setup_class_translate): Define and
1959 call only when IRA_COVER_CLASSES is defined.
1960 (no_alloc_regs): Rename to no_unit_alloc_regs.
1961 (setup_eliminable_regset): Set up no_alloc_regs.
1963 * ira-costs.c (tune_pseudo_costs_and_cover_classes): Modify cost
1964 if IRA_HARD_REGNO_ADD_COST_MULTIPLIER is defined.
1966 * config/s390/s390.h (IRA_COVER_CLASSES,
1967 IRA_HARD_REGNO_ADD_COST_MULTIPLIER(regno)): Define.
1969 2006-12-22 Vladimir Makarov <vmakarov@redhat.com>
1971 * rtl.h (setup_reg_classes): New function prototype.
1973 * regclass.c (setup_reg_classes): New function.
1975 * global.c (global_alloc): Dump information about register
1978 * ira-int.h (ira_build): Change prototype signature.
1980 * ira-color.c (pseudo_compare_func): Rename to
1981 pseudo_priority_compare_func.
1982 (priority_coloring): Dump information about register
1985 * ira-build.c (ira_build): Return true if we have loops for the
1988 * ira.c (setup_preferred_alternate_classes): New function.
1989 (ira): Use it instead of regclass. Rebuild only if we have loops.
1991 2006-12-15 Vladimir Makarov <vmakarov@redhat.com>
1993 * ira.h, ira-int.h, ira.c, ira-build.c, ira-costs.c
1994 ira-conflicts.c, ira-color.c, ira-emit.c: New files.
1996 * flags.h (ira_algorithm): New enumeration.
1997 (flag_ira_algorithm): New external variable declaration.
1999 * tree-pass.h (pass_ira): New external variable declaration.
2001 * toplev.c (ira.h): New include.
2002 (flag_ira_algorithm): New global variable.
2003 (backend_init): Call init_ira_once.
2005 * toplev.h (flag_ira, flag_ira_biased_coloring): New external
2006 variable declarations.
2008 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
2009 may_move_out_cost): New external variable declarations.
2011 * caller-save.c (no_caller_save_reg_set): New global variable.
2012 (init_caller_save): Set up no_caller_save_reg_set.
2014 * global.c (eliminable_regset): Make it external.
2015 (gate_handle_global_alloc): New function.
2016 (pass_global_alloc): Add the gate function.
2018 * opts.c (decode_options): Print the warning for -fira.
2019 (common_handle_option): Process -fira-algorithm option.
2021 * timevar.def (TV_IRA): New pass.
2023 * hard-reg-set.h (no_caller_save_reg_set): New external variable
2026 * regmove.c (regmove_optimize): Don't do replacement of output
2027 operands by input operands.
2028 (rest_of_handle_regmove): Don't do CFG cleanup for IRA.
2030 * local-alloc.c (update_equiv_regs): Make it external. Return
2031 true if jump label rebuilding should be done.
2032 (gate_handle_local_alloc): New function.
2033 (pass_local_alloc): Add the gate function.
2035 * alias.c (stack_addr_p): New function.
2036 (nonoverlapping_memrefs_p): Add code for IRA.
2038 * common.opt (fira, fira-algorithm, fira-biased-coloring): New
2041 * regclass.c (contains_reg_of_mode, move_cost, may_move_in_cost,
2042 may_move_out_cost): Make the variables external.
2044 * rtl.h (eliminable_regset): New external variable declaration.
2045 (update_equiv_regs): New external function definition.
2047 * Makefile.in (IRA_INT_H): New definition.
2048 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
2049 ira-conflicts.o, ira-color.o, and ira-emit.o.
2050 (reload1.o, toplev.o): Add dependence on ira.h.
2051 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
2052 ira-emit.o): New entries.
2054 * passes.c (pass_ira): New pass.
2056 * reload1.c (alter_reg): Add a new parameter.
2057 (pseudo_reg_compare): New function.
2058 (reload): Sort pseudos for IRA. Call alter_reg with the
2059 additional parameter.
2060 (count_spilled_pseudo): New variable freq. Use it.
2061 (alter_reg): Add code for IRA.
2062 (eliminate_regs_1, finish_spills, emit_input_reload_insns,
2063 delete_output_reload): Use additional parameter for alter_reg.
2064 (finish_spills, emit_input_reload_insns, delete_output_reload):
2065 Call mark_allocation_change.
2066 (finish_spills): Call retry_ira_color.
2068 * doc/invoke.texi: Describe new options -fira,
2069 -fira-biased-coloring, and -fira-algorithm.
2071 * doc/passes.texi: Decribe IRA.
2073 * doc/tm.texi: Decribe macro IRA_COVER_CLASSES.
2075 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
2077 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
2079 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
2081 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
2083 Richard Henderson <rth@redhat.com>
2085 * tree-pass.h (pass_lower_subreg): New external definition.
2086 * toplev.h (flag_lower_subreg): New external definition.
2087 * rtl.def (CONCATN): New rtl expression.
2088 * dwarf2out.c (concatn_loc_descriptor): New function.
2089 (loc_descriptor): Process CONCATN.
2090 * timevar.def (TV_LOWER_SUBREG): New definition.
2091 * emit-rtl.c (gen_reg_rtx_offset): New function.
2092 (gen_lowpart_common): Process CONCATN.
2093 * simplify-rtx.c (simplify_subreg): Process CONCATN.
2094 * common.opt (flower-subreg): New options.
2095 * rtl.h (gen_reg_rtx_offset): New external definition.
2096 * Makefile.in (OBJS-common): Add lower-subreg.o.
2097 (lower-subreg.o): New entry.
2098 * passes.c (pass_lower_subreg): Add new pass.
2099 * lower-subreg.c: New file.
2101 2008-03-28 Rafael Espindola <espindola@google.com>
2103 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
2104 (tree_binary_nonnegative_warnv_p): Make it public.
2105 (tree_single_nonnegative_warnv_p): Make it public.
2106 (tree_invalid_nonnegative_warnv_p): Make it public.
2107 (tree_unary_nonzero_warnv_p): Make it public.
2108 (tree_binary_nonzero_warnv_p): Make it public
2109 (tree_single_nonzero_warnv_p): Make it public.
2110 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
2111 (extract_range_from_binary_expr): Split the expr argument.
2112 (extract_range_from_unary_expr): Split the expr argument.
2113 (extract_range_from_comparison): Split the expr argument.
2114 (extract_range_from_expr): Use the new aux functions.
2115 (vrp_evaluate_conditional_warnv): Use
2116 vrp_evaluate_conditional_warnv_with_ops.
2117 * tree.h (tree_unary_nonzero_warnv_p): Declare.
2118 (tree_binary_nonzero_warnv_p): Declare.
2119 (tree_single_nonzero_warnv_p): Declare.
2120 (tree_expr_nonzero_warnv_p): Declare.
2121 (tree_unary_nonnegative_warnv_p): Declare.
2122 (tree_binary_nonnegative_warnv_p): Declare.
2123 (tree_single_nonnegative_warnv_p): Declare.
2124 (tree_invalid_nonnegative_warnv_p): Declare.
2126 2008-03-28 Richard Guenther <rguenther@suse.de>
2128 PR tree-optimization/30317
2129 PR tree-optimization/30911
2130 PR tree-optimization/34793
2131 * tree-vrp.c (set_and_canonicalize_value_range): New function.
2132 (struct assert_locus_d): New member EXPR.
2133 (register_new_assert_for): Add EXPR parameter to support
2134 ASSERT_EXPR <name, expr OP limit>.
2135 (register_edge_assert_for_1): Adjust callers.
2136 (find_assert_locations): Likewise.
2137 (process_assert_insertions_for): Build condition from
2139 (extract_range_from_assert): Handle ASSERT_EXPRs
2140 of the form ASSERT_EXPR <name, expr OP limit>.
2141 (register_edge_assert_for_2): New helper registering
2142 asserts for comparisons. Recognize range tests of the form
2143 (unsigned)i - CST1 OP CST2.
2144 (register_edge_assert_for_1): Use it.
2145 (register_edge_assert_for): Likewise.
2146 (needs_overflow_infinity): Integer sub-types
2147 do not need overflow infinities.
2148 (vrp_val_is_max): The extreme values of integer sub-types
2149 are those of the base type.
2150 (vrp_val_is_min): Likewise.
2151 * tree.def (ASSERT_EXPR): Document extra allowed conditional
2154 2008-03-28 Nick Clifton <nickc@redhat.com>
2156 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
2157 Return GENERAL_REGS for stack adjustment reloads.
2159 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2162 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
2163 const_vector when all the vectors are constant.
2165 2008-03-27 Bob Wilson <bob.wilson@acm.org>
2167 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
2169 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
2170 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
2172 (s<code>_sf): Use new scc_sf attribute for opcode names.
2174 2008-03-27 Tom Tromey <tromey@redhat.com>
2176 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
2177 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
2178 config/spu/t-spu-elf, config/i386/t-interix,
2179 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
2180 config/i386/x-darwin, config/i386/x-mingw32,
2181 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
2182 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
2183 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
2184 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
2185 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
2186 config/rs6000/x-darwin, config/rs6000/t-rs6000,
2187 config/score/t-score-elf, config/arm/t-strongarm-pe,
2188 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
2189 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
2190 Revert automatic dependency patch.
2192 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
2195 * config/i386/i386.c (ix86_function_arg_boundary): Align
2196 decimal floating point to its natural boundary.
2198 2008-03-27 Richard Guenther <rguenther@suse.de>
2201 * fold-const.c (fold_comparison): Restrict distinct decl
2202 comparison folding to VAR_DECLs and PARM_DECLs. Do not
2203 solely rely on operand_equal_p.
2205 2008-03-27 Richard Guenther <rguenther@suse.de>
2208 * c-common.c (handle_weak_attribute): Reject combination of
2211 2008-03-27 Richard Guenther <rguenther@suse.de>
2213 PR tree-optimization/32810
2214 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
2215 conversions from DECL_INITIAL.
2216 (fold_const_aggregate_ref): Likewise from constructor elements.
2218 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
2220 * tree-affine.h (aff_combination_expand): Declare.
2221 (get_inner_reference_aff): Likewise.
2222 * tree-affine.c (aff_combination_expand): Split out from
2223 tree_to_aff_combination_expand.
2224 (get_inner_reference_aff): New function.
2225 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
2226 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
2227 (struct lim_aux_data): sm_done field removed.
2228 (mem_ref_loc_p, mem_ref_locs_p): New types.
2229 (struct mem_ref): Added id, stored, accesses_in_loop,
2230 indep_loop, dep_loop, indep_ref, dep_ref fields.
2231 Removed is_stored, locs and next fields.
2232 (memory_accesses): New variable.
2233 (movement_possibility): Do not allow moving statements
2234 that store to memory.
2235 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
2237 (determine_max_movement): For statements with memory references,
2238 find the outermost loop in that the reference is independent.
2239 (move_computations_stmt): Mark the virtual operands for
2241 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
2242 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
2243 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
2244 add_vop_ref_mapping, create_vop_ref_mapping_loop,
2245 create_vop_ref_mapping, analyze_memory_references,
2246 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
2247 get_all_locs_in_loop, ref_always_accessed_p,
2248 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
2249 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
2250 store_motion_loop, store_motion): New functions.
2251 (struct vop_to_refs_elt): New type.
2252 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
2253 memref_hash, memref_eq, hoist_memory_references): Rewritten.
2254 (schedule_sm): Replaced by...
2255 (execute_sm): ... this.
2256 (determine_lsm_ref, hoist_memory_references,
2257 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
2258 find_more_ref_vops, free_mem_ref, free_mem_refs,
2259 determine_lsm_loop, determine_lsm): Removed.
2260 (tree_ssa_lim_finalize): Free data structures used by store
2262 (tree_ssa_lim): Call analyze_memory_references. Use
2263 store_motion instead of determine_lsm.
2265 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
2267 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
2268 rename tmake_file to m68hc11/t-m68hc11.
2269 (mcore): Set inhibit_libc to true.
2270 * config.host (alpha*-dec-*vms*): Set extra_programs.
2271 (interix3*): Don't use host_xmake_file.
2272 * configure.ac: Let config.gcc override inhibit_libc.
2273 * configure: Regenerate.
2275 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
2276 * config/t-openbsd-thread: Remove commented out lines.
2278 * config/x-interix: Remove.
2280 * config/m68hc11/t-m68hc11-gas: Rename to...
2281 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
2283 * config/mcore/t-mcore: Remove T_CFLAGS.
2284 * config/mcore/t-mcore-pe: Likewise.
2286 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
2288 * configure.ac: Replace custom __GNU_SOURCE test with
2289 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
2290 * aclocal.m4: Regenerate.
2291 * configure: Regenerate.
2292 * config.in: Regenerate.
2294 2008-03-27 Richard Guenther <rguenther@suse.de>
2296 * fold-const.c (target.h): Include.
2297 (fold_comparison): Fold comparison of addresses of decls
2298 that bind locally or of constants. Consolidate address folding code.
2299 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
2300 results from fold_binary_to_constant.
2301 (compare_values_warnv): Likewise.
2303 2008-03-27 Andrew Pinski <pinskia@gmail.com>
2306 * fold-const.c (fold_truthop): Check for integeral types when folding
2307 a == 0 && b == 0 and a != 0 || b != 0 .
2309 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
2311 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
2313 2008-03-26 Andreas Schwab <schwab@suse.de>
2315 * doc/invoke.texi: Fix use of @item vs. @itemx.
2317 2008-03-26 Tom Tromey <tromey@redhat.com>
2319 * Makefile.in (build/gensupport.o, build/print-rtl.o,
2320 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
2321 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
2322 build/gencodes.o, build/genconditions.o, build/genconfig.o,
2323 build/genconstants.o, build/genemit.o, build/genextract.o,
2324 build/genflags.o, build/genmddeps.o, build/genopinit.o,
2325 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
2328 2008-03-26 Richard Guenther <rguenther@suse.de>
2331 2008-03-26 Richard Guenther <rguenther@suse.de>
2333 * fold-const.c (target.h): Include.
2334 (fold_comparison): Fold comparison of addresses of two decls
2335 that bind locally. Consolidate address folding code.
2337 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2339 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
2340 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
2341 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
2342 dconstsqrt2, dconstthird, dconste and/or dconst10.
2343 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
2344 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
2345 dconstsqrt2, dconste): Delete.
2346 (init_emit_once): Likewise. Simplify initializing dconstm1.
2348 * real.c (get_real_const): New.
2349 * real.h (dconst3, dconst10, dconstm2, dconstthird,
2350 dconstsqrt2, dconste): Delete.
2351 (real_value_const, get_real_const): New.
2353 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
2355 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
2357 * config/i386/i386.c (ix86_function_arg_boundary): Check
2358 BIGGEST_ALIGNMENT instead of 128.
2359 (setup_incoming_varargs_64): Likewise.
2361 2008-03-26 Tom Tromey <tromey@redhat.com>
2363 * Makefile.in (DEPFILES): Add missing '/'.
2365 2008-03-26 Richard Guenther <rguenther@suse.de>
2367 * fold-const.c (target.h): Include.
2368 (fold_comparison): Fold comparison of addresses of two decls
2369 that bind locally. Consolidate address folding code.
2371 2008-03-26 Nick Clifton <nickc@redhat.com>
2374 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
2375 not allow INT+INT as a legitimate addressing mode.
2377 2008-03-26 Richard Guenther <rguenther@suse.de>
2379 * tree-flow.h (widen_bitfield): Remove declaration.
2380 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
2381 (widen_bitfield): Remove function.
2382 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
2385 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
2388 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
2391 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
2393 PR rtl-optimization/35232
2394 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
2395 (forget_old_reloads_1, forget_marked_reloads): Don't clear
2396 reg_reloaded_call_part_clobbered here.
2397 (reload_regs_reach_end_p): New function.
2398 (reload_reg_rtx_for_input): New variable.
2399 (reload_reg_rtx_for_output): Likewise.
2400 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
2401 when reassigning a pseudo register. Load reloadreg from
2402 reload_reg_rtx_for_input, moving the mode and register
2404 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
2405 instead of the original when deciding whether an input reload
2406 would be a no-op or whether an output reload can be deleted.
2407 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
2408 when setting up new_spill_reg_store. Load it from
2409 reload_reg_rtx_for_output, moving the mode and register
2411 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
2412 instead of the original when deciding whether an output reload
2413 would be a no-op. Do the same when modifying insn notes.
2414 Use rtx_equal_p instead of == to compare the registers.
2415 (inherit_piecemeal_p): Take a mode and two register numbers
2417 (emit_reload_insns): Clear new_spill_reg_store for every hard
2418 register in the reload register. Remove spill registers
2419 from reg_reloaded_valid before considering whether to record
2420 inheritance information for them. Use reload_reg_rtx_for_output
2421 instead of reg_rtx when recording output reloads. Use
2422 reload_reg_rtx_for_input instead of reg_rtx when recording
2423 input reloads. Set or clear reg_reloaded_call_part_clobbered
2424 at the same time as setting reg_reloaded_valid.
2425 (delete_output_reload): Add a new_reload_reg parameter and use it
2426 instead of rld[j].reg_rtx.
2427 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
2430 2008-03-25 Tom Tromey <tromey@redhat.com>
2432 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
2433 (build/genattr.o): Likewise.
2434 (build/genattrtab.o): Likewise.
2435 (build/gencodes.o): Likewise.
2436 (build/genconfig.o): Likewise.
2437 (build/genconstants.o): Likewise.
2438 (build/genemit.o): Likewise.
2439 (build/genextract.o): Likewise.
2440 (build/genflags.o): Likewise.
2442 2008-03-25 Bob Wilson <bob.wilson@acm.org>
2444 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
2445 instead of size_int for integer types.
2446 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
2447 to match type of MINUS_EXPR.
2449 2008-03-25 Tom Tromey <tromey@redhat.com>
2451 * configure: Rebuilt.
2452 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
2455 2008-03-25 Tom Tromey <tromey@redhat.com>
2457 * config/x-solaris (host-solaris.o): Update.
2458 * config/x-linux (host-linux.o): Update.
2459 * config/x-hpux (host-hpux.o): Update.
2460 * config/x-darwin (host-darwin.o): Update.
2461 * config/v850/t-v850e (v850-c.o): Update.
2462 * config/v850/t-v850 (v850-c.o): Update.
2463 * config/t-vxworks (vxworks.o): Update.
2464 * config/t-sol2 (sol2-c.o, sol2.o): Update.
2465 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
2466 * config/spu/t-spu-elf (spu-c.o): Update.
2468 * config/sh/t-symbian (sh-c.o): Update.
2469 (symbian.o): Update.
2470 * config/sh/t-sh (sh-c.o): Update.
2471 * config/score/t-score-elf (score7.o, score3.o): Update.
2472 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
2473 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
2474 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
2475 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
2477 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
2478 * config/m32c/t-m32c (m32c-pragma.o): Update.
2479 * config/ia64/t-ia64 (ia64-c.o): Update.
2480 * config/i386/x-mingw32 (host-mingw32.o): Update.
2481 * config/i386/x-i386 (driver-i386.o): Update.
2482 * config/i386/x-darwin (host-i386-darwin.o): Update.
2483 * config/i386/x-cygwin (host-cygwin.o): Update.
2484 * config/i386/t-nwld (nwld.o): Update.
2485 * config/i386/t-netware (netware.o): Update.
2486 * config/i386/t-interix (winnt.o): Update.
2487 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
2488 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
2489 msformat-c.o): Update.
2490 * config/bfin/t-bfin-linux (generated_files): Add
2491 linux-sysroot-suffix.h.
2492 * config/arm/t-wince-pe (pe.o): Update.
2493 * config/arm/t-strongarm-pe (pe.o): Update.
2494 * config/arm/t-pe (pe.o): Update.
2495 * config/arm/t-arm (arm-c.o): Update.
2496 * doc/install.texi (Prerequisites): Require make 3.80.
2497 * Makefile.in: Remove .o targets.
2498 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
2499 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
2500 (simple_generated_h, simple_generated_c): Move earlier.
2501 (generated_files): New variable.
2502 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
2503 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
2504 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
2505 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
2506 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
2507 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
2508 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
2509 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
2510 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
2511 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
2512 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
2513 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
2515 (COMPILE.base, COMPILE): New variables.
2516 (%.o): New pattern rule.
2517 (ALL_HOST_OBJS): New variable.
2518 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
2519 (dummy-checksum.o, cc1-checksum.o): Remove.
2520 (DRIVER_SHLIB): New variable.
2521 (DRIVER_DEFINES): Use it.
2522 (gencondmd.c): Move out of build/.
2523 (s-conditions): Update.
2524 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
2525 (ALL_BUILD_OBJS): Likewise.
2526 (build/%.o): Use BUILDCOMPILE.
2527 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
2528 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
2529 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
2530 build/gencheck.o, build/gencodes.o, build/genconditions.o,
2531 build/genconfig.o, build/genconstants.o, build/genemit.o,
2532 build/genextract.o, build/genflags.o, build/genmddeps.o,
2533 build/genopinit.o, build/genoutput.o, build/genpeep.o,
2534 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
2535 build/gen-protos.o, build/scan.o, build/fix-header.o,
2536 build/scan-decls.o): Simplify.
2537 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
2538 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
2539 prefix.o, toplev.o): Reduce to variable setting.
2540 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
2541 ($(out_object_file), gcc-options.o): New targets.
2542 ($(ALL_HOST_OBJS)): New target. Include dependency files.
2543 * configure: Rebuilt.
2544 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
2545 * doc/sourcebuild.texi (Front End Directory): Document new variable.
2547 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
2549 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
2550 complain when we hit an error, return ERROR_MARK_NODE.
2552 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2554 * config/sh/constraints.md (Pso, Psz): New constraints.
2555 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
2556 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
2558 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2560 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
2561 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
2563 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2565 * config/sh/sh.md (prefetch): Add condition for SH2A target.
2566 (prefetch_sh2a): New.
2568 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
2569 Naveen.H.S <naveen.hs@kpitcummins.com>
2571 * config/sh/constraints.md (I28): New constraint.
2572 * config/sh/sh.c (broken_move): Add support for movi20s.
2573 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
2575 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
2576 Jayant Sonar <Jayant.sonar@kpitcummins.com>
2577 Naveen.H.S <naveen.hs@kpitcummins.com>
2579 * config/sh/sh.c (SH_ATTRIBUTES): Define.
2580 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
2581 (print_operand): Handle resbank in %@ operand code.
2582 (sh_encode_section_info): New.
2583 (push_regs): Add conditions for resbank.
2584 (sh_expand_epilogue): Likewise.
2585 (sh_insert_attributes): Likewise.
2586 (sh_attribute_table): Likewise.
2587 (sh_handle_resbank_handler_attribute): New.
2588 (sh2a_handle_function_vector_handler_attribute): New.
2589 (sh2a_is_function_vector_call): New.
2590 (sh2a_get_function_vector_number): New.
2591 (sh2a_function_vector_p): New.
2592 (sh_cfun_resbank_handler_p): New.
2593 * config/sh/sh.md (calli): Emit jsr/n if possible.
2594 (calli_tbr_rel): New.
2595 (calli_pcrel): Emit jsr/n if possible.
2596 (return_i): Emit rts/n if possible.
2597 (call_valuei_tbr_rel): New.
2598 (call_valuei_pcrel): Add condition for SH2A target.
2599 (call_value): Likewise.
2600 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
2601 (sh2a_get_function_vector_number): Likewise.
2602 (sh2a_is_function_vector_call): Likewise.
2603 * doc/extend.texi: Document TBR relative addressing of SH2A.
2604 (resbank): Add description for SH2A.
2606 2008-03-24 Richard Guenther <rguenther@suse.de>
2609 * gimplify.c (gimplify_modify_expr): For frontend type-correct
2610 pointer assignments change conversions according to middle-end rules.
2611 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
2612 * configure.ac: Include type checking in yes.
2613 * configure: Regenerate.
2615 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2617 * diagnostic.c (diagnostic_count_diagnostic): Delete.
2618 (diagnostic_report_diagnostic): Update. Handle ICEs here.
2620 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
2622 * gthr-vxworks.h (UNUSED): Define.
2624 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
2626 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and
2629 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
2631 * doc/extend.texi (Function Attributes): Add missing comma in the
2632 example of the "alloc_size" attribute.
2634 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
2637 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
2639 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2642 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
2645 * stor-layout.c (update_alignment_for_field): Set minimum alignment
2646 of the underlying type of a MS bitfield layout to the natural
2647 alignment of the type.
2649 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
2651 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2652 to their natural alignment to avoid store forwarding stalls.
2654 2008-03-22 Richard Guenther <rguenther@suse.de>
2656 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
2657 For PHI nodes verify the address is invariant.
2658 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
2659 (get_symbol_constant_value): Use is_gimple_min_invariant.
2660 (maybe_fold_stmt_indirect): Likewise.
2662 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
2664 PR rtl-optimization/33927
2665 * Makefile.in (dse.o): Depend on $(TM_P_H).
2666 * expr.h (extract_low_bits): Declare.
2667 * expmed.c (extract_low_bits): New function.
2668 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
2669 * dse.c: Include tm_p.h.
2670 (find_shift_sequence): Remove the read_reg argument and return the
2671 read value. Emit the instructions instead of returning them.
2672 Iterate on new_mode rather than calculating it each time.
2673 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
2674 source to NEW_MODE and extract_low_bits to convert the shifted
2676 (replace_read): Allow the load and store to have different mode
2677 classes. Use extract_low_bits when SHIFT == 0. Create the shift
2678 or extraction instructions before trying the replacement. Update
2679 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
2681 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
2683 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2684 to their natural alignment to avoid store forwarding stalls.
2686 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
2689 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
2690 encouraging but not allowing gprs for input;
2691 change the input constraint to !f#r.
2692 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
2694 change the output constraint to !f#r.
2696 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
2699 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
2700 corresponding post-reload splitters.
2701 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
2702 when x87 FP math is selected.
2703 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
2704 New function prototype.
2705 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
2706 unreachable function to ease macroization of insn patterns.
2708 2008-03-21 Martin Jambor <mjambor@suse.cz>
2710 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
2711 reference dumps if ddr is NULL or dependence is unknown.
2713 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
2715 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
2716 unsigned extension into account.
2717 (ATOMIC_COMPARE_AND_SWAP): Likewise.
2718 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
2719 Do computations on a scratch register.
2721 2008-03-21 Richard Guenther <rguenther@suse.de>
2723 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2724 Use is_gimple_min_invariant instead of TREE_INVARIANT.
2725 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
2726 * tree-ssa-dom.c (record_equality): Likewise.
2727 * tree-inline.c (copy_body_r): Likewise.
2728 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
2731 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
2733 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
2734 as 'delete_unused' argument.
2736 2008-03-20 Richard Guenther <rguenther@suse.de>
2738 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
2739 special casing of constant qualifiers.
2740 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
2741 care about them in general.
2742 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
2743 regardless of their type.
2744 (fold_stmt_r): Forcefully fold *& if we end up with that.
2746 2008-03-20 Paul Brook <paul@codesourcery.com>
2748 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
2749 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
2751 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
2753 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
2754 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
2756 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
2758 * common.opt (Wmudflap): New option.
2759 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
2760 (mx_register_decls): Likewise.
2761 (mudflap_finish_file): Likewise.
2762 * doc/invoke.texi: Document -Wno-mudflap.
2764 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
2766 * c-format.c (replace_format_name_to_system_name): New.
2768 (convert_format_name_to_system_name): New.
2769 (decode_format_attr): Add use of convert_format_name_to_system_name.
2770 (format_types_orig): Add gnu_ prefix to names.
2771 (check_format_info_main): Special treating of \0 escaped names for
2772 supporting multi-character format specifiers as I32, I64.
2773 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
2774 (gnu_target_overrides_format_attributes): New.
2775 * c-format.h: Add structure target_ovr_attr to hold
2776 system specific formatter names.
2777 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
2778 msformat-c.o file to c_target_objs and cxx_target_objs.
2779 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2780 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
2781 (TARGET_N_FORMAT_TYPES): New.
2782 * config/i386/msformat-c.c: New.
2783 * config/i386/t-cygming: Add build rule for msformat-c.o.
2784 * doc/extend.texi: Add new format names gnu_* and ms_* and
2786 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
2788 2008-03-20 Ira Rosen <irar@il.ibm.com>
2790 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
2791 optimizations turned on under -O3.
2792 (ftree-vectorize): Add that the flag is turned on with -O3.
2794 2008-03-20 Ben Elliston <bje@au.ibm.com>
2796 * regmove.c (try_auto_increment): Fix spelling error in comment.
2797 * final.c (final_scan_insn): Likewise.
2799 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
2802 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
2803 allocator preferences for "y" and "r" class registers.
2804 ("*mov<mode>_internal"): Ditto.
2805 ("*movv2sf_internal_rex64"): Ditto.
2806 ("*movv2sf_internal"): Ditto.
2808 2008-03-19 Michael Matz <matz@suse.de>
2811 * calls.c (expand_call): Check overlap of arguments with call
2812 address for sibcalls.
2814 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
2817 * stor-layout.c (update_alignment_for_field): Set minimum alignment
2818 of the underlying type of a MS bitfield layout to the natural
2819 alignment of the type.
2821 2008-03-19 Jan Hubicka <jh@suse.cz>
2824 * toplev.c (decode_d_option): Handle all CPP flags.
2825 * tree-vrp.c: Update tree_pass descriptors.
2826 * regrename.c: Update tree_pass descriptors.
2827 * fwprop.c: Update tree_pass descriptors.
2828 * doc/invoke.texi: Remove documentation of dropped -d? flags.
2829 * tree-into-ssa.c: Update tree_pass descriptors.
2830 * tree-dump.c: Update tree_pass descriptors.
2831 * tree-complex.c: Update tree_pass descriptors.
2832 * tree-dump.h: Update tree_pass descriptors.
2833 * see.c: Update tree_pass descriptors.
2834 * cgraphbuild.c: Update tree_pass descriptors.
2835 * tracer.c: Update tree_pass descriptors.
2836 * tree-loop-distribution.c: Update tree_pass descriptors.
2837 * cgraph.c: Update tree_pass descriptors.
2838 * postreload-gcse.c: Update tree_pass descriptors.
2839 * postreload.c: Update tree_pass descriptors.
2840 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
2841 * tree-tailcall.c: Update tree_pass descriptors.
2842 * tree-pass.h (tree_opt_pass): Rename to ...
2843 (opt_pass) ... this one; add "type" field and remove letter field.
2844 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
2845 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
2846 all_lowering_passes): Update declaration.
2847 * ipa-cp.c: Update tree_pass descriptors.
2848 * final.c: Update tree_pass descriptors.
2849 * omp-low.c: Update tree_pass descriptors.
2850 * tree-ssa-dse.c: Update tree_pass descriptors.
2851 * ipa-reference.c: Update tree_pass descriptors.
2852 * tree-ssa-uncprop.c: Update tree_pass descriptors.
2853 * auto-inc-dec.c: Update tree_pass descriptors.
2854 * reorg.c: Update tree_pass descriptors.
2855 * cgraphunit.c: Update tree_pass descriptors.
2856 * tree-ssa-copyrename.c: Update tree_pass descriptors.
2857 * tree-ssa-ccp.c: Update tree_pass descriptors.
2858 * df-core.c: Update tree_pass descriptors.
2859 * mode-switching.c: Update tree_pass descriptors.
2860 * tree-nomudflap.c: Update tree_pass descriptors.
2861 * modulo-sched.c: Update tree_pass descriptors.
2862 * ipa-pure-const.c: Update tree_pass descriptors.
2863 * cse.c: Update tree_pass descriptors.
2864 * web.c: Update tree_pass descriptors.
2865 * tree-stdarg.c: Update tree_pass descriptors.
2866 * tree-ssa-math-opts.c: Update tree_pass descriptors.
2867 * tree-ssa-dom.c: Update tree_pass descriptors.
2868 * tree-nrv.c: Update tree_pass descriptors.
2869 * tree-ssa-alias.c: Update tree_pass descriptors.
2870 * loop-init.c: Update tree_pass descriptors.
2871 * gimple-low.c: Update tree_pass descriptors.
2872 * ipa-inline.c: Update tree_pass descriptors.
2873 * tree-ssa-sink.c: Update tree_pass descriptors.
2874 * global.c: Update tree_pass descriptors.
2875 * ifcvt.c: Update tree_pass descriptors.
2876 * jump.c: Update tree_pass descriptors.
2877 * predict.c: Update tree_pass descriptors.
2878 * tree-ssa-loop.c: Update tree_pass descriptors.
2879 * recog.c: Update tree_pass descriptors.
2880 * dse.c: Update tree_pass descriptors.
2881 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
2882 * tree-eh.c: Update tree_pass descriptors.
2883 * regmove.c: Update tree_pass descriptors.
2885 * function.c: Update tree_pass descriptors.
2886 * tree-vectorizer.c: Update tree_pass descriptors.
2887 * gcse.c: Update tree_pass descriptors.
2888 * ipa-type-escape.c: Update tree_pass descriptors.
2889 * tree-if-conv.c: Update tree_pass descriptors.
2890 * init-regs.c: Update tree_pass descriptors.
2891 * ipa.c: Update tree_pass descriptors.
2892 * tree-ssa-phiopt.c: Update tree_pass descriptors.
2893 * rtl-factoring.c: Update tree_pass descriptors.
2894 * lower-subreg.c: Update tree_pass descriptors.
2895 * bt-load.c: Update tree_pass descriptors.
2896 * tree-dfa.c: Update tree_pass descriptors.
2897 * except.c: Update tree_pass descriptors.
2898 * emit-rtl.c: Update tree_pass descriptors.
2899 * cfgexpand.c: Update tree_pass descriptors.
2900 * tree-cfgcleanup.c: Update tree_pass descriptors.
2901 * cfgcleanup.c: Update tree_pass descriptors.
2902 * tree-ssa-pre.c: Update tree_pass descriptors.
2903 * tree-sra.c: Update tree_pass descriptors.
2904 * tree-mudflap.c: Update tree_pass descriptors.
2905 * tree-ssa-copy.c: Update tree_pass descriptors.
2906 * cfglayout.c: Update tree_pass descriptors.
2907 * tree-ssa-forwprop.c: Update tree_pass descriptors.
2908 * tree-ssa-dce.c: Update tree_pass descriptors.
2909 * tree-ssa.c: Update tree_pass descriptors.
2910 * regclass.c: Update tree_pass descriptors.
2911 * integrate.c: Update tree_pass descriptors.
2912 * tree-optimize.c: Update tree_pass descriptors.
2913 * tree-ssa-phiprop.c: Update tree_pass descriptors.
2914 * tree-object-size.c: Update tree_pass descriptors.
2915 * combine.c: Update tree_pass descriptors.
2916 * tree-outof-ssa.c: Update tree_pass descriptors.
2917 * bb-reorder.c: Update tree_pass descriptors.
2918 * stack-ptr-mod.c: Update tree_pass descriptors.
2919 * var-tracking.c: Update tree_pass descriptors.
2920 * tree-profile.c: Update tree_pass descriptors.
2921 * tree-vect-generic.c: Update tree_pass descriptors.
2922 * reg-stack.c: Update tree_pass descriptors.
2923 * sched-rgn.c: Update tree_pass descriptors.
2924 * tree-ssa-structalias.c: Update tree_pass descriptors.
2925 * tree-cfg.c: Update tree_pass descriptors.
2926 * passes.c (current_pass): Update declaration.
2927 (finish_optimization_passes): Update.
2928 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
2929 (register_one_dump_file, register_dump_files_1, next_pass_1):
2931 (init_optimization_passes): Update handling of new types.
2932 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
2933 * ipa-struct-reorg.c: Update tree_pass descriptors.
2934 * tree-ssa-reassoc.c: Update tree_pass descriptors.
2935 * combine-stack-adj.c: Update tree_pass descriptors.
2936 * cfgrtl.c: Update tree_pass descriptors.
2937 * dce.c: Update tree_pass descriptors.
2938 * tree-ssanames.c: Update tree_pass descriptors.
2940 2008-03-19 Richard Guenther <rguenther@suse.de>
2943 * tree-ssa.c (walk_data): New structure.
2944 (warn_uninitialized_var): If not always_executed warn with "maybe"
2946 (execute_early_warn_uninitialized): Compute post-dominators.
2947 Initialize always_executed before processing each basic block.
2949 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
2952 * config/i386/i386.c (x86_this_parameter): Calculate correct location
2953 of "this" pointer when "regparm = N" or "fastcall" is in effect.
2955 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2957 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
2959 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
2961 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
2963 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
2964 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
2965 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
2966 target after ignore has been set, and move there also the commputation
2967 of subtarget and original_target.
2968 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2969 (LANG_HOOKS_INITIALIZER): Remove it.
2970 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
2972 2008-03-18 Richard Guenther <rguenther@suse.de>
2974 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
2975 found an expression with constants, note that in the VN for the lhs.
2976 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
2977 fold them to constants if possible. Run cleanup_cfg if done so.
2978 (execute_pre): Return todo.
2980 (execute_fre): Likewise.
2981 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
2983 (get_prop_source_stmt): Look through pointer conversions.
2985 2008-03-18 Jan Hubicka <jh@suse.cz>
2987 * tree-pretty-print.c: Include predict.h.
2988 (dump_generic_node): Dump predictor.
2989 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
2990 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
2991 * gimple-low.c (lower_stmt): Likewise.
2992 * expr.c (expand_expr_real): Likewise.
2993 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
2995 (build_predict_expr, build_predict_expr): New.
2996 * predict.h (predictor_name, build_predict_expr): Update.
2997 * c-typeck.c (c_finish_bc_stmt): Add prediction.
2998 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
2999 * predict.def (PRED_CONTINUE): Update hitrate.
3000 * tree.def (PREDICT_EXPR): Define.
3001 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
3002 do not handle BIND_EXPR.
3003 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
3004 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
3005 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
3008 2008-03-18 Michael Matz <matz@suse.de>
3010 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
3012 2008-03-18 Richard Guenther <rguenther@suse.de>
3014 * tree-gimple.h (is_gimple_invariant_address): Declare.
3015 (is_gimple_constant): Likewise.
3016 * tree-gimple.c (is_gimple_constant): New function.
3017 (is_gimple_invariant_address): Likewise.
3018 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
3019 and is_gimple_invariant_address.
3020 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
3022 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
3023 an addressable base.
3025 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3028 * gimplify.c (gimplify_expr): Gimplify second operand of
3031 2008-03-17 Richard Guenther <rguenther@suse.de>
3033 PR tree-optimization/19637
3034 * fold-const.c (fold_unary): Remove restrictions of removing
3035 intermediate pointer-conversions (P2)(P1)P0.
3036 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
3037 conversion to void pointer.
3038 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
3040 2008-03-16 James E. Wilson <wilson@tuliptree.org>
3043 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
3044 emulated thread local variables.
3046 2008-03-16 Richard Guenther <rguenther@suse.de>
3049 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
3050 expand TREE_INVARIANT operations that are not gimple invariant.
3052 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
3054 * doc/extend.texi (Alignment): Say that the ABI controls
3055 the __alignof__ for non-strict-alignment targets rather
3056 than being a recommendation.
3058 2008-03-15 Paul Brook <paul@codesourcery.com>
3060 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
3062 (arm_output_fn_unwind): Mark functions that can not be unwound.
3064 2008-03-15 Paul Brook <paul@codesourcery.com>
3066 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
3067 extension instructions.
3069 2008-03-15 Richard Guenther <rguenther@suse.de>
3071 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
3072 and fold constant aggregate refs.
3073 (fold_const_aggregate_ref): Handle string constants
3074 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
3075 (evaluate_stmt): Simplify now that ccp_fold folds constant
3078 2008-03-15 Paul Brook <paul@codesourcery.com>
3080 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
3081 (extzv): Use gen_extzv_t2.
3082 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
3084 2008-03-15 Richard Guenther <rguenther@suse.de>
3086 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
3087 (fold_const_aggregate_ref): Likewise.
3088 (get_value): Return NULL if we don't have any values.
3089 (ccp_finalize): Set const_val to NULL after freeing it.
3090 * tree-flow.h (get_symbol_constant_value): Declare.
3091 (fold_const_aggregate_ref): Likewise.
3092 * tree-ssa-sccvn.c (try_to_simplify): Use them.
3094 2008-03-15 Richard Guenther <rguenther@suse.de>
3097 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
3098 to not produce negative array indices if not allowed. Add
3099 parameter to indicate that.
3100 (maybe_fold_offset_to_component_ref): Allow negative array
3101 indices only for the first member of a structure.
3102 (maybe_fold_offset_to_reference): Allow negative array indices.
3103 (maybe_fold_stmt_addition): Likewise.
3105 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
3106 Anatoly Sokolov <aesok@post.ru>
3108 * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
3109 (avr_arch): Add ARCH_AVR6.
3110 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
3111 (initial_elimination_offset): Initialize and use 'avr_pc_size'
3112 instead of fixed value 2.
3113 (print_operand_address): Use gs() asm specifier instead of pm().
3114 (avr_assemble_integer): (Ditto.).
3115 (avr_output_addr_vec_elt): (Ditto.).
3116 (print_operand): Handle "!" code.
3117 * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
3118 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
3119 (AVR_HAVE_EIJMP_EICALL): Define.
3120 (AVR_3_BYTE_PC): Redefine.
3121 (AVR_2_BYTE_PC): (Ditto.).
3122 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
3123 (LINK_SPEC): Add atmega2560 and atmega2561.
3124 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
3126 * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall
3127 for 3 byte PC devices.
3128 (call_value_insn): (Ditto.).
3129 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
3130 (indirect_jump): Use only for for 2 byte PC devices.
3131 (*tablejump): (Ditto.).
3132 (*indirect_jump_avr6): Add insn.
3133 (*tablejump_rjmp): Don't use for 3 byte PC devices.
3134 * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp
3135 instead of ijmp for 3 byte PC devices.
3136 (__tablejump2__): (Ditto.).
3137 * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
3138 (MULITLIB_DIRNAMES): (Ditto.).
3139 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
3141 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
3143 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
3144 "sse2_umulsidi3". Use V1DI mode for operand 0.
3145 ("mmx_psadbw"): Use V1DI mode for operand 0.
3146 * config/i386/i386-modes.def (V1SI): New vector mode.
3147 * config/i386/i386.c (struct builtin_description)
3148 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
3149 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
3150 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
3151 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
3152 v1di_ftype_v8qi_v8qi type.
3153 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
3155 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
3156 __builtin_ia32_pmuludq]: Fix the mode of return value.
3158 2008-03-15 Richard Guenther <rguenther@suse.de>
3161 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
3164 2008-03-14 Bob Wilson <bob.wilson@acm.org>
3166 * doc/invoke.texi (Option Summary, Xtensa Options): Document
3167 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
3168 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
3169 unless TARGET_SERIALIZE_VOLATILE is enabled.
3170 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
3171 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
3172 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
3174 2008-03-14 Richard Guenther <rguenther@suse.de>
3176 PR tree-optimization/34172
3177 * tree-flow.h (refs_may_alias_p): Declare.
3178 (get_single_def_stmt): Likewise.
3179 (get_single_def_stmt_from_phi): Likewise.
3180 (get_single_def_stmt_with_phi): Likewise.
3181 * tree-dfa.c (refs_may_alias_p): New function.
3182 (get_single_def_stmt): Likewise.
3183 (get_single_def_stmt_from_phi): Likewise.
3184 (get_single_def_stmt_with_phi): Likewise.
3185 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
3186 (vn_reference_lookup_1): New helper function.
3187 (vn_reference_lookup): Walk the virtual use-def chain to
3188 continue searching for a match if the def does not alias the
3189 reference we are looking for.
3191 2008-03-14 David Edelsohn <edelsohn@gnu.org>
3193 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
3194 archive and Perzl. Update The Written Word listing.
3196 2008-03-14 Richard Guenther <rguenther@suse.de>
3198 PR tree-optimization/34043
3199 PR tree-optimization/33989
3200 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
3202 (bitmap_find_leader): Use extra argument to verify dominance
3203 relationship inside a basic-block.
3204 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
3205 (find_leader_in_sets): Adjust.
3206 (create_component_ref_by_pieces): Take extra argument for
3207 dominance check, handle lookup failures.
3208 (find_or_generate_expression): Likewise.
3209 (create_expression_by_pieces): Likewise.
3210 (insert_into_preds_of_block): Adjust.
3211 (create_value_expr_from): If asked for, verify all operands
3212 are in the blocks AVAIL_OUT set.
3213 (make_values_for_stmt): Check for SSA_NAMEs that are life
3214 over an abnormal edge.
3215 (compute_avail): Remove such check.
3216 (do_SCCVN_insertion): New function.
3217 (eliminate): If we do not find a leader suitable for replacement
3218 insert a replacement expression from SCCVN if available.
3219 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
3220 (struct vn_ssa_aux): Add needs_insertion flag.
3221 * tree-ssa-sccvn.c (may_insert): New global flag.
3222 (copy_reference_ops_from_ref): Value-number union member access
3223 based on its size, not type and member if insertion is allowed.
3224 (visit_reference_op_load): For a weak match from union type
3225 punning lookup a view-converted value and insert a SSA_NAME
3226 for that value if that is not found.
3227 (visit_use): Make dumps shorter. Do not disallow value numbering
3228 SSA_NAMEs that are life over an abnormal edge to constants.
3229 (free_scc_vn): Release inserted SSA_NAMEs.
3230 (run_scc_vn): New flag to specify whether insertion is allowed.
3231 Process SSA_NAMEs in forward order.
3232 * tree-ssa-loop-im.c (for_each_index): Handle invariant
3233 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
3234 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
3235 pointer type to/from integral types that do not change the
3236 precision to regular conversions.
3238 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
3240 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3241 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3242 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
3243 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
3244 input arguments and the mode of return value. Built-in functions
3245 that operate on whole 64-bit MMX register now use V1DI mode.
3247 2008-03-13 Alon Dayan <alond@il.ibm.com>
3248 Olga Golovanevsky <olga@il.ibm.com>
3250 PR tree-optimization/35041
3251 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
3252 to locate the right position in a statement.
3254 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
3258 * config/i386/xmmintrin.h: Change all static inline functions to
3259 extern inline and add __gnu_inline__ attribute.
3260 * config/i386/bmintrin.h: Ditto.
3261 * config/i386/smmintrin.h: Ditto.
3262 * config/i386/tmmintrin.h: Ditto.
3263 * config/i386/mmintrin-common.h: Ditto.
3264 * config/i386/ammintrin.h: Ditto.
3265 * config/i386/emmintrin.h: Ditto.
3266 * config/i386/pmmintrin.h: Ditto.
3267 * config/i386/mmintrin.h: Ditto.
3268 * config/i386/mm3dnow.h: Ditto.
3270 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3273 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
3274 (lower_omp_2): New function.
3275 (lower_omp_1, lower_omp): Rewritten.
3277 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3280 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
3281 with the phrase "Microsoft Windows compilers".
3282 (Push/Pop Macro Pragmas): New subsection. Document
3283 #pragma push_macro and pragma pop_macro.
3285 2008-03-12 Paul Brook <paul@codesourcery.com>
3287 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
3289 2008-03-12 Paul Brook <paul@codesourcery.com>
3291 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
3292 (thumb2_alusi3_short): Exclude PLUS and MINUS.
3293 (thumb2_addsi_shortim): Rename ...
3294 (thumb2_addsi_short): ... to this. Allow register operands.
3295 (thumb2_subsi_short): New pattern.
3296 (thumb2_one_cmplsi2_short,
3297 thumb2_negsi2_short): New patterns and peepholes.
3299 2008-03-12 Paul Brook <paul@codesourcery.com>
3301 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
3303 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
3305 * config/i386/i386.md (int_cond): New code iterator.
3307 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
3308 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
3309 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
3310 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
3311 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
3312 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
3313 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
3314 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
3316 2008-03-12 Paul Brook <paul@codesourcery.com>
3318 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
3319 instead of {arm,thumb}_compute_save_reg_mask.
3320 (output_return_instruction): Ditto.
3321 (thumb_unexpanded_epilogue): Ditto.
3322 (thumb1_expand_prologue): Ditto.
3323 (thumb1_output_function_prologue): Ditto.
3324 (arm_set_return_address): Ditto.
3325 (thumb_set_return_address): Ditto.
3326 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
3327 regs to achieve stack alignment.
3328 (thumb1_compute_save_reg_mask): Fix compiler warning.
3329 (arm_output_epilogue): Use offsets->saved_regs_mask.
3330 Adjust stack pointer by poping call clobered registers.
3331 (arm_expand_prologue): Use offsets->saved_regs_mask.
3332 Adjust stack pointer by pushing extra registers.
3333 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
3335 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
3338 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
3339 conversion to the operands of a multiplication.
3341 2008-03-12 Richard Guenther <rguenther@suse.de>
3343 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
3344 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
3345 * timevar.def (TV_TREE_PHIPROP): Add.
3346 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
3347 pass description. Use TV_TREE_PHIPROP.
3348 * tree-ssa-forwprop.c: Remove phiprop code.
3350 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3353 * omp-low.c (maybe_lookup_decl): Constify first argument.
3354 (use_pointer_for_field): Change last argument from bool to
3355 omp_context *. Disallow shared copy-in/out in nested
3356 parallel if decl is shared in outer parallel too.
3357 (build_outer_var_ref, scan_sharing_clauses,
3358 lower_rec_input_clauses, lower_copyprivate_clauses,
3359 lower_send_clauses, lower_send_shared_vars): Adjust callers.
3361 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
3362 Ira Rosen <irar@il.ibm.com>
3364 * tree-vectorizer.c (free_stmt_vec_info): New function.
3365 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
3366 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
3367 * tree-vectorizer.h (free_stmt_vec_info): Declare.
3368 * tree-vect-transform.c (vectorizable_conversion): Free
3369 vec_oprnds0 if it was allocated.
3370 (vect_permute_store_chain): Remove unused VECs.
3371 (vectorizable_store): Free VECs that are allocated in the..
3373 (vect_transform_strided_load, vectorizable_load): Likewise.
3374 (vect_remove_stores): Simplify the code.
3375 (vect_transform_loop): Move code to vect_remove_stores().
3376 Call vect_remove_stores() and free_stmt_vec_info().
3378 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3380 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
3381 TARGET_HPUX. Revise comment.
3382 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
3383 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
3384 Use sr4 variant of `be' instruction when not generating PIC code.
3385 (attr_length_call): Adjust for above change.
3387 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
3389 * ipa-reference.c (static_execute): Remove module_statics_const and
3390 associated setting code.
3392 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
3395 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
3396 predicate for operand 1.
3397 (paritysi2_cmp): Use register_operand predicate for operand 2.
3398 Use earlyclobber modifier for operand 1. Remove support for
3400 (paritydi2_cmp): Use register_operand predicate for operand 3.
3401 Use earlyclobber modifier for operand 1. Remove support for
3404 2008-03-11 Paul Brook <paul@codesourcery.com>
3405 Vladimir Prus <vladimir@codesourcery.com>
3407 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
3408 (arm_compute_save_reg0_reg12_mask): Always
3409 check if register 11 must be saved. Always safe hard frame pointer
3410 when frame_pointer_needeed.
3411 (arm_compute_save_reg_mask): Save IP and PC
3412 only with apcs frames.
3413 (arm_output_epilogue): Adjust Thumb2 codepath to
3414 be also invoked and work for ARM non-apcs frames.
3415 (arm_expand_prologue): Don't bother saving IP
3416 for non-apcs frame, since it's not clobbered by
3417 prologue code. Implement non-apcs frame
3420 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
3422 PR rtl-optimization/35281
3423 * expr.c (convert_move): Use a new pseudo for the intermediate
3424 from_mode->word_mode result.
3426 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
3428 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
3429 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
3430 * toplev.c (compile_file): Don't call it.
3432 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
3435 * expr.c (store_expr): Call emit_block_move if the mode
3436 of "temp" RTX is BLKmode.
3438 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
3439 Richard Guenther <rguenther@suse.de>
3441 PR tree-optimization/31358
3442 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
3443 the step with a NULL_TREE.
3444 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
3445 to sizetype if type is a pointer type.
3446 (add_candidate_1): Don't convert the base and step to
3447 the generic type if the orginal type is a pointer type.
3448 (add_iv_value_candidates): Use sizetype for the step
3449 if type is a pointer type.
3450 (cand_value_at): Likewise.
3451 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
3453 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
3454 Don't convert the tem affine to the type.
3455 (add_elt_to_tree): Use sizetype for the step if a pointer.
3456 Use POINTER_PLUS_EXPR for pointers.
3457 (aff_combination_to_tree): Use sizetype for the step if a
3460 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
3462 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
3463 Remove commutativity hint.
3465 2008-03-10 Jakub Jelinek <jakub@redhat.com>
3469 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
3470 errorneous type. Check that v is a VAR_DECL.
3473 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
3475 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
3477 PR tree-optimization/35494
3478 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
3479 may be overriden at link and run time.
3481 2008-03-10 Richard Guenther <rguenther@suse.de>
3483 PR tree-optimization/34677
3484 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
3485 (poolify_tree): Likewise.
3486 (modify_expr_template): Likewise.
3487 (poolify_modify_stmt): Likewise.
3488 (insert_fake_stores): Handle all component-ref style stores
3489 in addition to INDIRECT_REF. Also handle complex types.
3490 Do not poolify the inserted load.
3491 (realify_fake_stores): Do not rebuild the tree but only
3492 make it a SSA_NAME copy.
3493 (init_pre): Remove initialzation of modify_expr_template.
3494 Do not allocate modify_expr_node_pool.
3495 (fini_pre): Do not free modify_expr_node_pool.
3497 2008-03-10 Paul Brook <paul@codesourcery.com>
3499 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
3502 2008-03-10 Paul Brook <paul@codesourcery.com>
3503 Mark Shinwell <shinwell@codesourcery.com>
3505 * config/arm/cortex-r4.md: New.
3506 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
3508 * config/arm/arm.md: Include cortex-r4.md.
3509 (insn): Add smmls, sdiv and udiv values.
3510 (generic_sched): Don't use generic scheduling for Cortex-R4.
3511 (arm_issue_rate): New function.
3512 (TARGET_SCHED_ISSUE_RATE): Define.
3514 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
3516 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
3518 2008-03-10 Richard Guenther <rguenther@suse.de>
3520 * tree-ssa-pre.c (get_sccvn_value): Simplify.
3521 (compute_avail): Do not add stmt uses to AVAIL_OUT.
3523 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
3525 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
3526 Set default to true.
3528 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3530 * c.opt (Wsynth): Deprecate.
3531 * doc/invoke.texi (Option Summary, Warning Options): Document
3532 -Wno-format-contains-nul.
3534 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
3537 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
3538 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
3540 2008-03-09 Ira Rosen <irar@il.ibm.com>
3542 * config/rs6000/rs6000.c (builtin_description): Rename vector
3543 left shift operations.
3544 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
3545 (altivec_vsl<VI_char>): Rename to ...
3546 (ashl<mode>3): ... new name.
3547 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
3549 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
3551 2008-03-08 Richard Guenther <rguenther@suse.de>
3553 * coverage.h (tree_coverage_counter_addr): Declare.
3554 * coverage.c (tree_coverage_counter_addr): New function.
3555 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
3557 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
3558 (tree_gen_one_value_profiler): Likewise.
3559 (tree_gen_ic_profiler): Likewise.
3560 (tree_gen_average_profiler): Likewise.
3561 (tree_gen_ior_profiler): Likewise.
3563 2008-03-08 Richard Guenther <rguenther@suse.de>
3565 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
3566 (vn_binary_op_insert): Likewise.
3567 (vn_unary_op_lookup): Likewise.
3568 (vn_unary_op_insert): Likewise.
3569 (vn_nary_op_lookup): Declare.
3570 (vn_nary_op_insert): Likewise.
3571 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
3572 and binary hashes, use a single obstack for unary_op_pool
3574 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
3575 a single struct vn_nary_op_s. Store tree code length and
3576 a variable number of operands.
3577 (struct vn_reference_op_struct): Remove unused op2.
3578 (vn_reference_op_eq): Do not compare op2.
3579 (vn_reference_op_compute_hash): Do not compute hash of op2.
3580 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
3581 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
3582 with vn_nary_op_compute_hash.
3583 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
3584 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
3586 (vn_unary_op_insert, vn_binary_op_insert): Replace with
3588 (visit_unary_op): Call nary functions.
3589 (visit_binary_op): Likewise.
3590 (process_scc): Adjust for struct vn_tables_s changes.
3591 (allocate_vn_table): Likewise.
3592 (free_vn_table): Likewise.
3593 * tree-vn.c (vn_add): Call nary functions.
3594 (vn_lookup): Likewise.
3596 2008-03-08 Jakub Jelinek <jakub@redhat.com>
3599 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
3600 wdst back after sync_compare_and_swapqhi_internal.
3602 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
3605 * config/i386/i386-modes.def (V1DI): New vector mode.
3606 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
3607 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
3608 (MMXMODE248): Ditto.
3609 (MMXMODE): Add V1DI mode.
3610 (mmxvecsize): Change DI mode to V1DI mode.
3611 ("mov<mode>): Use MMXMODEI8 mode iterator.
3612 ("*mov<mode>_internal_rex64"): Ditto.
3613 ("*mov<mode>_internal"): Ditto.
3614 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
3615 ("mmx_sub<mode>3"): Ditto.
3616 ("mmx_adddi3"): Remove insn pattern.
3617 ("mmx_subdi3"): Ditto.
3618 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
3619 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
3620 ("mmx_ashl<mode>3"): Ditto.
3621 ("mmx_lshrdi3"): Remove insn pattern.
3622 ("mmx_ashldi3"): Ditto.
3623 * config/i386/i386.c (classify_argument): Handle V1DImode.
3624 (function_arg_advance_32): Ditto.
3625 (function_arg_32): Ditto.
3626 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
3627 mmx_addv1di3 insn pattern.
3628 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
3629 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
3630 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
3631 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
3632 Remove definitions of built-in functions.
3633 (V1DI_type_node): New node.
3634 (v1di_ftype_v1di_int): Ditto.
3635 (v1di_ftype_v1di_v1di): Ditto.
3636 (v2si_ftype_v2si_si): Ditto.
3637 (v4hi_ftype_v4hi_di): Remove node.
3638 (v2si_ftype_v2si_di): Ditto.
3639 (ix86_init_mmx_sse_builtins): Handle V1DImode.
3640 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
3641 Redefine builtins using def_builtin_const with *_ftype_*_int node.
3642 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
3643 Add new builtins using def_builtin_const.
3644 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
3645 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
3646 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
3647 * config/i386/mmintrin.h (__v1di): New typedef.
3648 (_mm_add_si64): Cast arguments to __v1di type.
3649 (_mm_sub_si64): Ditto.
3650 (_mm_sll_pi16): Cast __count to __v4hi type.
3651 (_mm_sll_pi32): Cast __count to __v2si type.
3652 (_mm_sll_si64): Cast arguments to __v1di type.
3653 (_mm_srl_pi16): Cast __count to __v4hi type.
3654 (_mm_srl_pi32): Cast __count to __v2si type.
3655 (_mm_srl_si64): Cast arguments to __v1di type.
3656 (_mm_sra_pi16): Cast __count to __v4hi type.
3657 (_mm_sra_pi32): Cast __count to __v2si type.
3658 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
3659 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
3660 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
3661 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
3662 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
3663 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
3664 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
3665 (_mm_srai_pi32): Use __builtin_ia32_psradi.
3666 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
3667 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3668 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3669 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
3671 2008-03-07 Joseph Myers <joseph@codesourcery.com>
3673 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
3675 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
3678 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
3679 reg+const addressing for Altivec modes. Don't generate reg+reg
3680 addressing for TFmode or TDmode quantities.
3682 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
3684 * c-common.c (vector_types_convertible_p): Call langhook
3685 instead of comptypes.
3687 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
3690 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
3691 integral and scalar float variables which have a
3694 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
3696 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
3697 dwarf_register_span hook when emitting unwind information for
3698 register-to-memory saves.
3699 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
3700 (rs6000_frame_related): Remove call to spe_synthesize_frame.
3702 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3704 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
3705 for the same VAR_DECL.
3707 2008-03-06 Tom Tromey <tromey@redhat.com>
3710 * doc/standards.texi (Standards): Don't mention treelang.
3711 * doc/invoke.texi (Overall Options): Don't mention treelang.
3712 * doc/install.texi (Prerequisites): Don't mention bison or
3714 (Configuration): Don't mention treelang.
3715 (Building): Likewise.
3716 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
3718 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
3720 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
3721 word-extractions out of a multi-word object.
3723 2008-03-06 Richard Guenther <rguenther@suse.de>
3725 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
3726 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
3727 result type and precision.
3728 * expr.c (get_inner_reference): Set unsignedp based on the result
3729 type of BIT_FIELD_REF.
3730 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
3731 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
3732 (try_instantiate_multiple_fields): Likewise. Use the correct type
3734 (sra_build_assignment): Likewise.
3735 (sra_build_elt_assignment): Likewise.
3736 (sra_explode_bitfield_assignment): Likewise.
3737 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
3738 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
3739 set BIT_FIELD_REF_UNSIGNED.
3740 (vectorizable_load): Likewise.
3742 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
3744 * cse.c (cse_extended_basic_block): Invalidate artificial defs
3747 2008-03-06 Richard Guenther <rguenther@suse.de>
3749 * alias.c (struct alias_set_entry): Move has_zero_child field
3750 to pack with alias_set.
3752 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
3754 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
3757 2008-03-05 Ian Lance Taylor <iant@google.com>
3759 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
3761 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
3763 * fwprop.c (update_df): Support width and offset parameters of
3765 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
3766 global_conflicts): Change DF_REF_EXTRACT to either
3767 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
3768 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3769 * df-scan.c (df_ref_record, df_defs_record,
3770 df_ref_create_structure, df_def_record_1, df_uses_record,
3771 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
3772 df_bb_refs_collect, df_entry_block_defs_collect,
3773 df_exit_block_uses_collect): Support new width and offset fields.
3774 (ref_extract_pool): New storage pool.
3775 (df_free_ref): New function.
3776 (df_reg_chain_unlink, df_free_collection_rec,
3777 df_sort_and_compress_refs): Call df_free_ref.
3778 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
3780 (df_ref_create_structure): Allocate df_ref_extract if offset and
3781 width fields are used.
3782 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
3783 (df_uses_record): Get offset and width from ZERO_EXTRACT
3785 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
3786 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
3787 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3788 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
3789 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
3790 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
3791 (df_ref_extract): New structure.
3792 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
3793 (df_ref_create): Add width and offset parameters.
3795 2008-03-05 Richard Guenther <rguenther@suse.de>
3797 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3798 Use ranges_overlap_p.
3799 (offset_overlaps_with_access): Rename
3800 to ranges_overlap_p and move ...
3801 * tree-flow-inline.h (ranges_overlap_p): ... here.
3803 * tree.h (get_inner_reference, handled_component_p): Update
3806 * tree.h (record_component_aliases, get_alias_set,
3807 alias_sets_conflict_p, alias_sets_must_conflict_p,
3808 objects_must_conflict_p): Move declarations ...
3809 * alias.h (record_component_aliases, get_alias_set,
3810 alias_sets_conflict_p, alias_sets_must_conflict_p,
3811 objects_must_conflict_p): ... here.
3812 Include coretypes.h.
3813 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
3815 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
3817 * cfg.c: Include tree-flow.h.
3818 (remove_edge_raw): Call redirect_edge_var_map_clear.
3819 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
3820 * tree-flow-inline.h (redirect_edge_var_map_def): New.
3821 (redirect_edge_var_map_result): New.
3822 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
3823 PENDING_STMT use with redirect_edge_var_map_*.
3824 * tree-ssa.c (edge_var_maps): New definition.
3825 (redirect_edge_var_map_add): New.
3826 (redirect_edge_var_map_clear): New.
3827 (redirect_edge_var_map_dup): New.
3828 (redirect_edge_var_map_vector): New.
3829 (redirect_edge_var_map_destroy): New.
3830 (ssa_redirect_edge): Replace PENDING_STMT use with
3831 redirect_edge_var_map_*.
3832 (flush_pending_stmts): Same.
3833 (delete_tree_ssa): Destroy edge var map.
3834 * tree-flow.h (struct _edge_var_map): New.
3835 Define edge_var_map vector type.
3836 Declare redirect_edge_var_map_* prototypes.
3837 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
3838 * tree-cfg.c (reinstall_phi_args): Replace
3839 PENDING_STMT use with redirect_edge_var_map_*.
3841 2008-03-05 Richard Guenther <rguenther@suse.de>
3843 PR tree-optimization/35472
3844 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
3845 whose single use_stmt has a overlapping set of loaded and
3846 stored symbols as that use_stmt might be a noop assignment then.
3848 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
3850 * gthr-rtems.h: Implement __gthread_mutex_destroy.
3852 2008-03-05 Richard Guenther <rguenther@suse.de>
3855 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
3856 should be constants.
3857 * tree-cfg.c (verify_expr): Verify it.
3858 * fold-const.c (fold_truthop): Remove code generating
3859 BIT_FIELD_REFs of structure bases.
3860 (fold_binary): Likewise.
3861 (fold_ternary): Position and size of BIT_FIELD_REFs are
3862 always host integers.
3863 (make_bit_field_ref): Remove.
3864 (optimize_bit_field_compare): Remove.
3865 (all_ones_mask_p): Remove.
3867 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
3870 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
3871 (split_block_and_df_analyze): New. Split basic block and rebuild
3873 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
3875 (split_pattern_seq): Likewise.
3876 (erase_matching_seqs): Likewise.
3877 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
3879 2008-03-04 Geoff Keating <geoffk@apple.com>
3881 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
3882 declaration and code.
3883 (tree_invalid_nonnegative_warnv_p): Likewise.
3885 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
3887 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
3888 examples. Truncate option-names then causing overfull hbox.
3890 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3893 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
3895 * configure: Rebuilt.
3897 2008-03-04 Rafael Espindola <espindola@google.com>
3899 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
3900 (tree_unary_nonnegative_warnv_p): New.
3901 (tree_binary_nonnegative_warnv_p): New.
3902 (tree_single_nonnegative_warnv_p): New.
3903 (tree_invalid_nonnegative_warnv_p): New.
3904 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
3906 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3909 * opts.c (handle_option): Postpone 'unknown option' errors only for
3912 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
3915 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
3918 2008-03-04 Rafael Espindola <espindola@google.com>
3920 * fold-const.c (tree_unary_nonzero_warnv_p): New.
3921 (tree_binary_nonzero_warnv_p): New.
3922 (tree_single_nonzero_warnv_p): New.
3923 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
3925 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
3928 * fold-const.c (fold_cond_expr_with_comparison): Prevent
3929 transformations for modes that have signed zeros.
3930 * ifcvt.c (noce_try_abs): Ditto.
3932 2008-03-04 Joseph Myers <joseph@codesourcery.com>
3934 * config/i386/i386.c (override_options): Force
3935 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
3937 2008-03-04 Jan Hubicka <jh@suse.cz>
3940 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
3943 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
3945 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
3946 label to probe the stack.
3948 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
3950 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
3951 (__gthr_win32_mutex_destroy): Declare.
3952 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
3953 __gthr_win32_mutex_destroy.
3954 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
3956 2008-03-03 Jan Hubicka <jh@suse.cz>
3959 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
3960 aggressive on inlining cold calls.
3962 2008-03-03 Richard Guenther <rguenther@suse.de>
3964 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
3965 struct copies into the expression table.
3966 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
3967 (try_to_simplify): Likewise.
3968 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
3969 integral and pointer arguments which do not change the
3970 precision to NOP_EXPRs.
3971 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
3972 VIEW_CONVERT_EXPR case.
3974 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
3976 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
3977 defined in a loop at depth 0 is invariant.
3978 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
3979 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
3980 be called at loop depth 0.
3982 2008-03-02 Jakub Jelinek <jakub@redhat.com>
3985 * gcc.c (process_command): Update copyright notice dates.
3986 * gcov.c (print_version): Likewise.
3987 * gcov-dump.c (print_version): Likewise.
3988 * mips-tfile.c (main): Likewise.
3989 * mips-tdump.c (main): Likewise.
3991 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3994 * c-common.c (flag_permissive): Delete.
3995 (constant_expression_warnings): Check flags first.
3996 (constant_expression_error): New.
3997 * c-common.h (flag_permissive): Delete.
3998 (constant_expression_error): Declare.
3999 * flags.h (flag_permissive): Declare. Update description.
4000 * diagnostic.c (pedwarn): Update.
4002 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
4003 (permissive_error_kind): New.
4004 * toplev.c (flag_permissive): Define. Update description.
4005 * toplev.h (permissive_error_kind): Declare.
4006 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
4007 (pedwarn_c90): Use pedantic_warning_kind.
4008 * c-opts.c (c_common_post_options): flag_permissive does not affect
4009 flag_pedantic_errors.
4011 2008-03-02 Joseph Myers <joseph@codesourcery.com>
4013 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
4014 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
4015 __absvsi2, __absvDI2): Use unsigned arithmetic.
4017 2008-03-02 Andi Kleen <ak@suse.de>
4018 Richard Guenther <rguenther@suse.de>
4020 * struct-equiv.c: Remove file.
4021 * cfg_cleanup.c (condjump_equiv_p): Remove.
4022 * Makefile.in (OBJS-common): Remove struct-equiv.o.
4023 (struct-equiv.o): Remove rule.
4024 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
4025 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
4026 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
4028 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
4030 * ifcvt.c (noce_process_if_block): Try to handle only the then
4031 block if the else block exists but isn't suitable.
4033 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
4036 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
4037 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
4038 regression from previous patch.
4040 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
4043 * gthr.h: Add __gthread_mutex_destroy as a function that must be
4045 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
4046 * gthr-single.h (__gthread_mutex_destroy): Likewise.
4047 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
4048 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
4049 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
4050 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
4051 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
4052 (__gthread_mutex_destroy_function): Rename to
4053 __gthread_mutex_destroy.
4054 * gthr-dce.h (__gthread_mutex_destroy): Call
4055 pthread_mutex_destroy.
4056 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
4057 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
4058 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
4060 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
4062 * df-scan.c (df_ref_chain_change_bb): Simplify.
4063 (df_insn_change_bb): Add new_bb argument. Simplify. Call
4064 set_block_for_insn if there's any change.
4065 * df.h ((df_insn_change_bb): Fix prototype.
4066 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
4067 df_insn_change_bb, don't call set_block_for_insn.
4068 * emit-rtl.c (reorder_insns): Likewise.
4069 * haifa-sched.c (move_insn): Likewise.
4071 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
4073 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
4075 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
4077 * tree-flow-inline.h (next_readonly_imm_use): Return
4078 NULL_USE_OPERAND_P after the end.
4080 2008-03-01 Richard Guenther <rguenther@suse.de>
4082 PR tree-optimization/35411
4083 * tree-sra.c (sra_build_assignment): Split conversion to
4084 final type to a separate statement if we are not assigning
4087 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4089 * fold-const.c (fold_convertible_p): Correct the logic to follow
4090 that in fold_convert().
4092 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
4095 * tree-inline.c (build_duplicate_type): When we make a
4096 duplicate type, make it unique in the canonical types system.
4098 2008-02-29 Tom Tromey <tromey@redhat.com>
4100 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
4101 input_file_stack_history, input_file_stack_restored): Remove.
4102 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
4103 * input.h (struct file_stack): Remove.
4104 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
4105 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
4107 * diagnostic.h (struct diagnostic_context) <last_module>: Change
4109 (diagnostic_last_module_changed): Add 'map' argument.
4110 (diagnostic_set_last_function): Likewise.
4111 * diagnostic.c (undiagnostic_report_current_module): Iterate using
4112 line map, not input_file_stack.
4113 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
4115 2008-02-29 Paul Brook <paul@codesourcery.com>
4117 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
4119 2008-02-29 Paul Brook <paul@codesourcery.com>
4121 * config/arm/ieee754-df.S (muldf3): Use RET macros.
4123 2008-02-29 Richard Guenther <rguenther@suse.de>
4125 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
4127 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
4128 value for comparing for a store match.
4129 (simplify_unary_expression): Do nothing for SSA_NAMEs.
4130 (try_to_simplify): Do not do a full-blown reference lookup.
4132 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
4134 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
4135 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
4137 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
4139 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
4141 * tree-loop-linear.c (try_interchange_loops): Compare memory access
4142 strides against cache sizes.
4144 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
4146 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
4149 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
4151 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
4152 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
4153 is smaller than the original promoted value.
4154 (simplify_subreg): If OP is a SUBREG, try to preserve its
4155 SUBREG_PROMOTED_VAR_P information.
4157 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
4159 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
4160 (VN_INFO_GET): Allocate new objects on the obstack.
4161 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
4162 for rpo_numbers_temp, for consistency.
4163 (free_scc_vn): Free the obstack.
4165 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
4167 * doc/invoke.texi: Document -ftree-loop-distribution.
4168 * tree-loop-distribution.c: New.
4169 * tree-pass.h (pass_loop_distribution): New.
4170 * graphds.h (struct graph): Add htab_t indices.
4171 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
4172 * tree-vectorizer.c (rename_variables_in_loop): Extern.
4173 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
4174 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
4175 * tree-data-ref.c (debug_data_dependence_relations): New.
4176 (dump_data_dependence_relation): Also print data references.
4177 (free_data_ref): Extern.
4178 (same_access_functions): Moved...
4179 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
4180 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4181 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
4182 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
4183 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
4184 (stmts_from_loop): Skip LABEL_EXPR.
4185 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
4187 (build_rdg): Initialize rdg->indices htab.
4188 (free_rdg, stores_from_loop, ref_base_address,
4189 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
4190 have_similar_memory_accesses_1, ref_base_address_1,
4191 remove_similar_memory_refs): New.
4192 * tree-data-ref.h: Depend on tree-chrec.h.
4193 (debug_data_dependence_relations, free_data_ref): Declared.
4194 (same_access_functions): ... here.
4195 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
4197 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
4198 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
4199 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
4200 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4201 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
4202 rdg_vertex_for_stmt): Declared.
4203 (struct rdg_edge): Add level.
4205 (free_rdg, stores_from_loop, remove_similar_memory_refs,
4206 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
4208 (rdg_has_similar_memory_accesses): New.
4209 * tree-vect-analyze.c: Remove unused static decls.
4210 * lambda.h (dependence_level): New.
4211 * common.opt (ftree-loop-distribution): New.
4212 * tree-flow.h (mark_virtual_ops_in_bb,
4213 slpeel_tree_duplicate_loop_to_edge_cfg,
4214 rename_variables_in_loop): Declared.
4215 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
4216 (OBJS-common): Add tree-loop-distribution.o.
4217 (tree-loop-distribution.o): New rule.
4218 * tree-cfg.c (mark_virtual_ops_in_bb): New.
4219 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
4220 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
4222 2008-02-28 Joseph Myers <joseph@codesourcery.com>
4225 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
4226 other than structures and unions.
4228 2008-02-28 Richard Guenther <rguenther@suse.de>
4231 2008-02-26 Richard Guenther <rguenther@suse.de>
4233 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4234 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4235 (lookup_decl_from_uid): Declare.
4236 (remove_decl_from_map): Likewise.
4237 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4238 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4239 (decl_for_uid_map): New global hashtable mapping DECL_UID
4241 (init_ttree): Allocate it.
4242 (insert_decl_to_uid_decl_map): New helper function.
4243 (make_node_stat): Insert new decls into the map.
4244 (copy_node_stat): Likewise.
4245 (lookup_decl_from_uid): New function.
4246 (remove_decl_from_map): Likewise.
4247 (print_decl_for_uid_map_statistics): New helper.
4248 (dump_tree_statistics): Call it.
4250 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4251 (referenced_var_iterator): Adjust.
4252 (FOR_EACH_REFERENCED_VAR): Adjust.
4253 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4254 (num_referenced_vars): Adjust.
4255 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4256 (first_referenced_var): Remove.
4257 (end_referenced_vars_p): Likewise.
4258 (next_referenced_var): Likewise.
4259 (referenced_var_iterator_set): New helper function.
4260 * tree-dfa.c (referenced_var_lookup): Adjust.
4261 (referenced_var_check_and_insert): Likewise.
4262 (remove_referenced_var): Likewise.
4263 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4264 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4265 (verify_call_clobbering): Likewise.
4266 (verify_memory_partitions): Likewise.
4267 (init_tree_ssa): Allocate bitmap instead of hashtable for
4269 (delete_tree_ssa): Adjust.
4270 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4271 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4272 (compute_tag_properties): Likewise.
4273 (set_initial_properties): Likewise.
4274 (find_partition_for): Likewise.
4275 (update_reference_counts): Likewise.
4276 (dump_may_aliases_for): Likewise.
4277 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4278 (add_call_clobber_ops): Likewise.
4279 (add_call_read_ops): Likewise.
4280 (get_asm_expr_operands): Likewise.
4281 * tree-into-ssa.c (dump_decl_set): Likewise.
4282 (update_ssa): Likewise.
4283 * tree-sra.c (scan_function): Likewise.
4284 (decide_instantiations): Likewise.
4285 (scalarize_parms): Likewise.
4286 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4287 (dsa_named_for): Likewise.
4288 * tree-ssa-structalias.c (update_alias_info): Likewise.
4289 (merge_smts_into): Likewise.
4291 2008-02-27 David Daney <ddaney@avtrex.com>
4294 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
4295 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
4296 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
4297 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
4298 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
4300 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
4303 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
4304 (BUILT_IN_NEXTTOWARD): Remove.
4305 (BUILT_IN_NEXTTOWARDF): Ditto.
4306 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
4307 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
4309 2008-02-27 Tom Tromey <tromey@redhat.com>
4311 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
4312 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
4314 2008-02-27 Jan Beulich <jbeulich@novell.com>
4316 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
4317 update the respective field on newdecl.
4319 2008-02-27 Revital Eres <eres@il.ibm.com>
4321 PR rtl-optimization/34999
4322 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
4323 crossing edges that ends with a call insn.
4324 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
4325 call insn and clear the EDGE_CROSSING flag of the crossing edge
4326 when fixing fallthru edges.
4328 2008-02-27 Richard Guenther <rguenther@suse.de>
4331 * fold-const.c (fold_unary): Return the correct argument,
4332 converted to the result type.
4334 2008-02-27 Richard Guenther <rguenther@suse.de>
4337 * expr.c (expand_expr_real_1): Assert on rotates that operate
4339 * fold-const.c (fold_binary): Use the types precision, not the
4340 bitsize of the mode if folding rotate expressions. Build rotates
4341 only for full modes.
4343 2008-02-27 Jakub Jelinek <jakub@redhat.com>
4345 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
4347 * c-pragma.c (pragma_ns_name): New typedef.
4348 (registered_pp_pragmas): New variable.
4349 (c_pp_lookup_pragma): New function.
4350 (c_register_pragma_1): If flag_preprocess_only, do nothing
4351 for non-expanded pragmas, for expanded ones push pragma's
4352 namespace and name into registered_pp_pragmas vector.
4353 (c_invoke_pragma_handler): Register OpenMP pragmas even when
4354 flag_preprocess_only, don't register GCC pch_preprocess
4355 pragma if flag_preprocess_only.
4356 * c-opts.c (c_common_init): Call init_pragma even if
4357 flag_preprocess_only.
4358 * c-pragma.c (c_pp_lookup_pragma): New prototype.
4359 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
4360 cpp_register_pragma if flag_preprocess_only.
4362 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4365 * c-parser.c (c_parser_translation_unit): Warn for empty
4366 translation unit, not empty source file.
4368 2008-02-26 Paul Brook <paul@codesourcery.com>
4370 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
4371 operand for Thumb-2.
4372 * config/arm/arm.h (reg_class): Add CORE_REGS.
4373 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
4374 (BASE_REG_CLASS): Use CORE_REGS.
4375 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
4376 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
4377 (REGNO_OK_FOR_INDEX_P): Exclude SP.
4378 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
4379 ARM_REGNO_OK_FOR_INDEX_P.
4380 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
4381 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
4382 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
4383 (ldm/stm peepholes): Ditto.
4384 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
4385 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
4386 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
4387 * config/arm/constraints.md: Enable "k" constraint on ARM.
4389 2008-02-27 Ben Elliston <bje@au.ibm.com>
4391 * config/rs6000/rs6000.c: Annotate cache line size field in all
4392 instances of struct processor_costs.
4394 2008-02-26 David Edelsohn <edelsohn@gnu.org>
4396 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
4397 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
4398 jump_bypass): New counters.
4399 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
4400 * dce.c (gate_ud_dce): Same.
4401 (gate_fast_dce): Same.
4402 * dse.c (gate_dse1): New function.
4403 (gate_dse2): New function.
4404 (gate_dse): Merge results of new gate functions.
4405 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
4406 (gate_handle_jump_bypass): Add dbg_cnt.
4407 (gate_handle_gcse): Add dbg_cnt.
4408 * ifcvt.c (gate_handle_if_conversion): Same.
4409 (gate_handle_if_after_combine): Same.
4410 (gate_handle_if_after_reload): Same.
4411 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
4413 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
4415 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
4417 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
4419 2008-02-26 Jason Merrill <jason@redhat.com>
4422 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
4423 alone if it's the naming decl for the type's main variant.
4425 2008-02-26 Tom Tromey <tromey@redhat.com>
4427 * system.h (USE_MAPPED_LOCATION): Poison.
4428 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
4429 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
4430 (make_goto_expr_edges): Likewise.
4431 (remove_bb): Likewise.
4432 (execute_warn_function_return): Likewise.
4433 * basic-block.h (struct edge_def) <goto_locus>: Change type to
4435 * c-common.c (fname_decl): Remove old location code.
4436 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
4438 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
4440 (ASM_INPUT_SOURCE_LOCATION): Likewise.
4441 (gen_rtx_ASM_INPUT): Likewise.
4442 (gen_rtx_ASM_INPUT_loc): Likewise.
4443 (get_rtx_asm_OPERANDS): Remove.
4444 * cfglayout.c (insn_locators_alloc): Remove old location code.
4445 (set_curr_insn_source_location): Likewise.
4446 (curr_insn_locator): Likewise.
4447 * print-tree.c (print_node): Remove old location code.
4448 * tree-mudflap.c (mf_varname_tree): Remove old location code.
4449 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
4450 * cfgexpand.c (expand_gimple_cond_expr): Don't use
4451 location_from_locus.
4452 (construct_exit_block): Remove old location code.
4453 * emit-rtl.c (force_next_line_note): Remove old location code.
4454 * profile.c (branch_prob): Remove old location code.
4455 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4456 LOC_LINE): Remove old-location variants.
4457 * langhooks.c (lhd_print_error_function): Remove old location
4459 * configure, config.in: Rebuilt.
4460 * configure.ac (--enable-mapped-location): Remove.
4461 * c-decl.c (c_init_decl_processing): Remove old location code.
4462 (finish_function): Likewise.
4463 * recog.c (decode_asm_operands): Remove old location code.
4464 * c-pch.c (c_common_read_pch): Remove old location code.
4465 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
4467 * gimple-low.c (lower_function_body): Remove old location code.
4468 * toplev.c (unknown_location): Remove.
4469 (push_srcloc): Remove old-location variant.
4470 (process_options): Remove old location code.
4471 (lang_dependent_init): Likewise.
4472 * input.h (UNKNOWN_LOCATION): Move definition.
4473 (location_t): Undeprecate.
4474 (source_locus): Remove.
4475 (location_from_locus): Remove.
4476 (struct location_s): Remove.
4477 Remove all old-location code.
4478 (input_line, input_filename): Remove.
4479 * final.c (final_scan_insn): Remove old location code.
4480 * diagnostic.c (diagnostic_build_prefix): Remove
4481 USE_MAPPED_LOCATION test.
4482 * tree.h (gimple_stmt) <locus>: Now a location_t.
4483 (tree_exp) <locus>: Likewise.
4484 (DECL_IS_BUILTIN): Remove old-location variant.
4485 (annotate_with_file_line, annotate_with_locus): Likewise.
4486 (expr_locus, set_expr_locus): Update.
4487 * tree.c (build1_stat): Remove old location code.
4488 (last_annotated_node): Remove.
4489 (annotate_with_file_line): Remove old-location variant.
4490 (annotate_with_locus): Likewise.
4491 (expr_location): Remove old location code.
4492 (set_expr_location): Likewise.
4493 (expr_has_location): Likewise.
4494 (expr_locus): Likewise.
4495 (set_expr_locus): Likewise.
4496 (expr_filename): Don't use location_from_locus.
4497 (expr_lineno): Likewise.
4498 * rtl-error.c (location_for_asm): Remove old location code.
4499 * c-lex.c (cb_line_change): Remove old location code.
4500 (fe_file_change): Likewise.
4501 (cb_def_pragma): Likewise.
4502 (c_lex_with_flags): Likewise.
4503 * gengtype.c (do_typedef): Don't special-case location types.
4504 (define_location_structures): Remove.
4505 (main): Don't call define_location_structures.
4506 * tree-pretty-print.c (dump_implicit_edges): Remove old location
4509 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4512 * builtins.def (BUILT_IN_STDARG_START): Remove.
4513 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
4514 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4515 * tree-inline.c (inline_forbidden_p_1): Likewise.
4517 2008-02-26 Richard Guenther <rguenther@suse.de>
4519 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4520 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4521 (lookup_decl_from_uid): Declare.
4522 (remove_decl_from_map): Likewise.
4523 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4524 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4525 (decl_for_uid_map): New global hashtable mapping DECL_UID
4527 (init_ttree): Allocate it.
4528 (insert_decl_to_uid_decl_map): New helper function.
4529 (make_node_stat): Insert new decls into the map.
4530 (copy_node_stat): Likewise.
4531 (lookup_decl_from_uid): New function.
4532 (remove_decl_from_map): Likewise.
4533 (print_decl_for_uid_map_statistics): New helper.
4534 (dump_tree_statistics): Call it.
4536 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4537 (referenced_var_iterator): Adjust.
4538 (FOR_EACH_REFERENCED_VAR): Adjust.
4539 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4540 (num_referenced_vars): Adjust.
4541 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4542 (first_referenced_var): Remove.
4543 (end_referenced_vars_p): Likewise.
4544 (next_referenced_var): Likewise.
4545 (referenced_var_iterator_set): New helper function.
4546 * tree-dfa.c (referenced_var_lookup): Adjust.
4547 (referenced_var_check_and_insert): Likewise.
4548 (remove_referenced_var): Likewise.
4549 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4550 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4551 (verify_call_clobbering): Likewise.
4552 (verify_memory_partitions): Likewise.
4553 (init_tree_ssa): Allocate bitmap instead of hashtable for
4555 (delete_tree_ssa): Adjust.
4556 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4557 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4558 (compute_tag_properties): Likewise.
4559 (set_initial_properties): Likewise.
4560 (find_partition_for): Likewise.
4561 (update_reference_counts): Likewise.
4562 (dump_may_aliases_for): Likewise.
4563 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4564 (add_call_clobber_ops): Likewise.
4565 (add_call_read_ops): Likewise.
4566 (get_asm_expr_operands): Likewise.
4567 * tree-into-ssa.c (dump_decl_set): Likewise.
4568 (update_ssa): Likewise.
4569 * tree-sra.c (scan_function): Likewise.
4570 (decide_instantiations): Likewise.
4571 (scalarize_parms): Likewise.
4572 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4573 (dsa_named_for): Likewise.
4574 * tree-ssa-structalias.c (update_alias_info): Likewise.
4575 (merge_smts_into): Likewise.
4577 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4580 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
4581 * c-opts.c (c_common_handle_option): Wall enables
4582 Wvolatile-register-var.
4583 * common.opt: Move Wvolatile-register-var to...
4586 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4588 * common.opt (Wlarger-than=): New.
4589 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
4591 * opts.c (common_handle_option): Handle -Wlarger-than=.
4592 * optc-gen.awk: Likewise.
4593 * opth-gen.awk: Likewise.
4594 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
4595 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4597 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4599 * c-common.c (match_case_to_enum_1): Add appropriate
4600 OPT_W* parameter to warning.
4601 (c_do_switch_warnings): Likewise.
4602 * c-typeck.c (warning_init): Add one more parameter following
4604 (push_init_level): Update call to warning_init.
4605 (pop_init_level): Likewise.
4606 (add_pending_init): Likewise.
4607 (output_init_element: Likewise.
4609 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4612 * toplev.c (toplev_main): If there are warnings or error, print
4613 errors for ignored options.
4614 * opts.c (ignored_options): New static variable.
4615 (postpone_unknown_option_error): New.
4616 (print_ignored_options): New.
4617 (handle_option): Postpone errors for unknown -Wno-* options.
4618 * opts.h (print_ignored_options): Declare.
4620 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
4622 * config/mips/mips.md (loadgp_blockage, blockage): Change type
4625 2008-02-25 Richard Guenther <rguenther@suse.de>
4628 2008-02-25 Richard Guenther <rguenther@suse.de>
4630 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4631 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4632 (lookup_decl_from_uid): Declare.
4633 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4634 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4635 (decl_for_uid_map): New global hashtable mapping DECL_UID
4637 (init_ttree): Allocate it.
4638 (insert_decl_to_uid_decl_map): New helper function.
4639 (make_node_stat): Insert new decls into the map.
4640 (copy_node_stat): Likewise.
4641 (lookup_decl_from_uid): New function.
4642 (print_decl_for_uid_map_statistics): New helper.
4643 (dump_tree_statistics): Call it.
4645 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4646 (referenced_var_iterator): Adjust.
4647 (FOR_EACH_REFERENCED_VAR): Adjust.
4648 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4649 (num_referenced_vars): Adjust.
4650 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4651 (first_referenced_var): Remove.
4652 (end_referenced_vars_p): Likewise.
4653 (next_referenced_var): Likewise.
4654 (referenced_var_iterator_set): New helper function.
4655 * tree-dfa.c (referenced_var_lookup): Adjust.
4656 (referenced_var_check_and_insert): Likewise.
4657 (remove_referenced_var): Likewise.
4658 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4659 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4660 (verify_call_clobbering): Likewise.
4661 (verify_memory_partitions): Likewise.
4662 (init_tree_ssa): Allocate bitmap instead of hashtable for
4664 (delete_tree_ssa): Adjust.
4665 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4666 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4667 (compute_tag_properties): Likewise.
4668 (set_initial_properties): Likewise.
4669 (find_partition_for): Likewise.
4670 (update_reference_counts): Likewise.
4671 (dump_may_aliases_for): Likewise.
4672 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4673 (add_call_clobber_ops): Likewise.
4674 (add_call_read_ops): Likewise.
4675 (get_asm_expr_operands): Likewise.
4676 * tree-into-ssa.c (dump_decl_set): Likewise.
4677 (update_ssa): Likewise.
4678 * tree-sra.c (scan_function): Likewise.
4679 (decide_instantiations): Likewise.
4680 (scalarize_parms): Likewise.
4681 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4682 (dsa_named_for): Likewise.
4683 * tree-ssa-structalias.c (update_alias_info): Likewise.
4684 (merge_smts_into): Likewise.
4686 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
4689 * doc/invoke.texi (-fcx-limited-range): Document new option.
4690 * toplev.c (process_options): Handle -fcx-fortran-rules.
4691 * common.opt: Add documentation for -fcx-fortran-rules.
4693 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
4696 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
4697 actual behaviour and C99.
4699 2008-02-26 Ben Elliston <bje@au.ibm.com>
4701 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
4702 (ASM_CPU_POWER6_SPEC): Likewise.
4703 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
4704 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
4705 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
4707 2008-02-25 Richard Guenther <rguenther@suse.de>
4709 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4710 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4711 (lookup_decl_from_uid): Declare.
4712 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4713 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4714 (decl_for_uid_map): New global hashtable mapping DECL_UID
4716 (init_ttree): Allocate it.
4717 (insert_decl_to_uid_decl_map): New helper function.
4718 (make_node_stat): Insert new decls into the map.
4719 (copy_node_stat): Likewise.
4720 (lookup_decl_from_uid): New function.
4721 (print_decl_for_uid_map_statistics): New helper.
4722 (dump_tree_statistics): Call it.
4724 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4725 (referenced_var_iterator): Adjust.
4726 (FOR_EACH_REFERENCED_VAR): Adjust.
4727 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4728 (num_referenced_vars): Adjust.
4729 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4730 (first_referenced_var): Remove.
4731 (end_referenced_vars_p): Likewise.
4732 (next_referenced_var): Likewise.
4733 (referenced_var_iterator_set): New helper function.
4734 * tree-dfa.c (referenced_var_lookup): Adjust.
4735 (referenced_var_check_and_insert): Likewise.
4736 (remove_referenced_var): Likewise.
4737 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4738 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4739 (verify_call_clobbering): Likewise.
4740 (verify_memory_partitions): Likewise.
4741 (init_tree_ssa): Allocate bitmap instead of hashtable for
4743 (delete_tree_ssa): Adjust.
4744 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4745 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4746 (compute_tag_properties): Likewise.
4747 (set_initial_properties): Likewise.
4748 (find_partition_for): Likewise.
4749 (update_reference_counts): Likewise.
4750 (dump_may_aliases_for): Likewise.
4751 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4752 (add_call_clobber_ops): Likewise.
4753 (add_call_read_ops): Likewise.
4754 (get_asm_expr_operands): Likewise.
4755 * tree-into-ssa.c (dump_decl_set): Likewise.
4756 (update_ssa): Likewise.
4757 * tree-sra.c (scan_function): Likewise.
4758 (decide_instantiations): Likewise.
4759 (scalarize_parms): Likewise.
4760 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4761 (dsa_named_for): Likewise.
4762 * tree-ssa-structalias.c (update_alias_info): Likewise.
4763 (merge_smts_into): Likewise.
4765 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
4768 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
4769 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
4770 * alias.h (nonoverlapping_memrefs_p): Likewise.
4772 2008-02-25 Jan Beulich <jbeulich@novell.com>
4774 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
4775 * config/i386/netware-libgcc.exp: Add __bswap?i2,
4776 __emultls_get_address, __emultls_register_common,
4777 __floatundi?f, and _Unwind_GetIPInfo.
4778 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
4779 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
4780 (gen_regparm_prefix): Likewise.
4781 (i386_nlm_encode_section_info): Sync with
4782 config/i386/winnt.c:i386_pe_encode_section_info().
4783 (i386_nlm_maybe_mangle_decl_assembler_name): New.
4784 i386_nlm_mangle_decl_assembler_name): New.
4785 (netware_override_options): New.
4786 * config/i386/netware.h (netware_override_options): Declare.
4787 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
4788 (i386_nlm_mangle_decl_assembler_name): Declare.
4789 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
4791 2008-02-25 Ben Elliston <bje@au.ibm.com>
4794 * c-decl.c (grokdeclarator): Remove unused local variables
4795 `typedef_type' and `type_as_written'.
4797 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
4798 unused local variable `has_hot_blocks'.
4799 (fix_crossing_conditional_branches): Remove unused local variable
4802 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
4805 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
4806 using DEF_C99_BUILTIN.
4807 (BUILT_IN_NANF): Ditto.
4808 (BUILT_IN_NANL): Ditto.
4810 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
4811 Revital Eres <eres@il.ibm.com>
4813 * modulo-sched.c (calculate_must_precede_follow): Address TODO
4814 regarding the order of two dependent insns in the same row.
4816 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
4818 * stor-layout.c (layout_decl): Do not bump the alignment of a
4819 bit-field to more than byte alignment if it is packed.
4821 2008-02-24 David Edelsohn <edelsohn@gnu.org>
4823 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
4826 2008-02-24 Diego Novillo <dnovillo@google.com>
4828 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
4831 * tree-vrp.c (vrp_evaluate_conditional): With
4832 -Wtype-limits, emit a warning when comparing against a
4833 constant outside the natural range of OP0's type.
4834 * c.opt (Wtype-limits): Move ...
4835 * common.opt (Wtype-limits): ... here.
4837 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
4839 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
4840 * config/rs6000/e300c2c3.md: New file.
4841 * config/rs6000/rs6000.c (processor_costs): Add new costs for
4843 (rs6000_override_options): Add e300c2 and e300c3 cases to
4844 processor_target_table. Do not allow usage of Altivec or Spe
4845 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
4846 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
4847 * config/rs6000/rs6000.h (processor_type): Add
4848 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
4849 (ASM_CPU_SPEC): Add e300c2 and e300c3.
4850 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
4851 and ppce300c3. Include e300c2c3.md.
4853 2008-02-23 David Edelsohn <edelsohn@gnu.org>
4855 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
4856 instead of TARGET_STRICT_ALIGN.
4858 2008-02-23 Joseph Myers <joseph@codesourcery.com>
4860 * explow.c (memory_address): Assert that the generated address is
4863 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4866 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
4867 * config/darwin-ppc-ldouble-patch.def: New file.
4868 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
4869 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
4870 SUBTARGET_INIT_BUILTINS if defined.
4871 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
4874 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
4877 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
4878 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
4880 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
4883 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
4884 file" warning condtional on -Winvalid-PCH.
4886 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
4888 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
4890 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
4894 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
4895 prevent reload from using MMX registers.
4896 (*mov<mode>_internal): Ditto.
4897 (*movv2sf_internal_rex64): Ditto.
4898 (*movv2sf_internal): Ditto.
4900 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4902 PR documentation/31569
4903 * doc/install.texi2html: Use makeinfo --no-number-sections.
4905 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4907 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
4908 ensure that we can address an entire entity > 8 bytes. Don't
4909 generate reg+reg addressing for such data.
4911 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4913 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
4914 strings when optimizing for size, unless the target cares about
4917 2008-02-22 Tom Tromey <tromey@redhat.com>
4919 * regclass.c (current_pass): Remove declaration.
4921 2008-02-22 Anatoly Sokolov <aesok@post.ru>
4923 * config/avr/libgcc.S (__RAMPZ__): Define.
4924 (__do_copy_data): Add for devices with 128KB code memory.
4926 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
4928 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4930 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4932 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
4934 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
4937 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4940 * c-typeck.c (build_binary_op): Warn about floating point
4941 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
4943 2008-02-21 Janis Johnson <janis187@us.ibm.com>
4946 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
4947 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
4949 (rs6000_override_options): Set altivec_abi as default, not override,
4950 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
4951 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
4952 is used; use new member spe_abi.
4953 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
4954 spe_abi and altivec_abi.
4956 2008-02-22 Tomas Bily <tbily@suse.cz>
4958 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
4960 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4963 * config.build (build_file_translate): Set to `CMD //c' only if
4965 * Makefile.in (build_file_translate): Improve comment.
4967 2008-02-21 Jan Hubicka <jh@suse.cz>
4969 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
4970 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
4971 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
4973 2008-02-21 Michael Matz <matz@suse.de>
4976 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
4978 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
4980 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
4981 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
4983 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
4984 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
4985 SSE_VEC_FLOAT_MODE_P as insn constraint.
4986 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
4987 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
4988 sse4a_movntdf using MODEF mode iterator.
4989 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
4990 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
4991 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
4992 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
4993 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
4994 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
4995 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
4997 2008-02-21 Richard Guenther <rguenther@suse.de>
4999 * tree.def (PAREN_EXPR): New tree code.
5000 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
5002 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
5003 * expr.c (expand_expr_real_1): Likewise.
5004 * tree-inline.c (estimate_num_insns_1): Likewise.
5005 * tree-complex.c (expand_complex_move): Likewise.
5006 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
5009 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
5012 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
5014 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
5017 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
5019 * config/sh/sh.c (find_barrier): Don't go past
5020 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
5022 2008-02-20 DJ Delorie <dj@redhat.com>
5024 * config/h8300/h8300.md (insv): Force source operand to be a register.
5026 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
5027 as a jump, not as a plain insn.
5029 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
5031 * doc/invoke.texi (Warning Options): Add new option
5032 -Wframe-larger-than=.
5033 (-Wframe-larger-than): Document.
5035 * flags.h (warn_frame_larger_than, frame_larger_than_size):
5036 Add declarations for new option variables.
5038 * final.c (final_start_function): Check the frame size
5039 before emission and issue a Wframe-larger-than warning.
5041 * opts.c (warn_frame_larger_than, frame_larger_than_size):
5042 Add definitions for new option variables.
5043 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
5045 * common.opt (Wframe-larger-than=): New option.
5047 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
5049 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
5050 (<sse>_div<mode>3): Ditto.
5051 (<sse>_vmdiv<mode>3): Ditto.
5052 (<sse>_vmsqrt<mode>2): Ditto.
5053 (*smax<mode>3): Ditto.
5054 (sse5_frcz<mode>2): Ditto.
5055 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
5058 2008-02-20 Richard Guenther <rguenther@suse.de>
5061 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
5062 be happy with INTEGRAL_TYPE_P.
5064 2008-02-20 Richard Guenther <rguenther@suse.de>
5066 * fold-const.c (split_tree): Associate floatig-point expressions
5067 if flag_associative_math is set.
5069 2008-02-20 Richard Guenther <rguenther@suse.de>
5071 * tree.h (fold_real_zero_addition_p): Declare.
5072 * fold-const.c (fold_real_zero_addition_p): Export.
5073 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
5074 floating-point operations with zero and one.
5076 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
5078 * doc/install.texi: Correct references to CFLAGS, replacing them
5079 with BOOT_CFLAGS. Document flags used during bootstrap for
5082 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
5084 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
5085 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
5086 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
5088 (smin<mode>3): Ditto from similar patterns.
5089 (smax<mode>3): Ditto.
5090 (*ieee_smin<mode>3): Ditto.
5091 (*ieee_smax<mode>3): Ditto.
5092 * config/i386/sse.md (sse): New mode attribute.
5093 (mov<mode>): Macroize expander from movv4sf and movv2df using
5094 SSEMODEF2P mode iterator.
5095 (<sse>_movnt<mode>): Ditto from similar patterns. Use
5096 SSE_VEC_FLOAT_MODE_P as insn constraint.
5097 (storent<mode>): Ditto.
5098 (storent<mode>): Macroize expander from storentsf and storentdf using
5099 MODEF mode iterator.
5100 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
5101 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
5102 (abs<mode>2): Ditto from similar patterns.
5103 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
5104 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
5105 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
5106 (<sse>_vmsqrt<mode>2): Ditto.
5107 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
5108 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
5109 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
5110 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
5111 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
5112 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
5113 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
5115 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
5116 iterator and SSE_FLOAT_MODE_P as insn constraint.
5117 (<sse>_ucomi): Ditto from similar patterns.
5118 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
5119 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
5120 SSE_VEC_FLOAT_MODE_P as insn constraint.
5121 (vcond<mode>): Ditto from similar patterns.
5122 (and<mode>3, *and<mode>3): Ditto.
5123 (<sse>_nand<mode>3): Ditto.
5124 (ior<mode>3, *ior<mode>3): Ditto.
5125 (xor<mode>3, *xor<mode>3): Ditto.
5126 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
5127 iterator and SSE_FLOAT_MODE_P as insn constraint.
5128 (*nand<mode>3): Ditto from similar patterns.
5129 (*ior<mode>3): Ditto.
5130 (*xor<mode>3): Ditto.
5132 2008-02-20 Ira Rosen <irar@il.ibm.com>
5134 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
5135 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
5136 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
5138 2008-02-19 Jan Hubicka <jh@suse.cz>
5140 * predict.c (tree_bb_level_predictions): Remove variable next
5141 mistakely introduced by previous commit.
5143 2008-02-19 Jan Hubicka <jh@suse.cz>
5145 * predict.c (predict_paths_leading_to): Rewrite.
5146 (predict_paths_for_bb): New.
5147 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
5149 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5152 * Makefile.in (build_file_translate): New.
5153 (gcc-vers.texi): Use it for translating $(abs_srcdir).
5154 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
5155 * configure.ac (build_file_translate): Substitute it.
5156 * configure: Regenerate.
5158 2008-02-19 Jan Hubicka <jh@suse.cz>
5160 PR rtl-optimization/34408
5161 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
5164 2008-02-19 Jan Hubicka <jh@suse.cz>
5167 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
5170 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
5173 * config/i386/i386-modes.def: Revert the last DI alignment
5174 change until Ada people can look into it.
5176 2008-02-19 Nick Clifton <nickc@redhat.com>
5178 * opts.c (print_specific_help): Fix typo in --help text.
5180 2008-02-19 Jakub Jelinek <jakub@redhat.com>
5183 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
5184 32-bit inline asm without asm alternatives for host GCC < 3.0.
5186 2008-02-19 Richard Guenther <rguenther@suse.de>
5188 PR tree-optimization/34989
5189 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
5190 Allow propagation to INDIRECT_REF if we can simplify only.
5192 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5194 * c-common.c (warn_for_collisions_1): Use appropriate option when
5197 2008-02-19 Nick Clifton <nickc@redhat.com>
5200 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
5201 (handle_options): Fix indentation.
5202 (print_filtered_help): If no language-specific options were
5203 displayed tell the user how to list all the options supported by
5204 the language's front-end.
5205 (print_specific_help): Fix indentation and remove duplicate line.
5206 (common_handle_option): Handle the -v option.
5207 For --help enable the display of undocumented options if the -v
5208 switch has been included on the command line.
5209 For --help= check for overlaps in the arguments between the option
5210 classes and the language names and issue a warning when they
5211 cannot be disambiguated.
5212 * c.opt (v): Pass on to the common option handler.
5214 2008-02-19 Revital Eres <eres@il.ibm.com>
5216 * modulo-sched.c (sms_schedule): Change dump message when
5217 create_ddg function fails.
5218 (try_scheduling_node_in_cycle): Rename row to cycle.
5219 (print_partial_schedule): Rename CYCLE to ROW.
5221 2008-02-19 Christian Bruel <christian.bruel@st.com>
5222 Zdenek Dvorak <ook@ucw.cz>
5224 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
5226 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
5229 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
5230 (*x86_movdicc_0_m1_se): Ditto.
5232 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
5234 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
5235 (CMPtype): Define as __gcc_CMPtype.
5236 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
5237 (CMPtype): Define as __gcc_CMPtype.
5239 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
5241 Support valgrind 3.3 for --enable-checking=valgrind.
5242 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
5244 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
5245 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
5246 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
5247 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
5248 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
5249 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
5250 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
5252 * ggc-zone.c: Similar.
5253 * ggc-page.c: Similar.
5255 2008-02-19 Paul Brook <paul@codesourcery.com>
5258 * config/arm/ieee754-df.S: Fix do_it typo.
5259 * config/arm/ieee754-sf.S: Fix do_it typo.
5261 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
5264 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
5265 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
5266 (OPTION_MASK_ISA_SSE_SET): Likewise.
5267 (OPTION_MASK_ISA_SSE2_SET): Likewise.
5268 (OPTION_MASK_ISA_SSE3_SET): Likewise.
5269 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
5270 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
5271 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
5272 (OPTION_MASK_ISA_SSE4_SET): Likewise.
5273 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
5274 (OPTION_MASK_ISA_SSE5_SET): Likewise.
5275 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
5276 (OPTION_MASK_ISA_MMX_UNSET): Updated.
5277 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
5278 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
5279 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
5280 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
5281 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
5282 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
5283 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
5284 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
5285 (OPTION_MASK_ISA_SSE4): Removed.
5286 (ix86_handle_option): Turn on bits in ix86_isa_flags and
5287 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
5288 (override_options): Don't turn on implied SSE/MMX bits in
5291 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
5293 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
5296 2008-02-18 Joey Ye <joey.ye@intel.com>
5299 * tree-nested.c (insert_field_into_struct): Set type alignment
5300 to field alignment if the former is less than the latter.
5302 2008-02-18 Jakub Jelinek <jakub@redhat.com>
5304 * BASE-VER: Set to 4.4.0.
5306 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5308 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
5309 * doc/cfg.texi: Likewise.
5310 * doc/extend.texi: Likewise.
5311 * doc/gty.texi: Likewise.
5312 * doc/invoke.texi: Likewise.
5313 * doc/loop.texi: Likewise.
5314 * doc/md.texi: Likewise.
5315 * doc/passes.texi: Likewise.
5316 * doc/rtl.texi: Likewise.
5317 * doc/sourcebuild.texi: Likewise.
5318 * doc/tm.texi: Likewise.
5319 * doc/tree-ssa.texi: Likewise.
5321 2008-02-17 Richard Guenther <rguenther@suse.de>
5324 * tree-complex.c (init_parameter_lattice_values): Handle parameters
5325 without default definition.
5327 2008-02-17 Richard Guenther <rguenther@suse.de>
5329 PR tree-optimization/35231
5330 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
5333 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
5336 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5337 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5338 libgcc_cmp_return mode.
5340 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5343 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
5345 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
5347 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
5350 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5352 * doc/c-tree.texi: Use `@.' where appropriate.
5353 * doc/extend.texi: Likewise.
5354 * doc/install.texi: Likewise.
5355 * doc/invoke.texi: Likewise.
5356 * doc/loop.texi: Likewise.
5357 * doc/makefile.texi: Likewise.
5358 * doc/md.texi: Likewise.
5359 * doc/passes.texi: Likewise.
5360 * doc/standards.texi: Likewise.
5361 * doc/tm.texi: Likewise.
5363 2008-02-15 Jakub Jelinek <jakub@redhat.com>
5366 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
5368 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
5369 rather than in entry_bb.
5371 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5373 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5374 libgcc_cmp_return mode.
5376 2008-02-15 Jakub Jelinek <jakub@redhat.com>
5379 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
5380 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
5382 2008-02-15 Richard Guenther <rguenther@suse.de>
5383 Zdenek Dvorak <ook@ucw.cz>
5385 PR tree-optimization/35164
5386 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
5387 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
5388 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5389 Only propagate addresses which do not have abnormal SSA_NAMEs
5392 2008-02-15 Joseph Myers <joseph@codesourcery.com>
5395 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
5397 2008-02-15 Jan Hubicka <jh@suse.cz>
5400 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
5402 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5405 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
5406 when calculating alignment_pad.
5408 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5410 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
5411 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
5412 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
5413 and STACK_BOUNDARY define.
5415 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
5417 PR preprocessor/35061
5418 * c-pragma.c (handle_pragma_pop_macro): Check that
5419 pushed_macro_table has been allocated.
5421 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
5424 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
5425 (force_gimple_operand): Likewise.
5426 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
5427 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
5428 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
5429 (find_interesting_uses_address): Check addressability and alignment
5430 of the base expression only after substituting bases of IVs into it.
5432 2008-02-14 Michael Matz <matz@suse.de>
5435 * function.c (instantiate_virtual_regs_in_insn): Reload address
5436 before falling back to reloading the whole operand.
5438 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
5440 * config/s390/s390.c (s390_mainpool_start): Emit the pool
5441 before the first section switch note.
5443 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5445 * doc/bugreport.texi: Update copyright years.
5446 * doc/c-tree.texi: Likewise.
5447 * doc/cfg.texi: Likewise.
5448 * doc/cpp.texi: Likewise.
5449 * doc/cppinternals.texi: Likewise.
5450 * doc/fragments.texi: Likewise.
5451 * doc/frontends.texi: Likewise.
5452 * doc/gcc.texi: Likewise.
5453 * doc/gty.texi: Likewise.
5454 * doc/hostconfig.texi: Likewise.
5455 * doc/implement-c.texi: Likewise.
5456 * doc/libgcc.texi: Likewise.
5457 * doc/loop.texi: Likewise.
5458 * doc/makefile.texi: Likewise.
5459 * doc/options.texi: Likewise.
5460 * doc/passes.texi: Likewise.
5461 * doc/rtl.texi: Likewise.
5462 * doc/sourcebuild.texi: Likewise.
5463 * doc/standards.texi: Likewise.
5464 * doc/tree-ssa.texi: Likewise.
5465 * doc/trouble.texi: Likewise.
5467 * doc/extend.texi: Use @: or add comma where appropriate.
5468 * doc/invoke.texi: Likewise.
5469 * doc/tm.texi: Likewise.
5471 2008-02-14 Alan Modra <amodra@bigpond.net.au>
5474 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
5477 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
5479 * doc/md.texi (clz, ctz): Add reference.
5480 * doc/rtl.texi (clz, ctz): Likewise.
5482 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5485 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
5488 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
5490 * config/s390/s390.c (struct constant_pool): New field
5491 emit_pool_after added.
5492 (s390_mainpool_start): Set the emit_pool_after flag according
5493 to the section switch notes.
5494 (s390_mainpool_finish): Consider emit_pool_after when emitting
5495 the literal pool at the end of the function.
5496 (s390_chunkify_start): Force literal pool splits at section
5499 2008-02-13 Michael Matz <matz@suse.de>
5502 * var-tracking.c (clobber_variable_part): Correctly traverse the
5505 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5508 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
5509 Add -fdump-ipa-inline.
5510 * tree-dump.c (dump_files): Remove tree-inlined dump.
5511 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
5513 2008-02-12 Richard Guenther <rguenther@suse.de>
5515 PR tree-optimization/35171
5516 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
5519 2008-02-12 Richard Guenther <rguenther@suse.de>
5522 * fold-const.c (fold_widened_comparison): Use get_unwidened in
5523 value-preserving mode. Disallow final truncation.
5525 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
5528 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
5529 code from here to...
5530 (force_gimple_operand): ...here.
5532 2008-02-12 Jakub Jelinek <jakub@redhat.com>
5535 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
5536 non-compatible pointers.
5537 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
5538 different FIELD_DECLs, try harder by comparing field offsets, sizes
5542 * function.c (match_asm_constraints_1): Don't replace the same input
5545 2008-02-12 Anatoly Sokolov <aesok@post.ru>
5547 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
5548 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
5549 (expand_epilogue): Restore RAMPZ register.
5550 * config/avr/avr.md (RAMPZ_ADDR): New constant.
5552 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
5554 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
5556 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
5558 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
5559 rather than OS names to choose INO_T_EQ definition.
5560 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
5561 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name
5564 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
5567 * config/darwin-f.c: New.
5568 * config/t-darwin: Added rule to build darwin-f.o.
5569 * config.gcc: Defined new variable, fortran_target_objs.
5570 (*-*-darwin*): Set fortran_target_objs.
5571 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
5572 * configure.ac: Substitute fortran_target_objs, set
5573 FORTRAN_TARGET_OBJS.
5574 * configure: Regenerated.
5576 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
5579 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
5580 canonical type if needed.
5582 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
5584 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
5586 2008-05-29 Richard Guenther <rguenther@suse.de>
5588 PR tree-optimization/36343
5589 PR tree-optimization/36346
5590 PR tree-optimization/36347
5591 * tree-flow.h (clobber_what_p_points_to): Declare.
5592 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
5593 pointed-to variable is dereferenced is irrelevant to whether
5594 the pointer can access the pointed-to variable.
5595 (clobber_what_p_points_to): New function.
5596 * tree-ssa-alias.c (set_initial_properties): Use it.
5597 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
5598 call clobber check for NMTs.
5600 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5602 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
5603 for printing gcov_type.
5605 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5607 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
5608 and the eh region information.
5609 * value-prof.c (gimple_move_stmt_histograms): New function.
5610 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
5612 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
5614 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
5616 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5618 * value-prof.c (tree_ic_transform): Print counts.
5619 * tree-profile.c (tree_gen_ic_func_profiler):
5620 Clear __gcov_indreict_call_callee variable
5621 to avoid misattribution of the profile.
5623 2008-05-28 Rafael Espindola <espindola@google.com>
5625 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
5628 2008-05-28 Richard Guenther <rguenther@suse.de>
5630 PR tree-optimization/36339
5631 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
5632 and clobbering code out of the loop.
5634 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
5636 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
5639 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
5640 s390_contiguous_bitmask_p, s390_symref_operand_p,
5641 s390_check_symref_alignment, s390_reload_larl_operand,
5642 s390_reload_symref_address): New functions.
5643 (s390_branch_condition_mnemonic): Support compare and branch
5645 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
5646 and 'W' constraints.
5647 (s390_secondary_reload): Add secondary reloads for unaligned
5648 symbol refs or symbol refs to floating point or QI/TI mode
5650 (legitimate_address_p): Accept symbol references as addresses.
5651 (s390_expand_insv): Use rotate and insert selected bits
5652 instruction for insv when building for z10.
5653 (print_operand_address): Handle symbol ref addresses.
5654 (print_operand): Output modifier 'c' added for signed byte
5656 (s390_encode_section_info): Mark symbol refs with
5657 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
5659 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
5660 (length attribute): RRF, RRR have 4 byte length.
5661 (FPALL, INTALL): New mode iterators added.
5662 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
5663 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
5664 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
5665 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
5666 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
5667 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
5668 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
5669 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
5671 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
5672 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
5673 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
5674 reload<INTALL:mode><P:mode>_toreg_z10,
5675 reload<FPALL:mode><P:mode>_tomem_z10,
5676 reload<FPALL:mode><P:mode>_toreg_z10,
5677 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
5678 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
5679 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
5680 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
5682 (movmem, clrmem, cmpmem): New splitters added.
5684 * config/s390/predicates.md (larl_operand): Use
5685 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
5686 SYMBOL_REF_ALIGN1_P.
5687 (s390_signed_integer_comparison,
5688 s390_unsigned_integer_comparison): New predicates.
5690 * config/s390/s390-protos.h (s390_check_symref_alignment,
5691 s390_contiguous_bitmask_p, s390_reload_larl_operand,
5692 s390_reload_symref_address,
5693 s390_compare_and_branch_condition_mask): Prototypes added.
5695 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
5696 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
5697 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
5699 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
5701 * config/s390/s390.c (z10_cost): New cost function for z10.
5702 (s390_handle_arch_option, override_options): Support
5704 (s390_issue_rate): Adjust issue rate for z10.
5705 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
5706 (processor_flags): Add PF_Z10.
5707 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
5708 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
5709 * gcc/config.gcc: Add z10.
5711 2008-05-28 Richard Guenther <rguenther@suse.de>
5713 PR tree-optimization/36291
5714 * tree-flow. h (struct gimple_df): Remove var_anns member.
5715 * tree-flow-inline.h (gimple_var_anns): Remove.
5716 (var_ann): Simplify.
5717 * tree-dfa.c (create_var_ann): Simplify.
5718 (remove_referenced_var): Clear alias info from var_anns of globals.
5719 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
5720 (delete_tree_ssa): Clear alias info from var_anns of globals.
5721 Do not free var_anns.
5722 (var_ann_eq): Remove.
5723 (var_ann_hash): Likewise.
5725 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
5727 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
5728 and loongson2f entries.
5729 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
5730 * config/mips/mips.h (processor_type): Add Loongson-2E
5731 and Loongson-2F entries.
5732 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
5733 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
5734 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
5735 * doc/invoke.texi (MIPS Options): Document loongson2e
5736 and loongson2f processor names.
5738 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
5742 * config/i386/i386.c (ix86_function_arg_boundary): Use
5743 alignment of canonical type.
5744 (ix86_expand_vector_move): Check unaligned memory access for
5747 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
5749 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
5750 Moved to the front of file.
5752 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
5753 H.J. Lu <hongjiu.lu@intel.com>
5755 * dwarf2out.c (current_fde): New.
5757 (lookup_cfa:): Likewise.
5758 (dwarf2out_end_epilogue): Likewise.
5759 (dwarf2out_note_section_used): Likewise.
5761 2008-05-27 Michael Matz <matz@suse.de>
5764 * c.opt (Wenum-compare): New warning option.
5765 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
5767 2008-05-27 Michael Matz <matz@suse.de>
5770 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
5772 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
5773 into memory as tail calls.
5775 2008-05-27 Richard Guenther <rguenther@suse.de>
5777 PR tree-optimization/36339
5778 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
5779 pointers cause all addressable variables to be call clobbered.
5781 2008-05-27 Richard Guenther <rguenther@suse.de>
5783 PR tree-optimization/36245
5784 * tree-ssa-address.c (add_to_parts): Deal with non-pointer
5787 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5789 * config/s390/s390.md: Replace all occurences of the 'm'
5790 constraint with 'RT'.
5792 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5794 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
5796 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
5798 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
5799 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
5800 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
5802 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5804 * reload.c: (find_reloads): Skip alternatives according to the
5805 "enabled" attribute. Constify the constraint variable.
5806 * recog.c (get_attr_enabled): Add default implementation.
5807 (extract_insn): Set the alternative_enabled_p array
5808 in the recog_data struct.
5809 (preprocess_constraints, constrain_operands): Skip
5810 alternatives according to the "enabled" attribute
5811 * recog.h (struct recog_data): New field alternative_enabled_p.
5812 (skip_alternative): New inline function.
5813 * regclass.c: (record_operand_costs): Check the "enabled"
5815 (record_reg_classes): Skip alternative according to the
5816 "enabled" attribute.
5818 * doc/md.texi: Add documention for the "enabled" attribute.
5820 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5822 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
5823 * postreload.c (reload_cse_simplify_operands): Replace 'm'
5824 constraint with TARGET_MEM_CONSTRAINT.
5825 * recog.c (asm_operand_ok, preprocess_constraints,
5826 constrain_operands): Likewise.
5827 * regclass.c (record_reg_classes): Likewise.
5828 * reload.c (find_reloads, alternative_allows_const_pool_ref):
5830 * reload1.c (maybe_fix_stack_asms): Likewise.
5831 * stmt.c (parse_output_constraint, parse_input_constraint):
5833 * recog.h: Adjust comment.
5834 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
5835 * genoutput.c (note_constraint): Don't emit error for 'm'
5837 * doc/md.texi: Add a note to description of 'm' constraint.
5838 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
5840 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
5842 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
5843 that the bitfield is of integral type before testing its precision.
5845 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5846 Sa Liu <saliu@de.ibm.com>
5848 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
5849 __modti3, __udivti3, __umodti3 and __udivmodti4.
5850 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
5851 that implement TImode mul and div functions.
5852 * config/spu/multi3.c: New. Implement __multi3.
5853 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
5854 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
5857 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
5859 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
5860 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
5861 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
5862 tls_sysv_suffix): New mode and mode attribute iterators.
5863 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
5864 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
5865 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
5866 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
5867 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
5870 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
5872 PR tree-optimization/36329
5873 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
5874 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
5875 * cgraphbuild.c (initialize_inline_failed): Use the latter
5876 macro in lieu of the former.
5877 * ipa-inline.c (cgraph_mark_inline): Likewise.
5878 (cgraph_decide_inlining_of_small_function): Likewise.
5879 (cgraph_decide_inlining): Likewise.
5880 (cgraph_decide_inlining_incrementally): Likewise.
5882 2008-05-26 Tristan Gingold <gingold@adacore.com>
5883 Anatoly Sokolov <aesok@post.ru>
5885 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
5886 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
5887 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
5888 optimization for 'avr6' architecture.
5890 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
5893 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
5895 2008-05-26 Richard Guenther <rguenther@suse.de>
5897 * tree-ssa-sccvn.c (expr_has_constants): Declare.
5898 (visit_reference_op_load): Initialize VN_INFO->has_constants
5901 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
5904 * caller-save.c (insert_restore): Verify alignment of spill
5906 (insert_save): Likewise.
5908 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
5910 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
5911 (STACK_SLOT_ALIGNMENT): Likewise.
5913 * function.c (LOCAL_ALIGNMENT): Removed.
5914 (get_stack_local_alignment): New.
5915 (assign_stack_local): Use it. Set alignment on stack slot.
5916 (assign_stack_temp_for_type): Use get_stack_local_alignment.
5918 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
5919 (STACK_SLOT_ALIGNMENT): New.
5921 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
5922 stack slot in XFmode.
5924 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
5926 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
5929 * config/i386/i386.md (allocate_stack_worker_64): Make sure
5930 argument operand in rax isn't removed.
5932 2008-05-26 Richard Guenther <rguenther@suse.de>
5935 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
5936 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
5938 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5941 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
5943 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
5945 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
5946 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
5948 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
5950 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
5951 build a trampoline if we don't want one.
5952 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
5953 return zero for nested functions if we don't want a trampoline.
5955 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5957 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
5959 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5962 * c.opt: Removed undocumented option '-lang-fortran'.
5963 * c-common.h: Removed global variable 'lang_fortran'.
5964 * c-opts.c (c_common_handle_option): Removed code to handle
5965 option '-lang-fortran'. Updated includes.
5966 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
5967 definition of '__GFORTRAN__'.
5968 (define__GNUC__): Reimplemented to use BASEVER and
5969 cpp_define_formatted.
5970 (builtin_define_with_value_n): Removed.
5971 * c-incpath.h: Renamed to ...
5972 * incpath.h: ... this.
5973 * c-incpath.c: Renamed to ...
5974 * incpath.c: ... this. Updated includes.
5975 * fix-header.c: Updated includes.
5976 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
5977 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
5978 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
5980 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
5982 * tree.h: Update the table of flags used on tree nodes.
5983 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
5984 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
5985 (FORCED_LABEL): Add access check.
5986 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
5987 (ASM_INPUT_P): Likewise.
5988 (ASM_VOLATILE_P): Likewise.
5989 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
5990 (OMP_SECTION_LAST): Access private_flag directly.
5991 (OMP_RETURN_NOWAIT): Likewise.
5992 (OMP_PARALLEL_COMBINED): Likewise.
5993 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
5994 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
5995 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
5996 deprecated_flag directly.
5998 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
6000 * final.c (frame_pointer_needed): Removed.
6001 * flags.h (frame_pointer_needed): Likewise.
6003 * function.h (rtl_data): Add frame_pointer_needed.
6004 (frame_pointer_needed): New.
6006 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
6008 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6010 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
6012 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6015 2008-05-25 Alan Modra <amodra@bigpond.net.au>
6017 * c-common.c (strip_array_types): Move function to..
6019 (get_inner_array_type): Delete.
6020 * c-common.h (strip_array_types): Move declaration to..
6022 (get_inner_array_type): Delete.
6023 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6024 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6025 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6026 * config/pa/pa.c (emit_move_sequence): Likewise.
6028 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
6030 * config/i386/i386.md (*sse_prologue_save_insn): Set length
6033 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
6035 * function.c: Include target hook for nonlocal_goto frame value.
6037 2008-05-24 Richard Guenther <rguenther@suse.de>
6039 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that
6040 a scalar variable can be only accessed through a pointer
6043 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6045 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6046 * doc/extend.texi: Likewise.
6048 2008-05-23 DJ Delorie <dj@redhat.com>
6050 * config/m32c/jump.md (untyped_call): Add.
6052 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6054 (m32c_address_cost): Detail costs for indirect offsets.
6056 2008-05-23 Rafael Espindola <espindola@google.com>
6058 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6059 if a node is a SUBREG.
6060 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6063 2008-05-23 Paul Brook <paul@codesourcery.com>
6064 Carlos O'Donell <carlos@codesourcery.com>
6066 * doc/extend.texi: Clarify use of __attribute__((naked)).
6067 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6068 * target.h (gcc_target): Add allocate_stack_slots_for_args.
6069 * function.c (use_register_for_decl): Use
6070 targetm.calls.allocate_stack_slots_for_args.
6071 * target-def.h (TARGET_CALLS): Add
6072 TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6073 * config/arm/arm.c (arm_allocate_stack_slots_for_args):
6075 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6077 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
6079 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6081 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
6083 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6084 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6085 is only rounded once.
6087 2008-05-23 Richard Guenther <rguenther@suse.de>
6089 * tree-ssa-operands.c (mark_difference_for_renaming): Use
6092 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
6093 Jakub Jelinek <jakub@redhat.com>
6096 * configure.ac: Handle --enable-cld.
6097 * configure: Regenerated.
6098 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
6099 * config/i386/i386.h (struct machine_function): Add needs_cld field.
6100 (ix86_current_function_needs_cld): New define.
6101 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
6102 (cld): New isns pattern.
6103 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
6104 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
6105 * config/i386/i386.opt (mcld): New option.
6106 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
6107 TARGET_CLD and ix86_current_function_needs_cld.
6108 (override_options): Use -mcld by default for 32-bit code if
6111 * doc/install.texi (Options specification): Document --enable-cld.
6112 * doc/invoke.texi (Machine Dependent Options)
6113 [i386 and x86-64 Options]: Add -mcld option.
6114 (Intel 386 and AMD x86-64 Options): Document -mcld option.
6116 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
6117 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
6118 (return_in_memory_64): Likewise.
6119 (return_in_memory_ms_64): Likewise.
6121 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6123 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
6124 * builtins.c (fold_builtin_fpclassify): New.
6125 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
6126 * builtins.def (BUILT_IN_FPCLASSIFY): New.
6127 * c-common.c (handle_type_generic_attribute): Adjust to accept
6128 fixed arguments before an elipsis.
6129 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6130 * doc/extend.texi: Document __builtin_fpclassify.
6132 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
6134 * omp-low.c (gate_expand_omp_ssa): Remove.
6135 (pass_expand_omp_ssa): Remove.
6136 (gate_expand_omp): Do not check for flag_openmp_ssa.
6137 * common.opt (-fopenmp-ssa): Remove.
6138 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6140 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
6142 * config/sh/sh.opt (mfixed-range): New option.
6143 * config/sh/sh-protos.h (sh_fix_range): Declare.
6144 * config/sh/sh.c (sh_fix_range): New function.
6145 * config/sh/sh.h (sh_fixed_range_str): Declare.
6146 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
6148 * doc/invoke.texi (SH Options): Document -mfixed-range.
6150 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
6152 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
6153 it before the redeclaration.
6155 2008-05-22 Anatoly Sokolov <aesok@post.ru>
6157 * config/avr/avr.c (get_sequence_length): Add new function.
6158 (expand_prologue, expand_epilogue): Remove duplicate code.
6160 2008-05-22 Rafael Espindola <espindola@google.com>
6162 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
6165 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
6167 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
6168 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
6170 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
6171 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6172 (vect_update_misalignment_for_peel): Likewise.
6173 (vector_alignment_reachable_p): Likewise.
6174 * tree-vect-transform.c (vectorizable_load): Likewise.
6175 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6176 (get_vectype_for_scalar_type): Pass mode of scalar_type
6177 to UNITS_PER_SIMD_WORD.
6179 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6180 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6181 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6182 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6183 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6185 2008-05-22 Ira Rosen <irar@il.ibm.com>
6187 PR tree-optimization/36293
6188 * tree-vect-transform.c (vect_transform_strided_load): Don't check
6189 if the first load must be skipped because of a gap.
6191 2008-05-22 Richard Guenther <rguenther@suse.de>
6193 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
6194 more cases of offset disambiguation that is possible if
6195 strict-aliasing rules apply.
6196 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6197 for basic offset and type-based disambiguation.
6199 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6201 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6202 ix86_expand_vector_set on V16QImode for SSE4.1.
6204 2008-05-21 Tom Tromey <tromey@redhat.com>
6206 * c.opt (Wimport): Mark as undocumented.
6207 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6209 (Warning Options): Likewise.
6210 * doc/cppopts.texi: Don't mention -Wimport.
6212 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
6214 PR tree-optimization/36287
6215 PR tree-optimization/36286
6216 * lambda-code.c (build_access_matrix): Do not use the loop->num
6217 for computing the number of induction variables: use the loop depth
6220 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
6223 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6224 option -f(no-)leading-underscore.
6226 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6228 * config/i386/i386.c (ix86_expand_vector_init_general): Use
6229 GET_MODE_NUNITS (mode).
6231 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
6233 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6234 (-mmulhw): Add 464 to description.
6235 (-mdlmzb): Likewise.
6236 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6237 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6239 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6240 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6241 * config/rs6000/rs6000.md: Update comments for 464.
6243 2008-05-21 Janis Johnson <janis187@us.ibm.com>
6245 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6247 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6249 * config/i386/sse.md (vec_extractv4sf): Removed.
6250 (vec_extractv2df): Likewise.
6251 (vec_extractv2di): Likewise.
6252 (vec_extractv4si): Likewise.
6253 (vec_extractv8hi): Likewise.
6254 (vec_extractv16qi): Likewise.
6255 (vec_extract<mode>): New.
6257 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6259 * config/i386/sse.md (vec_setv4sf): Removed.
6260 (vec_setv2df): Likewise.
6261 (vec_setv2di): Likewise.
6262 (vec_setv4si): Likewise.
6263 (vec_setv8hi): Likewise.
6264 (vec_setv16qi): Likewise.
6265 (vec_set<mode>): New.
6267 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6269 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6270 goto for vec_concat and vec_interleave.
6272 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6274 * config/i386/sse.md (vec_initv4sf): Removed.
6275 (vec_initv2df): Likewise.
6276 (vec_initv2di): Likewise.
6277 (vec_initv4si): Likewise.
6278 (vec_initv8hi): Likewise.
6279 (vec_initv16qi): Likewise.
6280 (vec_init<mode>): New.
6282 2008-05-21 Joseph Myers <joseph@codesourcery.com>
6284 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6286 2008-05-21 Tom Tromey <tromey@redhat.com>
6288 * ggc-zone.c (lookup_page_table_if_allocated): New function.
6289 (zone_find_object_offset): Likewise.
6290 (gt_ggc_m_S): Likewise.
6291 (highest_bit): Likewise.
6292 * ggc-page.c (gt_ggc_m_S): New function.
6293 * stringpool.c (string_stack): Remove.
6294 (init_stringpool): Update.
6295 (ggc_alloc_string): Use ggc_alloc.
6296 (maybe_delete_ident): New function.
6297 (ggc_purge_stringpool): Likewise.
6298 (gt_ggc_m_S): Remove.
6299 * ggc-common.c (ggc_protect_identifiers): New global.
6300 (ggc_mark_roots): Call ggc_purge_stringpool. Use
6301 ggc_protect_identifiers.
6302 * ggc.h (ggc_protect_identifiers): Declare.
6303 (gt_ggc_m_S): Update.
6304 (ggc_purge_stringpool): Declare.
6305 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6306 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6308 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6310 2008-05-21 David S. Miller <davem@davemloft.net>
6312 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6315 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
6317 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6320 2008-05-20 David Daney <ddaney@avtrex.com>
6322 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6323 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6324 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6325 UNSPEC_UPDATE_GOT_VERSION): Renumber.
6326 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6327 (atomic_hiqi_op): New define_code_iterator.
6328 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6329 mips_expand_compare_and_swap_12.
6330 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6331 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
6332 (sync_<optab><mode>, sync_old_<optab><mode>,
6333 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6334 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6335 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6336 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6337 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6338 (test_and_set_12): New insn.
6339 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6340 sync_new_<optab><mode>, sync_old_nand<mode>,
6341 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
6342 clobber to operand 0 for SI and DI mode insns.
6343 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6344 mips_gen_fn_4): New typedefs.
6345 (mips_gen_fn_ptrs): Define new union type.
6346 (mips_expand_compare_and_swap_12): Remove declaration.
6347 (mips_expand_atomic_qihi): Declare function.
6348 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6349 (mips_expand_atomic_qihi): ... this. Use new generator function
6351 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6352 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6353 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP,
6354 MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6355 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6356 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6357 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6358 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6359 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6360 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6361 MIPS_SYNC_EXCHANGE_12_ZERO_OP,
6362 MIPS_SYNC_EXCHANGE_12_NONZERO_OP): New macros.
6364 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
6366 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6369 2008-05-20 Anatoly Sokolov <aesok@post.ru>
6371 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6372 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6373 (avr_attribute_table): Add 'OS_main' function attribute.
6374 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6375 functions with 'OS_main' attribute.
6377 2008-05-20 Richard Guenther <rguenther@suse.de>
6379 PR tree-optimization/35204
6380 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6381 helper, split out from ...
6382 (DFS): ... here. Make the DFS walk non-recursive.
6384 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
6385 Jan Sjodin <jan.sjodin@amd.com>
6387 PR tree-optimization/36181
6388 * tree-parloops.c (loop_has_vector_phi_nodes): New.
6389 (parallelize_loops): Don't parallelize when the loop has vector
6392 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6393 Sebastian Pop <sebastian.pop@amd.com>
6395 * tree-loop-linear.c (gather_interchange_stats): Look in the access
6396 matrix, and never look at the tree representation of the memory
6398 (linear_transform_loops): Computes parameters and access matrices.
6399 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6401 (access_matrix_get_index_for_parameter): New.
6402 * tree-data-ref.h (struct access_matrix): New.
6403 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6404 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6405 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6406 am_vector_index_for_loop): New.
6407 (struct data_reference): Add field access_matrix.
6408 (DR_ACCESS_MATRIX): New.
6409 (compute_data_dependences_for_loop): Update declaration.
6410 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6411 * lambda.h (lambda_vector_vec_p): Declared.
6412 * lambda-code.c: Depend on pointer-set.h.
6413 (lambda_collect_parameters_from_af, lambda_collect_parameters,
6414 av_for_af_base, av_for_af, build_access_matrix,
6415 lambda_compute_access_matrices): New.
6416 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6418 2008-05-20 Joseph Myers <joseph@codesourcery.com>
6420 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
6423 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6424 Sebastian Pop <sebastian.pop@amd.com>
6426 PR tree-optimization/36206
6427 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
6429 (instantiate_scev_1): Rename flags to fold_conversions.
6430 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
6431 outeside instantiation_loop.
6432 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
6433 (evolution_function_is_affine_or_constant_p): Removed.
6434 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
6436 (analyze_siv_subscript): Pass in the loop nest number.
6437 Call evolution_function_is_affine_in_loop instead of
6438 evolution_function_is_affine_p.
6439 (analyze_overlapping_iterations): Pass in the loop nest number.
6441 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6442 Sebastian Pop <sebastian.pop@amd.com>
6444 PR tree-optimization/36206
6445 * tree-chrec.h (chrec_fold_op): New.
6446 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
6449 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
6451 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
6453 (remove_duplicates): Do not set inode on non-inode systems.
6456 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
6458 * config.gcc (tm_file): Update comments about relative pathnames.
6460 2008-05-20 Richard Guenther <rguenther@suse.de>
6462 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
6463 * tree-ssa-sccvn.c (process_scc): Likewise.
6464 * tree-ssa-sink.c (execute_sink_code): Likewise.
6465 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6466 * tree-vrp.c (process_assert_insertions): Likewise.
6467 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6468 (perform_tree_ssa_dce): Likewise.
6469 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6470 (dump_dominator_optimization_stats): Likewise.
6471 * tree-vectorizer.c (vectorize_loops): Likewise.
6473 2008-05-20 Richard Guenther <rguenther@suse.de>
6475 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
6477 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
6479 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
6480 (ix86_i386elf_return_in_memory): Likewise.
6481 (ix86_i386interix_return_in_memory): Likewise.
6482 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
6483 (SUBTARGET_RETURN_IN_MEMORY): New.
6484 * config/i386/i386elf.h: Likewise.
6485 * config/i386/ptx4-i.h: Likewise.
6486 * config/i386/sol2-10.h: Likewise.
6487 * config/i386/sysv4.h: Likewise.
6488 * config/i386/vx-common.h: Likewise.
6489 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
6490 * config/i386/i386.c (ix86_return_in_memory): Made static and
6491 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
6492 (ix86_i386elf_return_in_memory): Removed.
6493 (ix86_i386interix_return_in_memory): Removed.
6494 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
6495 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
6497 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
6499 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
6501 2008-05-19 Xinliang David Li <davidxl@google.com>
6503 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
6505 * common.opt: Ditto.
6506 * doc/invoke.texi: Ditto.
6508 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
6510 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
6511 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
6513 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
6515 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
6516 sizes of operand array from 8/4 to 4/2.
6517 (ix86_expand_vector_init_general): Change size of operand array
6518 from 32 to 16. Remove op0, op1 and half_mode.
6520 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
6522 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
6523 (ix86_expand_vector_init_interleave): Likewise.
6524 (ix86_expand_vector_init_general): Use them. Assert word_mode
6525 == SImode when n_words == 4.
6527 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
6529 * config/i386/i386.c (ix86_secondary_reload): New static function.
6530 (TARGET_SECONDARY_RELOAD): New define.
6531 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6532 * config/i386/i386.md (reload_outqi): Remove.
6534 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6537 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
6538 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
6539 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
6540 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
6541 (fold_builtin_1): Likewise.
6542 * builtins.def (BUILT_IN_ISINF_SIGN): New.
6543 c-common.c (check_builtin_function_arguments): Handle
6544 BUILT_IN_ISINF_SIGN.
6545 * doc/extend.texi: Document __builtin_isinf_sign.
6546 * fold-const.c (operand_equal_p): Handle COND_EXPR.
6548 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
6550 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
6551 EH cleanup at the end of the pass, search for those that have been
6552 turned into forwarder blocks and do the cleanup on their successor.
6554 2008-05-18 Richard Guenther <rguenther@suse.de>
6556 * tree-cfg.c (verify_gimple_expr): Allow conversions from
6557 pointers to sizetype and vice versa.
6559 2008-05-18 Xinliang David Li <davidxl@google.com>
6561 * gcc/tree-ssa-dce.c: Coding style fix.
6562 (check_pow): Documentation comment.
6563 (check_log): Documenation comment. Coding style fix.
6564 (is_unnecessary_except_errno_call): Ditto.
6565 (gen_conditions_for_pow): Ditto.
6566 (gen_conditions_for_log): Ditto.
6567 (gen_shrink_wrap_conditions): Ditto.
6568 (shrink_wrap_one_built_in_calls): Ditto.
6569 * gcc/doc/invoke.texi: Better documentation string.
6570 * ChangeLog: Fix wrong change log entries from
6571 May 17 checkin on function call DCE.
6573 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
6575 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
6577 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
6579 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
6580 * df-problems.c (simulation routines): Fixed block comment to
6581 properly say how to add forwards scanning functions.
6583 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
6585 * tree-inline.c (setup_one_parameter): Remove dead code.
6587 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
6589 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
6590 a BIT_AND_EXPR only for an INTEGER_TYPE.
6592 2008-05-17 Xinliang David Li <davidxl@google.com>
6594 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
6595 (check_pow, check_log, is_unnecessary_except_errno_call): New
6596 functions to check for eliminating math functions that are pure
6597 except for setting errno.
6598 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
6599 general condition expressions for shrink-wrapping pow/log calls.
6600 (gen_shrink_wrap_conditions): Ditto.
6601 (shrink_wrap_one_built_in_call): Ditto.
6602 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
6603 (mark_operand_necessary): If debugging, output if OP is necessary.
6604 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
6606 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
6608 * gcc/common.opt: New user flag -ftree-builtin-dce.
6609 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
6611 2008-05-16 David S. Miller <davem@davemloft.net>
6613 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
6614 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6616 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
6619 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
6621 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6623 * ifcvt.c (dead_or_predicable): Rename
6624 df_simulate_one_insn_backwards to df_simulate_one_insn.
6625 * recog.c (peephole2_optimize): Ditto.
6626 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
6628 * df.h: Rename df_simulate_one_insn_backwards to
6629 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
6630 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
6631 scanning of defs and uses.
6632 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
6633 (df_simulate_one_insn_forwards): Removed.
6635 2008-05-16 Doug Kwan <dougkwan@google.com>
6637 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
6639 (real_from_string): Handle NaNs and Inf as approriate.
6641 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
6643 * doc/gty.texi (Source Files Containing Type Information): Note
6644 that headers should appear first in the gtfiles list.
6646 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6648 * tree.def (COND_EXEC): Properly documented this code.
6650 2008-05-16 Diego Novillo <dnovillo@google.com>
6652 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
6653 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
6656 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6658 * tree-ssa-dse (max_stmt_uid): Removed.
6659 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
6660 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
6661 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
6662 * function.h (cfun.last_stmt_uid): New field.
6663 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
6664 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
6666 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
6667 (create_stmt_ann): Initialize the ann->uid field.
6668 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
6670 * tree-flow.h (renumber_gimple_stmt_uids): New function.
6672 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
6674 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
6675 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
6676 (init_empty_tree_cfg): Call it.
6678 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6680 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
6683 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6685 * doc/invoke.text (-fdump-tree-*-verbose): New option.
6686 * tree-dump.c (dump_options): New verbose option.
6687 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
6689 * tree-pass.h (TDF_VERBOSE): New dump flag.
6690 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
6691 (tree-flow.h): Added include.
6692 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
6694 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
6696 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
6698 From Jie Zhang <jie.zhang@analog.com>
6699 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6700 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
6701 mcpu=bf561-none and mcpu=bf561-0.2.
6702 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6703 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6704 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6705 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6706 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
6707 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
6708 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
6710 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
6711 (cputype_selected): Remove.
6712 (bfin_handle_option): Don't use cputype_selected.
6713 (override_options): When no mcpu option, enable all workarounds.
6714 Don't use bfin_workarounds.
6715 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
6717 (DEFAULT_CPU_TYPE): Don't define.
6719 2008-05-16 Richard Guenther <rguenther@suse.de>
6721 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
6722 on deletion of the last stmt.
6724 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
6726 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
6727 V8HImode for SSE2 and V16QImode for SSE4.1.
6729 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
6731 * cgraph.h (compute_inline_parameters): Made public.
6732 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
6733 variable_generate_summary, function_write_summary,
6734 variable_write_summary, variable_read_summary. Added generate_summary,
6735 write_summary, read_summary.
6736 * cgraphunit.c (cgraph_process_new_functions): Changed call from
6737 pass_ipa_inline.function_generate_summary, to
6738 compute_inline_parameters.
6739 * ipa-inline.c (compute_inline_parameters): Made public and added
6741 (compute_inline_parameters_for_current): New function.
6742 (pass_inline_param): Now calls compute_inline_parameters_for_current.
6743 (inline_generate_summary): Removed parameter and made to loop over
6745 (pass_ipa_inline): Updated for new IPA_PASS structure.
6746 * passes.c (execute_ipa_summary_passes): Now is called once per
6747 pass rather than once per node*pass.
6749 2008-05-15 Anatoly Sokolov <aesok@post.ru>
6751 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
6752 avr_have_mul_p, avr_asm_only_p): Remove variables.
6753 (avr_override_options): Remove initialization of removed variables.
6754 (avr_file_start): Convert removed variables to fields of
6755 'struct base_arch_s *avr_current_arch'.
6756 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
6757 (AVR_HAVE_MUL): (Ditto.).
6758 (AVR_HAVE_MOVW): (Ditto.).
6759 (AVR_HAVE_LPMX): (Ditto.).
6760 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
6761 avr_asm_only_p): Remove declaration.
6763 2008-05-15 Diego Novillo <dnovillo@google.com>
6765 * config/arm/arm.c (arm_return_in_memory): Fix return type.
6766 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
6768 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
6771 * combine.c (check_conversion): Rename back to check_promoted_subreg.
6772 Don't call record_truncated_value from here.
6773 (record_truncated_value): Turn it into a for_each_rtx callback.
6774 (record_truncated_values): New function.
6775 (combine_instructions): Call note_uses with record_truncated_values.
6776 Change name of check_conversion to check_promoted_subreg.
6778 2008-05-15 Janis Johnson <janis187@us.ibm.com>
6780 * doc/sourcebuild.texi: Document support for torture tests.
6782 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
6784 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
6785 to alternative 4 of operand 2.
6787 2008-05-15 Richard Guenther <rguenther@suse.de>
6789 * tree-pass.h (current_pass): Declare.
6790 (get_pass_for_id): Likewise.
6791 * passes.c (passes_by_id, passes_by_id_size): New globals.
6792 (set_pass_for_id): New function.
6793 (get_pass_for_id): Likewise.
6794 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
6795 (execute_function_todo): Flush per function statistics.
6796 * toplev.c (compile_file): Init statistics.
6797 (general_init): Do early statistics initialization.
6798 (finalize): Finish statistics.
6799 * statistics.h (statistics_early_init): Declare.
6800 (statistics_init): Likewise.
6801 (statistics_fini): Likewise.
6802 (statistics_fini_pass): Likewise.
6803 (statistics_counter_event): Likewise.
6804 (statistics_histogram_event): Likewise.
6805 * statistics.c: New file.
6806 * Makefile.in (OBJS-common): Add statistics.o.
6807 (statistics.o): Add dependencies.
6808 * doc/invoke.texi (-fdump-statistics): Document.
6810 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
6812 (execute_pre): Use statistics_counter_event.
6813 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
6814 (substitute_and_fold): Increment it. Use statistics_counter_event.
6816 2008-05-15 Diego Novillo <dnovillo@google.com>
6818 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
6820 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
6821 * tree-ssa-alias.c (new_type_alias): Remove references to
6822 sub-variables from comment.
6823 * tree-ssa-operands.c (swap_tree_operands): Likewise.
6825 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
6827 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
6828 attribute to 1 only for insertps alternative.
6830 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
6832 * config/bfin/bfin.md (loadbytes): New pattern.
6833 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
6834 (bfin_init_builtins): Initialize it.
6835 (bdesc_1arg): Add it.
6837 2008-05-15 Sa Liu <saliu@de.ibm.com>
6839 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
6840 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
6841 * testsuite/lib/target-supports.exp: Add
6842 check_effective_target_fortran_integer_16.
6844 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
6846 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
6847 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
6848 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
6849 (TARGET_RETURN_IN_MEMORY): Define.
6851 2008-05-15 Richard Guenther <rguenther@suse.de>
6854 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
6855 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
6856 represent unmodifiable vars.
6858 2008-05-15 Richard Guenther <rguenther@suse.de>
6860 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
6861 INDIRECT_REF and TARGET_MEM_REF.
6862 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6865 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
6866 H.J. Lu <hongjiu.lu@intel.com>
6868 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
6869 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
6870 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
6871 insn alternatives. Add missing alternatives.
6872 (*vec_concatv2di_rex64_sse4_1): Likewise.
6873 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
6874 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
6877 2008-05-15 Richard Guenther <rguenther@suse.de>
6879 PR tree-optimization/36009
6880 PR tree-optimization/36204
6881 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
6882 (determine_invariantness_stmt): Record the loop a store is
6884 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
6887 2008-05-15 Richard Guenther <rguenther@suse.de>
6889 PR tree-optimization/34330
6890 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
6891 through the pointer will alias the SMT.
6893 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
6895 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
6897 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
6899 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
6901 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6902 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6904 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
6905 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
6906 (vashl_optab): New optab for vector/vector shifts.
6907 (vashr_optab): Ditto.
6908 (vlshr_optab): Ditto.
6909 (vrotl_optab): Ditto.
6910 (vrotr_optab): Ditto.
6911 (optab_subtype): New enum for optab_for_tree_code call.
6912 (optab_for_tree_code): Add enum optab_subtype argument.
6914 * optabs.c (optab_for_tree_code): Take an additional argument to
6915 distinguish between a vector shift by a scalar and vector shift by
6916 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
6917 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
6918 vector shift by a vector.
6919 (expand_widen_pattern_expr): Pass additional argument to
6920 optab_for_tree_code.
6922 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
6923 vrotl_optab, vrotr_optab.
6925 * expr.c (expand_expr_real_1): Update calls to
6926 optab_for_tree_code to distinguish between vector shifted by a
6927 scalar and vector shifted by a vector.
6928 * tree-vectorizer.c (supportable_widening_operation): Ditto.
6929 (supportable_narrowing_operation): Ditto.
6930 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
6931 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
6932 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
6933 (vect_create_epilog_for_reduction): Ditto.
6934 (vectorizable_reduction): Ditto.
6935 (vectorizable_operation): Ditto.
6936 (vect_strided_store_supported): Ditto.
6937 (vect_strided_load_supported): Ditto.
6938 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
6939 * expmed.c (expand_shift): Ditto.
6941 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
6943 (ashr@var{m}3): Ditto.
6944 (vashl@var{m}3): Document new vector/vector shift standard name.
6945 (vashr@var{m}3): Ditto.
6946 (vlshr@var{m}3): Ditto.
6947 (vrotl@var{m}3): Ditto.
6948 (vrotr@var{m}3): Ditto.
6950 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
6951 (PPERM_INVERT): Ditto.
6952 (PPERM_REVERSE): Ditto.
6953 (PPERM_REV_INV): Ditto.
6954 (PPERM_ZERO): Ditto.
6955 (PPERM_ONES): Ditto.
6956 (PPERM_SIGN): Ditto.
6957 (PPERM_INV_SIGN): Ditto.
6958 (PPERM_SRC1): Ditto.
6959 (PPERM_SRC2): Ditto.
6961 * config/i386/sse.md (mulv2di3): Add SSE5 support.
6962 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
6963 allows a memory operand to be the value being added, and split it
6964 to improve vectorization.
6965 (sse5_pmacsdqh_mem): Ditto.
6966 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
6967 (sse5_mulv2div2di3_high): Ditto.
6968 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
6969 (vec_pack_trunc_v4si): Ditto.
6970 (vec_pack_trunc_v2di): Ditto.
6971 (sse5_pcmov_<mode>): Remove code that tried to use use
6972 andps/andnps instead of pcmov.
6973 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
6974 pmacsdqh instructions.
6975 (vec_widen_smult_lo_v4si): Ditto.
6977 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
6978 (PPERM_INVERT): Ditto.
6979 (PPERM_REVERSE): Ditto.
6980 (PPERM_REV_INV): Ditto.
6981 (PPERM_ZERO): Ditto.
6982 (PPERM_ONES): Ditto.
6983 (PPERM_SIGN): Ditto.
6984 (PPERM_INV_SIGN): Ditto.
6985 (PPERM_SRC1): Ditto.
6986 (PPERM_SRC2): Ditto.
6987 (ix86_expand_sse_movcc): Move the SSE5 test after the if
6989 (ix86_expand_int_vcond): If SSE5 generate all possible integer
6991 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
6992 says ignore whether the last reference is a memory operand.
6994 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6995 Paolo Bonzini <bonzini at gnu dot org>
6997 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7000 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
7001 (vlshr<mode>3): Rename from vlshr<mode>3.
7002 (vashr<mode>3): Rename from vashr<mode>3.
7003 (mulv4sf3): Change the names of vector shift patterns.
7007 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7010 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
7035 * config/spu/spu.md (v): New iterator macro to add v for vector types.
7036 (floatunssidf2_internal): Change vector/vector shift names.
7037 (floatunsdidf2_internal): Ditto.
7044 (vashl<mode>3): Rename from ashl<mode>3.
7045 (vashr<mode>3): Rename from ashr<mode>3.
7046 (vlshr<mode>3): Rename from lshr<mode>3.
7047 (vrotl<mode>3): Rename from rotl<mode>3.
7049 2008-05-14 Michael Meissner <michael.meissner@amd.com>
7052 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7053 multiply gives the wrong value when doing widening multiplies.
7054 (vec_widen_smult_lo_v4si): Ditto.
7056 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
7058 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7059 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
7060 emit_library_call_value.
7061 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7062 * tree.h (ECF_LIBCALL_BLOCK): Removed.
7063 * calls.c (initialize_argument_information, precompute_arguments,
7064 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7065 (precompute_arguments): Removed flags parameter.
7066 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
7068 2008-05-14 Richard Guenther <rguenther@suse.de>
7070 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7071 Make sure to register the store if the use is a PHI_NODE.
7073 2008-05-14 Olivier Hainque <hainque@adacore.com>
7075 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7076 memory if the component is to be referenced in BLKmode according
7077 to get_inner_reference.
7079 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
7081 * calls.c (emit_library_call_value_1): Restore code clearing
7082 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
7084 2008-05-14 Olivier Hainque <hainque@adacore.com>
7085 Nicolas Roche <roche@adacore.com>
7087 * configure.ac: Add support for a "gcc_subdir" variable in
7088 config-lang.in, to denote a subdirectory where the language/GCC
7089 integration files are to be found.
7090 * configure: Regenerate.
7092 2008-05-14 Ira Rosen <irar@il.ibm.com>
7094 PR tree-optimization/36098
7095 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
7096 value for the first load in the group in case of a gap.
7097 (vect_build_slp_tree): Check that there are no gaps in loads.
7099 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
7101 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
7102 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
7103 expand_copysign_bit, ): Change call to emit_no_conflict_block to
7104 emit_insn and remove unneeded code to construct extra args.
7105 (emit_no_conflict_block): Removed.
7106 * optabls.h: (emit_no_conflict_block): Removed.
7107 * cse.c (cse_extended_basic_block): Remove search for
7108 REG_NO_CONFLICT note.
7109 * global.c: Removed incorrect comment added in revision 117.
7110 * expr.c (convert_move): Change call to emit_no_conflict_block to
7112 * recog.c: Change comments so that they do not mention
7114 * local_alloc.c (combine_regs): Removed last parameter.
7115 (no_conflict_p): Removed.
7116 (block_alloc): Removed note, no_conflict_combined_regno and set
7117 local vars. Removed all code to process REG_NO_CONFLICT blocks.
7118 (combine_regs): Removed already_dead and code to look for
7119 REG_NO_CONFLICT notes.
7120 * lower_subreg (remove_retval_note): Removed code to look for
7121 REG_NO_CONFLICT block.
7122 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
7123 (resolve_clobber): Remove code to process libcalls that have
7124 REG_NO_CONFLICT notes.
7125 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
7127 * combine.c (can_combine_p, distribute_notes): Removed
7128 REG_NO_CONFLICT case.
7129 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7131 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7132 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7134 * reg-notes.def (NO_CONFLICT): Removed.
7136 2008-05-14 David S. Miller <davem@davemloft.net>
7138 * config/sparc/sparc.c (sparc_profile_hook): If
7139 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7140 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7141 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7143 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
7145 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
7147 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
7150 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
7151 and op1 expansion before vector concat to have less live pseudos.
7153 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
7155 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7156 ix86_expand_vector_set if supported.
7158 2008-05-13 Diego Novillo <dnovillo@google.com>
7159 Kenneth Zadeck <zadeck@naturalbridge.com>
7161 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
7163 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
7164 phinodes_print_statistics, init_ssanames, fini_ssanames,
7165 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
7166 release_ssa_name, release_defs, replace_ssa_name_symbol,
7167 ssanames_print_statistics): Move ...
7168 * tree-flow.h: ... here.
7169 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
7170 Use FN instead of cfun.
7171 (make_ssa_name_fn): Rename from make_ssa_name.
7172 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7173 * tree-flow-inline.h (make_ssa_name): Move from
7174 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
7175 * omp-low.c (expand_omp_parallel):
7176 * tree-flow-inline.h (redirect_edge_var_map_result):
7177 * tree-ssa.c (init_tree_ssa): Add argument FN.
7178 Use it instead of cfun. Update all users.
7180 2008-05-13 Tom Tromey <tromey@redhat.com>
7182 PR preprocessor/22168:
7183 * doc/cpp.texi (Top): Update menu.
7184 (Alternatives to Wrapper #ifndef): New node.
7185 (Other Directives): Document deprecation.
7186 (Obsolete Features): Remove menu.
7187 (Assertions): Merge node into Obsolete Features.
7188 (Obsolete once-only headers): Move earlier; rename to Alternatives
7190 * doc/cppopts.texi: Update.
7191 * c.opt (Wdeprecated): Enable for C and ObjC.
7192 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7193 (C++ Dialect Options): Move -Wno-deprecated from here to...
7194 (Warning Options): ... here.
7196 2008-05-13 Richard Guenther <rguenther@suse.de>
7199 * fold-const.c (fold_sign_changed_comparison): Do not allow
7200 changes in pointer-ness.
7202 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
7205 * config/sh/sh.c (sh_expand_prologue): Don't clear
7206 RTX_FRAME_RELATED_P for push insns.
7208 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
7210 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7212 2008-05-12 Anatoly Sokolov <aesok@post.ru>
7214 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7215 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7216 Use 'machine->is_leaf' instead of 'leaf_func_p'.
7218 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
7220 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7221 (*vec_concatv4sf_sse): This.
7222 (*sse2_concatv2si): Renamed to ...
7223 (*vec_concatv2si_sse2): This.
7224 (*sse1_concatv2si): Renamed to ...
7225 (*vec_concatv2si_sse): This.
7226 (*vec_concatv2di_rex): Renamed to ...
7227 (*vec_concatv2di_rex64): This.
7228 (*vec_concatv2si_sse4_1): New.
7229 (*vec_concatv2di_rex64_sse4_1): Likewise.
7231 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
7233 PR rtl-optimization/36111
7234 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7235 that was created for swappable operands.
7237 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
7240 * Makefile.in: Substitute GNATMAKE and GNATBIND.
7241 * configure.ac: Add call to ACX_PROG_GNAT.
7243 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
7245 * optc-gen.awk: Fix comment typo.
7247 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7249 * pretty-print.c (pp_integer_with_precision): Use
7250 HOST_LONG_LONG_FORMAT.
7252 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
7254 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7256 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
7258 * config/i386/i386.c (bdesc_ptest): Removed.
7259 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7260 (bdesc_args): Add __builtin_ia32_ptestz128,
7261 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7262 (ix86_init_mmx_sse_builtins): Updated.
7263 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7264 (ix86_expand_builtin): Updated.
7266 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
7268 * tree-cfg.c (valid_fixed_convert_types_p): New function.
7269 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7271 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
7273 * value-prof.c (interesting_stringop_to_profile): Do not
7274 return early for BUILT_IN_MEMPCPY.
7276 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
7278 * calls.c (expand_call): Don't use callgraph to increase
7279 preferred_stack_boundary.
7281 * cgraph.h (cgraph_rtl_info): Use unsigned on
7282 preferred_incoming_stack_boundary.
7284 * final.c (rest_of_clean_state): Use unsigned on
7285 preferred_stack_boundary.
7287 2008-05-09 Tom Tromey <tromey@redhat.com>
7289 PR preprocessor/22231:
7290 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7293 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
7295 PR tree-optimization/36129
7296 * tree-ssa-ccp.c: Include value-prof.h.
7297 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7298 built-in function was folded to a constant.
7299 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7301 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
7302 Sebastian Pop <sebastian.pop@amd.com>
7304 * tree-scalar-evolution.c: Document instantiate_scev.
7305 (instantiate_parameters_1): Renamed instantiate_scev_1.
7306 Don't use the same loop for instantiation_loop and evolution_loop.
7307 (instantiate_scev): New.
7308 (instantiate_parameters): Moved...
7309 (resolve_mixers): Update call to instantiate_scev_1 to pass the
7310 same loop twice. Maintains the semantics for this function.
7311 * tree-scalar-evolution.h (instantiate_scev): Declare.
7312 (instantiate_parameters): ...here. Now static inline.
7313 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7314 instead of resolve_mixers.
7316 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
7318 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7320 2008-05-09 Tomas Bily <tbily@suse.cz>
7322 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7323 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7324 * tree-ssa-structalias.c (get_constraint_for): Likewise.
7325 * c-common.c (c_common_truthvalue_conversion): Likewise.
7326 * tree-object-size.c (compute_object_offset): Likewise.
7327 * tree-inline.c (estimate_num_insns_1): Likewise.
7328 * varasm.c (const_hash_1, compare_constant, copy_constant)
7329 (compute_reloc_for_constant, output_addressed_constants)
7330 (initializer_constant_valid_p): Likewise.
7331 * c-omp.c (check_omp_for_incr_expr): Likewise.
7332 * gimplify.c (gimplify_expr): Likewise.
7333 * c-typeck.c (c_finish_return): Likewise.
7334 * tree-vectorizer.c (supportable_widening_operation)
7335 (supportable_narrowing_operation): Likewise.
7336 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7337 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7338 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7339 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7340 (descr_info_loc): Likewise.
7341 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7342 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7343 (fold_unary): Likewise.
7344 * builtins.c (get_pointer_alignment): Likewise.
7345 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7346 (instantiate_parameters_1): Likewise.
7347 * tree.c (expr_align, stabilize_reference): Likewise.
7348 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7349 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7350 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7351 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7352 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7353 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7355 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7356 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7357 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7358 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7359 (forward_propagate_comparison)
7360 (tree_ssa_forward_propagate_single_use_vars): Likewise.
7361 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7362 * emit-rtl.c (component_ref_for_mem_expr)
7363 (set_mem_attributes_minus_bitpos): Likewise.
7364 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7365 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7367 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7368 (build_function_call, pointer_diff, build_compound_expr)
7369 (c_finish_return): Likewise.
7370 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7371 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7373 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7374 * expr.c (is_aligning_offset): Likewise.
7375 * tree-ssa-alias.c (is_escape_site): Likewise.
7376 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7377 (check_all_va_list_escapes): Likewise.
7378 * tree-ssa-loop-ivopts.c (determine_base_object)
7379 (determine_common_wider_type): Likewise.
7380 * dojump.c (do_jump): Likewise.
7381 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7382 * tree-gimple.c (is_gimple_cast): Likewise.
7383 * fold-const.c (decode_field_reference, )
7384 (fold_sign_changed_comparison, fold_unary, fold_comparison)
7385 (fold_binary): Likewise.
7386 * tree-ssa-alias-warnings.c (find_alias_site_helper)
7387 (already_warned_in_frontend_p): Likewise.
7388 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7389 * tree.c (really_constant_p, get_unwidened): Likewise.
7390 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7391 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7392 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7394 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7396 (CONVERT_EXPR_P): Define.
7397 (CASE_CONVERT): Define.
7399 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
7402 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7403 (delete_unmarked_insns): When deleting a call, call
7404 delete_unreachable_blocks.
7405 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7406 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7408 2008-05-08 Richard Guenther <rguenther@suse.de>
7410 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7411 (-ftree-salias): Likewise.
7412 (salias-max-implicit-fields): Remove param documentation.
7413 (salias-max-array-elements): Likewise.
7414 * tree-pass.h (pass_create_structure_vars): Remove.
7415 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7416 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7417 * tree-ssa-alias.c (create_structure_vars): Remove.
7418 (gate_structure_vars): Likewise.
7419 (pass_create_structure_vars): Likewise.
7420 (gate_build_alias): Likewise.
7421 (pass_build_alias): Adjust to run always and dump the function.
7422 * common.opt (ftree-salias): Hide.
7423 * passes.c (init_optimization_passes): Remove
7424 pass_create_structure_vars, adjust comment.
7425 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7426 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7427 * opts.c (decode_options): Do not set flag_tree_salias.
7428 (common_handle_option): Add OPT_ftree_salias to the backward
7429 compatibility section.
7431 2008-05-08 Richard Guenther <rguenther@suse.de>
7433 * tree-flow-inline.h (var_can_have_subvars): Move ...
7434 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
7435 * tree-flow.h (var_can_have_subvars): Remove.
7436 (push_fields_onto_fieldstack): Remove.
7437 (sort_fieldstack): Likewise.
7438 (struct fieldoff): Move ...
7439 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
7440 alias_set and base_for_components fields.
7441 (sort_fieldstack): Make static.
7442 (push_fields_onto_fieldstack): Likewise. Remove code that
7443 handles anything but RECORD_TYPEs. Remove alias_set and
7444 base_for_components handling.
7445 (create_variable_info_for): Adjust.
7447 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
7449 * common.opt (Wframe-larger-than=): Shorten the help message
7451 * doc/invoke.texi (Wframe-larger-than=): Add more description.
7453 2008-05-08 Rafael Espindola <espindola@google.com>
7455 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
7457 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
7458 trap and that both operands are gimple values.
7459 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
7460 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
7463 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
7465 * read-rtl.c (join_c_conditions): Return the first string if the
7466 two strings are equal.
7468 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
7470 * gensupport.h (pred_data): Add a "num_codes" field.
7471 (add_predicate_code): Declare.
7472 * gensupport.c (add_predicate_code): New function.
7473 (std_pred_table): Add an "allows_const_p" field.
7474 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
7475 Remove the (incomplete) list of such codes from the codes field.
7476 (init_predicate_table): Use add_predicate_code. Add all
7477 RTX_CONST_OBJs if allows_const_p is true.
7478 * genrecog.c (process_define_predicate): Use add_predicate_code.
7480 2008-05-08 David Daney <ddaney@avtrex.com>
7481 Richard Sandiford <rsandifo@nildram.co.uk>
7483 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
7484 special case of constant zero operands.
7485 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
7486 old and new values. Special case constant zero values.
7487 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
7489 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
7490 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
7492 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
7495 * simplify-rtx.c (simplify_plus_minus): Create CONST of
7496 similar RTX_CONST_OBJ before CONST_INT.
7498 2008-05-08 Steve Ellcey <sje@cup.hp.com>
7500 * stmt.c (expand_stack_restore): Change sa mode if needed.
7502 2008-05-08 Richard Guenther <rguenther@suse.de>
7504 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
7505 return type to bool.
7506 (ix86_sol10_return_in_memory): Likewise.
7507 (ix86_i386elf_return_in_memory): Likewise.
7508 (ix86_i386interix_return_in_memory): Likewise.
7509 * config/i386/i386.c (ix86_return_in_memory): Likewise.
7510 (ix86_sol10_return_in_memory): Likewise.
7511 (ix86_i386elf_return_in_memory): Likewise.
7512 (ix86_i386interix_return_in_memory): Likewise.
7514 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
7517 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
7519 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
7520 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
7523 2008-05-08 Richard Guenther <rguenther@suse.de>
7525 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
7526 * tree-data-ref.h (struct dr_alias): Remove subvars field.
7527 (DR_SUBVARS): Remove.
7528 * tree-dfa.c (dump_subvars_for): Remove.
7529 (debug_subvars_for): Likewise.
7530 (dump_variable): Do not dump subvars.
7531 (remove_referenced_var): Do not remove subvars.
7532 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
7533 (lookup_subvars_for_var): Remove.
7534 (get_subvars_for_var): Likewise.
7535 (get_subvars_at): Likewise.
7536 (get_first_overlapping_subvar): Likewise.
7537 (overlap_subvar): Likewise.
7538 * tree-flow.h (subvar_t): Remove.
7539 (struct var_ann_d): Remove subvars field.
7540 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
7541 argument. Remove special handling of SFTs.
7542 (compute_tag_properties): Likewise.
7543 (set_initial_properties): Likewise.
7544 (compute_call_clobbered): Likewise.
7545 (count_mem_refs): Likewise.
7546 (compute_memory_partitions): Likewise.
7547 (compute_flow_insensitive_aliasing): Likewise.
7548 (setup_pointers_and_addressables): Likewise.
7549 (new_type_alias): Likewise.
7550 (struct used_part): Remove.
7551 (used_portions): Likewise.
7552 (struct used_part_map): Likewise.
7553 (used_part_map_eq): Likewise.
7554 (used_part_map_hash): Likewise.
7555 (free_used_part_map): Likewise.
7556 (up_lookup): Likewise.
7557 (up_insert): Likewise.
7558 (get_or_create_used_part_for): Likewise.
7559 (create_sft): Likewise.
7560 (create_overlap_variables_for): Likewise.
7561 (find_used_portions): Likewise.
7562 (create_structure_vars): Likewise.
7563 * tree.def (STRUCT_FIELD_TAG): Remove.
7564 * tree.h (MTAG_P): Adjust.
7565 (struct tree_memory_tag): Remove base_for_components and
7566 unpartitionable flags.
7567 (struct tree_struct_field_tag): Remove.
7568 (SFT_PARENT_VAR): Likewise.
7569 (SFT_OFFSET): Likewise.
7570 (SFT_SIZE): Likewise.
7571 (SFT_NONADDRESSABLE_P): Likewise.
7572 (SFT_ALIAS_SET): Likewise.
7573 (SFT_UNPARTITIONABLE_P): Likewise.
7574 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
7575 (union tree_node): Remove sft field.
7576 * alias.c (get_alias_set): Remove special handling of SFTs.
7577 * print-tree.c (print_node): Remove handling of SFTs.
7578 * tree-dump.c (dequeue_and_dump): Likewise.
7579 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
7580 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
7581 * tree-predcom.c (set_alias_info): Do not set subvars.
7582 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
7583 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
7584 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
7585 (add_vars_for_offset): Remove.
7586 (add_virtual_operand): Remove special handling of SFTs.
7587 (add_call_clobber_ops): Likewise.
7588 (add_call_read_ops): Likewise.
7589 (get_asm_expr_operands): Likewise.
7590 (get_modify_stmt_operands): Likewise.
7591 (get_expr_operands): Likewise.
7592 (add_to_addressable_set): Likewise.
7593 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
7594 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7595 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
7596 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
7597 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
7598 (tree_node_structure): Likewise.
7599 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
7601 (find_what_p_points_to): Likewise.
7603 2008-05-08 Sa Liu <saliu@de.ibm.com>
7605 * config/spu/spu.md: Fixed subti3 pattern.
7607 2008-05-08 Richard Guenther <rguenther@suse.de>
7610 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7611 sure to create a representative for trailing arrays for PTA.
7613 2008-05-08 Richard Guenther <rguenther@suse.de>
7616 * fold-const.c (operand_equal_p): Two objects which types
7617 differ in pointerness are not equal.
7619 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
7621 * calls.c (compute_argument_block_size): Add argument tree fndecl.
7622 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
7623 (emit_library_call_value_1): Add new variable fndecl initialized by
7624 NULL_TREE. It should be the decl type of orgfun, but this information
7625 seems not to be available here, so it uses the default calling abi.
7626 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
7627 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
7628 by TARGET_RETURN_IN_MEMORY.
7629 * config/i386/i386-interix.h: Likewise.
7630 * config/i386/i386.h: Likewise.
7631 * config/i386/i386elf.h: Likewise.
7632 * config/i386/ptx4-i.h: Likewise.
7633 * config/i386/sol2-10.h: Likewise.
7634 * config/i386/sysv4.h: Likewise.
7635 * config/i386/vx-common.h: Likewise.
7636 * config/cris/cris.h: Removed #if 0 clause.
7637 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
7638 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
7640 (ix86_sol10_return_in_memory): Likewise.
7641 (ix86_i386elf_return_in_memory): New.
7642 (ix86_i386interix_return_in_memory): New.
7643 * config/mt/mt-protos.h (mt_return_in_memory): New.
7644 * config/mt/mt.c: Likewise.
7645 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7646 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
7647 * config/bfin/bfin.h: Likewise.
7648 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
7650 * config/bfin/bfin.c: Likewise.
7651 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7652 * config/alpha/unicosmk.h: Likewise.
7653 * config/i386/cygming.h: Likewise.
7654 * config/iq2000/iq2000.h: Likewise.
7655 * config/mips/mips.h: Likewise.
7656 * config/mn10300/mn10300.h: Likewise.
7657 * config/rs6000/rs6000.h: Likewise.
7658 * config/score/score.h: Likewise.
7659 * config/spu/spu.h: Likewise.
7660 * config/v850/v850.h: Likewise.
7661 * defaults.h: Likewise.
7662 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
7663 * expr.c (emit_block_move): Adjust use of
7664 OUTGOING_REG_PARM_STACK_SPACE.
7665 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
7666 OUTGOING_REG_PARM_STACK_SPACE.
7667 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
7669 2008-05-08 Jakub Jelinek <jakub@redhat.com>
7671 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
7672 on OMP_RETURN for OMP_FOR.
7675 * dwarf2out.c (dw_expand_expr, common_check): Removed.
7676 (fortran_common): New function.
7677 (gen_variable_die): Call fortran_common instead of common_check,
7678 adjust for it returning tree instead of rtx. Formatting.
7680 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
7684 * see.c (see_copy_insn): Copy new pure const attributes for new call.
7685 * c-decl.c (merge_decls): Ditto.
7686 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
7687 to RTL_CONST_OR_PURE_CALL_P.
7688 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
7689 Initialized DECL_LOOPING_CONST_PURE.
7690 (process_call_operands): Set tree_side_effects properly.
7691 * tree.h (TREE_READONLY_DECL_P): Removed.
7692 (DECL_IS_PURE): Renamed to DECL_PURE_P.
7693 (DECL_LOOPING_OR_CONST_P): New macro.
7694 (struct tree_function_decl): Added looping_const_or_pure_p.
7696 (ECF_LOOPING_OR_CONST_P): New macro.
7697 * rtlanal.c (pure_const_p): Removed.
7698 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
7699 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
7700 to RTL_CONST_CALL_P.
7701 * ipa-pure-const.c (pure_const_state_e): Added looping field.
7702 (check_decl, check_tree, check_call, scan_function): Initialize
7704 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
7705 (static_execute): Set looping true for recursive functions.
7706 Undo setting state to IPA_NEITHER for recursive functions.
7708 * ifcvt.c (noce_can_store_speculate_p): Changed
7709 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
7710 RTL_CONST_OR_PURE_CALL_P.
7711 * dse.c (scan_insn): Ditto.
7712 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
7713 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
7714 RTL_CONST_OR_PURE_CALL_P.
7715 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
7716 pure_call_p to RTL_CONST_CALL_P.
7717 * gimplify.c (gimplify_call_expr): Clear side effects for
7718 non-looping pure and constant calls.
7719 * calls.c (emit_call_1): Set rtl flags from ecf flags.
7720 (flags_from_decl_or_type): Set ecf flags from decl flags.
7721 (initialize_argument_information): Turn off
7722 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
7723 Change const to pure if callee_copies is true rather than just
7725 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
7726 way of marking pure calls.
7727 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
7728 Remove hack that was supposed to fix pr7335 and remove old
7729 way of marking pure calls.
7730 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
7731 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
7732 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
7733 RTL_CONST_OR_PURE_CALL_P.
7734 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
7735 * loop-invariant.c (find_exits, find_invariant_bb): Changed
7736 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
7737 * sched-deps.c (schedule_analyze): Ditto.
7738 * rtl.h (struct rtx_def): Use call field, unchanging field, and
7739 return_val field of calls to represent pure and const function info.
7740 (CONST_OR_PURE_CALL_P): Deleted macro.
7741 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7742 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
7743 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
7745 * tree-optimize.c (execute_fixup_cfg): Added test for
7746 ECF_LOOPING_CONST_OR_PURE.
7747 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
7749 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
7750 effects for looping pure or const calls.
7751 (verify_gimple_expr): Added verification code.
7752 * config/alpha/alpha.c (alpha_legitimize_address,
7753 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
7755 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
7756 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
7757 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
7758 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
7759 RTL_CONST_OR_PURE_CALL_P.
7760 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
7761 and const calls to be deleted.
7763 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
7766 * config/i386/mmx.md (mmx_subv2sf3): New expander.
7767 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
7768 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
7769 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7770 to handle nonimmediate operands.
7771 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
7772 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
7773 to handle nonimmediate operands.
7774 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
7775 (mmx_pmulhrwv4hi3): New expander. Use
7776 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7777 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
7778 (sse2_umulv1siv1di3): New expander. Use
7779 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7780 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
7781 (mmx_eq<mode>3): New expander. Use
7782 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7783 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
7784 (mmx_uavgv8qi3): New expander. Use
7785 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7786 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
7787 (mmx_uavgv4hi3): New expander. Use
7788 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7790 * config/i386/sse.md
7791 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
7792 to handle nonimmediate operands.
7793 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
7794 to handle nonimmediate operands.
7795 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
7796 to handle nonimmediate operands.
7797 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
7798 to handle nonimmediate operands.
7799 (sse2_unpckhpd_exp): New expander. Use
7800 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7801 (sse2_unpcklpd_exp): New expander. Use
7802 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7803 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
7804 to handle nonimmediate operands.
7805 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
7806 to handle nonimmediate operands.
7807 (*sse2_<plusminus_insn><mode>3): Rename from
7808 sse2_<plusminus_insn><mode>3 insn pattern.
7809 (sse2_<plusminus_insn><mode>3): New expander. Use
7810 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7811 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
7812 (sse2_umulv2siv2di3): New expander. Use
7813 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7814 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
7815 (sse4_1_mulv2siv2di3): New expander. Use
7816 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7817 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
7818 (sse2_pmaddwd): New expander. Use
7819 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7820 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
7821 (sse2_eq<mode>3): New expander. Use
7822 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7823 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
7824 (sse4_1_eqv2di3): New expander. Use
7825 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7826 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7827 (sse2_uavgv16qi3): New expander. Use
7828 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7829 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7830 (sse2_uavgv16qi3): New expander. Use
7831 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7832 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
7833 (sse2_uavgv8hi3): New expander. Use
7834 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7835 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
7836 (ssse3_pmulhrswv8hi3): New expander. Use
7837 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7838 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
7839 (ssse3_pmulhrswv4hi3): New expander. Use
7840 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7842 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
7843 (<sse>_vmmul<mode>3): Ditto.
7844 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
7846 (ssse3_pmaddubsw128): Use register_operand for operand 1.
7847 (ssse3_pmaddubsw): Ditto.
7849 * config/i386/i386.c (struct_builtin_description)
7850 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
7851 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
7852 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
7853 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
7854 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
7855 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
7856 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
7857 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
7858 (ix86_fixup_binary_operands): Assert that src1
7859 and src2 must have the same mode when swapped.
7860 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
7861 and ix86_binary_operator_ok. Do not force operands in registers
7864 2008-05-07 Jan Hubicka <jh@suse.cz>
7866 * cgraph.c (dump_cgraph_node): Update.
7867 * cgraph.h (cgraph_local_info): Break out inline summary.
7868 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
7870 * ipa-inline (inline_summary): New accestor function.
7871 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
7872 cgraph_decide_inlining, compute_inline_parameters): Update.
7873 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
7875 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
7877 Cleanup ColdFire scheduling support and add V4 pipeline model.
7879 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
7880 (define_attr cpu): Add cfv4 value.
7881 (define_attr type, define_attr type1): Merge into a single 'type'
7882 attribute. Update all uses.
7883 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
7884 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
7886 (define_attr opx_mem, define_attr opy_mem): Remove.
7887 (define_attr op_mem): Clean up, update comment.
7888 (define_attr size): Use specific values instead of general int.
7889 (define_attr guess, define_attr split): Remove. Update all uses.
7890 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
7891 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
7892 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
7893 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
7894 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
7895 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
7896 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
7897 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
7898 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
7899 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
7900 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
7901 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
7902 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
7903 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
7904 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
7905 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
7906 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
7907 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
7908 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
7909 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
7910 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
7911 Update or set attributes.
7912 (stack_tie): New fake instruction.
7914 * config/m68k/m68k.h (TUNE_CFV4): New macro.
7915 (m68k_sched_attr_size): Update declaration.
7916 (m68k_sched_attr_type2): Remove.
7917 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
7918 Declare new bypass predicates.
7920 * config/m68k/m68k.c (m68k_sched_issue_rate,
7921 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
7923 (TARGET_SCHED_ISSUE_RATE,
7924 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
7925 (override_options): Handle scheduling for ColdFire V4 core.
7926 (m68k_expand_prologue): Emit stack_tie.
7927 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
7928 'OP_TYPE_FPN'. Update all uses.
7929 (sched_guess_p): Remove.
7930 (sched_address_type): Handle symbolic addresses.
7931 (sched_get_operand): New static function.
7932 (sched_operand_type): Merge into sched_attr_op_type.
7933 (sched_attr_op_type): Handle FP registers, handle quick constants,
7935 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
7936 (m68k_sched_attr_size): Update. Move logic to ...
7937 (sched_get_attr_size_int): New static function.
7938 (sched_get_opxy_mem_type): New static function.
7939 (m68k_sched_attr_op_mem): Update.
7940 (m68k_sched_attr_type2): Remove.
7941 (sched_cfv4_bypass_data): New static variable.
7942 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
7943 (m68k_sched_issue_rate): Implement scheduler hook.
7944 (struct _sched_ib: enabled_p): New field.
7945 (m68k_sched_variable_issue): Update. Handle V4.
7946 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
7947 sched_dump_class_func_t, sched_dump_split_class,
7948 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
7949 sched_dump_dfa_class, m68k_sched_dump): Remove.
7950 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
7952 (m68k_sched_init_global): Remove statisctics dumping, introduce
7953 sanity check that all instructions have pipeline reservations. Handle
7955 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
7956 Handle ColdFire V4 core.
7957 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
7958 New static functions.
7959 (m68k_sched_address_bypass_p): New bypass predicate.
7960 (sched_get_indexed_address_scale): New static function.
7961 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
7963 * cf.md: Update comments.
7964 (define_attr type2): Remove. Use 'type' attribute instead.
7966 (cf_ib): Rename to cfv123_ib. Update all uses.
7967 (cf_oep): Rename to cfv123_oep. Update all uses.
7968 (cf_chr): Rename to cfv123_chr. Update all uses.
7969 (cf_mem): Rename to cfv123_mem. Update all uses.
7970 (cf_mac): Move to more appropriate place.
7971 (cfv123_guess): New automaton and cpu_unit.
7972 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
7973 Update uses of 'size' attribute. Handle before reload scheduling.
7974 (cfv123_guess): New dummy reservation for unhandled instructions.
7975 (cfv4_*): Pipeline description of ColdFire V4 core.
7976 (ignore): New reservation to handle 'ignore' type.
7978 2008-05-07 Ian Lance Taylor <iant@google.com>
7981 * gimplify.c (find_single_pointer_decl_1): Don't look through
7983 (find_single_pointer_decl): Adjust comments.
7985 2008-05-07 Jakub Jelinek <jakub@redhat.com>
7988 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
7989 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
7992 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
7993 integral type rather than floating point, then VIEW_CONVERT_EXPR
7994 to the floating point type.
7996 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
7998 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
7999 TFmode op0 to register.
8001 2008-05-07 Alan Modra <amodra@bigpond.net.au>
8003 * c-decl.c (grokdeclarator): Comment typo.
8005 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
8007 * tree-flow.h: Remove prototype for computed_goto_p.
8008 * tree-cfg.c (computed_goto_p): Make static.
8010 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
8013 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
8014 (contains_aligned_value_p): This. Handle _Decimal128.
8015 (ix86_function_arg_boundary): Only align _Decimal128 to its
8016 natural boundary and handle it properly.
8018 2008-05-06 Martin Jambor <mjambor@suse.cz>
8020 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8021 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8022 (ipcp_method_set_orig_node): Removed.
8023 (ipcp_cval_get_cvalue_type): Removed.
8024 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8025 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8026 (ipcp_cval_set_cvalue_type): Removed.
8027 (ipcp_cval_get_cvalue): Removed.
8028 (ipcp_cval_set_cvalue): Removed.
8029 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8030 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8031 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8032 (ipcp_cval_meet): Renamed to ipa_lattice_meet
8033 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8034 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8035 (ipcp_get_ith_lattice): Changed parameters.
8036 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8037 (ipcp_lattice_from_jfunc): Changed parameters.
8038 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8039 (ipcp_method_cval_print): Added temporary variable info.
8040 (ipcp_redirect): Removed already unused local variable caller.
8041 (ipcp_redirect): New temporary variable orig_callee_info
8042 (ipcp_redirect): Removed newly unused local variable callee.
8043 (ipcp_redirect): Removed (a bit confusing) local variable type.
8044 (ipcp_insert_stage): Added local variable info.
8045 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
8047 (ipcp_formal_create): Removed.
8048 (ipcp_method_cval_set): Removed.
8049 (ipcp_propagate_stage): Renamed lattice variables.
8050 (ipcp_method_cval_set_cvalue_type): Removed.
8051 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
8052 (ipcp_print_all_lattices): Changed printed strings to refer to
8053 lattices rather than cvals.
8054 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8055 (ipcp_propagate_const): Changed formal parameters.
8056 (build_const_val): Changed formal parameters.
8057 (ipcp_insert_stage): Removed useless variable cvalue
8058 (build_const_val): Changed formal parameters.
8059 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8060 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8061 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8062 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
8063 (ipcp_print_func_profile_counts): Changed string from "method" to
8065 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8066 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8067 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8068 (ipcp_structures_print): Renamed to ipcp_print_all_structures
8069 (ipcp_profile_print): Renamed to ipcp_print_profile_data
8070 (ipcp_lat_is_const): Changed parameters and made inline.
8071 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8072 (ipcp_redirect): Renamed to ipcp_need_redirect_p
8073 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
8074 the predicate condition directly
8075 (ipcp_propagate_stage): Added local variable args. Removed local
8076 variable callee. (Both are mere code simplifications.)
8077 (ipcp_method_dont_insert_const): Renamed to
8078 ipcp_node_not_modifiable_p.
8079 (ipcp_node_not_modifiable_p): Made inline.
8080 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8081 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8082 (ipcp_print_all_lattices): Removed variable cvalue
8083 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8086 2008-05-06 Olivier Hainque <hainque@adacore.com>
8088 * tree-sra.c (try_instantiate_multiple_fields): Early return
8089 if field has POINTER_TYPE.
8091 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
8093 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
8094 by using 'q' specifier for instruction.
8095 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
8097 2008-05-06 Anatoly Sokolov <aesok@post.ru>
8099 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8100 Change mode of zero_extract from QImode to HImode.
8101 (sign bit tests peepholes): (Ditto.).
8103 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
8105 * config/i386/mmx.md: Remove double backslashes from asm templates.
8106 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
8107 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8108 to handle nonimmediate operands.
8109 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
8110 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8111 to handle nonimmediate operands.
8112 (*mmx_<code>v2sf3_finite): New insn pattern.
8113 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
8114 (mmx_<code>v2sf3): New expander. Use
8115 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8116 (mmx_<plusminus_insn><mode>3): New expander. Use
8117 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8118 (*mmx_<plusminus_insn><mode>3): New insn pattern.
8119 (mmx_add<mode>3): Removed.
8120 (mmx_ssadd<mode>3): Ditto.
8121 (mmx_usadd<mode>3): Ditto.
8122 (mmx_sub<mode>3): Ditto.
8123 (mmx_sssub<mode>3): Ditto.
8124 (mmx_ussub<mode>3): Ditto.
8125 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
8126 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
8127 to handle nonimmediate operands.
8128 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
8130 (mmx_smulv4hi3_highpart): New expander. Use
8131 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8132 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8134 (mmx_umulv4hi3_highpart): New expander. Use
8135 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8136 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8137 (mmx_<code>v4hi3): New expander. Use
8138 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8139 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8140 (mmx_<code>v8qi3): New expander. Use
8141 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8142 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8143 (mmx_<code><mode>3): New expander. Use
8144 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8146 2008-05-05 Jan Hubicka <jh@suse.cz>
8148 PR tree-optimization/36118
8149 * passes.c (pass_init_dump_file): Fix dump header.
8151 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
8154 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
8155 VCE for function decls.
8157 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
8159 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
8161 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
8163 * config/i386/i386.md (sat_plusminus): New.
8164 (plusminus_insn): Likewise.
8165 (plusminus_mnemonic): Likewise.
8167 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
8168 (*<addsub><mode>3_cc_overflow): Renamed to ...
8169 (*<plusminus_insn><mode>3_cc_overflow): This.
8170 (*<addsub>si3_zext_cc_overflow): Renamed to ...
8171 (*<plusminus_insn>si3_zext_cc_overflow): This.
8173 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8174 (<plusminus_insn><mode>3): This.
8175 (*<addsub><mode>3): Renamed to ...
8176 (*<plusminus_insn><mode>3): This.
8177 (<sse>_vm<addsub><mode>3): Renamed to ...
8178 (<sse>_vm<plusminus_insn><mode>3): This.
8179 (sse3_h<addsub>v4sf3): Renamed to ...
8180 (sse3_h<plusminus_insn>v4sf3): This.
8181 (sse3_h<addsub>v2df3): Renamed to ...
8182 (sse3_h<plusminus_insn>v2df3): This.
8183 (<plusminus_insn><mode>3): New.
8184 (*<plusminus_insn><mode>3): Likewise.
8185 (sse2_<plusminus_insn><mode>3): Likewise.
8186 (add<mode>): Removed.
8187 (*add<mode>3): Likewise.
8188 (sse2_ssadd<mode>3): Likewise.
8189 (sse2_usadd<mode>3): Likewise.
8190 (sub<mode>3): Likewise.
8191 (*sub<mode>3): Likewise.
8192 (sse2_sssub<mode>3): Likewise.
8193 (sse2_ussub<mode>3): Likewise.
8195 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
8197 * gthr-single.h: Add in required interface elements as per gthr.h.
8198 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8199 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8200 Generalize UNUSED macro.
8201 (__gthread_once): Add.
8202 (__gthread_key_create): Add.
8203 (__gthread_key_delete): Add.
8204 (__gthread_getspecific): Add.
8205 (__gthread_setspecific): Add.
8207 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
8209 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8210 the same size types for the indirect reference on the rhs, then
8213 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
8215 * config/i386/i386.md
8216 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8217 one insn template instead of template series.
8218 (*xordi_1_rex64): Ditto.
8219 (*xordi_2_rex64): Ditto.
8221 2008-05-05 Ira Rosen <irar@il.ibm.com>
8223 PR tree-optimization/36119
8224 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8227 2008-06-04 Jan Hubicka <jh@suse.cz>
8229 tree-optimization/36100
8230 * tree-pass.h (pass_O0_always_inline): Declare.
8231 * ipa-inline.c (inline_transform): Remove dead code.
8232 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8233 pass_O0_always_inline): New.
8234 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8236 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
8238 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8239 mnemonic in this_param move for TARGET_64BIT.
8241 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
8243 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8244 (*strmovsi_rex_1): Ditto.
8245 (*strsetsi_1): Ditto.
8246 (*strsetsi_rex_1): Ditto.
8248 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8249 adddicc expanders using SWI mode iterator.
8251 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
8254 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8257 2008-05-04 David S. Miller <davem@davemloft.net>
8259 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8260 (sparc*-*-linux*): Use linux.h in tm_file.
8261 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8262 compiler defaulting to 32-bit.
8263 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8265 * config/sparc/linux.h: Remove definitions now obtained
8266 properly from linux.h
8267 * config/sparc/linux64.h: Likewise.
8268 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8269 don't want this setting for 32-bit builds in a biarch compiler.
8270 * doc/install.texi: Add sparc-linux to list of targets
8271 supporting --enable-targets=all.
8273 2008-05-03 Andrew Pinski <pinskia@gmail.com>
8275 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8277 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
8279 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8280 after V4SI_FTYPE_V8HI.
8281 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8282 case V4SI_FTYPE_V2DF.
8284 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8286 * doc/invoke.texi (max-flow-memory-locations): Removed.
8287 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8289 2008-05-03 Richard Guenther <rguenther@suse.de>
8292 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8294 2008-05-02 David S. Miller <davem@davemloft.net>
8296 * config.gcc (need_64bit_hwint): Document libcpp dependency.
8298 2008-05-02 Simon Baldwin <simonb@google.com>
8301 * c-common.h (warn_array_subscript_range): Removed.
8302 * c-common.c (warn_array_subscript_range): Ditto.
8303 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8304 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8306 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
8308 * config/i386/i386.c (ix86_special_builtin_type): New.
8309 (bdesc_special_args): Likewise.
8310 (ix86_expand_special_args_builtin): Likewise.
8311 (ix86_init_mmx_sse_builtins): Updated.
8312 (ix86_expand_builtin): Updated.
8313 (ix86_expand_store_builtin): Removed.
8314 (ix86_expand_unop_builtin): Likewise.
8316 * config/i386/mm3dnow.h (__v2sf): Moved to ...
8317 * config/i386/mmintrin.h (__v2sf): Here.
8319 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8321 (_mm_loadl_pi): Likewise.
8322 (_mm_storeh_pi): Replace __v2si with __v2sf.
8323 (_mm_storel_pi): Likewise.
8325 * doc/extend.texi: Correct __builtin_ia32_loadhps,
8326 __builtin_ia32_loadlps, __builtin_ia32_storehps,
8327 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8328 __builtin_ia32_loadlpd.
8330 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
8332 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8333 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8334 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
8335 (ix86_init_mmx_sse_builtins): Updated.
8336 (ix86_expand_args_builtin): Likewise.
8337 (ix86_expand_builtin): Likewise.
8338 (ix86_expand_unop1_builtin): Renamed to ...
8339 (ix86_expand_unop_vec_merge_builtin): This.
8341 2008-05-01 Jan Hubicka <jh@suse.cz>
8344 * ipa-inline.c (inline_generate_summary): Make static.
8345 (inline_transform): Do not call inlining at -O0; make static.
8346 * passes.c (execute_todo): Add sanity check.
8347 (execute_one_ipa_transform_pass): Execute proper flags.
8349 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
8351 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8352 (DECL_NONADDRESSABLE_P): Likewise.
8353 * alias.c (record_component_aliases): Fix comment.
8355 2008-05-01 Simon Baldwin <simonb@google.com>
8357 * c-common.h (warn_array_subscript_range): New function.
8358 * c-common.c (warn_array_subscript_range): Ditto.
8359 * tree-vrp.c (check_array_ref): Corrected code to agree with
8360 comment, ignoring only arrays of size 0 or size 1.
8361 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8363 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8365 * config/i386/i386.c (ix86_builtin_type): Replace
8366 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8367 (bdesc_args): Updated.
8368 (ix86_init_mmx_sse_builtins): Likewise.
8369 (ix86_expand_args_builtin): Likewise.
8371 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8374 * doc/extend.texi: Correct __builtin_ia32_palignr.
8376 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8379 * config/i386/i386.c (bdesc_crc32): Removed.
8380 (ix86_expand_crc32): Likewise.
8381 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8382 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8383 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
8384 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8385 UINT_FTYPE_UINT_UCHAR.
8386 (bdesc_args): Updated. Add crc32 builtins.
8387 (ix86_init_mmx_sse_builtins): Updated.
8388 (ix86_expand_args_builtin): Updated to support subreg.
8390 * doc/extend.texi: Correct __builtin_ia32_crc32di.
8392 2008-05-01 Jan Hubicka <jh@suse.cz>
8394 * tree-pass.h (opt_pass): Add IPA_PASS.
8395 (varpool_node, cgraph_node): Forward declare.
8396 (ipa_opt_pass): Define.
8397 (pass_ipa_inline): Turn into ipa_opt_pass.
8398 (pass_apply_inline): Remove.
8399 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8400 (apply_inline): Turn into ....
8401 (inline_transform): ... this one.
8402 (inline_generate_summary): New function.
8403 (pass_apply_inline): Remove.
8404 * function.h (ipa_opt_pass): Forward declare structure; typedef;
8406 (struct function): Add ipa_transforms_to_apply.
8407 * passes.c (register_one_dump_file): Work on IPA_PASS.
8408 (init_optimization_passes): Remove pass_inline_parameters and
8410 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8411 (execute_one_pass) ... here; apply transforms when possible.
8412 (add_ipa_transform_pass, execute_ipa_summary_asses,
8413 execute_one_ipa_transform_pass): New.
8414 (execute_ipa_pass_list): Update for IPA_PASS type.
8416 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8418 * config/i386/i386.c (ix86_builtin_type): Add
8419 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
8420 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
8421 (bdesc_args): Add SSE4a builtins.
8422 (ix86_init_mmx_sse_builtins): Updated.
8423 (ix86_expand_args_builtin): Likewise.
8424 (ix86_expand_builtin): Likewise.
8426 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8428 * config/i386/i386.c (ix86_builtin_type): Add
8429 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
8430 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
8431 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
8432 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
8433 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
8434 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
8435 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
8436 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
8437 and DI_FTYPE_DI_DI_INT.
8438 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
8439 (ix86_init_mmx_sse_builtins): Updated.
8440 (ix86_expand_args_builtin): Likewise.
8441 (ix86_expand_builtin): Likewise.
8442 (ix86_expand_binop_imm_builtin): Removed.
8444 * doc/extend.texi: Correct __builtin_ia32_palignr128.
8446 2008-04-30 Richard Guenther <rguenther@suse.de>
8448 PR tree-optimization/32921
8449 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
8451 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
8453 * config/arm/arm.c (arm_unwind_emit): Use
8454 crtl->all_throwers_are_sibcalls instead of
8455 cfun->all_throwers_are_sibcalls.
8456 (arm_output_fn_unwind): Likewise.
8457 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
8458 instead of cfun->uses_pic_offset_table.
8459 (frv_expand_prologue): Likewise.
8460 (frv_frame_pointer_required): Likewise.
8461 (frv_expand_fdpic_call): Likewise.
8462 (frv_emit_movsi): Likewise.
8463 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
8464 cfun->returns_pcc_struct instead of
8465 current_function_returns_pcc_struct.
8466 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
8467 instead of cfun->calls_eh_return.
8468 (m32c_pushm_popm): Likewise.
8469 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
8470 "extern" declaration.
8472 2008-04-30 Richard Guenther <rguenther@suse.de>
8474 PR tree-optimization/21636
8475 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
8477 (evaluate_stmt): Print the likely value.
8478 (ccp_visit_stmt): Avoid excessive vertical spacing.
8480 2008-04-30 Rafael Espindola <espindola@google.com>
8482 * builtins.c (fold_call_expr): Return realret.
8483 * tree-ssa-threadedge.c
8484 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8485 __builtin_object_size.
8487 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
8489 * gcc.c (wrapper_string): New variable.
8490 (insert_wrapper): New function.
8491 (execute): New option -wrapper.
8492 * doc/invoke.texi (Overall Options): New driver option -wrapper.
8494 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
8496 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
8497 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
8498 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
8500 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
8501 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
8502 config/rs6000/e500crtres64gprctr.asm,
8503 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
8504 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
8505 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
8506 config/rs6000/e500crtsav64gprctr.asm,
8507 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
8508 config/rs6000/e500crtsavg64gprctr.asm: New files.
8509 * config/rs6000/t-ppccomm: Add build rules for new files.
8510 (LIB2FUNCS_STATIC_EXTRA): Add new files.
8511 * config/rs6000/t-netbsd: Add build rules for new files.
8512 (LIB2FUNCS_STATIC_EXTRA): New variable.
8513 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
8514 (CRTSAVRES_DEFAULT_SPEC): Likewise.
8515 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
8517 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
8519 * config/i386/i386.c (ix86_builtin_type): Add
8520 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
8521 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
8522 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
8523 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
8524 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
8525 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
8526 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
8527 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
8528 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
8529 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
8530 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
8531 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
8532 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
8533 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
8534 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
8535 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
8536 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
8537 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
8538 V1DI_FTYPE_V2SI_V2SI.
8539 (bdesc_2arg): Moved to ...
8541 (ix86_init_mmx_sse_builtins): Updated.
8542 (ix86_expand_args_builtin): Updated. Take a pointer
8543 to const struct builtin_description. Handle comparison
8545 (ix86_expand_sse_compare): Take a new argument for swapping operands.
8546 (ix86_expand_builtin): Updated.
8548 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
8549 (ssse3_pmaddubsw128): This.
8550 (ssse3_pmaddubswv4hi3): Renamed to ...
8551 (ssse3_pmaddubsw): This.
8553 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
8554 (__builtin_ia32_packssdw128): Likewise.
8555 (__builtin_ia32_packuswb128): Likewise.
8556 (__builtin_ia32_pmaddubsw): Likewise.
8557 (__builtin_ia32_pmaddubsw128): Likewise.
8559 2008-04-30 Richard Guenther <rguenther@suse.de>
8561 PR tree-optimization/14847
8562 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
8563 (recognize_bits_test): Use it.
8564 (recognize_single_bit_test): Likewise.
8566 2008-04-30 Martin Jambor <mjambor@suse.cz>
8568 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
8569 instead of setting number of formal parameters to zero.
8570 (ipcp_init_stage): Do not set the number of actual parameters to zero
8572 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
8573 which are called with variable number of arguments.
8574 (ipcp_insert_stage): Explicitely skipping all nodes which are
8575 called with variable number of arguments.
8576 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
8577 number of parameters.
8579 * ipa-prop.h (struct ipa_node_params): Added flag
8580 called_with_var_arguments
8581 (ipa_set_param_count): Added. Changed sole setter to use it.
8582 (ipa_get_param_count): Added. All readers of param_count
8583 converted to use it instead.
8584 (ipa_set_called_with_variable_arg): Added.
8585 (ipa_is_called_with_var_arguments): Added.
8586 (ipa_get_ith_param): Added. All readers of param_decls converted
8588 (ipa_set_cs_argument_count): Added, sole writer to argument_count
8590 (ipa_get_cs_argument_count): Added, all readers of argument_count
8592 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
8595 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
8596 (struct ipcp_lattice): Renamed cval_type to type
8597 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
8599 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
8600 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
8601 (ipcp_insert_stage): Changed the type of variable cvalue to tree
8602 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
8603 (build_const_val): Changed the type of parameter cvalue to tree
8604 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
8605 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
8607 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
8610 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
8611 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
8612 (ipa_add_method): Renamed to ipa_push_func_to_list
8613 (ipa_remove_method): Renamed to ipa_pop_func_from_list
8614 (ipa_callsite_param_count): Removed.
8615 (ipa_callsite_param_count_set): Removed.
8616 (ipa_callsite_param): Removed.
8617 (ipa_callsite_callee): Removed.
8618 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
8619 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
8620 (ipa_method_formal_count): Removed.
8621 (ipa_method_formal_count_set): Removed.
8622 (ipa_method_get_tree): Removed.
8623 (ipa_method_tree_map_create): Removed.
8624 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
8625 (ipa_create_param_decls_array): Creates the array itself
8626 (ipa_create_param_decls_array): Temporary variable info instead of
8628 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
8629 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
8630 (get_type): Removed.
8631 (ipa_jf_get_info_type): Removed.
8632 (ipa_node_create): Renamed to ipa_create_node_params
8633 (ipa_free): Renamed to ipa_free_all_node_params
8634 (ipa_nodes_create): Renamed to ipa_create_all_node_params
8635 (ipa_edges_create): Renamed to ipa_create_all_edge_args
8636 (ipa_edges_free): Renamed to ipa_free_all_edge_args
8637 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
8638 (ipa_free_all_node_params): Deallocation to jump_functions moved to
8639 ipa_free_all_edge_args
8640 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
8641 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
8642 (ipa_create_methodlist_node): Removed.
8643 (ipa_methodlist_method): Removed.
8644 (ipa_methodlist_method_set): Removed.
8645 (ipa_methodlist_next_method): Removed.
8646 (ipa_methodlist_next_method_set): Removed.
8647 (ipa_method_is_modified): Removed.
8648 (ipa_method_modify_create): Removed.
8649 (ipa_method_modify_init): Temporary variable info instead of a few
8651 (ipa_detect_param_modifications): Temporary variable info instead of
8653 (ipa_compute_jump_functions): Temporary variable info instead of
8655 (ipa_method_modify_set): Removed.
8656 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
8657 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
8658 than craph_node as the first parameter.
8659 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
8660 (ipa_method_modify_init): Removed.
8661 (ipa_compute_jump_functions): Added a temp variable instead of
8662 repeatadly dereferencing the cgraph_edge.aux pointer
8663 (ipa_callsite_param_set_type): Removed.
8664 (ipa_compute_jump_functions): i renamed to index and moved to
8666 (ipa_callsite_param_set_info_type_formal): Removed.
8667 (ipa_callsite_param_set_info_type): Removed.
8668 (ipa_callsite_param_map_create): Removed.
8669 (ipa_callsite_tree): Removed.
8670 (ipa_callsite_caller): Removed.
8671 (ipa_pop_func_from_list): return_method removed to return_func
8673 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
8674 prefixed all values with IPA_. Changed all users.
8675 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
8676 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
8677 and FORMAL_IPATYPE IPA_PASS_THROUGH.
8678 (union parameter_info): Renamed to jump_func_value.
8679 (union jump_func_value): Renamed value to constant
8680 (struct ipa_jump_func): Renamed info_type to value
8681 (struct ipa_node): Renamed to ipa_node_params
8682 (struct ipa_node_params): Renamed ipa_arg_num to param_count
8683 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
8684 (struct ipa_node_params): Renamed ipa_mod to modified_flags
8685 (struct ipa_edge): Renamed to ipa_edge_args
8686 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
8687 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
8688 (struct ipa_methodlist): Renamed to ipa_func_list
8689 (struct ipa_func_list): method_p renamed to node, next_method
8691 (ipa_methodlist_p): Removed, switched all users to struct pointer
8692 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
8694 2008-04-30 Alan Modra <amodra@bigpond.net.au>
8696 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
8697 (rs6000_emit_epilogue): Use backchain to restore only when we
8698 have a large frame. Make use of frame pointer to restore if we
8699 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
8701 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
8703 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8704 Add mode to zero_extract.
8705 (sign bit tests peepholes): (Ditto.).
8707 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
8709 * config/i386/i386.c (ix86_builtins): Replace Prescott New
8710 Instructions in comments with SSE3.
8711 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
8712 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
8713 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
8714 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
8715 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
8716 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
8717 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
8718 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
8719 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
8720 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
8721 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
8722 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
8723 (bdesc_sse_args): Renamed to ...
8724 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
8725 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
8726 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
8728 (bdesc_1arg): Moved to ...
8730 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
8731 Instructions in comments with SSE3.
8732 (ix86_expand_sse_operands_builtin): Renamed to ...
8733 (ix86_expand_args_builtin): This. Updated.
8734 (ix86_expand_unop1_builtin): Update comments.
8735 (ix86_expand_builtin): Updated.
8737 2008-04-29 Richard Guenther <rguenther@suse.de>
8739 PR tree-optimization/36078
8740 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8741 Update virtual SSA form after cleaning up the CFG.
8743 2008-04-29 Richard Guenther <rguenther@suse.de>
8746 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
8748 2008-04-29 Richard Guenther <rguenther@suse.de>
8750 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
8751 (compute_may_aliases): Do not call finalize_ref_all_pointers.
8752 (compute_flow_insensitive_aliasing): Do not treat
8753 PTR_IS_REF_ALL pointers special.
8754 (get_smt_for): Likewise.
8755 (may_alias_p): Re-structure.
8756 (is_escape_site): A ref-all pointer conversion is not an escape site.
8757 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
8758 PTR_IS_REF_ALL pointers special.
8759 * tree-ssa-structalias.h (struct alias_info): Remove
8760 ref_all_symbol_mem_tag field.
8761 (PTR_IS_REF_ALL): Remove.
8763 2008-04-29 Richard Guenther <rguenther@suse.de>
8766 * fold-const.c (extract_muldiv_1): In combining division constants
8767 make sure to never overflow.
8769 2008-04-29 Nick Clifton <nickc@redhat.com>
8771 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
8773 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8776 * optc-gen.awk: Work around HP-UX/IA awk bug.
8778 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
8780 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
8783 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
8786 * config/i386/i386.md
8787 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
8788 Change operand 1 predicate to nonimmediate_operand.
8790 2008-04-28 Jakub Jelinek <jakub@redhat.com>
8793 * dwarf2out.c (struct die_struct): Mark as chain_circular through
8795 * gengtype.c (walk_type, write_func_for_structure): Handle
8797 * doc/gty.texi: Document chain_circular.
8799 2008-04-28 Richard Guenther <rguenther@suse.de>
8801 PR tree-optimization/36066
8802 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
8805 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
8808 * config/i386/i386.md
8809 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
8810 Use match_scratch instead of match_operand for operands 3 and 4.
8812 2008-04-27 Richard Guenther <rguenther@suse.de>
8814 PR tree-optimization/18754
8815 PR tree-optimization/34223
8816 * tree-pass.h (pass_complete_unrolli): Declare.
8817 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
8818 loop size before and after unconditionally of UL_NO_GROWTH in effect.
8819 Rewrite loop into loop closed SSA form if it is not already.
8820 (tree_unroll_loops_completely): Re-structure to iterate over
8821 innermost loops with intermediate CFG cleanups.
8822 Unroll outermost loops only if requested or the code does not grow
8824 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
8825 loops are available.
8826 (tree_vectorize): Instead do so here.
8827 (tree_complete_unroll): Also unroll outermost loops.
8828 (tree_complete_unroll_inner): New function.
8829 (gate_tree_complete_unroll_inner): Likewise.
8830 (pass_complete_unrolli): New pass.
8831 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
8832 uses outside of the loop.
8833 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
8834 form if it is available.
8835 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
8836 * passes.c (init_optimization_passes): Schedule complete inner
8837 loop unrolling pass before the first CCP pass after final inlining.
8839 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
8841 * targhooks.h (default_emutls_var_fields,
8842 default_emutls_var_init): Declare.
8843 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
8844 * target.h (struct gcc_target): Add struct emutls member.
8845 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
8846 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
8847 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
8848 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
8849 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
8850 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
8851 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
8852 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
8853 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
8854 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
8855 emit debug information.
8856 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
8857 * varasm.c: Include targhooks.h.
8858 (emutls_object_section, emutls_tmpl_section): New.
8859 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
8860 (EMUTLS_SEPARATOR): New.
8862 (get_emutls_object_name): New.
8863 (default_emutls_var_fields): New, broken out of ...
8864 (get_emutls_object_type): ... here. Adjust to use target hooks.
8865 (get_emutls_init_templ_addr): Adjust to use target hooks.
8866 (emutls_decl): Adjust to use target hooks.
8867 (emutls_finish): Likewise.
8868 (default_emutls_var_init): New, broken out of ...
8869 (assemble_variable): ... here. Adjust to use target hooks.
8870 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
8872 * c-common.c (handle_section_attribute): Prevent overriding
8873 sections for emulated tls with special sections.
8874 * config/i386/i386.c (x86_64_elf_select_section): Add
8875 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
8876 (x86_64_elf_unique_section): Likewise.
8877 * config/vxworks.c: Include tree.h.
8878 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
8879 (vxworks_override_options): Set TLS scheme.
8880 * doc/tm.texi (Emulated TLS): New node.
8882 2008-04-26 Simon Baldwin <simonb@google.com>
8885 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
8886 with propagated string constants.
8888 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
8890 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
8891 constraint for operand 2 when operand 0 is memory operand.
8892 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
8893 operand 0 is memory operand.
8894 (fix_trunc<mode>_i387_with_temp): Ditto.
8895 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
8896 operand 2 when operand 1 is memory operand.
8897 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
8898 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
8899 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
8900 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
8901 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
8902 operands 2,3 and 4 when operand 1 is memory operand.
8903 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
8905 (fistdi2_floor_with_temp): Ditto.
8906 (fist<mode>2_floor_with_temp): Ditto.
8907 (fistdi2_ceil_with_temp): Ditto.
8908 (fist<mode>2_ceil_with_temp): Ditto.
8909 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
8911 2008-04-26 David Daney <ddaney@avtrex.com>
8913 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
8915 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
8916 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
8917 UNSPEC_UPDATE_GOT_VERSION): Renumber.
8918 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
8919 (compare_and_swap_12): New insn.
8920 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
8921 * config/mips/mips.c (mips_force_binary): New function.
8922 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
8923 (mips_expand_compare_and_swap_12): New function.
8924 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
8926 2008-04-25 Jan Hubicka <jh@suse.cz>
8929 * cfgexpand.c (pass_expand): Turn into RTL pass.
8930 * passes.c (execute_one_pass): Do pass typechecking after execution.
8931 * tree-pass.h (pass_expand): Turn into RTL pass.
8933 * function.h (struct rtl_data): Move here fields
8934 accesses_prior_frames, calls_eh_return, saves_all_registers,
8935 has_nonlocal_goto, has_asm_statement, is_thunk,
8936 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
8937 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
8938 arg_pointer_save_area_init from struct function; turn into bool.
8939 (struct function): Move
8940 calls_eh_return, saves_all_registers, has_nonlocal_goto,
8941 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
8942 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
8943 tail_call_emit, arg_pointer_save_area_init
8944 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
8945 (current_function_returns_struct, current_function_returns_pcc_struct,
8946 current_function_calls_setjmp, current_function_calls_alloca,
8947 current_function_accesses_prior_frames,
8948 current_function_calls_eh_return, current_function_is_thunk,
8949 current_function_stdarg, current_function_profile,
8950 current_function_limit_stack, current_function_uses_pic_offset_table,
8951 current_function_uses_const_pool, current_function_has_nonlocal_label,
8952 current_function_saves_all_registers,
8953 current_function_has_nonlocal_goto,
8954 current_function_has_asm_statement): Remove accesor macros.
8955 * ra-conflict.c (global_conflicts): Update.
8956 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
8957 (suitable_for_tail_call_opt_p): Update.
8958 * builtins.c (expand_builtin_return_addr): Update.
8959 (expand_builtin_setjmp_setup): Update.
8960 (expand_builtin_nonlocal_goto): Update.
8961 * final.c (final_start_function): Update.
8962 (profile_function): Update.
8963 (leaf_function_p): Update.
8964 (only_leaf_regs_used): Update.
8965 * df-scan.c (df_get_exit_block_use_set): Update.
8966 * dojump.c (clear_pending_stack_adjust): Update.
8967 * tree-stdarg.c (gate_optimize_stdarg): Update.
8968 * gimple-low.c (lower_function_body): Update.
8969 * global.c (compute_regsets): Update.
8970 (global_alloc): Update.
8971 * dwarf2out.c (dwarf2out_begin_prologue): Update.
8972 * expr.c (expand_assignment): Update.
8973 * dse.c (dse_step0): Update.
8974 (dse_step1): Update.
8975 * c-decl.c (store_parm_decls): Update.
8976 * local-alloc.c (combine_regs): Update.
8977 (find_free_reg): Update.
8978 * function.c (assign_parms_augmented_arg_list): Update.
8979 (assign_parm_find_data_types): Update.
8980 (assign_parms): Update.
8981 (allocate_struct_function): Update.
8982 (expand_function_start): Update.
8983 (expand_function_end): Update.
8984 (get_arg_pointer_save_area): Update.
8985 (thread_prologue_and_epilogue_insns): Update.
8986 (rest_of_match_asm_constraints): Update.
8987 * stor-layout.c (variable_size): Update.
8988 * gcse.c (gcse_main): Update.
8989 (bypass_jumps): Update.
8990 * gimplify.c (gimplify_function_tree): Update.
8991 * calls.c (emit_call_1): Update.
8992 (expand_call): Update.
8993 * bt-load.c (compute_defs_uses_and_gen): Update.
8994 * except.c (sjlj_assign_call_site_values): Update.
8995 (sjlj_emit_function_enter): Update.
8996 (can_throw_external): Update.
8997 (set_nothrow_function_flags): Update.
8998 (expand_builtin_unwind_init): Update.
8999 (expand_eh_return): Update.
9000 (convert_to_eh_region_ranges): Update.
9001 (output_function_exception_table): Update.
9002 * emit-rtl.c (gen_tmp_stack_mem): Update.
9003 * cfgexpand.c (expand_used_vars): Update.
9004 (tree_expand_cfg): Update.
9005 * cfgcleanup.c (rest_of_handle_jump): Update.
9006 * explow.c (allocate_dynamic_stack_space): Update.
9007 * varasm.c (assemble_start_function): Update.
9008 (force_const_mem): Update.
9009 (mark_constant_pool): Update.
9010 * tree-optimize.c (tree_rest_of_compilation): Update.
9011 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9012 * tree-cfg.c (notice_special_calls): Update.
9013 (is_ctrl_altering_stmt): Update.
9014 (tree_can_make_abnormal_goto): Update.
9015 (tree_purge_dead_abnormal_call_edges): Update.
9016 * config/alpha/predicates.md: Update.
9017 * config/alpha/alpha.c (alpha_sa_mask): Update.
9018 (alpha_sa_size): Update.
9019 (alpha_does_function_need_gp): Update.
9020 (alpha_expand_prologue): Update.
9021 (alpha_start_function): Update.
9022 (alpha_output_function_end_prologue): Update.
9023 (alpha_expand_epilogue): Update.
9024 * config/frv/frv.c (frv_stack_info): Update.
9025 (frv_expand_epilogue): Update.
9026 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9027 (s390_register_info): Update.
9028 (s390_frame_info): Update.
9029 (s390_init_frame_layout): Update.
9030 (s390_can_eliminate): Update.
9031 (save_gprs): Update.
9032 * config/spu/spu.c (spu_split_immediate): Update.
9033 (need_to_save_reg): Update.
9034 (spu_expand_prologue): Update.
9035 (spu_expand_epilogue): Update.
9036 * config/sparc/sparc.md: Update.
9037 * config/sparc/sparc.c (eligible_for_return_delay): Update.
9038 (sparc_tls_got): Update.
9039 (legitimize_pic_address): Update.
9040 (sparc_emit_call_insn): Update.
9041 (sparc_expand_prologue): Update.
9042 (output_return): Update.
9043 (print_operand): Update.
9044 (sparc_function_ok_for_sibcall): Update.
9045 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9046 * config/m32r/m32r.md: Update.
9047 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9048 (m32r_compute_frame_size): Update.
9049 (m32r_expand_prologue): Update.
9050 (m32r_expand_epilogue): Update.
9051 (m32r_legitimize_pic_address): Update.
9052 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9053 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9054 * config/i386/i386.c (ix86_frame_pointer_required): Update.
9056 (ix86_save_reg): Update.
9057 (ix86_compute_frame_layout): Update.
9058 (ix86_expand_prologue): Update.
9059 (ix86_expand_epilogue): Update.
9060 * config/sh/sh.c (output_stack_adjust): Update.
9061 (calc_live_regs): Update.
9062 (sh5_schedule_saves): Update.
9063 (sh_expand_prologue): Update.
9064 (sh_expand_epilogue): Update.
9065 (sh_setup_incoming_varargs): Update.
9066 (sh_allocate_initial_value): Update.
9067 (sh_get_pr_initial_val): Update.
9068 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9069 * config/sh/sh.md (label:): Update.
9070 * config/avr/avr.c (out_movhi_mr_r): Update.
9071 * config/crx/crx.h (enum): Update.
9072 * config/xtensa/xtensa.h (along): Update.
9073 * config/stormy16/stormy16.c Update.
9074 (xstormy16_compute_stack_layout): Update.
9075 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9076 (fr30_expand_prologue): Update.
9077 * config/cris/cris.c (cris_conditional_register_usage): Update.
9078 (cris_reg_saved_in_regsave_area): Update.
9079 (cris_initial_frame_pointer_offset): Update.
9080 (cris_simple_epilogue): Update.
9081 (cris_expand_prologue): Update.
9082 (cris_expand_epilogue): Update.
9083 (cris_expand_pic_call_address): Update.
9084 (cris_asm_output_symbol_ref): Update.
9085 (cris_asm_output_label_ref): Update.
9086 * config/cris/cris.md Update.
9087 * config/iq2000/iq2000.c (compute_frame_size): Update.
9088 (iq2000_expand_epilogue): Update.
9089 * config/mt/mt.h (save_direction): Update.
9090 * config/mn10300/mn10300.c (mn10300_function_value): Update.
9091 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9092 (ia64_secondary_reload_class): Update.
9093 * config/m68k/m68k.c (m68k_save_reg): Update.
9094 (m68k_expand_prologue): Update.
9095 (m68k_expand_epilogue): Update.
9096 (legitimize_pic_address): Update.
9097 * config/rs6000/rs6000.c (rs6000_got_register): Update.
9098 (first_reg_to_save): Update.
9099 (first_altivec_reg_to_save): Update.
9100 (compute_vrsave_mask): Update.
9101 (compute_save_world_info): Update.
9102 (rs6000_stack_info): Update.
9103 (spe_func_has_64bit_regs_p): Update.
9104 (rs6000_ra_ever_killed): Update.
9105 (rs6000_emit_eh_reg_restore): Update.
9106 (rs6000_emit_allocate_stack): Update.
9107 (rs6000_emit_prologue): Update.
9108 (rs6000_emit_epilogue): Update.
9109 (rs6000_output_function_epilogue): Update.
9110 (output_profile_hook): Update.
9111 (rs6000_elf_declare_function_name): Update.
9112 * config/rs6000/rs6000.h (rs6000_args): Update.
9113 * config/rs6000/rs6000.md: Update.
9114 * config/mcore/mcore.c (mcore_expand_prolog): Update.
9115 * config/arc/arc.c (arc_output_function_epilogue): Update.
9116 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
9117 * config/darwin.c (machopic_function_base_name): Update.
9118 * config/score/score3.c (score3_compute_frame_size): Update.
9121 (score3_epilogue): Update.
9122 * config/score/score7.c (score7_compute_frame_size): Update.
9123 (score7_prologue): Update.
9124 (score7_epilogue): Update.
9125 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
9126 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9127 * config/arm/arm.c (use_return_insn): Update.
9128 (require_pic_register): Update.
9129 (arm_load_pic_register): Update.
9130 (arm_compute_save_reg0_reg12_mask): Update.
9131 (arm_compute_save_reg_mask): Update.
9132 (thumb1_compute_save_reg_mask): Update.
9133 (output_return_instruction): Update.
9134 (arm_output_function_prologue): Update.
9135 (arm_output_epilogue): Update.
9136 (arm_get_frame_offsets): Update.
9137 (arm_expand_prologue): Update.
9138 (thumb_pushpop): Update.
9139 (thumb_exit): Update.
9140 (thumb1_expand_prologue): Update.
9141 (thumb1_expand_epilogue): Update.
9142 (arm_unwind_emit): Update.
9143 (arm_output_fn_unwind): Update.
9144 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9145 * config/arm/arm.md: Update.
9146 * config/pa/pa.md: Update.
9147 * config/pa/pa.c (legitimize_pic_address): Update.
9148 (compute_frame_size): Update.
9149 (hppa_expand_prologue): Update.
9150 (hppa_expand_epilogue): Update.
9151 (borx_reg_operand): Update.
9152 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
9153 (HARD_REGNO_RENAME_OK): Update.
9154 * config/mips/mips.c (mips_global_pointer): Update.
9155 (mips_save_reg_p): Update.
9156 (mips_compute_frame_info): Update.
9157 (mips_frame_pointer_required): Update.
9158 (mips_expand_prologue): Update.
9159 (mips_expand_epilogue): Update.
9160 (mips_can_use_return_insn): Update.
9161 (mips_reorg_process_insns): Update.
9162 * config/v850/v850.c (compute_register_save_size): Update.
9163 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
9164 * config/mmix/mmix.c (along): Update.
9165 (mmix_expand_epilogue): Update.
9166 * config/bfin/bfin.c (legitimize_pic_address): Update.
9167 (must_save_p): Update.
9168 (stack_frame_needed_p): Update.
9169 (add_to_reg): Update.
9170 (bfin_expand_prologue): Update.
9171 * stmt.c (expand_asm_operands): Update.
9172 * reload1.c (reload): Update.
9173 (init_elim_table): Update.
9175 2008-04-25 Bob Wilson <bob.wilson@acm.org>
9177 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9179 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
9181 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9182 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
9183 (mov<mode>): Removed.
9184 (*movv4sf_internal): Likewise.
9185 (*movv2df_internal): Likewise.
9187 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9189 * config.gcc (crx-*-elf): Remove deprecation.
9191 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
9193 * config/i386/cygming-crtend.c (register_frame_ctor): Register
9194 __gcc_deregister_frame with atexit.
9195 (deregister_frame_dtor): Remove.
9197 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
9198 Nathan Sidwell <nathan@codesourcery.com>
9200 * config/rs6000/rs6000.opt (mspe): Remove Var property.
9202 * config/rs6000/rs6000.h (rs6000_spe): Declare.
9203 (rs6000_isel): Likewise.
9204 * config/rs6000/rs6000.c (rs6000_spe): New variable.
9205 (rs6000_isel): New variable.
9206 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9208 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9211 * c-common.c (handle_vector_size_attribute): Call
9212 lang_hooks.types.reconstruct_complex_type instead of
9213 reconstruct_complex_type.
9214 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9215 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9216 * langhooks.h (struct lang_hooks_for_types): Add
9217 reconstruct_complex_type hook.
9218 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9219 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9221 2008-04-24 Richard Guenther <rguenther@suse.de>
9223 * c-common.h (check_builtin_function_arguments): Declare.
9224 * c-common.c (validate_nargs): New function.
9225 (check_builtin_function_arguments): Likewise.
9226 * c-typeck.c (build_function_call): Call
9227 check_builtin_function_arguments.
9228 * builtins.c (fold_builtin_classify): Remove error reporting code.
9229 (fold_builtin_unordered_cmp): Likewise.
9230 (fold_builtin_1): Likewise.
9231 (fold_builtin_n): Likewise.
9233 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9235 PR tree-optimization/36008
9236 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9237 the original op1, rather than delta by step.
9239 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
9240 Sebastian Pop <sebastian.pop@amd.com>
9242 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9243 eliminate_local_variables_stmt, eliminate_local_variables,
9244 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9245 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9246 of code delimited by two edges in the CFG.
9247 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9248 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9249 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
9250 the case of parallelisation of reductions.
9251 (expr_invariant_in_region_p): New.
9253 * tree-flow.h (gather_blocks_in_sese_region): Declared.
9254 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9256 2008-04-24 Ira Rosen <irar@il.ibm.com>
9257 Richard Guenther <rguenther@suse.de>
9259 PR tree-optimization/36034
9260 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9261 incapable of dealing with loads with gaps.
9263 2008-04-24 Rafael Espindola <espindola@google.com>
9265 * tree-flow.h (vrp_evaluate_conditional): Change signature.
9266 * tree-ssa-propagate.c (fold_predicate_in): Update call to
9267 vrp_evaluate_conditional.
9268 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9269 (vrp_evaluate_conditional): Split the cond argument.
9270 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9271 (simplify_stmt_for_jump_threading): Update call to
9272 vrp_evaluate_conditional.
9274 2008-04-24 Ira Rosen <irar@il.ibm.com>
9276 PR tree-optimization/35982
9277 * tree-vect-analyze.c (vect_check_interleaving): Check that the
9278 interleaved data-refs are of the same type.
9280 2008-04-24 Danny Smith <dannysmith@users.net>
9282 * c-format.c (check_format_info_main): Use strncmp rather than a
9283 magic prefix to handle multichar length specs.
9284 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9285 Don't prefix "I64" and "I32" with '\0'.
9287 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9290 * config/i386/i386.c (init_cumulative_args): Don't pass anything
9291 in registers for -m32 only if stdarg_p (fntype).
9293 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
9295 PR rtl-optimization/36006
9296 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9297 temp to op0 in order to avoid invalid rtx sharing.
9299 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
9301 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
9302 check TREE_INVARIANT.
9303 * tree-gimple.c (is_gimple_address): New.
9304 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9305 * tree-gimple.h (is_gimple_address): New.
9306 * tree.h (decl_address_invariant_p): New.
9307 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9308 (build_string): Likewise.
9309 (decl_address_invariant_p): New, from is_gimple_invariant_address.
9310 (tree_invariant_p_1): Likewise.
9311 (save_expr): Use it.
9312 (tree_invariant_p): New.
9313 (skip_simple_arithmetic): Use it.
9314 (stabilize_reference_1): Use it.
9315 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9317 (build1_stat): Drop code to compute TREE_INVARIANT.
9318 (build2_stat): Drop code to compute TREE_INVARIANT.
9319 (build3_stat): Drop code to compute TREE_INVARIANT.
9320 (build4_stat): Drop code to compute TREE_INVARIANT.
9321 (build5_stat): Drop code to compute TREE_INVARIANT.
9322 (build7_stat): Drop code to compute TREE_INVARIANT.
9323 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9324 * tree.h (struct tree_base): Remove invariant_flag.
9325 (TREE_INVARIANT): Remove.
9326 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9327 (fold_builtin_expect): Check TREE_CONSTANT.
9328 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9329 * c-tree.h (c_expr_to_decl): Drop third parameter.
9330 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9331 (build_c_cast): Don't set TREE_INVARIANT.
9332 (pop_init_level): Don't set TREE_INVARIANT.
9333 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9334 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9336 (gimplify_init_constructor): Don't set TREE_INVARIANT.
9337 (gimplify_addr_expr): Adjust comment.
9338 * tree-mudflap.c (mf_build_string):
9339 * print-tree.c (print_node): Don't print TREE_INVARIANT.
9340 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9341 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9342 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9343 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9344 * langhooks.h (struct lang_hooks): Drop third parameter from
9347 2008-04-23 Richard Guenther <rguenther@suse.de>
9349 PR tree-optimization/27799
9350 PR tree-optimization/32921
9351 PR tree-optimization/32624
9352 * tree-ssa-structalias.c (merge_smts_into): Only merge the
9353 SMTs aliases and the tag itself into the solution.
9354 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9355 merge the points-to solution back into the SMT aliases.
9356 (may_alias_p): Use alias_set_subset_of instead of
9357 aliases_conflict_p. A pointer which points to
9358 memory with alias set zero may access any variable.
9360 2008-04-23 Richard Guenther <rguenther@suse.de>
9362 * alias.c (alias_set_subset_of): Correctly handle asking
9363 if zero is a subset of an alias set with zero child.
9364 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9365 (compute_flow_insensitive_aliasing): Correctly walk all
9366 pointers. Do not unnecessarily union sets.
9368 2008-04-23 Richard Guenther <rguenther@suse.de>
9371 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9373 2008-04-22 Tomas Bily <tbily@suse.cz>
9375 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9377 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9379 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9380 * tree-ssa-structalias.c (get_constraint_for): Likewise.
9381 * tree-inline.c (estimate_num_insns_1): Likewise.
9382 * varasm.c (const_hash_1, compare_constant, copy_constant)
9383 (compute_reloc_for_constant, output_addressed_constants): Likewise.
9384 * emit-rtl.c (component_ref_for_mem_expr)
9385 (set_mem_attributes_minus_bitpos): Likewise.
9386 * expr.c (highest_pow2_factor, expand_expr_real_1, )
9387 (is_aligning_offset): Likewise.
9388 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9389 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9390 * dojump.c (do_jump): Likewise.
9391 * builtins.c (get_pointer_alignment, get_memory_rtx)
9392 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9393 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9395 2008-04-23 Jakub Jelinek <jakub@redhat.com>
9397 PR rtl-optimization/36017
9398 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9399 expanding the library call.
9401 2008-04-22 Ian Lance Taylor <iant@google.com>
9403 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9406 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
9408 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9409 of LR/CTR moves for Power6.
9411 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
9414 * passes.c (init_optimization_passes): Remove
9415 pass_fast_rtl_byte_dce.
9417 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
9420 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
9421 builtin functions to generate faster code.
9422 (_mm_cvtpu16_ps): Ditto.
9423 (_mm_cvtpi32x2_ps): Ditto.
9425 2008-04-22 Nick Clifton <nickc@redhat.com>
9427 * common.opt (ftree-loop-distribution): Add Optimization
9430 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
9431 (frv_expand_builtin_va_start): Likewise.
9433 * config/arm/arm.c (thumb_find_work_register): Fix location of
9434 argument register count.
9436 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9438 Support scheduling for ColdFire V1 and V3 microarchitecture.
9439 Improve scheduling of multiplication instructions.
9441 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
9442 (mac): New instruction attribute.
9443 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
9444 (m68k_sched_mac): New variable.
9445 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
9446 Handle cfv1 and cfv3.
9447 (max_insn_size): New static variable.
9448 (struct _sched_ib): New type.
9449 (sched_ib): New static variable.
9450 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
9451 to fields of 'struct _sched_ib sched_ib'. Update all uses.
9452 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
9454 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
9455 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
9456 new variables. Update.
9457 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9458 Add modeling of cfv3 instruction buffer. Update.
9459 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
9460 * config/m68k/m68k.h (TUNE_CFV3): New macro.
9461 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
9462 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
9463 a particular reservation applies to.
9464 (type2): Reorganize attribute values. Rename alu to alu_reg,
9465 alu_l to alu, move_l to omove. Join move to alu. Split mul
9467 (cf_ib_*): Simplify description of instruction buffer.
9468 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
9469 (cf_mem): Split into cf_mem1 and cf_mem2.
9470 (cf_v2_move_??): Rename to cfv12_alu_??.
9471 (cf_v2_move_l_??): Rename to cfv12_omove_??.
9472 (cf_v2_mul_??): Remove reservations.
9473 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
9474 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
9475 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
9477 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
9478 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
9479 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
9480 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
9481 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
9482 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
9483 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
9484 expansions of the above reservations for instructions of sizes
9487 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9489 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
9491 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
9493 * coverage.c: Include tree-pass.h.
9494 (coverage_counter_alloc): Print da_file_name to the dump file.
9496 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
9498 * sbitmap.c (sbitmap_range_empty_p): New function.
9499 * sbitmap.h (sbitmap_range_empty_p): New function.
9500 * bitmap.h: Now includes obstack.h.
9502 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
9503 Kenneth Zadeck <zadeck@naturalbridge.com>
9505 * dbgcnt.def (ra_byte_scan): Added.
9506 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
9507 when the last hit happens for a counter.
9508 * timevar.def (TV_DF_BYTE_LR): New variable.
9509 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
9510 * passes.c (pass_fast_rtl_byte_dce): New pass.
9511 * fwprop.c (update_df): Added mode to call df_ref_create.
9512 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9513 DF_REF_EXTRACT_OFFSET.
9514 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
9515 DF_BYTE_LR_OUT, df_byte_lr): New macro.
9517 (df_ref_extract): Added mode field.
9518 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
9519 DF_REF_EXTRACT_OFFSET.
9520 (DF_REF_EXTRACT_MODE): New macro.
9521 (df_byte_lr_bb_info): New structure.
9522 (df_print_byte_regset, df_compute_accessed_bytes,
9523 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
9524 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
9525 df_byte_lr_simulate_uses,
9526 df_byte_lr_simulate_artificial_refs_at_top,
9527 df_byte_lr_simulate_artificial_refs_at_end,
9528 df_compute_accessed_bytes): New function.
9529 (df_ref_create): Add parameter.
9530 (df_byte_lr_get_bb_info): New inline function.
9531 * df-scan.c (df_ref_record, df_uses_record,
9532 df_ref_create_structure): Added mode parameter.
9533 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
9534 df_defs_record, df_uses_record, df_get_conditional_uses,
9535 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
9536 df_entry_block_defs_collect, df_exit_block_uses_collect):
9537 Added mode parameter to calls to df_ref_record, df_uses_record,
9538 df_ref_create_structure.
9539 (df_ref_equal_p, df_ref_compare): Added test for modes.
9540 (df_ref_create_structure): Added code to set mode. Renamed
9541 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9542 DF_REF_EXTRACT_OFFSET.
9543 * df-core.c (df_print_byte_regset): New function.
9544 * df-byte-scan.c: New file.
9545 * df-problems.c (df_rd_transfer_function): Removed unnecessary
9546 calls to BITMAP_FREE.
9547 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
9548 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
9549 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
9550 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
9551 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
9552 df_byte_lr_local_compute, df_byte_lr_init,
9553 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
9554 df_byte_lr_transfer_function, df_byte_lr_free,
9555 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
9556 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
9557 df_byte_lr_simulate_uses,
9558 df_byte_lr_simulate_artificial_refs_at_top,
9559 df_byte_lr_simulate_artificial_refs_at_end): New function.
9560 * dce.c (byte_dce_process_block): New function.
9561 (dce_process_block): au is now passed in rather than computed
9562 locally. Changed loops that look at artificial defs to not look
9563 for conditional or partial ones, because there never are any.
9564 (fast_dce): Now is able to drive byte_dce_process_block or
9565 dce_process_block depending on the kind of dce being done.
9566 (rest_of_handle_fast_dce): Add parameter to fast_dce.
9567 (rest_of_handle_fast_byte_dce): New function.
9568 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
9569 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
9571 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
9574 * gcc.h: Added fortran options that take arguments to
9575 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
9578 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
9580 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
9581 scalarization if on the LHS and not a full access.
9583 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9585 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
9587 2008-04-18 Rafael Espindola <espindola@google.com>
9589 * tree-vrp.c (find_case_label_index): Fix the binary search.
9590 (find_case_label_range): New.
9591 (vrp_visit_switch_stmt): Use find_case_label_range.
9592 (simplify_switch_using_ranges): Use find_case_label_range.
9594 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
9596 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
9597 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
9599 2008-04-18 Tom Tromey <tromey@redhat.com>
9602 * doc/cpp.texi (Implementation-defined behavior): Mention
9605 2008-04-18 Ian Lance Taylor <iant@google.com>
9607 * fold-const.c (pointer_may_wrap_p): New static function.
9608 (fold_comparison): Add another test for pointer overflow. Use
9609 pointer_may_wrap_p to disable some false positives.
9611 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
9613 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
9614 (fname_as_string): Match updated cpp_interpret_string prototype.
9615 (fix_string_type): Support char16_t* and char32_t*.
9616 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
9617 derivative) nodes. Register as builtin if C++0x.
9618 (c_parse_error): Support CPP_CHAR{16,32}.
9619 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
9620 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
9621 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
9622 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
9623 CTI_CHAR32_ARRAY_TYPE>: New elements.
9624 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
9625 char32_type_node, signed_char32_type_node, char16_array_type_node,
9626 char32_array_type_node): New defines.
9627 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
9628 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
9629 (lex_string): Support CPP_STRING{16,32}, match updated
9630 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
9631 (lex_charconst): Support CPP_CHAR{16,32}.
9632 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
9633 and CPP_STRING{16,32}.
9635 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9638 * aclocal.m4: Regenerate.
9639 * configure: Regenerate.
9641 2008-04-18 Jan Hubicka <jh@suse.cz>
9643 * except.c (dw2_size_of_call_site_table,
9644 sjlj_size_of_call_site_table): Use vector API for call_site_record.
9646 * cgraphbuild.c (build_cgraph_edges): Update.
9647 * tree-pass.h: Update comment.
9648 * final.c (leaf_function_p): Update.
9649 (leaf_renumber_regs): Update.
9650 (rest_of_clean_state): Update.
9651 * omp-low.c (expand_omp_parallel): Update.
9652 * ipa-reference.c (analyze_function): Update.
9653 * reorg.c (find_end_label): Update.
9654 (optimize_skip): Update.
9655 (fill_simple_delay_slots): Update.
9656 (fill_simple_delay_slots): Update.
9657 (make_return_insns): Update.
9658 (dbr_schedule): Update.
9659 * gimple-low.c (record_vars_into): Update.
9660 * cfgbuild.c (make_edges): Update.
9661 * function.c (assign_stack_local): Update.
9662 (assign_parm_adjust_stack_rtl): Update.
9663 (locate_and_pad_parm): Update.
9664 (allocate_struct_function): Do not initialize stack_alignment_needed
9665 and preferred_stack_boundary here.
9666 (stack_protect_prologue): Update.
9667 (stack_protect_epilogue): Update.
9668 (expand_function_start): Initialize stack_alignment_needed,
9669 preferred_stack_boundary and max_jumptable_ents.
9670 (expand_function_end): Update.
9671 (free_after_compilation): Do not NULLify epilogue_delay_list.
9672 * function.h (struct rtl_data): Add stack_protect_guard,
9673 stack_alignment_needed,
9674 preferred_stack_boundary, epilogue_delay_list.
9675 (struct function): Remove value_histograms, stack_alignment_needed,
9676 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
9678 unexpanded_var_list, stack_protect_guard.
9679 (current_function_epilogue_delay_list): Remove.
9680 * ipa-type-escape.c (analyze_function): Update.
9681 * gimplify.c (pop_gimplify_context): Update comment.
9682 * calls.c (expand_call): Update.
9683 (emit_library_call_value_1): Update.
9684 * except.c (set_nothrow_function_flags): Update.
9685 * cfgexpand.c (get_decl_align_unit): Update.
9686 (create_stack_guard): Update.
9687 (estimated_stack_frame_size): Update.
9688 (expand_used_vars): Update.
9689 (tree_expand_cfg): Free histogram earliers, init expansion variables.
9690 * explow.c (allocate_dynamic_stack_space): Update.
9691 * tree-ssa-live.c (remove_unused_locals): Update.
9692 * varasm.c (mark_constant_pool): Update.
9693 * tree-inline.c (remap_decls): Update.
9694 (initialize_cfun): Update.
9695 (declare_return_variable): Update.
9696 (inline_forbidden_p): Update.
9697 (expand_call_inline): Update.
9698 (declare_inline_vars): Update.
9699 (tree_function_versioning): Update.
9700 * tree-flow.h (value_histograms): New.
9701 (VALUE_HISTOGRAMS): New macro.
9702 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
9704 * tree-cfg.c (set_bb_for_stmt): Update.
9705 (replace_by_duplicate_decl): Update.
9706 (move_block_to_fn): Update.
9707 (new_label_mapper): Update.
9708 (dump_function_to_file): Update.
9709 * ipa-struct-reorg.c (build_data_structure): Update.
9710 * cfgrtl.c (print_rtl_with_bb): Update.
9711 * reload1.c (reload): Update.
9713 * config/i386/i386.c (setup_incoming_varargs_64,
9714 ix86_compute_frame_layout): Update.
9715 * config/arc/arc.c (arc_output_function_epilogue): Update.
9717 2008-04-18 Marius Strobl <marius@FreeBSD.org>
9719 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
9720 for FreeBSD as well.
9721 * gthr-posix95.h: Likewise.
9723 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
9725 PR rtl-optimization/35838
9726 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
9727 out the byte offset of the first subreg.
9729 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
9731 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
9732 to split_ti instead of three separate calls with single member arrays.
9733 (subti3 splitter): Ditto.
9734 (adddi3 splitter): Ditto with split_di.
9735 (subdi3 splitter): Ditto.
9736 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
9737 two separate calls with single member arrays. Swap match_dup
9738 operands 1 and 2 to better fit into the array.
9739 (negdi2 splitter): Ditto with split_di.
9740 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
9741 two separate calls with single member arrays. Swap match_dup operands
9742 6 and 7 to better fit into the array.
9744 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
9746 * config/i386/i386.c (sse_builtin_type): New.
9747 (bdesc_sse_args): Likewise.
9748 (bdesc_sse_3arg): Removed.
9749 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9750 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
9751 IX86_BUILTIN_ROUNDPS.
9752 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
9753 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
9754 IX86_BUILTIN_ROUNDPS.
9755 (ix86_expand_sse_4_operands_builtin): Removed.
9756 (ix86_expand_sse_operands_builtin): New.
9757 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
9758 and CODE_FOR_sse4_1_roundps.
9759 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9760 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
9762 2008-04-17 Alan Modra <amodra@bigpond.net.au>
9765 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
9766 regs before frame pop when needed. If use_backchain_to_restore_sp
9767 then load backchain into a temp reg to restore vr and vrsave. Add
9768 code to restore vr after frame pop if possible.
9770 2008-04-17 Richard Guenther <rguenther@suse.de>
9772 * tree-vn.c (expressions_equal_p): Do not check type
9773 equality or compatibility before calling operand_equal_p.
9774 * fold-const.c (operand_equal_p): Check equivalence of
9775 integer constants before bailing out due to signedness or
9776 precision differences.
9777 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
9778 spurious differences in type qualification. Ignore types
9779 for COMPONENT_REFs at all.
9781 2008-04-17 Christian Bruel <christian.bruel@st.com>
9783 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
9784 msw_skip comparison.
9786 2008-04-16 Jakub Jelinek <jakub@redhat.com>
9789 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
9792 PR tree-optimization/35899
9793 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
9794 rather than TREE_OPERAND.
9796 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
9799 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
9800 temporary registers. Change operand predicate to general_operand.
9801 (remainderxf3): Ditto.
9803 2008-04-16 Richard Guenther <rguenther@suse.de>
9805 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
9806 * tree-affine.c (aff_combination_expand): Look through some
9809 2008-04-15 Doug Kwan <dougkwan@google.com>
9811 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
9813 * tree-pretty-print.c (dump_generic_node): Ditto.
9814 * final.c (output_addr_const): Ditto.
9815 * dwarf2out.c (output_cfi): Ditto.
9816 * c-pretty-print.c (pp_c_integer_constant): Ditto.
9817 * print-rtl.c (print_rtx): Ditto.
9818 * print-tree.c (print_node_brief, print_node): Ditto.
9819 * c-common.c (match_case_to_enum_1): Ditto.
9820 * sched-vis.c (print_value): Ditto.
9821 * config/i386/i386.c (print_operand): Cast to long unsigned int
9824 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
9825 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
9826 MS Windows VirtualProtect function.
9828 2008-04-15 Jan Hubicka <jh@suse.cz>
9830 * gengtype.c (write_root): Param_is argument is OK.
9831 * expr.c (expand_expr_real_1): Update call of get_exception_*.
9832 * function.h: Include varray.h
9833 (rtl_eh): New stucture based on except.c one.
9834 (call_site_record): New forward declaration and vector type.
9835 * calls.c (emit_call_1): Do not call
9836 note_current_region_may_contain_throw.
9837 * except.c (eh_status): Remove cur_region, try_region since they are
9839 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
9840 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
9841 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
9842 Remove call_site_data_used, call_site_data_size.
9843 Turn call_site_record into vector in function.h.
9844 (note_current_region_may_contain_throw): Remove.
9845 (get_exception_pointer, get_exception_filter): Do not take struct
9846 function argument; update.
9847 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
9848 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
9849 build_post_landing_pads, dw2_build_landing_pads,
9850 sjlj_assign_call_site_values, sjlj_mark_call_sites,
9851 sjlj_emit_function_enter, sjlj_emit_function_enter,
9852 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
9853 sjlj_build_landing_pads, finish_eh_generation,
9854 remove_exception_handler_label, remove_eh_handler,
9855 maybe_remove_eh_handler, add_reachable_handler,
9856 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
9857 add_action_record, collect_one_action_chain, add_call_site,
9858 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
9859 sjlj_output_call_site_table, output_function_exception_table,
9860 * except.h (note_current_region_may_contain_throw): Remove
9861 (get_exception_pointer, get_exception_filter): Do not take struct
9863 * Makefile.in (GTFILES): Put varargs before struct function.
9865 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
9867 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
9868 punt for STRING_CST.
9869 (get_constraint_for): Deal with STRING_CST here instead.
9871 2008-04-15 Richard Guenther <rguenther@suse.de>
9873 * tree-ssa-propagate.c (substitute_and_fold): Substitute
9874 statements in a basic-block with a backward walk. Do not
9875 substitute into dead statements but instead remove those.
9877 2008-04-15 Richard Guenther <rguenther@suse.de>
9879 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
9880 to zero, thus disable creation of SFTs.
9882 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
9884 * tree-predcom.c (suitable_reference_p): Return false if the
9885 reference can throw.
9887 2008-04-15 Jakub Jelinek <jakub@redhat.com>
9890 * c-decl.c (finish_decl): If extern or static var has variable
9891 size, set TREE_TYPE (decl) to error_mark_node.
9893 2008-04-15 Rafael Espindola <espindola@google.com>
9895 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
9898 2008-04-15 Richard Guenther <rguenther@suse.de>
9900 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
9901 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
9902 (visit_reference_op_load): Do walk vuse-vdef chains on
9903 vn_reference_lookup.
9904 (visit_reference_op_store): But do not here.
9905 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
9906 vn_reference_lookup.
9907 (vn_lookup_with_vuses): But do so here.
9909 2008-04-14 Ian Lance Taylor <iant@google.com>
9911 * fold-const.c (fold_overflow_warning): Remove assertion.
9913 2008-04-15 Ben Elliston <bje@au.ibm.com>
9915 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
9916 temp1 local variables.
9918 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
9921 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
9922 ".text.unlikely" section as executable.
9924 2008-04-14 James E. Wilson <wilson@tuliptree.org>
9926 * config/ia64/ia64.c (rtx_needs_barrier): Handle
9927 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
9928 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
9929 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
9930 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
9931 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
9932 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
9934 2008-04-14 Ian Lance Taylor <iant@google.com>
9936 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
9937 * fold-const.c (fold_comparison): If appropriate, test
9938 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
9939 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
9940 reassociating a pointer type.
9941 * doc/invoke.texi (Optimize Options): Document that
9942 -fstrict-overflow applies to pointer wraparound.
9944 2008-04-13 Jan Hubicka <jh@suse.cz>
9946 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
9948 2008-04-12 Andrew Pinski <pinskia@gmail.com>
9950 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
9951 we are going to "save the world".
9953 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
9955 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
9956 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
9957 operand 0 constraint, not "=".
9959 2008-04-11 James E. Wilson <wilson@tuliptree.org>
9961 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
9963 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
9965 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
9966 of size of positions_needed * CHAR_BIT.
9968 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
9971 * dse.c (store_info): Change positions_needed to unsigned
9973 (lowpart_bitmask): New.
9974 (record_store): Cast to unsigned HOST_WIDE_INT for
9975 positions_needed. Assert width <= size of positions_needed *
9976 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
9977 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
9978 lowpart_bitmask to set mask.
9980 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
9982 * config/bfin/constraints.md: New file.
9983 * config/bfin/bfin.md: Include it.
9984 (adddi3): Use satisfies_constraint functions instead of the old macros.
9985 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
9986 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
9987 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
9988 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
9989 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
9990 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
9991 EXTRA_CONSTRAINT): Delete.
9992 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
9993 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
9995 * config/bfin/bfin.c: Include "tm-constrs.h".
9996 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
9997 Use satisfies_constraint functions instead of the old macros.
9998 * doc/md.texi (Blackfin Constraints): Update file name reference.
10000 2008-04-11 Richard Guenther <rguenther@suse.de>
10002 PR tree-optimization/35869
10003 * tree-vrp.c (execute_vrp): Move switch statement update after
10004 jump threading. Schedule another cfg cleanup run.
10006 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
10009 * attribs.c (decl_attributes): Return early on errorneous node.
10011 2008-04-10 Oleg Ryjkov <olegr@google.com>
10013 * tree.h (struct tree_base): Added a new flag default_def_flag.
10014 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10016 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
10018 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10020 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10023 * pa.md: Define mode iterator P. Define mode attribute dwc.
10024 (dcacheflush): Update pattern to use iterator P and attribute dwc.
10025 (icacheflush): Likewise.
10026 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10027 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10029 2008-04-11 Ben Elliston <bje@au.ibm.com>
10031 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10033 2008-04-10 Rafael Espindola <espindola@google.com>
10035 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
10036 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10037 (extract_range_from_expr): The same.
10039 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
10041 * config/mips/mips.md (GPR2): New mode iterator.
10042 (seq): Add comment.
10043 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10044 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10045 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10046 Rewrite these to take two modes, the mode of comparison and the
10047 mode of the destination.
10048 * config/mips/mips.c (mips_expand_scc): Instead of having
10049 paradoxical subreg as destination, expand "narrowing" scc if mode
10050 of comparison is SI and target is requested in DI mode.
10051 (mips_emit_int_order_test): Update comment. Make mode of
10052 comparison match CMP0 rather than TARGET. When creating inverse
10053 target use mode of TARGET.
10055 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
10057 * gcov-dump.c (tag_summary): Only print summaries for the first
10058 GCOV_COUNTERS_SUMMABLE counters.
10060 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
10062 * config/i386/i386.md (absneg): New code iterator.
10063 (absnegprefix): New code attribute.
10064 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10065 patterns using absneg code iterator.
10066 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10067 using absneg code iterator.
10068 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10069 *neg<mode>2 patterns using absneg code iterator.
10070 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10071 *negextendsfdf2 patterns using absneg code iterator.
10072 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10073 *negextendsfxf2 patterns using absneg code iterator.
10074 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10075 *negextendsfdf2 patterns using absneg code iterator.
10076 * config/i386/sse.md (<code><mode>2): Macroize expander from
10077 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
10079 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
10081 * config/s390/s390.h: Remove the remains of the recent search
10082 & replace action of current_function_outgoing_args_size.
10084 2008-04-10 Ira Rosen <irar@il.ibm.com>
10086 PR tree-optimization/35821
10087 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10088 NEW_STMT_LIST is not NULL.
10090 2008-04-09 David Edelsohn <edelsohn@gnu.org>
10093 * toplev.c (process_options): Remove -ffunction-sections debugging
10096 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
10098 PR middle-end/PR28690
10099 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
10100 than gen_rtx_fmt_ee to perform more canonicalizations.
10102 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10105 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
10107 2008-04-09 Richard Guenther <rguenther@suse.de>
10109 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
10110 (dump_function_to_file): Dump function arguments with types.
10112 2008-04-08 Richard Guenther <rguenther@suse.de>
10114 * fold-const.c (fold_widened_comparison): Do not allow
10115 sign-changes that change the result.
10117 2008-04-08 Janis Johnson <janis187@us.ibm.com>
10120 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
10121 kinds of indirect references.
10123 2008-04-08 David Edelsohn <edelsohn@gnu.org>
10125 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
10126 GNU Fortran language string.
10128 2008-04-08 Rafael Espindola <espindola@google.com>
10130 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10131 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10132 * tree.h (tree_call_nonnegative_warnv_p): New.
10134 2008-04-08 Jan Hubicka <jh@suse.cz>
10136 * function.c (free_after_compilation): Clear out regno_reg_rtx
10139 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
10142 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
10144 PR middle-end/PR28690
10145 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
10146 same precedence as REG_POINTER and MEM_POINTER operands.
10148 2008-04-08 Richard Guenther <rguenther@suse.de>
10150 PR middle-end/35834
10151 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
10152 for adding index to base.
10154 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
10156 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10157 (MINGW_ENABLE_EXECUTE_STACK): New.
10158 (IN_LIBGCC2): For libgcc include windows.h file for
10159 function declarations.
10161 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
10163 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
10164 and tem2 if tem1 is not a REG or MULT.
10166 2008-04-08 Jan Hubicka <jh@suse.cz>
10168 * function.h (incomming_args): Break out of struct function.
10169 (function_subsections): Break out of struct function.
10170 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
10171 return_rtx and hard_reg_initial_vals from struct function.
10172 Kill inl_max_label_num.
10173 (current_function_pops_args, current_function_args_info,
10174 current_function_args_size, current_function_args_size,
10175 current_function_pretend_args_size,
10176 current_function_outgoing_args_size,
10177 current_function_internal_arg_pointer, current_function_return_rtx):
10178 Kill compatibility accestor macros.
10179 * builtins.c (expand_builtin_apply_args_1): Update.
10180 (expand_builtin_next_arg): Update.
10181 * df-scan.c (df_get_call_refs): Update.
10182 * dbxout.c (dbxout_function_end): Update.
10183 * dwarf2out.c (dwarf2out_switch_text_section): Update.
10184 (output_line_info): Update.
10185 (secname_for_decl): Update.
10186 (dwarf2out_var_location): Update.
10187 * function.c (free_after_compilation): Update.
10188 (assign_parm_find_stack_rtl): Update.
10189 (assign_parms): Update.
10190 (expand_dummy_function_end): Update.
10191 (expand_function_end): Update.
10192 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10193 (expand_call): Update.
10194 (emit_library_call_value_1): Update.
10195 (store_one_arg): Update.
10196 * varasm.c (initialize_cold_section_name): Update.
10197 (unlikely_text_section): Update.
10198 (unlikely_text_section_p): Update.
10199 (assemble_start_function): Update.
10200 (assemble_end_function): Update.
10201 (default_section_type_flags): Update.
10202 (switch_to_section): Update.
10203 * integrate.c (set_decl_abstract_flags): Update.
10204 (get_hard_reg_initial_val): Update.
10205 (has_hard_reg_initial_val): Update.
10206 (allocate_initial_values): Update.
10207 * resource.c (init_resource_info): Update.
10208 * config/alpha/alpha.c (NUM_ARGS): Update.
10209 (direct_return): Update.
10210 (alpha_va_start): Update.
10211 (alpha_sa_size): Update.
10212 (alpha_initial_elimination_offset): Update.
10213 (alpha_expand_prologue): Update.
10214 (alpha_start_function): Update.
10215 (alpha_expand_epilogue): Update.
10216 (unicosmk_initial_elimination_offset):
10217 * config/alpha/alpha.md (call expander): Update.
10218 * config/s390/s390.c (s390_register_info): Update.
10219 (s390_register_info): Update.
10220 (s390_frame_info): Update.
10221 (s390_initial_elimination_offset): Update.
10222 (s390_build_builtin_va_list): Update.
10223 (s390_va_start): Update.
10224 * config/spu/spu.c (direct_return): Update.
10225 (spu_expand_prologue): Update.
10226 (spu_initial_elimination_offset): Update.
10227 (spu_build_builtin_va_list): Update.
10228 (spu_va_start): Update.
10229 * config/sparc/sparc.c (sparc_init_modes): Update.
10230 (sparc_compute_frame_size): Update.
10231 (function_value): Update.
10232 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10233 * config/i386/i386.md (return expander): Update.
10234 * config/i386/i386.c (ix86_va_start): Update.
10235 (ix86_can_use_return_insn_p): Update.
10236 (ix86_compute_frame_layout): Update.
10237 (ix86_expand_epilogue): Update.
10238 * config/sh/sh.c (output_stack_adjust): Update.
10239 (calc_live_regs): Update.
10240 (sh_expand_prologue): Update.
10241 (sh_builtin_saveregs): Update.
10242 (sh_va_start): Update.
10243 (initial_elimination_offset): Update.
10244 (sh_allocate_initial_value): Update.
10245 (sh_function_ok_for_sibcall): Update.
10246 (sh_get_pr_initial_val): Update.
10247 * config/sh/sh.md (return expander): Update.
10248 * config/avr/avr.c (frame_pointer_required_p): UPdate.
10249 * config/crx/crx.c (crx_compute_frame): UPdate.
10250 (crx_initial_elimination_offset): UPdate.
10251 * config/xtensa/xtensa.c (compute_frame_size): Update
10252 (xtensa_builtin_saveregs): Update.
10253 (xtensa_va_start): Update.
10254 (order_regs_for_local_alloc): Update.
10255 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10256 (xstormy16_expand_builtin_va_start): Update.
10257 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10258 * config/m68hc11/m68hc11.md (return expanders): Update.
10259 * config/m68hc11/m68hc11.c (expand_prologue): Update.
10260 (expand_epilogue): Update.
10261 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10262 (cris_simple_epilogue): Update.
10263 (cris_expand_prologue): Update.
10264 (cris_expand_epilogue): Update.
10265 * config/iq2000/iq2000.c (iq2000_va_start): Update.
10266 (compute_frame_size): Update.
10267 * config/mt/mt.c (mt_compute_frame_size): Update.
10268 * config/mn10300/mn10300.c (expand_prologue): Update.
10269 (expand_epilogue): Update.
10270 (initial_offset): Update.
10271 (mn10300_builtin_saveregs):
10272 * config/mn10300/mn10300.md (return expander): Update.
10273 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10274 (ia64_initial_elimination_offset): Update.
10275 (ia64_initial_elimination_offset): Update.
10276 (ia64_expand_prologue): Update.
10277 * config/m68k/m68k.md (return expander): Update.
10278 * config/rs6000/rs6000.c (rs6000_va_start): Update.
10279 (rs6000_stack_info): Update.
10280 * config/mcore/mcore.c (layout_mcore_frame): Update.
10281 (mcore_expand_prolog): Update.
10282 * config/arc/arc.c (arc_compute_frame_size): Update.
10283 * config/score/score3.c (score3_compute_frame_size): Update.
10284 * config/score/score7.c (score7_compute_frame_size): Update.
10285 * config/arm/arm.c (use_return_insn): Update.
10286 (thumb_find_work_register): Update.
10287 (arm_compute_save_reg_mask): Update.
10288 (arm_output_function_prologue): Update.
10289 (arm_output_epilogue): Update.
10290 (arm_size_return_regs): Update.
10291 (arm_get_frame_offsets): Update.
10292 (arm_expand_prologue): Update.
10293 (thumb_exit): Update.
10294 (thumb_unexpanded_epilogue): Update.
10295 (thumb1_output_function_prologue): Update.
10296 * config/pa/pa.md (return expander): Update.
10297 * config/pa/pa.c (compute_frame_size): Update.
10298 (hppa_builtin_saveregs): Update.
10299 * config/mips/mips.c (mips_va_start): Update.
10300 (mips16_build_function_stub): Update.
10301 (mips_compute_frame_info): Update.
10302 (mips_restore_gp): Update.
10303 (mips_output_function_prologue): Update.
10304 (mips_expand_prologue): Update.
10305 * config/v850/v850.c (compute_frame_size): Update.
10306 (expand_prologue): * config/mmix/mmix.c (along): update.
10307 (mmix_initial_elimination_offset): update.
10308 (mmix_reorg): update.
10309 (mmix_use_simple_return): update.
10310 (mmix_expand_prologue): update.
10311 (mmix_expand_epilogue): Update.
10312 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10313 (emit_link_insn): Update.
10315 2008-04-08 Anatoly Sokolov <aesok@post.ru>
10317 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
10318 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
10320 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
10323 2008-04-07 Jan Hubicka <jh@suse.cz>
10325 * function.h (rtl): Rename to x_rtl.
10326 (crtl): New define.
10327 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10328 frame_offset, stack_check_probe_note, arg_pointer_save_area,
10329 used_temp_slots avail_temp_slots, temp_slot_level,
10330 nonlocal_goto_handler_labels): Update accesstors.
10331 (rtl): New global variable.
10332 (struct function): Move some fileds to rtl_data.
10333 (get_arg_pointer_save_area): Update prototype.
10334 * builtins.c (expand_builtin_setjmp_receiver): Update call of
10335 get_arg_pointer_save_area.
10336 * expr.c (init_expr): Update
10337 * function.c (get_frame_size): Update
10338 (assign_stack_local): Update
10339 (expand_function_end): Update.
10340 (get_art_pointer_save_area): Update
10342 * emit-rtl.c (rtl): Declare.
10343 (regno_reg_rtx): Declare.
10344 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10346 (gen_reg_rtx): Update.
10347 * varasm.c (n_deferred_constatns): Update accestor.
10348 (init_varasm_status): Do not allocate varasm_status.
10349 (force_const_mem, get_pool_size, output_constant_pool): Update.
10350 * stmt.c (force_label_rtx): Do not use x_ prefixes.
10351 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10352 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10353 * sparc/sparc.h (INIT_EXPANDERS): Update.
10354 * ia64/ia64.h (INIT_EXPANDERS): Update.
10356 2008-04-07 James E. Wilson <wilson@tuliptree.org>
10358 * reload.c (push_secondary_reload): Add missing break to for loop.
10360 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
10362 PR middle-end/PR28690
10363 * rtlanal.c: Update copyright years.
10364 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10365 as REG_POINTER and MEM_POINTER operands.
10366 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10367 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10368 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10369 * gcse.c: Update copyright years.
10370 (pre_delete): Call gen_reg_rtx_and_attrs.
10371 (hoist_code): Likewise.
10372 (build_store_vectors): Likewise.
10373 (delete_store): Likewise.
10374 * loop-invariant.c (move_invariant_reg): Likewise.
10375 Update copyright years.
10377 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
10379 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10380 control string instead of quoted.
10382 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
10384 * doc/rtl.texi: Rewrite of subreg section.
10386 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
10389 * config/i386/i386.c (legitimize_pic_address): Add treating
10390 of dllimport SYM_REF's.
10391 (legitimize_dllimport_symbol): Add prototype.
10393 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10395 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
10396 reference in constructor with non self-referential type.
10398 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10400 Removal of Return with Depressed Stack Pointer support
10401 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10402 (ECF_SP_DEPRESSED): Likewise.
10403 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10404 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10405 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10406 (expand_call): Do not test ECF_SP_DEPRESSED.
10407 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10408 * function.c (keep_stack_depressed): Delete.
10409 (handle_epilogue_set): Likewise.
10410 (update_epilogue_consts): Likewise.
10411 (emit_equiv_load): Likewise.
10412 (thread_prologue_and_epilogue_insns): Remove support for Return with
10413 Depressed Stack Pointer.
10414 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10416 2008-04-06 Richard Guenther <rguenther@suse.de>
10418 PR tree-optimization/35400
10419 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
10420 information from SSA_NAMEs.
10422 2008-04-06 Anatoly Sokolov <aesok@post.ru>
10424 * config/avr/avr.h (avr_mega_p): Remove declaration.
10425 (AVR_MEGA): Remove macro.
10426 * config/avr/avr.c (avr_mega_p): Remove variable.
10427 (avr_override_options): Remove inicializion of avr_mega_p.
10428 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10429 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10430 (avr_jump_mode): (Ditto.).
10431 (avr_output_progmem_section_asm_op): (Ditto.).
10432 (avr_asm_init_sections): (Ditto.).
10433 (avr_asm_init_sections): (Ditto.).
10434 (avr_rtx_costs): (Ditto.).
10435 * config/avr/avr.md: (Ditto.).
10436 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
10439 2008-04-06 Richard Guenther <rguenther@suse.de>
10441 PR tree-optimization/35842
10442 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
10443 is_gimple_invariant_address.
10445 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10447 * gcc.c (default_compilers): Sync Fortran extensions list with
10448 that in fortran/lang-specs.h.
10449 * doc/invoke.texi: Likewise.
10450 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
10451 * dwarf2out.c (gen_compile_unit_die): Likewise.
10453 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
10455 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
10457 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
10460 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
10461 attribute is used for nested functions.
10463 2008-04-05 Jan Hubicka <jh@suse.cz>
10465 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
10467 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
10469 (dump_files): Update.
10470 (enable_rtl_dump_file): Do not accept letter argument.
10471 * tree-pass.h (dump_file_info): Remove letter argument.
10472 * toplev.c (decode_d_option): Update -da handling.
10473 * toplev.h (enable_rtl_dump_file): Update prototype.
10474 * passes.c (register_one_dump_file): Do not accept IPA argument; work
10475 it out based on pass type.
10476 (register_dump_files_1): Likewise.
10477 (init_optimization_passes): Update register_one_dump_file calls.
10478 (execute_one_pass): Sanity check that IPA passes are called at IPA
10479 level and RTL passes at RTL level.
10480 (execute_pass_list): IPA pass can not be after or subpass of
10482 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
10483 disallov RTL subpasses of IPA subpasses.
10485 2008-04-05 Ben Elliston <bje@au.ibm.com>
10487 * tree-cfg.c (need_fake_edge_p): Return false for calls to
10488 builtins that return exactly once and do not throw. Cache call to
10491 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
10493 PR rtl-optimization/34916
10494 PR middle-end/35519
10495 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
10496 between instruction pairs.
10498 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
10500 * doc/invoke.texi: Document -mbitops for SH.
10501 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
10502 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
10503 * config/sh/sh.c (print_operand): Add %t operand code.
10504 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
10505 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
10506 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
10507 (extendqihi2): Likewise.
10508 (movqi_i): Likewise.
10509 (insv): Use bset, bclr and bst instructions for SH2A if possible.
10510 (extv): Use bld instruction for SH2A if possible.
10512 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
10513 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
10514 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
10515 (bset.b, bclr.b): Define peepholes.
10516 * config/sh/sh.opt (mbitops): New option.
10518 2008-04-04 Janis Johnson <janis187@us.ibm.com>
10521 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
10522 and view convert expression.
10524 2008-04-04 Jakub Jelinek <jakub@redhat.com>
10527 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10529 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
10531 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
10533 * config/i386/cpuid.h (bit_AES): New.
10534 (bit_PCLMUL): Likewise.
10536 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
10537 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
10538 SSE2 if AES or PCLMUL is enabled.
10539 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
10540 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10541 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
10542 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
10543 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
10544 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
10545 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10546 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
10547 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
10548 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
10549 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
10550 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
10551 __builtin_ia32_aeskeygenassist128 and
10552 __builtin_ia32_pclmulqdq128.
10553 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
10554 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
10555 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
10557 * config/i386/i386.h (TARGET_AES): New.
10558 (TARGET_PCLMUL): Likewise.
10559 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
10561 * config/i386/i386.md (UNSPEC_AESENC): New.
10562 (UNSPEC_AESENCLAST): Likewise.
10563 (UNSPEC_AESDEC): Likewise.
10564 (UNSPEC_AESDECLAST): Likewise.
10565 (UNSPEC_AESIMC): Likewise.
10566 (UNSPEC_AESKEYGENASSIST): Likewise.
10567 (UNSPEC_PCLMUL): Likewise.
10569 * config/i386/i386.opt (maes): New.
10570 (mpclmul): Likewise.
10572 * config/i386/sse.md (aesenc): New pattern.
10573 (aesenclast): Likewise.
10574 (aesdec): Likewise.
10575 (aesdeclast): Likewise.
10576 (aesimc): Likewise.
10577 (aeskeygenassist): Likewise.
10578 (pclmulqdq): Likewise.
10580 * config/i386/wmmintrin.h: New.
10582 * doc/extend.texi: Document AES and PCLMUL built-in function.
10584 * doc/invoke.texi: Document -maes and -mpclmul.
10586 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
10588 * function.c (free_after_parsing): Replace with
10589 cxx_push_function_context from C++ front-end.
10590 (allocate_struct_function): Don't call langhook.
10591 * langhooks.h (struct lang_hooks_for_functions): Delete.
10592 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
10594 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
10595 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
10596 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
10597 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
10598 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
10599 remove LANG_HOOKS_FUNCTION_INITIALIZER.
10600 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
10602 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
10603 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
10605 2008-04-04 Jakub Jelinek <jakub@redhat.com>
10608 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
10611 2008-04-04 Richard Guenther <rguenther@suse.de>
10613 PR middle-end/35823
10614 * fold-const.c (optimize_minmax_comparison): Use the correct
10615 type for the constant in the simplified comparison.
10617 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
10619 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
10620 Pass L2 size as "--param l2-cache-size" to the compiler.
10621 (decode_l2_cache): New function to decode L2 cache parameters using
10622 0x8000006 extended cpuid function.
10623 (detect_caches_amd): Determine parameters of L2 cache using
10624 decode_l2_caches function.
10625 (decode_caches_intel): Decode L2 cache parameters.
10626 (detect_caches_intel): Determine L2 cache parameters using
10627 decode_caches_intel and decode_l2_caches functions.
10629 2008-04-03 Bob Wilson <bob.wilson@acm.org>
10631 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
10632 secondary input reload for subword loads from the constant pool.
10634 2008-04-03 Janis Johnson <janis187@us.ibm.com>
10637 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
10638 constants of the appropriate size for runtime calculations.
10641 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
10642 decimal-float literal constant zero.
10644 2008-04-03 Jakub Jelinek <jakub@redhat.com>
10647 * c-parser.c (c_parser_omp_atomic): Call
10648 default_function_array_conversion on the RHS.
10650 PR middle-end/35818
10651 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
10652 call is_variable_sized if decl has incomplete type.
10654 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
10656 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
10658 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
10660 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
10662 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
10663 (sgt<u>): Merge sgt and sgtu into new expander.
10664 (sgt, sgtu): Remove expanders.
10665 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
10666 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
10667 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
10668 *sgtu_<mode>_mips16 into new pattern.
10669 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
10670 (sge<u>): Merge sge and sgeu into new expander.
10671 (sge, sgeu): Remove expanders.
10672 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
10674 (*sge_<mode>, second *sge_<mode>): Remove patterns.
10675 (slt<u>): Merge slt and sltu into new expander.
10676 (slt, sltu): Remove expanders.
10677 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
10678 (*slt_<mode>, *sltu_<mode>): Remove patterns.
10679 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
10680 *sltu_<mode>_mips16 into new pattern.
10681 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
10682 (sle<u>): Merge sle and sleu into new expander.
10683 (sle, sleu): Remove expanders.
10684 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
10685 (*sle_<mode>, *sleu_<mode>): Remove patterns.
10686 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
10687 *sleu_<mode>_mips16 into new pattern.
10688 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
10690 2008-04-03 Jan Hubicka <jh@suse.cz>
10692 PR tree-optimization/35795
10693 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
10694 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10695 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10696 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10697 * score/score3.c (score3_output_mi_thunk): Likewise.
10698 * score/score7.c (score7_output_mi_thunk): Likewise.
10699 * mips/mips.c (mips_output_mi_thunk): Likewise.
10701 2008-04-03 Richard Guenther <rguenther@suse.de>
10703 * tree-vrp.c (extract_range_from_unary_expr): Handle all
10704 conversions. Simplify code.
10706 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
10708 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
10710 2008-04-03 Tom Tromey <tromey@redhat.com>
10711 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10713 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10714 * config/bfin/t-bfin-linux (generated_files): Add
10715 linux-sysroot-suffix.h.
10716 * doc/install.texi (Prerequisites): Require make 3.80.
10717 * doc/sourcebuild.texi (Front End Directory): Document new
10719 * Makefile.in (generated_files): New variable.
10720 (ALL_HOST_OBJS): New variable.
10721 ($(ALL_HOST_OBJS)): New target.
10723 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10725 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
10726 (remap_block): Call id->transform_lang_insert_block instead
10728 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
10729 Set id.transform_lang_insert_block to NULL.
10730 (clone_body): Move to cp/optimize.c
10731 * tree-inline.h (struct copy_body_data): Change
10732 transform_lang_insert_block to function pointer.
10733 (copy_generic_body, copy_decl_no_change): Export.
10734 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
10735 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
10736 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
10738 * c-tree.h (insert_block): Kill.
10739 * c-decl.c (insert_block): Kill.
10741 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10743 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10744 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10745 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
10747 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
10748 argument, call {push,pop}_function_context from here.
10749 * c-parser.c: Use c_{push,pop}_function_context.
10751 * function.c (push_function_context_to): Move meat ...
10752 (push_function_context): ... here. Simplify.
10753 * function.c (pop_function_context_from): Move meat ...
10754 (pop_function_context): ... here. Simplify.
10755 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
10757 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10758 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10759 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
10760 * tree.h (push_function_context_to, pop_function_context_from): Remove.
10762 2008-04-03 Ben Elliston <bje@au.ibm.com>
10764 * expmed.c (extract_force_align_mem_bit_field): Remove.
10766 2008-04-03 Richard Guenther <rguenther@suse.de>
10768 PR middle-end/35800
10769 * expr.h (try_casesi): Adjust prototype.
10770 * expr.c (try_casesi): Take fallback label as extra parameter.
10771 Use that for gen_casesi if default_label is NULL.
10772 * stmt.c (expand_case): Pass fallback label to try_casesi,
10773 make sure to fill gaps with a fallback label if default_label
10776 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
10779 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
10781 2008-04-03 Ben Elliston <bje@au.ibm.com>
10783 * expmed.c (extract_split_bit_field): Remove if (0) code.
10784 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
10785 (do_ds_constraint): Likewise.
10787 2008-04-02 Joseph Myers <joseph@codesourcery.com>
10789 * doc/cppopts.texi (-dU): Document.
10790 * c-common.h (flag_dump_macros): Update comment.
10791 * c-opts.c (handle_OPT_d): Handle -dU.
10792 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
10793 dump_queued_macros, cb_used_define, cb_used_undef): New.
10794 (init_pp_output): Handle -dU.
10795 (cb_line_change): Call dump_queued_macros.
10796 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
10798 2008-04-02 Anatoly Sokolov <aesok@post.ru>
10800 * config/avr/predicates.md (io_address_operand): New predicate.
10801 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
10802 * config/avr/avr.c (avr_io_address_p): Remove function.
10803 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
10804 'avr_io_address_p' function.
10805 (out_movhi_r_mr): (Ditto.).
10806 (out_movqi_mr_r): (Ditto.).
10807 (out_movhi_mr_r): (Ditto.).
10808 (avr_address_cost): (Ditto.).
10810 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
10812 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
10813 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
10814 in 32bit mode when XMM registers are available to avoid store
10816 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
10817 corresponding post-reload splitters.
10819 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
10821 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
10822 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
10823 __builtin_ia32_roundss.
10824 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
10825 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
10826 __builtin_ia32_roundss.
10827 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
10828 IX86_BUILTIN_SHUFPD here.
10830 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
10832 * config/i386/i386.md (plogic): New.
10833 (plogicprefix): Likewise.
10835 * config/i386/mmx.md (mmx_<code><mode>3): New.
10836 (mmx_and<mode>3): Removed.
10837 (mmx_ior<mode>3): Likewise.
10838 (mmx_xor<mode>3): Likewise.
10840 * config/i386/sse.md (<code><mode>3): New.
10841 (*<code><mode>3): Likewise.
10842 (*<code><mode>3): Likewise.
10843 (<code><mode>3): Likewise.
10844 (*sse_<code><mode>3): Likewise.
10845 (*sse2_<code><mode>3): Likewise.
10846 (<code>tf3): Likewise.
10847 (*<code>tf3): Likewise.
10848 (and<mode>3): Likewise.
10849 (*and<mode>3): Likewise.
10850 (ior<mode>3): Removed.
10851 (*ior<mode>3): Likewise.
10852 (xor<mode>3): Likewise.
10853 (*xor<mode>3): Likewise.
10854 (*and<mode>3): Likewise.
10855 (*ior<mode>3): Likewise.
10856 (*xor<mode>3): Likewise.
10857 (and<mode>3): Likewise.
10858 (*sse_and<mode>3): Likewise.
10859 (*sse2_and<mode>3): Likewise.
10860 (andtf3): Likewise.
10861 (*andtf3): Likewise.
10862 (ior<mode>3): Likewise.
10863 (*sse_ior<mode>3): Likewise.
10864 (*sse2_ior<mode>3): Likewise.
10865 (iortf3): Likewise.
10866 (*iortf3): Likewise.
10867 (xor<mode>3): Likewise.
10868 (*sse_xor<mode>3): Likewise.
10869 (*sse2_xor<mode>3): Likewise.
10870 (xortf3): Likewise.
10871 (*xortf3): Likewise.
10873 2008-04-02 Richard Guenther <rguenther@suse.de>
10875 PR tree-optimization/14495
10876 PR tree-optimization/34793
10877 * tree-vrp.c (struct switch_update): New structure.
10878 (to_remove_edges, to_update_switch_stmts): New VECs.
10879 (simplify_switch_using_ranges): New function. Remove not taken
10880 case labels and edges.
10881 (simplify_stmt_using_ranges): Call it.
10882 (identify_jump_threads): Mark edges we have queued for removal
10883 so we don't thread them.
10884 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
10886 * tree-cfg.c (group_case_labels): Deal with missing default label.
10887 (tree_verify_flow_info): Allow missing default label.
10888 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
10889 (emit_case_nodes): Likewise.
10890 (expand_case): Do not rely on the default label to be present.
10891 * expr.c (try_casesi): Deal with NULL default_label.
10892 (do_tablejump): Likewise.
10894 2008-04-02 Richard Guenther <rguenther@suse.de>
10896 PR tree-optimization/14495
10897 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
10898 SWITCH_EXPR here ...
10899 (vrp_visit_switch_stmt): ... but here (new function).
10900 (find_case_label_index): New helper function.
10901 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
10903 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10905 * fwprop.c: Fix ISO-C99ism.
10907 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10910 * Makefile.in (objdir): Set it here.
10911 * configure.ac: Not here. Find dynamic linker characteristics.
10912 * exec-tool.in: Use them.
10913 * aclocal.m4: Regenerate.
10914 * configure: Regenerate.
10916 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10918 * expr.c (expand_var): Delete it.
10919 * expr.h (expand_var): Delete prototype.
10920 * function.c (expand_function_start): Use expand_decl instead.
10921 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
10924 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
10926 PR rtl-optimization/35542
10927 * fwprop.c (forward_propagate_and_simplify): Replace
10928 loc_reg_mentioned_in_p with reg_mentioned_p.
10930 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10932 PR rtl-optimization/35281
10933 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
10934 (propagate_rtx_1): Handle PR_HANDLE_MEM.
10935 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
10936 (varying_mem_p): Move above propagate_rtx.
10937 (all_uses_available_at): Do not check MEMs.
10939 2008-04-02 Rafael Espindola <espindola@google.com>
10941 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
10942 (register_edge_assert_for_2): Split the cond argument.
10943 (register_edge_assert_for_1): Adjust for the change in
10944 register_edge_assert_for_2.
10945 (register_edge_assert_for): Split the cond argument.
10946 (find_switch_asserts): Adjust for the change in
10947 register_edge_assert_for.
10949 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
10951 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
10952 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
10953 offsets for 64-bit mingw.
10954 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
10955 abi for x86_64-pc-mingw.
10957 2008-04-02 Richard Guenther <rguenther@suse.de>
10959 * tree-vrp.c (extract_range_from_assert): Make sure to not
10960 produce range min/max with TREE_OVERFOW set.
10961 If merging a anti-range and a range keep the anti-range if
10962 the range covers all values of the type.
10963 (register_edge_assert_for_2): Only allow sign-changing
10964 conversions in detecting canonical range checks. Also
10965 register an assert for the unsigned name if useful.
10967 PR tree-optimization/35787
10968 * tree-vrp.c (vrp_val_max): New function.
10969 (vrp_val_min): Likewise.
10970 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
10971 (vrp_val_is_min): Likewise.
10972 (supports_overflow_infinity): Use vrp_val_{min,max}.
10973 (negative_overflow_infinity): Likewise.
10974 (positive_overflow_infinity): Likewise.
10975 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
10976 (is_positive_overflow_infinity): Likewise.
10977 (is_overflow_infinity): Likewise.
10978 (avoid_overflow_infinity): Use vrp_val_{min,max} and
10979 vrp_val_is_{min,max}.
10980 (set_and_canonicalize_value_range): Canonicalize anti-ranges
10981 to ranges if possible. Avoid empty ranges.
10983 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10985 PR middle-end/35705
10986 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
10987 the expression is a function address.
10989 2008-04-01 George Helffrich <george@gcc.gnu.org>
10991 PR fortran/35154, fortran/23057
10992 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
10993 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
10994 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
10995 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
10997 (dbxout_syms): Check for COMMON-based symbol and wrap in
10998 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
10999 in bracket for efficiency.
11001 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11002 using DW_TAG_common_block + member offset.
11003 (add_pubname_string): New function.
11004 (dw_expand_expr): New function to find block name and offset for
11006 (common_check): New function to check whether symbol in Fortran COMMON.
11007 (gen_variable_die): If COMMON, use DW_TAG_common_block.
11009 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
11012 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11014 2008-04-02 Ben Elliston <bje@au.ibm.com>
11016 * config/v850/v850.md (casesi): Remove if (0) code.
11017 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11018 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11020 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
11022 * config/i386/i386.md (rex64suffix): New mode attribute.
11023 (floathi<mode>2): Disable expander for SSE math.
11024 (*floathi<mode>2_1): New insn insn_and_split pattern.
11025 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11026 corresponding post-reload splitters.
11027 (*floathi<mode>2_i387): New macroized insn pattern.
11028 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11029 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11030 insn_and_split pattern.
11031 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11032 New macroized instruction patterns and corresponding post-reload
11034 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11035 and corresponding post-reload splitters.
11036 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11037 New macroized instruction patterns.
11038 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11039 macroized instruction patterns and corresponding post-reload splitters.
11040 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11041 corresponding post-reload splitters.
11042 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11043 New macroized instruction patterns.
11044 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11045 corresponding post-reload splitters.
11046 (*floatsi<mode>2_i387): New macroized instruction patterns.
11048 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
11050 * config/i386/i386.md (smaxmin): New.
11051 (umaxmin): Likewise.
11052 (maxminiprefix): Likewise.
11053 (maxminfprefix): Likewise.
11054 (<code><mode>3): Likewise.
11055 (smin<mode>3): Removed.
11056 (smax<mode>3): Likewise.
11058 * config/i386/mmx.md (mmx_<code>v2sf3): New.
11059 (mmx_<code>v4hi3): Likewise.
11060 (mmx_<code>v8qi3): Likewise.
11061 (mmx_smaxv2sf3): Removed.
11062 (mmx_sminv2sf3): Likewise.
11063 (mmx_umaxv8qi3): Likewise.
11064 (mmx_smaxv4hi3): Likewise.
11065 (mmx_uminv8qi3): Likewise.
11066 (mmx_sminv4hi3): Likewise.
11068 * config/i386/sse.md (<addsub><mode>3): New.
11069 (*<addsub><mode>3): Likewise.
11070 (<sse>_vm<addsub><mode>3): Likewise.
11071 (<maxmin><mode>3): Likewise.
11072 (*<maxmin><mode>3_finite): Likewise.
11073 (*<maxmin><mode>3): Likewise.
11074 (<sse>_vm<maxmin><mode>3): Likewise.
11075 (sse3_h<addsub>v4sf3): Likewise.
11076 (sse3_h<addsub>v2df3): Likewise.
11077 (<maxmin>v16qi3): Likewise.
11078 (*<maxmin>v16qi3): Likewise.
11079 (<maxmin>v8hi3): Likewise.
11080 (*<maxmin>v8hi3): Likewise.
11081 (*sse4_1_<maxmin><mode>3): Likewise.
11082 (*sse4_1_<maxmin><mode>3): Likewise.
11083 (add<mode>3): Removed.
11084 (*add<mode>3): Likewise.
11085 (<sse>_vmadd<mode>3): Likewise.
11086 (sub<mode>3): Likewise.
11087 (*sub<mode>3): Likewise.
11088 (<sse>_vmsub<mode>3): Likewise.
11089 (smin<mode>3): Likewise.
11090 (*smin<mode>3_finite): Likewise.
11091 (*smin<mode>3): Likewise.
11092 (<sse>_vmsmin<mode>3): Likewise.
11093 (smax<mode>3): Likewise.
11094 (*smax<mode>3_finite): Likewise.
11095 (*smax<mode>3): Likewise.
11096 (<sse>_vmsmax<mode>3): Likewise.
11097 (sse3_haddv4sf3): Likewise.
11098 (sse3_haddv2df3): Likewise.
11099 (sse3_hsubv4sf3): Likewise.
11100 (sse3_hsubv2df3): Likewise.
11101 (umaxv16qi3): Likewise.
11102 (*umaxv16qi3): Likewise.
11103 (smaxv8hi3): Likewise.
11104 (*smaxv8hi3): Likewise.
11105 (*sse4_1_smax<mode>3): Likewise.
11106 (*sse4_1_umax<mode>3): Likewise.
11107 (uminv16qi3): Likewise.
11108 (*uminv16qi3): Likewise.
11109 (sminv8hi3): Likewise.
11110 (*sminv8hi3): Likewise.
11111 (*sse4_1_smin<mode>3): Likewise.
11112 (*sse4_1_umin<mode>3): Likewise.
11114 2008-04-01 Rafael Espindola <espindola@google.com>
11116 * tree-cfg.c (verify_expr): remove in_phi.
11117 (verify_stmt): Don't call walk_tree with verify_expr. Use
11118 is_gimple_min_invariant instead of is_gimple_val.
11120 2008-04-01 Joseph Myers <joseph@codesourcery.com>
11122 * doc/include/gpl_v3.texi: Update for manpage generation.
11123 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
11125 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
11126 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
11127 gpl_v3.texi instead of gpl.texi.
11130 2008-04-01 Jakub Jelinek <jakub@redhat.com>
11133 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11135 2008-04-01 Rafael Espindola <espindola@google.com>
11137 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11138 (extract_code_and_val_from_cond): Use
11139 extract_code_and_val_from_cond_with_ops.
11141 2008-04-01 Jan Hubicka <jh@suse.cz>
11143 * function.c (free_after_compilation): Free epilogue_delay_list.
11144 (prepare_function_start): Assert that previous compilation was freed.
11146 2008-04-01 Jan Hubicka <jh@suse.cz>
11147 Jim Wilson <wilson@tuliptree.org>
11148 Andreas Tobler <andreast@gcc.gnu.org>
11150 PR middle-end/35781
11151 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
11152 rtl.emit instead cfun->emit.
11153 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
11154 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
11156 2008-04-01 Ben Elliston <bje@au.ibm.com>
11158 * doc/c-tree.texi (Function Basics): Fix grammatical error.
11160 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
11162 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
11164 (fprofile-use): Add var flag_profile_use
11165 * coverage.c (coverage_begin_output): Do not open a gcno file for
11166 output only if -ftest-coverage is set.
11167 Do not add getpwd() to gcda file path.
11168 (build_gcov_info): Check the new flag
11169 flag_profile_datafile_relative_path.
11170 (coverage_init): Use profile_data_prefix.
11171 Read profile counter only if flag_profile_use is set.
11172 * opts.c (common_handle_option): New option fprofile-use=,
11173 fprofile-dir=, fprofile-generate=.
11174 * toplev.c (profile_data_prefix): New variable definition.
11175 * toplev.h (profile_data_prefix): New declaration.
11176 * doc/invoke.tex (Option Summary, Optimization Options):
11179 2008-03-31 James E. Wilson <wilson@tuliptree.org>
11181 * varasm.c (output_constant_pool_1): In LABEL_REF check,
11182 use tmp consistently.
11185 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11186 * config/ia64/ia64.c (rtx_needs_barrier): Handle
11187 UNSPEC_FR_RECIP_APPROX_RES.
11188 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11190 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
11193 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11195 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
11197 PR middle-end/30186
11198 * fold-const.c (fold_indirect_ref_1): Support accessing non first
11199 element of the vector via a pointer.
11201 2008-03-31 Ian Lance Taylor <iant@google.com>
11203 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11205 2008-03-31 Jan Hubicka <jh@suse.cz>
11207 * builtins.c (expand_builtin_setjmp_receiver): Update call of
11208 get_arg_pointer_save_area.
11209 * expr.c (init_expr): Just clear out rtl.expr.
11210 * function.c (free_after_compilation): Clear out whole RTL structure.
11211 (get_func_frame_size): Merge into ...
11212 (get_frame_size): ... this one.
11213 (assign_stack_local_1): Merge into ...
11214 (assign_stack_local): ... this one.
11215 (expand_function_end): Update call of get_arg_pointer_save_area.
11216 (get_art_pointer_save_area): Remove cfun argument.
11217 * function.h (emit_status): regno_pointer_align does not need length
11218 attribute. Move x_regno_reg_rtx to ...
11219 (regno_reg_rtx): ... new global array.
11220 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11221 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11222 apply_args_value, forced_labels, stack_pointer_delta):
11224 (struct varasm_status): Move here from varasm.c
11225 (struct rtl_data): New. Move here some fields from struct function.
11226 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11227 frame_offset, stack_check_probe_note, arg_pointer_save_area,
11228 used_temp_slots avail_temp_slots, temp_slot_level,
11229 nonlocal_goto_handler_labels): Update accesstors.
11230 (rtl): New global variable.
11231 (struct function): Move some fileds to rtl_data.
11232 (get_arg_pointer_save_area): Update prototype.
11233 * emit-rtl.c (rtl): Declare.
11234 (regno_reg_rtx): Declare.
11235 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11237 (gen_reg_rtx): Update.
11238 (init_virtual_regs): Do not tate emit_status argument.
11239 (init_emit): Do not allocate emit.
11240 * varasm.c (varasm_statuc): Move to function.h.
11241 (n_deferred_constatns): Update accestor.
11242 (init_varasm_status): Do not allocate varasm_status.
11243 (force_const_mem, get_pool_size, output_constant_pool): Update.
11244 * stmt.c (force_label_rtx): Do not use x_ prefixes.
11245 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11247 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
11249 PR rtl-optimization/35729
11250 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11253 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
11256 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11257 load/store if memory is unaligned.
11258 (*movti_rex64): Likewise.
11260 * config/i386/predicates.md (misaligned_operand): New.
11262 2008-03-31 Andrew Pinski <pinskia@gmail.com>
11265 * tree-ssa-phiopt.c (conditional_replacement): Return early for
11268 2008-03-31 Jan Beulich <jbeulich@novell.com>
11270 * config/ia64/constraints.md: Add 'j' constraint.
11271 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11272 (movdi_internal): Likewise.
11274 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
11277 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11279 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
11282 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11283 proper error message for the third argument on blendpd and
11286 * config/i386/sse.md (blendbits): New.
11287 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11289 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
11291 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11293 2008-03-30 Richard Guenther <rguenther@suse.de>
11295 PR middle-end/31023
11296 * fold-const.c (fold_sign_changed_comparison): Do leave
11297 conversions to base-types alone.
11299 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
11301 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11302 the link register if one altivec register is be saved.
11304 2008-03-30 Ben Elliston <bje@au.ibm.com>
11306 * final.c (final_scan_insn): Remove if (0) code.
11308 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
11310 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11312 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
11314 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11315 of V4SFmode to ix86_binary_operator_ok.
11317 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
11319 * config/i386/i386.c (override_options): Initialize
11320 ix86_veclib_handler to ix86_veclibabi_svml when
11321 -mveclibabi=svml is used.
11322 (ix86_veclibabi_svml): New function for SVML ABI style
11323 vectorization support.
11324 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11326 2008-03-28 Rafael Espindola <espindola@google.com>
11328 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11329 (tree_binary_nonnegative_warnv_p): Make it public.
11330 (tree_single_nonnegative_warnv_p): Make it public.
11331 (tree_invalid_nonnegative_warnv_p): Make it public.
11332 (tree_unary_nonzero_warnv_p): Make it public.
11333 (tree_binary_nonzero_warnv_p): Make it public
11334 (tree_single_nonzero_warnv_p): Make it public.
11335 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11336 (extract_range_from_binary_expr): Split the expr argument.
11337 (extract_range_from_unary_expr): Split the expr argument.
11338 (extract_range_from_comparison): Split the expr argument.
11339 (extract_range_from_expr): Use the new aux functions.
11340 (vrp_evaluate_conditional_warnv): Use
11341 vrp_evaluate_conditional_warnv_with_ops.
11342 * tree.h (tree_unary_nonzero_warnv_p): Declare.
11343 (tree_binary_nonzero_warnv_p): Declare.
11344 (tree_single_nonzero_warnv_p): Declare.
11345 (tree_expr_nonzero_warnv_p): Declare.
11346 (tree_unary_nonnegative_warnv_p): Declare.
11347 (tree_binary_nonnegative_warnv_p): Declare.
11348 (tree_single_nonnegative_warnv_p): Declare.
11349 (tree_invalid_nonnegative_warnv_p): Declare.
11351 2008-03-28 Richard Guenther <rguenther@suse.de>
11353 PR tree-optimization/30317
11354 PR tree-optimization/30911
11355 PR tree-optimization/34793
11356 * tree-vrp.c (set_and_canonicalize_value_range): New function.
11357 (struct assert_locus_d): New member EXPR.
11358 (register_new_assert_for): Add EXPR parameter to support
11359 ASSERT_EXPR <name, expr OP limit>.
11360 (register_edge_assert_for_1): Adjust callers.
11361 (find_assert_locations): Likewise.
11362 (process_assert_insertions_for): Build condition from expression.
11363 (extract_range_from_assert): Handle ASSERT_EXPRs
11364 of the form ASSERT_EXPR <name, expr OP limit>.
11365 (register_edge_assert_for_2): New helper registering
11366 asserts for comparisons. Recognize range tests of the form
11367 (unsigned)i - CST1 OP CST2.
11368 (register_edge_assert_for_1): Use it.
11369 (register_edge_assert_for): Likewise.
11370 (needs_overflow_infinity): Integer sub-types
11371 do not need overflow infinities.
11372 (vrp_val_is_max): The extreme values of integer sub-types
11373 are those of the base type.
11374 (vrp_val_is_min): Likewise.
11375 * tree.def (ASSERT_EXPR): Document extra allowed conditional
11378 2008-03-28 Nick Clifton <nickc@redhat.com>
11381 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11382 Return GENERAL_REGS for stack adjustment reloads.
11384 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
11387 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11388 const_vector when all the vectors are constant.
11390 2008-03-27 Bob Wilson <bob.wilson@acm.org>
11392 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11394 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11395 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11397 (s<code>_sf): Use new scc_sf attribute for opcode names.
11399 2008-03-27 Tom Tromey <tromey@redhat.com>
11401 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11402 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11403 config/spu/t-spu-elf, config/i386/t-interix,
11404 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11405 config/i386/x-darwin, config/i386/x-mingw32,
11406 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11407 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11408 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11409 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11410 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11411 config/rs6000/x-darwin, config/rs6000/t-rs6000,
11412 config/score/t-score-elf, config/arm/t-strongarm-pe,
11413 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11414 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11415 Revert automatic dependency patch.
11417 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
11420 * config/i386/i386.c (ix86_function_arg_boundary): Align
11421 decimal floating point to its natural boundary.
11423 2008-03-27 Richard Guenther <rguenther@suse.de>
11425 PR middle-end/35716
11426 * fold-const.c (fold_comparison): Restrict distinct decl
11427 comparison folding to VAR_DECLs and PARM_DECLs. Do not
11428 solely rely on operand_equal_p.
11430 2008-03-27 Richard Guenther <rguenther@suse.de>
11433 * c-common.c (handle_weak_attribute): Reject combination of
11436 2008-03-27 Richard Guenther <rguenther@suse.de>
11438 PR tree-optimization/32810
11439 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
11440 conversions from DECL_INITIAL.
11441 (fold_const_aggregate_ref): Likewise from constructor elements.
11443 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
11445 * tree-affine.h (aff_combination_expand): Declare.
11446 (get_inner_reference_aff): Likewise.
11447 * tree-affine.c (aff_combination_expand): Split out from
11448 tree_to_aff_combination_expand.
11449 (get_inner_reference_aff): New function.
11450 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
11451 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
11452 (struct lim_aux_data): sm_done field removed.
11453 (mem_ref_loc_p, mem_ref_locs_p): New types.
11454 (struct mem_ref): Added id, stored, accesses_in_loop,
11455 indep_loop, dep_loop, indep_ref, dep_ref fields.
11456 Removed is_stored, locs and next fields.
11457 (memory_accesses): New variable.
11458 (movement_possibility): Do not allow moving statements
11459 that store to memory.
11460 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
11462 (determine_max_movement): For statements with memory references,
11463 find the outermost loop in that the reference is independent.
11464 (move_computations_stmt): Mark the virtual operands for renaming.
11465 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
11466 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
11467 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
11468 add_vop_ref_mapping, create_vop_ref_mapping_loop,
11469 create_vop_ref_mapping, analyze_memory_references,
11470 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
11471 get_all_locs_in_loop, ref_always_accessed_p,
11472 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
11473 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
11474 store_motion_loop, store_motion): New functions.
11475 (struct vop_to_refs_elt): New type.
11476 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
11477 memref_hash, memref_eq, hoist_memory_references): Rewritten.
11478 (schedule_sm): Replaced by...
11479 (execute_sm): ... this.
11480 (determine_lsm_ref, hoist_memory_references,
11481 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
11482 find_more_ref_vops, free_mem_ref, free_mem_refs,
11483 determine_lsm_loop, determine_lsm): Removed.
11484 (tree_ssa_lim_finalize): Free data structures used by store motion.
11485 (tree_ssa_lim): Call analyze_memory_references. Use
11486 store_motion instead of determine_lsm.
11488 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
11490 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
11491 rename tmake_file to m68hc11/t-m68hc11.
11492 (mcore): Set inhibit_libc to true.
11493 * config.host (alpha*-dec-*vms*): Set extra_programs.
11494 (interix3*): Don't use host_xmake_file.
11495 * configure.ac: Let config.gcc override inhibit_libc.
11496 * configure: Regenerate.
11498 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
11499 * config/t-openbsd-thread: Remove commented out lines.
11501 * config/x-interix: Remove.
11503 * config/m68hc11/t-m68hc11-gas: Rename to...
11504 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
11506 * config/mcore/t-mcore: Remove T_CFLAGS.
11507 * config/mcore/t-mcore-pe: Likewise.
11509 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
11511 * configure.ac: Replace custom __GNU_SOURCE test with
11512 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
11513 * aclocal.m4: Regenerate.
11514 * configure: Regenerate.
11515 * config.in: Regenerate.
11517 2008-03-27 Richard Guenther <rguenther@suse.de>
11519 * fold-const.c (target.h): Include.
11520 (fold_comparison): Fold comparison of addresses of decls
11521 that bind locally or of constants. Consolidate address folding code.
11522 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
11523 results from fold_binary_to_constant.
11524 (compare_values_warnv): Likewise.
11526 2008-03-27 Andrew Pinski <pinskia@gmail.com>
11528 PR middle-end/35429
11529 * fold-const.c (fold_truthop): Check for integeral types when folding
11530 a == 0 && b == 0 and a != 0 || b != 0 .
11532 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
11534 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
11536 2008-03-26 Andreas Schwab <schwab@suse.de>
11538 * doc/invoke.texi: Fix use of @item vs. @itemx.
11540 2008-03-26 Tom Tromey <tromey@redhat.com>
11542 * Makefile.in (build/gensupport.o, build/print-rtl.o,
11543 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
11544 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
11545 build/gencodes.o, build/genconditions.o, build/genconfig.o,
11546 build/genconstants.o, build/genemit.o, build/genextract.o,
11547 build/genflags.o, build/genmddeps.o, build/genopinit.o,
11548 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
11551 2008-03-26 Richard Guenther <rguenther@suse.de>
11554 2008-03-26 Richard Guenther <rguenther@suse.de>
11556 * fold-const.c (target.h): Include.
11557 (fold_comparison): Fold comparison of addresses of two decls
11558 that bind locally. Consolidate address folding code.
11560 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11562 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
11563 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
11564 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
11565 dconstsqrt2, dconstthird, dconste and/or dconst10.
11566 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
11567 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
11568 dconstsqrt2, dconste): Delete.
11569 (init_emit_once): Likewise. Simplify initializing dconstm1.
11571 * real.c (get_real_const): New.
11572 * real.h (dconst3, dconst10, dconstm2, dconstthird,
11573 dconstsqrt2, dconste): Delete.
11574 (real_value_const, get_real_const): New.
11576 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
11578 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
11580 * config/i386/i386.c (ix86_function_arg_boundary): Check
11581 BIGGEST_ALIGNMENT instead of 128.
11582 (setup_incoming_varargs_64): Likewise.
11584 2008-03-26 Tom Tromey <tromey@redhat.com>
11586 * Makefile.in (DEPFILES): Add missing '/'.
11588 2008-03-26 Richard Guenther <rguenther@suse.de>
11590 * fold-const.c (target.h): Include.
11591 (fold_comparison): Fold comparison of addresses of two decls
11592 that bind locally. Consolidate address folding code.
11594 2008-03-26 Nick Clifton <nickc@redhat.com>
11597 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
11598 not allow INT+INT as a legitimate addressing mode.
11600 2008-03-26 Richard Guenther <rguenther@suse.de>
11602 * tree-flow.h (widen_bitfield): Remove declaration.
11603 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
11604 (widen_bitfield): Remove function.
11605 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
11608 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
11611 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
11614 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
11616 PR rtl-optimization/35232
11617 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
11618 (forget_old_reloads_1, forget_marked_reloads): Don't clear
11619 reg_reloaded_call_part_clobbered here.
11620 (reload_regs_reach_end_p): New function.
11621 (reload_reg_rtx_for_input): New variable.
11622 (reload_reg_rtx_for_output): Likewise.
11623 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
11624 when reassigning a pseudo register. Load reloadreg from
11625 reload_reg_rtx_for_input, moving the mode and register
11627 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
11628 instead of the original when deciding whether an input reload
11629 would be a no-op or whether an output reload can be deleted.
11630 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
11631 when setting up new_spill_reg_store. Load it from
11632 reload_reg_rtx_for_output, moving the mode and register
11634 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
11635 instead of the original when deciding whether an output reload
11636 would be a no-op. Do the same when modifying insn notes.
11637 Use rtx_equal_p instead of == to compare the registers.
11638 (inherit_piecemeal_p): Take a mode and two register numbers
11640 (emit_reload_insns): Clear new_spill_reg_store for every hard
11641 register in the reload register. Remove spill registers
11642 from reg_reloaded_valid before considering whether to record
11643 inheritance information for them. Use reload_reg_rtx_for_output
11644 instead of reg_rtx when recording output reloads. Use
11645 reload_reg_rtx_for_input instead of reg_rtx when recording
11646 input reloads. Set or clear reg_reloaded_call_part_clobbered
11647 at the same time as setting reg_reloaded_valid.
11648 (delete_output_reload): Add a new_reload_reg parameter and use it
11649 instead of rld[j].reg_rtx.
11650 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
11653 2008-03-25 Tom Tromey <tromey@redhat.com>
11655 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
11656 (build/genattr.o): Likewise.
11657 (build/genattrtab.o): Likewise.
11658 (build/gencodes.o): Likewise.
11659 (build/genconfig.o): Likewise.
11660 (build/genconstants.o): Likewise.
11661 (build/genemit.o): Likewise.
11662 (build/genextract.o): Likewise.
11663 (build/genflags.o): Likewise.
11665 2008-03-25 Bob Wilson <bob.wilson@acm.org>
11667 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
11668 instead of size_int for integer types.
11669 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
11670 to match type of MINUS_EXPR.
11672 2008-03-25 Tom Tromey <tromey@redhat.com>
11674 * configure: Rebuilt.
11675 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
11678 2008-03-25 Tom Tromey <tromey@redhat.com>
11680 * config/x-solaris (host-solaris.o): Update.
11681 * config/x-linux (host-linux.o): Update.
11682 * config/x-hpux (host-hpux.o): Update.
11683 * config/x-darwin (host-darwin.o): Update.
11684 * config/v850/t-v850e (v850-c.o): Update.
11685 * config/v850/t-v850 (v850-c.o): Update.
11686 * config/t-vxworks (vxworks.o): Update.
11687 * config/t-sol2 (sol2-c.o, sol2.o): Update.
11688 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
11689 * config/spu/t-spu-elf (spu-c.o): Update.
11691 * config/sh/t-symbian (sh-c.o): Update.
11692 (symbian.o): Update.
11693 * config/sh/t-sh (sh-c.o): Update.
11694 * config/score/t-score-elf (score7.o, score3.o): Update.
11695 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
11696 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
11697 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
11698 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
11699 (rs6000.o): Remove.
11700 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11701 * config/m32c/t-m32c (m32c-pragma.o): Update.
11702 * config/ia64/t-ia64 (ia64-c.o): Update.
11703 * config/i386/x-mingw32 (host-mingw32.o): Update.
11704 * config/i386/x-i386 (driver-i386.o): Update.
11705 * config/i386/x-darwin (host-i386-darwin.o): Update.
11706 * config/i386/x-cygwin (host-cygwin.o): Update.
11707 * config/i386/t-nwld (nwld.o): Update.
11708 * config/i386/t-netware (netware.o): Update.
11709 * config/i386/t-interix (winnt.o): Update.
11710 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
11711 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
11712 msformat-c.o): Update.
11713 * config/bfin/t-bfin-linux (generated_files): Add
11714 linux-sysroot-suffix.h.
11715 * config/arm/t-wince-pe (pe.o): Update.
11716 * config/arm/t-strongarm-pe (pe.o): Update.
11717 * config/arm/t-pe (pe.o): Update.
11718 * config/arm/t-arm (arm-c.o): Update.
11719 * doc/install.texi (Prerequisites): Require make 3.80.
11720 * Makefile.in: Remove .o targets.
11721 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
11722 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
11723 (simple_generated_h, simple_generated_c): Move earlier.
11724 (generated_files): New variable.
11725 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
11726 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
11727 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
11728 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
11729 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
11730 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
11731 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
11732 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
11733 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
11734 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
11735 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
11736 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
11738 (COMPILE.base, COMPILE): New variables.
11739 (%.o): New pattern rule.
11740 (ALL_HOST_OBJS): New variable.
11741 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
11742 (dummy-checksum.o, cc1-checksum.o): Remove.
11743 (DRIVER_SHLIB): New variable.
11744 (DRIVER_DEFINES): Use it.
11745 (gencondmd.c): Move out of build/.
11746 (s-conditions): Update.
11747 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
11748 (ALL_BUILD_OBJS): Likewise.
11749 (build/%.o): Use BUILDCOMPILE.
11750 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
11751 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
11752 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
11753 build/gencheck.o, build/gencodes.o, build/genconditions.o,
11754 build/genconfig.o, build/genconstants.o, build/genemit.o,
11755 build/genextract.o, build/genflags.o, build/genmddeps.o,
11756 build/genopinit.o, build/genoutput.o, build/genpeep.o,
11757 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
11758 build/gen-protos.o, build/scan.o, build/fix-header.o,
11759 build/scan-decls.o): Simplify.
11760 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
11761 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
11762 prefix.o, toplev.o): Reduce to variable setting.
11763 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
11764 ($(out_object_file), gcc-options.o): New targets.
11765 ($(ALL_HOST_OBJS)): New target. Include dependency files.
11766 * configure: Rebuilt.
11767 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
11768 * doc/sourcebuild.texi (Front End Directory): Document new variable.
11770 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
11772 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
11773 complain when we hit an error, return ERROR_MARK_NODE.
11775 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11777 * config/sh/constraints.md (Pso, Psz): New constraints.
11778 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
11779 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
11781 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11783 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
11784 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
11786 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11788 * config/sh/sh.md (prefetch): Add condition for SH2A target.
11789 (prefetch_sh2a): New.
11791 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
11792 Naveen.H.S <naveen.hs@kpitcummins.com>
11794 * config/sh/constraints.md (I28): New constraint.
11795 * config/sh/sh.c (broken_move): Add support for movi20s.
11796 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
11798 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
11799 Jayant Sonar <Jayant.sonar@kpitcummins.com>
11800 Naveen.H.S <naveen.hs@kpitcummins.com>
11802 * config/sh/sh.c (SH_ATTRIBUTES): Define.
11803 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
11804 (print_operand): Handle resbank in %@ operand code.
11805 (sh_encode_section_info): New.
11806 (push_regs): Add conditions for resbank.
11807 (sh_expand_epilogue): Likewise.
11808 (sh_insert_attributes): Likewise.
11809 (sh_attribute_table): Likewise.
11810 (sh_handle_resbank_handler_attribute): New.
11811 (sh2a_handle_function_vector_handler_attribute): New.
11812 (sh2a_is_function_vector_call): New.
11813 (sh2a_get_function_vector_number): New.
11814 (sh2a_function_vector_p): New.
11815 (sh_cfun_resbank_handler_p): New.
11816 * config/sh/sh.md (calli): Emit jsr/n if possible.
11817 (calli_tbr_rel): New.
11818 (calli_pcrel): Emit jsr/n if possible.
11819 (return_i): Emit rts/n if possible.
11820 (call_valuei_tbr_rel): New.
11821 (call_valuei_pcrel): Add condition for SH2A target.
11822 (call_value): Likewise.
11823 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
11824 (sh2a_get_function_vector_number): Likewise.
11825 (sh2a_is_function_vector_call): Likewise.
11826 * doc/extend.texi: Document TBR relative addressing of SH2A.
11827 (resbank): Add description for SH2A.
11829 2008-03-24 Richard Guenther <rguenther@suse.de>
11832 * gimplify.c (gimplify_modify_expr): For frontend type-correct
11833 pointer assignments change conversions according to middle-end rules.
11834 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
11835 * configure.ac: Include type checking in yes.
11836 * configure: Regenerate.
11838 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11840 * diagnostic.c (diagnostic_count_diagnostic): Delete.
11841 (diagnostic_report_diagnostic): Update. Handle ICEs here.
11843 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
11845 * gthr-vxworks.h (UNUSED): Define.
11847 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
11849 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
11851 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
11853 * doc/extend.texi (Function Attributes): Add missing comma in the
11854 example of the "alloc_size" attribute.
11856 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
11859 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
11861 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11864 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
11867 * stor-layout.c (update_alignment_for_field): Set minimum alignment
11868 of the underlying type of a MS bitfield layout to the natural
11869 alignment of the type.
11871 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
11873 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11874 to their natural alignment to avoid store forwarding stalls.
11876 2008-03-22 Richard Guenther <rguenther@suse.de>
11878 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
11879 For PHI nodes verify the address is invariant.
11880 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
11881 (get_symbol_constant_value): Use is_gimple_min_invariant.
11882 (maybe_fold_stmt_indirect): Likewise.
11884 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
11886 PR rtl-optimization/33927
11887 * Makefile.in (dse.o): Depend on $(TM_P_H).
11888 * expr.h (extract_low_bits): Declare.
11889 * expmed.c (extract_low_bits): New function.
11890 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
11891 * dse.c: Include tm_p.h.
11892 (find_shift_sequence): Remove the read_reg argument and return the
11893 read value. Emit the instructions instead of returning them.
11894 Iterate on new_mode rather than calculating it each time.
11895 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
11896 source to NEW_MODE and extract_low_bits to convert the shifted
11897 value to READ_MODE.
11898 (replace_read): Allow the load and store to have different mode
11899 classes. Use extract_low_bits when SHIFT == 0. Create the shift
11900 or extraction instructions before trying the replacement. Update
11901 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
11903 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
11905 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11906 to their natural alignment to avoid store forwarding stalls.
11908 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
11911 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
11912 encouraging but not allowing gprs for input;
11913 change the input constraint to !f#r.
11914 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
11916 change the output constraint to !f#r.
11918 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
11921 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
11922 corresponding post-reload splitters.
11923 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
11924 when x87 FP math is selected.
11925 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
11926 New function prototype.
11927 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
11928 unreachable function to ease macroization of insn patterns.
11930 2008-03-21 Martin Jambor <mjambor@suse.cz>
11932 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
11933 reference dumps if ddr is NULL or dependence is unknown.
11935 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
11937 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
11938 unsigned extension into account.
11939 (ATOMIC_COMPARE_AND_SWAP): Likewise.
11940 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
11941 Do computations on a scratch register.
11943 2008-03-21 Richard Guenther <rguenther@suse.de>
11945 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11946 Use is_gimple_min_invariant instead of TREE_INVARIANT.
11947 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
11948 * tree-ssa-dom.c (record_equality): Likewise.
11949 * tree-inline.c (copy_body_r): Likewise.
11950 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
11953 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
11955 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
11956 as 'delete_unused' argument.
11958 2008-03-20 Richard Guenther <rguenther@suse.de>
11960 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
11961 special casing of constant qualifiers.
11962 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
11963 care about them in general.
11964 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
11965 regardless of their type.
11966 (fold_stmt_r): Forcefully fold *& if we end up with that.
11968 2008-03-20 Paul Brook <paul@codesourcery.com>
11970 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
11971 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
11973 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
11975 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
11976 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
11978 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
11980 * common.opt (Wmudflap): New option.
11981 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
11982 (mx_register_decls): Likewise.
11983 (mudflap_finish_file): Likewise.
11984 * doc/invoke.texi: Document -Wno-mudflap.
11986 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
11988 * c-format.c (replace_format_name_to_system_name): New.
11989 (cmp_attribs): New.
11990 (convert_format_name_to_system_name): New.
11991 (decode_format_attr): Add use of convert_format_name_to_system_name.
11992 (format_types_orig): Add gnu_ prefix to names.
11993 (check_format_info_main): Special treating of \0 escaped names for
11994 supporting multi-character format specifiers as I32, I64.
11995 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
11996 (gnu_target_overrides_format_attributes): New.
11997 * c-format.h: Add structure target_ovr_attr to hold
11998 system specific formatter names.
11999 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12000 msformat-c.o file to c_target_objs and cxx_target_objs.
12001 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12002 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12003 (TARGET_N_FORMAT_TYPES): New.
12004 * config/i386/msformat-c.c: New.
12005 * config/i386/t-cygming: Add build rule for msformat-c.o.
12006 * doc/extend.texi: Add new format names gnu_* and ms_* and
12008 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12010 2008-03-20 Ira Rosen <irar@il.ibm.com>
12012 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12013 optimizations turned on under -O3.
12014 (ftree-vectorize): Add that the flag is turned on with -O3.
12016 2008-03-20 Ben Elliston <bje@au.ibm.com>
12018 * regmove.c (try_auto_increment): Fix spelling error in comment.
12019 * final.c (final_scan_insn): Likewise.
12021 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
12024 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12025 allocator preferences for "y" and "r" class registers.
12026 ("*mov<mode>_internal"): Ditto.
12027 ("*movv2sf_internal_rex64"): Ditto.
12028 ("*movv2sf_internal"): Ditto.
12030 2008-03-19 Michael Matz <matz@suse.de>
12032 PR middle-end/35616
12033 * calls.c (expand_call): Check overlap of arguments with call
12034 address for sibcalls.
12036 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
12039 * stor-layout.c (update_alignment_for_field): Set minimum alignment
12040 of the underlying type of a MS bitfield layout to the natural
12041 alignment of the type.
12043 2008-03-19 Jan Hubicka <jh@suse.cz>
12046 * toplev.c (decode_d_option): Handle all CPP flags.
12047 * tree-vrp.c: Update tree_pass descriptors.
12048 * regrename.c: Update tree_pass descriptors.
12049 * fwprop.c: Update tree_pass descriptors.
12050 * doc/invoke.texi: Remove documentation of dropped -d? flags.
12051 * tree-into-ssa.c: Update tree_pass descriptors.
12052 * tree-dump.c: Update tree_pass descriptors.
12053 * tree-complex.c: Update tree_pass descriptors.
12054 * tree-dump.h: Update tree_pass descriptors.
12055 * see.c: Update tree_pass descriptors.
12056 * cgraphbuild.c: Update tree_pass descriptors.
12057 * tracer.c: Update tree_pass descriptors.
12058 * tree-loop-distribution.c: Update tree_pass descriptors.
12059 * cgraph.c: Update tree_pass descriptors.
12060 * postreload-gcse.c: Update tree_pass descriptors.
12061 * postreload.c: Update tree_pass descriptors.
12062 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12063 * tree-tailcall.c: Update tree_pass descriptors.
12064 * tree-pass.h (tree_opt_pass): Rename to ...
12065 (opt_pass) ... this one; add "type" field and remove letter field.
12066 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12067 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12068 all_lowering_passes): Update declaration.
12069 * ipa-cp.c: Update tree_pass descriptors.
12070 * final.c: Update tree_pass descriptors.
12071 * omp-low.c: Update tree_pass descriptors.
12072 * tree-ssa-dse.c: Update tree_pass descriptors.
12073 * ipa-reference.c: Update tree_pass descriptors.
12074 * tree-ssa-uncprop.c: Update tree_pass descriptors.
12075 * auto-inc-dec.c: Update tree_pass descriptors.
12076 * reorg.c: Update tree_pass descriptors.
12077 * cgraphunit.c: Update tree_pass descriptors.
12078 * tree-ssa-copyrename.c: Update tree_pass descriptors.
12079 * tree-ssa-ccp.c: Update tree_pass descriptors.
12080 * df-core.c: Update tree_pass descriptors.
12081 * mode-switching.c: Update tree_pass descriptors.
12082 * tree-nomudflap.c: Update tree_pass descriptors.
12083 * modulo-sched.c: Update tree_pass descriptors.
12084 * ipa-pure-const.c: Update tree_pass descriptors.
12085 * cse.c: Update tree_pass descriptors.
12086 * web.c: Update tree_pass descriptors.
12087 * tree-stdarg.c: Update tree_pass descriptors.
12088 * tree-ssa-math-opts.c: Update tree_pass descriptors.
12089 * tree-ssa-dom.c: Update tree_pass descriptors.
12090 * tree-nrv.c: Update tree_pass descriptors.
12091 * tree-ssa-alias.c: Update tree_pass descriptors.
12092 * loop-init.c: Update tree_pass descriptors.
12093 * gimple-low.c: Update tree_pass descriptors.
12094 * ipa-inline.c: Update tree_pass descriptors.
12095 * tree-ssa-sink.c: Update tree_pass descriptors.
12096 * global.c: Update tree_pass descriptors.
12097 * ifcvt.c: Update tree_pass descriptors.
12098 * jump.c: Update tree_pass descriptors.
12099 * predict.c: Update tree_pass descriptors.
12100 * tree-ssa-loop.c: Update tree_pass descriptors.
12101 * recog.c: Update tree_pass descriptors.
12102 * dse.c: Update tree_pass descriptors.
12103 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
12104 * tree-eh.c: Update tree_pass descriptors.
12105 * regmove.c: Update tree_pass descriptors.
12107 * function.c: Update tree_pass descriptors.
12108 * tree-vectorizer.c: Update tree_pass descriptors.
12109 * gcse.c: Update tree_pass descriptors.
12110 * ipa-type-escape.c: Update tree_pass descriptors.
12111 * tree-if-conv.c: Update tree_pass descriptors.
12112 * init-regs.c: Update tree_pass descriptors.
12113 * ipa.c: Update tree_pass descriptors.
12114 * tree-ssa-phiopt.c: Update tree_pass descriptors.
12115 * rtl-factoring.c: Update tree_pass descriptors.
12116 * lower-subreg.c: Update tree_pass descriptors.
12117 * bt-load.c: Update tree_pass descriptors.
12118 * tree-dfa.c: Update tree_pass descriptors.
12119 * except.c: Update tree_pass descriptors.
12120 * emit-rtl.c: Update tree_pass descriptors.
12121 * cfgexpand.c: Update tree_pass descriptors.
12122 * tree-cfgcleanup.c: Update tree_pass descriptors.
12123 * cfgcleanup.c: Update tree_pass descriptors.
12124 * tree-ssa-pre.c: Update tree_pass descriptors.
12125 * tree-sra.c: Update tree_pass descriptors.
12126 * tree-mudflap.c: Update tree_pass descriptors.
12127 * tree-ssa-copy.c: Update tree_pass descriptors.
12128 * cfglayout.c: Update tree_pass descriptors.
12129 * tree-ssa-forwprop.c: Update tree_pass descriptors.
12130 * tree-ssa-dce.c: Update tree_pass descriptors.
12131 * tree-ssa.c: Update tree_pass descriptors.
12132 * regclass.c: Update tree_pass descriptors.
12133 * integrate.c: Update tree_pass descriptors.
12134 * tree-optimize.c: Update tree_pass descriptors.
12135 * tree-ssa-phiprop.c: Update tree_pass descriptors.
12136 * tree-object-size.c: Update tree_pass descriptors.
12137 * combine.c: Update tree_pass descriptors.
12138 * tree-outof-ssa.c: Update tree_pass descriptors.
12139 * bb-reorder.c: Update tree_pass descriptors.
12140 * stack-ptr-mod.c: Update tree_pass descriptors.
12141 * var-tracking.c: Update tree_pass descriptors.
12142 * tree-profile.c: Update tree_pass descriptors.
12143 * tree-vect-generic.c: Update tree_pass descriptors.
12144 * reg-stack.c: Update tree_pass descriptors.
12145 * sched-rgn.c: Update tree_pass descriptors.
12146 * tree-ssa-structalias.c: Update tree_pass descriptors.
12147 * tree-cfg.c: Update tree_pass descriptors.
12148 * passes.c (current_pass): Update declaration.
12149 (finish_optimization_passes): Update.
12150 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
12151 (register_one_dump_file, register_dump_files_1, next_pass_1):
12153 (init_optimization_passes): Update handling of new types.
12154 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
12155 * ipa-struct-reorg.c: Update tree_pass descriptors.
12156 * tree-ssa-reassoc.c: Update tree_pass descriptors.
12157 * combine-stack-adj.c: Update tree_pass descriptors.
12158 * cfgrtl.c: Update tree_pass descriptors.
12159 * dce.c: Update tree_pass descriptors.
12160 * tree-ssanames.c: Update tree_pass descriptors.
12162 2008-03-19 Richard Guenther <rguenther@suse.de>
12164 PR middle-end/35609
12165 * tree-ssa.c (walk_data): New structure.
12166 (warn_uninitialized_var): If not always_executed warn with "maybe"
12168 (execute_early_warn_uninitialized): Compute post-dominators.
12169 Initialize always_executed before processing each basic block.
12171 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
12174 * config/i386/i386.c (x86_this_parameter): Calculate correct location
12175 of "this" pointer when "regparm = N" or "fastcall" is in effect.
12177 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12179 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12181 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
12183 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12185 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12186 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12187 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
12188 target after ignore has been set, and move there also the commputation
12189 of subtarget and original_target.
12190 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12191 (LANG_HOOKS_INITIALIZER): Remove it.
12192 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12194 2008-03-18 Richard Guenther <rguenther@suse.de>
12196 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12197 found an expression with constants, note that in the VN for the lhs.
12198 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12199 fold them to constants if possible. Run cleanup_cfg if done so.
12200 (execute_pre): Return todo.
12201 (do_pre): Likewise.
12202 (execute_fre): Likewise.
12203 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12205 (get_prop_source_stmt): Look through pointer conversions.
12207 2008-03-18 Jan Hubicka <jh@suse.cz>
12209 * tree-pretty-print.c: Include predict.h.
12210 (dump_generic_node): Dump predictor.
12211 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12212 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12213 * gimple-low.c (lower_stmt): Likewise.
12214 * expr.c (expand_expr_real): Likewise.
12215 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12217 (build_predict_expr, build_predict_expr): New.
12218 * predict.h (predictor_name, build_predict_expr): Update.
12219 * c-typeck.c (c_finish_bc_stmt): Add prediction.
12220 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12221 * predict.def (PRED_CONTINUE): Update hitrate.
12222 * tree.def (PREDICT_EXPR): Define.
12223 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12224 do not handle BIND_EXPR.
12225 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12226 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12227 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12230 2008-03-18 Michael Matz <matz@suse.de>
12232 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12234 2008-03-18 Richard Guenther <rguenther@suse.de>
12236 * tree-gimple.h (is_gimple_invariant_address): Declare.
12237 (is_gimple_constant): Likewise.
12238 * tree-gimple.c (is_gimple_constant): New function.
12239 (is_gimple_invariant_address): Likewise.
12240 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12241 and is_gimple_invariant_address.
12242 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12244 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12245 an addressable base.
12247 2008-03-18 Jakub Jelinek <jakub@redhat.com>
12249 PR middle-end/35611
12250 * gimplify.c (gimplify_expr): Gimplify second operand of
12253 2008-03-17 Richard Guenther <rguenther@suse.de>
12255 PR tree-optimization/19637
12256 * fold-const.c (fold_unary): Remove restrictions of removing
12257 intermediate pointer-conversions (P2)(P1)P0.
12258 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12259 conversion to void pointer.
12260 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12262 2008-03-16 James E. Wilson <wilson@tuliptree.org>
12265 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12266 emulated thread local variables.
12268 2008-03-16 Richard Guenther <rguenther@suse.de>
12270 PR middle-end/35607
12271 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12272 expand TREE_INVARIANT operations that are not gimple invariant.
12274 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
12276 * doc/extend.texi (Alignment): Say that the ABI controls
12277 the __alignof__ for non-strict-alignment targets rather
12278 than being a recommendation.
12280 2008-03-15 Paul Brook <paul@codesourcery.com>
12282 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12284 (arm_output_fn_unwind): Mark functions that can not be unwound.
12286 2008-03-15 Paul Brook <paul@codesourcery.com>
12288 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12289 extension instructions.
12291 2008-03-15 Richard Guenther <rguenther@suse.de>
12293 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12294 and fold constant aggregate refs.
12295 (fold_const_aggregate_ref): Handle string constants
12296 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
12297 (evaluate_stmt): Simplify now that ccp_fold folds constant
12300 2008-03-15 Paul Brook <paul@codesourcery.com>
12302 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12303 (extzv): Use gen_extzv_t2.
12304 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12306 2008-03-15 Richard Guenther <rguenther@suse.de>
12308 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12309 (fold_const_aggregate_ref): Likewise.
12310 (get_value): Return NULL if we don't have any values.
12311 (ccp_finalize): Set const_val to NULL after freeing it.
12312 * tree-flow.h (get_symbol_constant_value): Declare.
12313 (fold_const_aggregate_ref): Likewise.
12314 * tree-ssa-sccvn.c (try_to_simplify): Use them.
12316 2008-03-15 Richard Guenther <rguenther@suse.de>
12318 PR middle-end/35593
12319 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12320 to not produce negative array indices if not allowed. Add
12321 parameter to indicate that.
12322 (maybe_fold_offset_to_component_ref): Allow negative array
12323 indices only for the first member of a structure.
12324 (maybe_fold_offset_to_reference): Allow negative array indices.
12325 (maybe_fold_stmt_addition): Likewise.
12327 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
12328 Anatoly Sokolov <aesok@post.ru>
12330 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12331 (avr_arch): Add ARCH_AVR6.
12332 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12333 (initial_elimination_offset): Initialize and use 'avr_pc_size'
12334 instead of fixed value 2.
12335 (print_operand_address): Use gs() asm specifier instead of pm().
12336 (avr_assemble_integer): (Ditto.).
12337 (avr_output_addr_vec_elt): (Ditto.).
12338 (print_operand): Handle "!" code.
12339 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
12340 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12341 (AVR_HAVE_EIJMP_EICALL): Define.
12342 (AVR_3_BYTE_PC): Redefine.
12343 (AVR_2_BYTE_PC): (Ditto.).
12344 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12345 (LINK_SPEC): Add atmega2560 and atmega2561.
12346 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
12348 * config/avr/avr.md (call_insn): Use eicall instead of icall
12349 for 3 byte PC devices.
12350 (call_value_insn): (Ditto.).
12351 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12352 (indirect_jump): Use only for for 2 byte PC devices.
12353 (*tablejump): (Ditto.).
12354 (*indirect_jump_avr6): Add insn.
12355 (*tablejump_rjmp): Don't use for 3 byte PC devices.
12356 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
12357 instead of ijmp for 3 byte PC devices.
12358 (__tablejump2__): (Ditto.).
12359 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12360 (MULITLIB_DIRNAMES): (Ditto.).
12361 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12363 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
12365 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12366 "sse2_umulsidi3". Use V1DI mode for operand 0.
12367 ("mmx_psadbw"): Use V1DI mode for operand 0.
12368 * config/i386/i386-modes.def (V1SI): New vector mode.
12369 * config/i386/i386.c (struct builtin_description)
12370 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12371 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12372 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12373 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12374 v1di_ftype_v8qi_v8qi type.
12375 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12377 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12378 __builtin_ia32_pmuludq]: Fix the mode of return value.
12380 2008-03-15 Richard Guenther <rguenther@suse.de>
12382 PR middle-end/35595
12383 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12386 2008-03-14 Bob Wilson <bob.wilson@acm.org>
12388 * doc/invoke.texi (Option Summary, Xtensa Options): Document
12389 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12390 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12391 unless TARGET_SERIALIZE_VOLATILE is enabled.
12392 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12393 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12394 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12396 2008-03-14 Richard Guenther <rguenther@suse.de>
12398 PR tree-optimization/34172
12399 * tree-flow.h (refs_may_alias_p): Declare.
12400 (get_single_def_stmt): Likewise.
12401 (get_single_def_stmt_from_phi): Likewise.
12402 (get_single_def_stmt_with_phi): Likewise.
12403 * tree-dfa.c (refs_may_alias_p): New function.
12404 (get_single_def_stmt): Likewise.
12405 (get_single_def_stmt_from_phi): Likewise.
12406 (get_single_def_stmt_with_phi): Likewise.
12407 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12408 (vn_reference_lookup_1): New helper function.
12409 (vn_reference_lookup): Walk the virtual use-def chain to
12410 continue searching for a match if the def does not alias the
12411 reference we are looking for.
12413 2008-03-14 David Edelsohn <edelsohn@gnu.org>
12415 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
12416 archive and Perzl. Update The Written Word listing.
12418 2008-03-14 Richard Guenther <rguenther@suse.de>
12420 PR tree-optimization/34043
12421 PR tree-optimization/33989
12422 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
12424 (bitmap_find_leader): Use extra argument to verify dominance
12425 relationship inside a basic-block.
12426 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
12427 (find_leader_in_sets): Adjust.
12428 (create_component_ref_by_pieces): Take extra argument for
12429 dominance check, handle lookup failures.
12430 (find_or_generate_expression): Likewise.
12431 (create_expression_by_pieces): Likewise.
12432 (insert_into_preds_of_block): Adjust.
12433 (create_value_expr_from): If asked for, verify all operands
12434 are in the blocks AVAIL_OUT set.
12435 (make_values_for_stmt): Check for SSA_NAMEs that are life
12436 over an abnormal edge.
12437 (compute_avail): Remove such check.
12438 (do_SCCVN_insertion): New function.
12439 (eliminate): If we do not find a leader suitable for replacement
12440 insert a replacement expression from SCCVN if available.
12441 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
12442 (struct vn_ssa_aux): Add needs_insertion flag.
12443 * tree-ssa-sccvn.c (may_insert): New global flag.
12444 (copy_reference_ops_from_ref): Value-number union member access
12445 based on its size, not type and member if insertion is allowed.
12446 (visit_reference_op_load): For a weak match from union type
12447 punning lookup a view-converted value and insert a SSA_NAME
12448 for that value if that is not found.
12449 (visit_use): Make dumps shorter. Do not disallow value numbering
12450 SSA_NAMEs that are life over an abnormal edge to constants.
12451 (free_scc_vn): Release inserted SSA_NAMEs.
12452 (run_scc_vn): New flag to specify whether insertion is allowed.
12453 Process SSA_NAMEs in forward order.
12454 * tree-ssa-loop-im.c (for_each_index): Handle invariant
12455 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
12456 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
12457 pointer type to/from integral types that do not change the
12458 precision to regular conversions.
12460 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
12462 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12463 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12464 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
12465 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
12466 input arguments and the mode of return value. Built-in functions
12467 that operate on whole 64-bit MMX register now use V1DI mode.
12469 2008-03-13 Alon Dayan <alond@il.ibm.com>
12470 Olga Golovanevsky <olga@il.ibm.com>
12472 PR tree-optimization/35041
12473 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
12474 to locate the right position in a statement.
12476 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
12480 * config/i386/xmmintrin.h: Change all static inline functions to
12481 extern inline and add __gnu_inline__ attribute.
12482 * config/i386/bmintrin.h: Ditto.
12483 * config/i386/smmintrin.h: Ditto.
12484 * config/i386/tmmintrin.h: Ditto.
12485 * config/i386/mmintrin-common.h: Ditto.
12486 * config/i386/ammintrin.h: Ditto.
12487 * config/i386/emmintrin.h: Ditto.
12488 * config/i386/pmmintrin.h: Ditto.
12489 * config/i386/mmintrin.h: Ditto.
12490 * config/i386/mm3dnow.h: Ditto.
12492 2008-03-13 Jakub Jelinek <jakub@redhat.com>
12494 PR middle-end/35185
12495 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
12496 (lower_omp_2): New function.
12497 (lower_omp_1, lower_omp): Rewritten.
12499 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
12502 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
12503 with the phrase "Microsoft Windows compilers".
12504 (Push/Pop Macro Pragmas): New subsection. Document
12505 #pragma push_macro and pragma pop_macro.
12507 2008-03-12 Paul Brook <paul@codesourcery.com>
12509 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
12511 2008-03-12 Paul Brook <paul@codesourcery.com>
12513 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
12514 (thumb2_alusi3_short): Exclude PLUS and MINUS.
12515 (thumb2_addsi_shortim): Rename ...
12516 (thumb2_addsi_short): ... to this. Allow register operands.
12517 (thumb2_subsi_short): New pattern.
12518 (thumb2_one_cmplsi2_short,
12519 thumb2_negsi2_short): New patterns and peepholes.
12521 2008-03-12 Paul Brook <paul@codesourcery.com>
12523 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
12525 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
12527 * config/i386/i386.md (int_cond): New code iterator.
12529 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
12530 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
12531 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
12532 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
12533 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
12534 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
12535 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
12536 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
12538 2008-03-12 Paul Brook <paul@codesourcery.com>
12540 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
12541 instead of {arm,thumb}_compute_save_reg_mask.
12542 (output_return_instruction): Ditto.
12543 (thumb_unexpanded_epilogue): Ditto.
12544 (thumb1_expand_prologue): Ditto.
12545 (thumb1_output_function_prologue): Ditto.
12546 (arm_set_return_address): Ditto.
12547 (thumb_set_return_address): Ditto.
12548 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
12549 regs to achieve stack alignment.
12550 (thumb1_compute_save_reg_mask): Fix compiler warning.
12551 (arm_output_epilogue): Use offsets->saved_regs_mask.
12552 Adjust stack pointer by poping call clobered registers.
12553 (arm_expand_prologue): Use offsets->saved_regs_mask.
12554 Adjust stack pointer by pushing extra registers.
12555 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
12557 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
12560 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
12561 conversion to the operands of a multiplication.
12563 2008-03-12 Richard Guenther <rguenther@suse.de>
12565 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
12566 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
12567 * timevar.def (TV_TREE_PHIPROP): Add.
12568 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
12569 pass description. Use TV_TREE_PHIPROP.
12570 * tree-ssa-forwprop.c: Remove phiprop code.
12572 2008-03-12 Jakub Jelinek <jakub@redhat.com>
12574 PR middle-end/35549
12575 * omp-low.c (maybe_lookup_decl): Constify first argument.
12576 (use_pointer_for_field): Change last argument from bool to
12577 omp_context *. Disallow shared copy-in/out in nested
12578 parallel if decl is shared in outer parallel too.
12579 (build_outer_var_ref, scan_sharing_clauses,
12580 lower_rec_input_clauses, lower_copyprivate_clauses,
12581 lower_send_clauses, lower_send_shared_vars): Adjust callers.
12583 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
12584 Ira Rosen <irar@il.ibm.com>
12586 * tree-vectorizer.c (free_stmt_vec_info): New function.
12587 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
12588 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
12589 * tree-vectorizer.h (free_stmt_vec_info): Declare.
12590 * tree-vect-transform.c (vectorizable_conversion): Free
12591 vec_oprnds0 if it was allocated.
12592 (vect_permute_store_chain): Remove unused VECs.
12593 (vectorizable_store): Free VECs that are allocated in the..
12595 (vect_transform_strided_load, vectorizable_load): Likewise.
12596 (vect_remove_stores): Simplify the code.
12597 (vect_transform_loop): Move code to vect_remove_stores().
12598 Call vect_remove_stores() and free_stmt_vec_info().
12600 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12602 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
12603 TARGET_HPUX. Revise comment.
12604 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
12605 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
12606 Use sr4 variant of `be' instruction when not generating PIC code.
12607 (attr_length_call): Adjust for above change.
12609 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
12611 * ipa-reference.c (static_execute): Remove module_statics_const and
12612 associated setting code.
12614 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
12617 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
12618 predicate for operand 1.
12619 (paritysi2_cmp): Use register_operand predicate for operand 2.
12620 Use earlyclobber modifier for operand 1. Remove support for
12622 (paritydi2_cmp): Use register_operand predicate for operand 3.
12623 Use earlyclobber modifier for operand 1. Remove support for
12626 2008-03-11 Paul Brook <paul@codesourcery.com>
12627 Vladimir Prus <vladimir@codesourcery.com>
12629 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
12630 (arm_compute_save_reg0_reg12_mask): Always
12631 check if register 11 must be saved. Always safe hard frame pointer
12632 when frame_pointer_needeed.
12633 (arm_compute_save_reg_mask): Save IP and PC
12634 only with apcs frames.
12635 (arm_output_epilogue): Adjust Thumb2 codepath to
12636 be also invoked and work for ARM non-apcs frames.
12637 (arm_expand_prologue): Don't bother saving IP
12638 for non-apcs frame, since it's not clobbered by
12639 prologue code. Implement non-apcs frame
12642 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
12644 PR rtl-optimization/35281
12645 * expr.c (convert_move): Use a new pseudo for the intermediate
12646 from_mode->word_mode result.
12648 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
12650 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
12651 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
12652 * toplev.c (compile_file): Don't call it.
12654 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
12656 PR middle-end/35526
12657 * expr.c (store_expr): Call emit_block_move if the mode
12658 of "temp" RTX is BLKmode.
12660 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
12661 Richard Guenther <rguenther@suse.de>
12663 PR tree-optimization/31358
12664 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
12665 the step with a NULL_TREE.
12666 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
12667 to sizetype if type is a pointer type.
12668 (add_candidate_1): Don't convert the base and step to
12669 the generic type if the orginal type is a pointer type.
12670 (add_iv_value_candidates): Use sizetype for the step
12671 if type is a pointer type.
12672 (cand_value_at): Likewise.
12673 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
12675 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
12676 Don't convert the tem affine to the type.
12677 (add_elt_to_tree): Use sizetype for the step if a pointer.
12678 Use POINTER_PLUS_EXPR for pointers.
12679 (aff_combination_to_tree): Use sizetype for the step if a
12682 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
12684 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
12685 Remove commutativity hint.
12687 2008-03-10 Jakub Jelinek <jakub@redhat.com>
12691 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
12692 errorneous type. Check that v is a VAR_DECL.
12694 PR middle-end/35099
12695 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
12697 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
12699 PR tree-optimization/35494
12700 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
12701 may be overriden at link and run time.
12703 2008-03-10 Richard Guenther <rguenther@suse.de>
12705 PR tree-optimization/34677
12706 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
12707 (poolify_tree): Likewise.
12708 (modify_expr_template): Likewise.
12709 (poolify_modify_stmt): Likewise.
12710 (insert_fake_stores): Handle all component-ref style stores
12711 in addition to INDIRECT_REF. Also handle complex types.
12712 Do not poolify the inserted load.
12713 (realify_fake_stores): Do not rebuild the tree but only
12714 make it a SSA_NAME copy.
12715 (init_pre): Remove initialzation of modify_expr_template.
12716 Do not allocate modify_expr_node_pool.
12717 (fini_pre): Do not free modify_expr_node_pool.
12719 2008-03-10 Paul Brook <paul@codesourcery.com>
12721 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
12722 to avoid conflicts.
12724 2008-03-10 Paul Brook <paul@codesourcery.com>
12725 Mark Shinwell <shinwell@codesourcery.com>
12727 * config/arm/cortex-r4.md: New.
12728 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
12730 * config/arm/arm.md: Include cortex-r4.md.
12731 (insn): Add smmls, sdiv and udiv values.
12732 (generic_sched): Don't use generic scheduling for Cortex-R4.
12733 (arm_issue_rate): New function.
12734 (TARGET_SCHED_ISSUE_RATE): Define.
12736 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
12738 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
12740 2008-03-10 Richard Guenther <rguenther@suse.de>
12742 * tree-ssa-pre.c (get_sccvn_value): Simplify.
12743 (compute_avail): Do not add stmt uses to AVAIL_OUT.
12745 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
12747 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
12748 Set default to true.
12750 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12752 * c.opt (Wsynth): Deprecate.
12753 * doc/invoke.texi (Option Summary, Warning Options): Document
12754 -Wno-format-contains-nul.
12756 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
12759 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
12760 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
12762 2008-03-09 Ira Rosen <irar@il.ibm.com>
12764 * config/rs6000/rs6000.c (builtin_description): Rename vector
12765 left shift operations.
12766 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
12767 (altivec_vsl<VI_char>): Rename to ...
12768 (ashl<mode>3): ... new name.
12769 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
12771 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
12773 2008-03-08 Richard Guenther <rguenther@suse.de>
12775 * coverage.h (tree_coverage_counter_addr): Declare.
12776 * coverage.c (tree_coverage_counter_addr): New function.
12777 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
12778 before using again.
12779 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
12780 (tree_gen_one_value_profiler): Likewise.
12781 (tree_gen_ic_profiler): Likewise.
12782 (tree_gen_average_profiler): Likewise.
12783 (tree_gen_ior_profiler): Likewise.
12785 2008-03-08 Richard Guenther <rguenther@suse.de>
12787 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
12788 (vn_binary_op_insert): Likewise.
12789 (vn_unary_op_lookup): Likewise.
12790 (vn_unary_op_insert): Likewise.
12791 (vn_nary_op_lookup): Declare.
12792 (vn_nary_op_insert): Likewise.
12793 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
12794 and binary hashes, use a single obstack for unary_op_pool
12795 and binary_op_pool.
12796 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
12797 a single struct vn_nary_op_s. Store tree code length and
12798 a variable number of operands.
12799 (struct vn_reference_op_struct): Remove unused op2.
12800 (vn_reference_op_eq): Do not compare op2.
12801 (vn_reference_op_compute_hash): Do not compute hash of op2.
12802 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
12803 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
12804 with vn_nary_op_compute_hash.
12805 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
12806 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
12808 (vn_unary_op_insert, vn_binary_op_insert): Replace with
12810 (visit_unary_op): Call nary functions.
12811 (visit_binary_op): Likewise.
12812 (process_scc): Adjust for struct vn_tables_s changes.
12813 (allocate_vn_table): Likewise.
12814 (free_vn_table): Likewise.
12815 * tree-vn.c (vn_add): Call nary functions.
12816 (vn_lookup): Likewise.
12818 2008-03-08 Jakub Jelinek <jakub@redhat.com>
12821 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
12822 wdst back after sync_compare_and_swapqhi_internal.
12824 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
12827 * config/i386/i386-modes.def (V1DI): New vector mode.
12828 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
12829 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
12830 (MMXMODE248): Ditto.
12831 (MMXMODE): Add V1DI mode.
12832 (mmxvecsize): Change DI mode to V1DI mode.
12833 ("mov<mode>): Use MMXMODEI8 mode iterator.
12834 ("*mov<mode>_internal_rex64"): Ditto.
12835 ("*mov<mode>_internal"): Ditto.
12836 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
12837 ("mmx_sub<mode>3"): Ditto.
12838 ("mmx_adddi3"): Remove insn pattern.
12839 ("mmx_subdi3"): Ditto.
12840 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
12841 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
12842 ("mmx_ashl<mode>3"): Ditto.
12843 ("mmx_lshrdi3"): Remove insn pattern.
12844 ("mmx_ashldi3"): Ditto.
12845 * config/i386/i386.c (classify_argument): Handle V1DImode.
12846 (function_arg_advance_32): Ditto.
12847 (function_arg_32): Ditto.
12848 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
12849 mmx_addv1di3 insn pattern.
12850 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
12851 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
12852 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
12853 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
12854 Remove definitions of built-in functions.
12855 (V1DI_type_node): New node.
12856 (v1di_ftype_v1di_int): Ditto.
12857 (v1di_ftype_v1di_v1di): Ditto.
12858 (v2si_ftype_v2si_si): Ditto.
12859 (v4hi_ftype_v4hi_di): Remove node.
12860 (v2si_ftype_v2si_di): Ditto.
12861 (ix86_init_mmx_sse_builtins): Handle V1DImode.
12862 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
12863 Redefine builtins using def_builtin_const with *_ftype_*_int node.
12864 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
12865 Add new builtins using def_builtin_const.
12866 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
12867 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
12868 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
12869 * config/i386/mmintrin.h (__v1di): New typedef.
12870 (_mm_add_si64): Cast arguments to __v1di type.
12871 (_mm_sub_si64): Ditto.
12872 (_mm_sll_pi16): Cast __count to __v4hi type.
12873 (_mm_sll_pi32): Cast __count to __v2si type.
12874 (_mm_sll_si64): Cast arguments to __v1di type.
12875 (_mm_srl_pi16): Cast __count to __v4hi type.
12876 (_mm_srl_pi32): Cast __count to __v2si type.
12877 (_mm_srl_si64): Cast arguments to __v1di type.
12878 (_mm_sra_pi16): Cast __count to __v4hi type.
12879 (_mm_sra_pi32): Cast __count to __v2si type.
12880 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
12881 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
12882 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
12883 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
12884 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
12885 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
12886 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
12887 (_mm_srai_pi32): Use __builtin_ia32_psradi.
12888 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
12889 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12890 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12891 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
12893 2008-03-07 Joseph Myers <joseph@codesourcery.com>
12895 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
12897 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
12900 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
12901 reg+const addressing for Altivec modes. Don't generate reg+reg
12902 addressing for TFmode or TDmode quantities.
12904 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
12906 * c-common.c (vector_types_convertible_p): Call langhook
12907 instead of comptypes.
12909 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
12912 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
12913 integral and scalar float variables which have a
12916 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
12918 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
12919 dwarf_register_span hook when emitting unwind information for
12920 register-to-memory saves.
12921 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
12922 (rs6000_frame_related): Remove call to spe_synthesize_frame.
12924 2008-03-06 Jakub Jelinek <jakub@redhat.com>
12926 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
12927 for the same VAR_DECL.
12929 2008-03-06 Tom Tromey <tromey@redhat.com>
12931 * treelang: Delete.
12932 * doc/standards.texi (Standards): Don't mention treelang.
12933 * doc/invoke.texi (Overall Options): Don't mention treelang.
12934 * doc/install.texi (Prerequisites): Don't mention bison or
12936 (Configuration): Don't mention treelang.
12937 (Building): Likewise.
12938 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
12940 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
12942 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
12943 word-extractions out of a multi-word object.
12945 2008-03-06 Richard Guenther <rguenther@suse.de>
12947 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
12948 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
12949 result type and precision.
12950 * expr.c (get_inner_reference): Set unsignedp based on the result
12951 type of BIT_FIELD_REF.
12952 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
12953 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
12954 (try_instantiate_multiple_fields): Likewise. Use the correct type
12956 (sra_build_assignment): Likewise.
12957 (sra_build_elt_assignment): Likewise.
12958 (sra_explode_bitfield_assignment): Likewise.
12959 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
12960 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
12961 set BIT_FIELD_REF_UNSIGNED.
12962 (vectorizable_load): Likewise.
12964 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
12966 * cse.c (cse_extended_basic_block): Invalidate artificial defs
12969 2008-03-06 Richard Guenther <rguenther@suse.de>
12971 * alias.c (struct alias_set_entry): Move has_zero_child field
12972 to pack with alias_set.
12974 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
12976 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12979 2008-03-05 Ian Lance Taylor <iant@google.com>
12981 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
12983 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
12985 * fwprop.c (update_df): Support width and offset parameters of
12987 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
12988 global_conflicts): Change DF_REF_EXTRACT to either
12989 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12990 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12991 * df-scan.c (df_ref_record, df_defs_record,
12992 df_ref_create_structure, df_def_record_1, df_uses_record,
12993 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
12994 df_bb_refs_collect, df_entry_block_defs_collect,
12995 df_exit_block_uses_collect): Support new width and offset fields.
12996 (ref_extract_pool): New storage pool.
12997 (df_free_ref): New function.
12998 (df_reg_chain_unlink, df_free_collection_rec,
12999 df_sort_and_compress_refs): Call df_free_ref.
13000 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13002 (df_ref_create_structure): Allocate df_ref_extract if offset and
13003 width fields are used.
13004 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
13005 (df_uses_record): Get offset and width from ZERO_EXTRACT
13007 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13008 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13009 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13010 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13011 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13012 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13013 (df_ref_extract): New structure.
13014 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13015 (df_ref_create): Add width and offset parameters.
13017 2008-03-05 Richard Guenther <rguenther@suse.de>
13019 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13020 Use ranges_overlap_p.
13021 (offset_overlaps_with_access): Rename
13022 to ranges_overlap_p and move ...
13023 * tree-flow-inline.h (ranges_overlap_p): ... here.
13025 * tree.h (get_inner_reference, handled_component_p): Update
13028 * tree.h (record_component_aliases, get_alias_set,
13029 alias_sets_conflict_p, alias_sets_must_conflict_p,
13030 objects_must_conflict_p): Move declarations ...
13031 * alias.h (record_component_aliases, get_alias_set,
13032 alias_sets_conflict_p, alias_sets_must_conflict_p,
13033 objects_must_conflict_p): ... here.
13034 Include coretypes.h.
13035 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13037 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
13039 * cfg.c: Include tree-flow.h.
13040 (remove_edge_raw): Call redirect_edge_var_map_clear.
13041 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13042 * tree-flow-inline.h (redirect_edge_var_map_def): New.
13043 (redirect_edge_var_map_result): New.
13044 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13045 PENDING_STMT use with redirect_edge_var_map_*.
13046 * tree-ssa.c (edge_var_maps): New definition.
13047 (redirect_edge_var_map_add): New.
13048 (redirect_edge_var_map_clear): New.
13049 (redirect_edge_var_map_dup): New.
13050 (redirect_edge_var_map_vector): New.
13051 (redirect_edge_var_map_destroy): New.
13052 (ssa_redirect_edge): Replace PENDING_STMT use with
13053 redirect_edge_var_map_*.
13054 (flush_pending_stmts): Same.
13055 (delete_tree_ssa): Destroy edge var map.
13056 * tree-flow.h (struct _edge_var_map): New.
13057 Define edge_var_map vector type.
13058 Declare redirect_edge_var_map_* prototypes.
13059 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13060 * tree-cfg.c (reinstall_phi_args): Replace
13061 PENDING_STMT use with redirect_edge_var_map_*.
13063 2008-03-05 Richard Guenther <rguenther@suse.de>
13065 PR tree-optimization/35472
13066 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13067 whose single use_stmt has a overlapping set of loaded and
13068 stored symbols as that use_stmt might be a noop assignment then.
13070 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
13072 * gthr-rtems.h: Implement __gthread_mutex_destroy.
13074 2008-03-05 Richard Guenther <rguenther@suse.de>
13077 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13078 should be constants.
13079 * tree-cfg.c (verify_expr): Verify it.
13080 * fold-const.c (fold_truthop): Remove code generating
13081 BIT_FIELD_REFs of structure bases.
13082 (fold_binary): Likewise.
13083 (fold_ternary): Position and size of BIT_FIELD_REFs are
13084 always host integers.
13085 (make_bit_field_ref): Remove.
13086 (optimize_bit_field_compare): Remove.
13087 (all_ones_mask_p): Remove.
13089 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
13092 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
13093 (split_block_and_df_analyze): New. Split basic block and rebuild
13095 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
13097 (split_pattern_seq): Likewise.
13098 (erase_matching_seqs): Likewise.
13099 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
13101 2008-03-04 Geoff Keating <geoffk@apple.com>
13103 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
13104 declaration and code.
13105 (tree_invalid_nonnegative_warnv_p): Likewise.
13107 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
13109 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
13110 examples. Truncate option-names then causing overfull hbox.
13112 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13115 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
13117 * configure: Rebuilt.
13119 2008-03-04 Rafael Espindola <espindola@google.com>
13121 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
13122 (tree_unary_nonnegative_warnv_p): New.
13123 (tree_binary_nonnegative_warnv_p): New.
13124 (tree_single_nonnegative_warnv_p): New.
13125 (tree_invalid_nonnegative_warnv_p): New.
13126 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
13128 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13131 * opts.c (handle_option): Postpone 'unknown option' errors only for
13134 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
13137 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13140 2008-03-04 Rafael Espindola <espindola@google.com>
13142 * fold-const.c (tree_unary_nonzero_warnv_p): New.
13143 (tree_binary_nonzero_warnv_p): New.
13144 (tree_single_nonzero_warnv_p): New.
13145 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
13147 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
13149 PR middle-end/35456
13150 * fold-const.c (fold_cond_expr_with_comparison): Prevent
13151 transformations for modes that have signed zeros.
13152 * ifcvt.c (noce_try_abs): Ditto.
13154 2008-03-04 Joseph Myers <joseph@codesourcery.com>
13156 * config/i386/i386.c (override_options): Force
13157 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
13159 2008-03-04 Jan Hubicka <jh@suse.cz>
13162 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
13165 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
13167 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
13168 label to probe the stack.
13170 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
13172 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13173 (__gthr_win32_mutex_destroy): Declare.
13174 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13175 __gthr_win32_mutex_destroy.
13176 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
13178 2008-03-03 Jan Hubicka <jh@suse.cz>
13181 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13182 aggressive on inlining cold calls.
13184 2008-03-03 Richard Guenther <rguenther@suse.de>
13186 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13187 struct copies into the expression table.
13188 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13189 (try_to_simplify): Likewise.
13190 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13191 integral and pointer arguments which do not change the
13192 precision to NOP_EXPRs.
13193 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13194 VIEW_CONVERT_EXPR case.
13196 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
13198 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13199 defined in a loop at depth 0 is invariant.
13200 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13201 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13202 be called at loop depth 0.
13204 2008-03-02 Jakub Jelinek <jakub@redhat.com>
13207 * gcc.c (process_command): Update copyright notice dates.
13208 * gcov.c (print_version): Likewise.
13209 * gcov-dump.c (print_version): Likewise.
13210 * mips-tfile.c (main): Likewise.
13211 * mips-tdump.c (main): Likewise.
13213 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13216 * c-common.c (flag_permissive): Delete.
13217 (constant_expression_warnings): Check flags first.
13218 (constant_expression_error): New.
13219 * c-common.h (flag_permissive): Delete.
13220 (constant_expression_error): Declare.
13221 * flags.h (flag_permissive): Declare. Update description.
13222 * diagnostic.c (pedwarn): Update.
13224 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13225 (permissive_error_kind): New.
13226 * toplev.c (flag_permissive): Define. Update description.
13227 * toplev.h (permissive_error_kind): Declare.
13228 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13229 (pedwarn_c90): Use pedantic_warning_kind.
13230 * c-opts.c (c_common_post_options): flag_permissive does not affect
13231 flag_pedantic_errors.
13233 2008-03-02 Joseph Myers <joseph@codesourcery.com>
13235 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13236 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13237 __absvsi2, __absvDI2): Use unsigned arithmetic.
13239 2008-03-02 Andi Kleen <ak@suse.de>
13240 Richard Guenther <rguenther@suse.de>
13242 * struct-equiv.c: Remove file.
13243 * cfg_cleanup.c (condjump_equiv_p): Remove.
13244 * Makefile.in (OBJS-common): Remove struct-equiv.o.
13245 (struct-equiv.o): Remove rule.
13246 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13247 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
13248 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13250 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13252 * ifcvt.c (noce_process_if_block): Try to handle only the then
13253 block if the else block exists but isn't suitable.
13255 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13258 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13259 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13260 regression from previous patch.
13262 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13265 * gthr.h: Add __gthread_mutex_destroy as a function that must be
13267 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13268 * gthr-single.h (__gthread_mutex_destroy): Likewise.
13269 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13270 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13271 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13272 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13273 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13274 (__gthread_mutex_destroy_function): Rename to
13275 __gthread_mutex_destroy.
13276 * gthr-dce.h (__gthread_mutex_destroy): Call
13277 pthread_mutex_destroy.
13278 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13279 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13280 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13282 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13284 * df-scan.c (df_ref_chain_change_bb): Simplify.
13285 (df_insn_change_bb): Add new_bb argument. Simplify. Call
13286 set_block_for_insn if there's any change.
13287 * df.h ((df_insn_change_bb): Fix prototype.
13288 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13289 df_insn_change_bb, don't call set_block_for_insn.
13290 * emit-rtl.c (reorder_insns): Likewise.
13291 * haifa-sched.c (move_insn): Likewise.
13293 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13295 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13297 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13299 * tree-flow-inline.h (next_readonly_imm_use): Return
13300 NULL_USE_OPERAND_P after the end.
13302 2008-03-01 Richard Guenther <rguenther@suse.de>
13304 PR tree-optimization/35411
13305 * tree-sra.c (sra_build_assignment): Split conversion to
13306 final type to a separate statement if we are not assigning
13309 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13311 * fold-const.c (fold_convertible_p): Correct the logic to follow
13312 that in fold_convert().
13314 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
13317 * tree-inline.c (build_duplicate_type): When we make a
13318 duplicate type, make it unique in the canonical types system.
13320 2008-02-29 Tom Tromey <tromey@redhat.com>
13322 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13323 input_file_stack_history, input_file_stack_restored): Remove.
13324 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13325 * input.h (struct file_stack): Remove.
13326 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13327 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13329 * diagnostic.h (struct diagnostic_context) <last_module>: Change
13331 (diagnostic_last_module_changed): Add 'map' argument.
13332 (diagnostic_set_last_function): Likewise.
13333 * diagnostic.c (undiagnostic_report_current_module): Iterate using
13334 line map, not input_file_stack.
13335 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13337 2008-02-29 Paul Brook <paul@codesourcery.com>
13339 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13341 2008-02-29 Paul Brook <paul@codesourcery.com>
13343 * config/arm/ieee754-df.S (muldf3): Use RET macros.
13345 2008-02-29 Richard Guenther <rguenther@suse.de>
13347 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13349 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13350 value for comparing for a store match.
13351 (simplify_unary_expression): Do nothing for SSA_NAMEs.
13352 (try_to_simplify): Do not do a full-blown reference lookup.
13354 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
13356 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13357 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13359 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13361 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
13363 * tree-loop-linear.c (try_interchange_loops): Compare memory access
13364 strides against cache sizes.
13366 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
13368 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13371 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
13373 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13374 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13375 is smaller than the original promoted value.
13376 (simplify_subreg): If OP is a SUBREG, try to preserve its
13377 SUBREG_PROMOTED_VAR_P information.
13379 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
13381 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13382 (VN_INFO_GET): Allocate new objects on the obstack.
13383 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
13384 for rpo_numbers_temp, for consistency.
13385 (free_scc_vn): Free the obstack.
13387 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
13389 * doc/invoke.texi: Document -ftree-loop-distribution.
13390 * tree-loop-distribution.c: New.
13391 * tree-pass.h (pass_loop_distribution): New.
13392 * graphds.h (struct graph): Add htab_t indices.
13393 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13394 * tree-vectorizer.c (rename_variables_in_loop): Extern.
13395 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13396 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13397 * tree-data-ref.c (debug_data_dependence_relations): New.
13398 (dump_data_dependence_relation): Also print data references.
13399 (free_data_ref): Extern.
13400 (same_access_functions): Moved...
13401 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13402 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13403 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13404 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13405 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13406 (stmts_from_loop): Skip LABEL_EXPR.
13407 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13409 (build_rdg): Initialize rdg->indices htab.
13410 (free_rdg, stores_from_loop, ref_base_address,
13411 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13412 have_similar_memory_accesses_1, ref_base_address_1,
13413 remove_similar_memory_refs): New.
13414 * tree-data-ref.h: Depend on tree-chrec.h.
13415 (debug_data_dependence_relations, free_data_ref): Declared.
13416 (same_access_functions): ... here.
13417 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
13419 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
13420 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
13421 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
13422 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13423 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
13424 rdg_vertex_for_stmt): Declared.
13425 (struct rdg_edge): Add level.
13427 (free_rdg, stores_from_loop, remove_similar_memory_refs,
13428 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
13430 (rdg_has_similar_memory_accesses): New.
13431 * tree-vect-analyze.c: Remove unused static decls.
13432 * lambda.h (dependence_level): New.
13433 * common.opt (ftree-loop-distribution): New.
13434 * tree-flow.h (mark_virtual_ops_in_bb,
13435 slpeel_tree_duplicate_loop_to_edge_cfg,
13436 rename_variables_in_loop): Declared.
13437 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
13438 (OBJS-common): Add tree-loop-distribution.o.
13439 (tree-loop-distribution.o): New rule.
13440 * tree-cfg.c (mark_virtual_ops_in_bb): New.
13441 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
13442 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
13444 2008-02-28 Joseph Myers <joseph@codesourcery.com>
13447 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
13448 other than structures and unions.
13450 2008-02-28 Richard Guenther <rguenther@suse.de>
13453 2008-02-26 Richard Guenther <rguenther@suse.de>
13455 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13456 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13457 (lookup_decl_from_uid): Declare.
13458 (remove_decl_from_map): Likewise.
13459 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13460 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13461 (decl_for_uid_map): New global hashtable mapping DECL_UID
13463 (init_ttree): Allocate it.
13464 (insert_decl_to_uid_decl_map): New helper function.
13465 (make_node_stat): Insert new decls into the map.
13466 (copy_node_stat): Likewise.
13467 (lookup_decl_from_uid): New function.
13468 (remove_decl_from_map): Likewise.
13469 (print_decl_for_uid_map_statistics): New helper.
13470 (dump_tree_statistics): Call it.
13472 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13473 (referenced_var_iterator): Adjust.
13474 (FOR_EACH_REFERENCED_VAR): Adjust.
13475 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13476 (num_referenced_vars): Adjust.
13477 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13478 (first_referenced_var): Remove.
13479 (end_referenced_vars_p): Likewise.
13480 (next_referenced_var): Likewise.
13481 (referenced_var_iterator_set): New helper function.
13482 * tree-dfa.c (referenced_var_lookup): Adjust.
13483 (referenced_var_check_and_insert): Likewise.
13484 (remove_referenced_var): Likewise.
13485 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13486 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13487 (verify_call_clobbering): Likewise.
13488 (verify_memory_partitions): Likewise.
13489 (init_tree_ssa): Allocate bitmap instead of hashtable for
13491 (delete_tree_ssa): Adjust.
13492 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13493 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13494 (compute_tag_properties): Likewise.
13495 (set_initial_properties): Likewise.
13496 (find_partition_for): Likewise.
13497 (update_reference_counts): Likewise.
13498 (dump_may_aliases_for): Likewise.
13499 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13500 (add_call_clobber_ops): Likewise.
13501 (add_call_read_ops): Likewise.
13502 (get_asm_expr_operands): Likewise.
13503 * tree-into-ssa.c (dump_decl_set): Likewise.
13504 (update_ssa): Likewise.
13505 * tree-sra.c (scan_function): Likewise.
13506 (decide_instantiations): Likewise.
13507 (scalarize_parms): Likewise.
13508 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13509 (dsa_named_for): Likewise.
13510 * tree-ssa-structalias.c (update_alias_info): Likewise.
13511 (merge_smts_into): Likewise.
13513 2008-02-27 David Daney <ddaney@avtrex.com>
13516 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
13517 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
13518 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
13519 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
13520 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
13522 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
13525 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
13526 (BUILT_IN_NEXTTOWARD): Remove.
13527 (BUILT_IN_NEXTTOWARDF): Ditto.
13528 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
13529 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
13531 2008-02-27 Tom Tromey <tromey@redhat.com>
13533 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
13534 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
13536 2008-02-27 Jan Beulich <jbeulich@novell.com>
13538 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
13539 update the respective field on newdecl.
13541 2008-02-27 Revital Eres <eres@il.ibm.com>
13543 PR rtl-optimization/34999
13544 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
13545 crossing edges that ends with a call insn.
13546 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
13547 call insn and clear the EDGE_CROSSING flag of the crossing edge
13548 when fixing fallthru edges.
13550 2008-02-27 Richard Guenther <rguenther@suse.de>
13552 PR middle-end/35390
13553 * fold-const.c (fold_unary): Return the correct argument,
13554 converted to the result type.
13556 2008-02-27 Richard Guenther <rguenther@suse.de>
13558 PR middle-end/34971
13559 * expr.c (expand_expr_real_1): Assert on rotates that operate
13561 * fold-const.c (fold_binary): Use the types precision, not the
13562 bitsize of the mode if folding rotate expressions. Build rotates
13563 only for full modes.
13565 2008-02-27 Jakub Jelinek <jakub@redhat.com>
13567 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
13568 and CPP_PRAGMA_EOL.
13569 * c-pragma.c (pragma_ns_name): New typedef.
13570 (registered_pp_pragmas): New variable.
13571 (c_pp_lookup_pragma): New function.
13572 (c_register_pragma_1): If flag_preprocess_only, do nothing
13573 for non-expanded pragmas, for expanded ones push pragma's
13574 namespace and name into registered_pp_pragmas vector.
13575 (c_invoke_pragma_handler): Register OpenMP pragmas even when
13576 flag_preprocess_only, don't register GCC pch_preprocess
13577 pragma if flag_preprocess_only.
13578 * c-opts.c (c_common_init): Call init_pragma even if
13579 flag_preprocess_only.
13580 * c-pragma.c (c_pp_lookup_pragma): New prototype.
13581 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
13582 cpp_register_pragma if flag_preprocess_only.
13584 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13587 * c-parser.c (c_parser_translation_unit): Warn for empty
13588 translation unit, not empty source file.
13590 2008-02-26 Paul Brook <paul@codesourcery.com>
13592 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
13593 operand for Thumb-2.
13594 * config/arm/arm.h (reg_class): Add CORE_REGS.
13595 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
13596 (BASE_REG_CLASS): Use CORE_REGS.
13597 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
13598 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
13599 (REGNO_OK_FOR_INDEX_P): Exclude SP.
13600 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
13601 ARM_REGNO_OK_FOR_INDEX_P.
13602 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
13603 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
13604 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
13605 (ldm/stm peepholes): Ditto.
13606 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
13607 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
13608 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
13609 * config/arm/constraints.md: Enable "k" constraint on ARM.
13611 2008-02-27 Ben Elliston <bje@au.ibm.com>
13613 * config/rs6000/rs6000.c: Annotate cache line size field in all
13614 instances of struct processor_costs.
13616 2008-02-26 David Edelsohn <edelsohn@gnu.org>
13618 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
13619 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
13620 jump_bypass): New counters.
13621 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
13622 * dce.c (gate_ud_dce): Same.
13623 (gate_fast_dce): Same.
13624 * dse.c (gate_dse1): New function.
13625 (gate_dse2): New function.
13626 (gate_dse): Merge results of new gate functions.
13627 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
13628 (gate_handle_jump_bypass): Add dbg_cnt.
13629 (gate_handle_gcse): Add dbg_cnt.
13630 * ifcvt.c (gate_handle_if_conversion): Same.
13631 (gate_handle_if_after_combine): Same.
13632 (gate_handle_if_after_reload): Same.
13633 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
13635 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
13637 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
13639 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
13641 2008-02-26 Jason Merrill <jason@redhat.com>
13644 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
13645 alone if it's the naming decl for the type's main variant.
13647 2008-02-26 Tom Tromey <tromey@redhat.com>
13649 * system.h (USE_MAPPED_LOCATION): Poison.
13650 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
13651 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
13652 (make_goto_expr_edges): Likewise.
13653 (remove_bb): Likewise.
13654 (execute_warn_function_return): Likewise.
13655 * basic-block.h (struct edge_def) <goto_locus>: Change type to
13657 * c-common.c (fname_decl): Remove old location code.
13658 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
13660 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
13662 (ASM_INPUT_SOURCE_LOCATION): Likewise.
13663 (gen_rtx_ASM_INPUT): Likewise.
13664 (gen_rtx_ASM_INPUT_loc): Likewise.
13665 (get_rtx_asm_OPERANDS): Remove.
13666 * cfglayout.c (insn_locators_alloc): Remove old location code.
13667 (set_curr_insn_source_location): Likewise.
13668 (curr_insn_locator): Likewise.
13669 * print-tree.c (print_node): Remove old location code.
13670 * tree-mudflap.c (mf_varname_tree): Remove old location code.
13671 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
13672 * cfgexpand.c (expand_gimple_cond_expr): Don't use
13673 location_from_locus.
13674 (construct_exit_block): Remove old location code.
13675 * emit-rtl.c (force_next_line_note): Remove old location code.
13676 * profile.c (branch_prob): Remove old location code.
13677 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
13678 LOC_LINE): Remove old-location variants.
13679 * langhooks.c (lhd_print_error_function): Remove old location
13681 * configure, config.in: Rebuilt.
13682 * configure.ac (--enable-mapped-location): Remove.
13683 * c-decl.c (c_init_decl_processing): Remove old location code.
13684 (finish_function): Likewise.
13685 * recog.c (decode_asm_operands): Remove old location code.
13686 * c-pch.c (c_common_read_pch): Remove old location code.
13687 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
13689 * gimple-low.c (lower_function_body): Remove old location code.
13690 * toplev.c (unknown_location): Remove.
13691 (push_srcloc): Remove old-location variant.
13692 (process_options): Remove old location code.
13693 (lang_dependent_init): Likewise.
13694 * input.h (UNKNOWN_LOCATION): Move definition.
13695 (location_t): Undeprecate.
13696 (source_locus): Remove.
13697 (location_from_locus): Remove.
13698 (struct location_s): Remove.
13699 Remove all old-location code.
13700 (input_line, input_filename): Remove.
13701 * final.c (final_scan_insn): Remove old location code.
13702 * diagnostic.c (diagnostic_build_prefix): Remove
13703 USE_MAPPED_LOCATION test.
13704 * tree.h (gimple_stmt) <locus>: Now a location_t.
13705 (tree_exp) <locus>: Likewise.
13706 (DECL_IS_BUILTIN): Remove old-location variant.
13707 (annotate_with_file_line, annotate_with_locus): Likewise.
13708 (expr_locus, set_expr_locus): Update.
13709 * tree.c (build1_stat): Remove old location code.
13710 (last_annotated_node): Remove.
13711 (annotate_with_file_line): Remove old-location variant.
13712 (annotate_with_locus): Likewise.
13713 (expr_location): Remove old location code.
13714 (set_expr_location): Likewise.
13715 (expr_has_location): Likewise.
13716 (expr_locus): Likewise.
13717 (set_expr_locus): Likewise.
13718 (expr_filename): Don't use location_from_locus.
13719 (expr_lineno): Likewise.
13720 * rtl-error.c (location_for_asm): Remove old location code.
13721 * c-lex.c (cb_line_change): Remove old location code.
13722 (fe_file_change): Likewise.
13723 (cb_def_pragma): Likewise.
13724 (c_lex_with_flags): Likewise.
13725 * gengtype.c (do_typedef): Don't special-case location types.
13726 (define_location_structures): Remove.
13727 (main): Don't call define_location_structures.
13728 * tree-pretty-print.c (dump_implicit_edges): Remove old location
13731 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13734 * builtins.def (BUILT_IN_STDARG_START): Remove.
13735 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
13736 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13737 * tree-inline.c (inline_forbidden_p_1): Likewise.
13739 2008-02-26 Richard Guenther <rguenther@suse.de>
13741 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13742 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13743 (lookup_decl_from_uid): Declare.
13744 (remove_decl_from_map): Likewise.
13745 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13746 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13747 (decl_for_uid_map): New global hashtable mapping DECL_UID
13749 (init_ttree): Allocate it.
13750 (insert_decl_to_uid_decl_map): New helper function.
13751 (make_node_stat): Insert new decls into the map.
13752 (copy_node_stat): Likewise.
13753 (lookup_decl_from_uid): New function.
13754 (remove_decl_from_map): Likewise.
13755 (print_decl_for_uid_map_statistics): New helper.
13756 (dump_tree_statistics): Call it.
13758 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13759 (referenced_var_iterator): Adjust.
13760 (FOR_EACH_REFERENCED_VAR): Adjust.
13761 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13762 (num_referenced_vars): Adjust.
13763 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13764 (first_referenced_var): Remove.
13765 (end_referenced_vars_p): Likewise.
13766 (next_referenced_var): Likewise.
13767 (referenced_var_iterator_set): New helper function.
13768 * tree-dfa.c (referenced_var_lookup): Adjust.
13769 (referenced_var_check_and_insert): Likewise.
13770 (remove_referenced_var): Likewise.
13771 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13772 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13773 (verify_call_clobbering): Likewise.
13774 (verify_memory_partitions): Likewise.
13775 (init_tree_ssa): Allocate bitmap instead of hashtable for
13777 (delete_tree_ssa): Adjust.
13778 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13779 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13780 (compute_tag_properties): Likewise.
13781 (set_initial_properties): Likewise.
13782 (find_partition_for): Likewise.
13783 (update_reference_counts): Likewise.
13784 (dump_may_aliases_for): Likewise.
13785 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13786 (add_call_clobber_ops): Likewise.
13787 (add_call_read_ops): Likewise.
13788 (get_asm_expr_operands): Likewise.
13789 * tree-into-ssa.c (dump_decl_set): Likewise.
13790 (update_ssa): Likewise.
13791 * tree-sra.c (scan_function): Likewise.
13792 (decide_instantiations): Likewise.
13793 (scalarize_parms): Likewise.
13794 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13795 (dsa_named_for): Likewise.
13796 * tree-ssa-structalias.c (update_alias_info): Likewise.
13797 (merge_smts_into): Likewise.
13799 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13802 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
13803 * c-opts.c (c_common_handle_option): Wall enables
13804 Wvolatile-register-var.
13805 * common.opt: Move Wvolatile-register-var to...
13808 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13810 * common.opt (Wlarger-than=): New.
13811 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
13813 * opts.c (common_handle_option): Handle -Wlarger-than=.
13814 * optc-gen.awk: Likewise.
13815 * opth-gen.awk: Likewise.
13816 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
13817 * tree-optimize.c (tree_rest_of_compilation): Likewise.
13819 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13821 * c-common.c (match_case_to_enum_1): Add appropriate
13822 OPT_W* parameter to warning.
13823 (c_do_switch_warnings): Likewise.
13824 * c-typeck.c (warning_init): Add one more parameter following
13825 'warning' function.
13826 (push_init_level): Update call to warning_init.
13827 (pop_init_level): Likewise.
13828 (add_pending_init): Likewise.
13829 (output_init_element: Likewise.
13831 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13834 * toplev.c (toplev_main): If there are warnings or error, print
13835 errors for ignored options.
13836 * opts.c (ignored_options): New static variable.
13837 (postpone_unknown_option_error): New.
13838 (print_ignored_options): New.
13839 (handle_option): Postpone errors for unknown -Wno-* options.
13840 * opts.h (print_ignored_options): Declare.
13842 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
13844 * config/mips/mips.md (loadgp_blockage, blockage): Change type
13847 2008-02-25 Richard Guenther <rguenther@suse.de>
13850 2008-02-25 Richard Guenther <rguenther@suse.de>
13852 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13853 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13854 (lookup_decl_from_uid): Declare.
13855 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13856 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13857 (decl_for_uid_map): New global hashtable mapping DECL_UID
13859 (init_ttree): Allocate it.
13860 (insert_decl_to_uid_decl_map): New helper function.
13861 (make_node_stat): Insert new decls into the map.
13862 (copy_node_stat): Likewise.
13863 (lookup_decl_from_uid): New function.
13864 (print_decl_for_uid_map_statistics): New helper.
13865 (dump_tree_statistics): Call it.
13867 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13868 (referenced_var_iterator): Adjust.
13869 (FOR_EACH_REFERENCED_VAR): Adjust.
13870 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13871 (num_referenced_vars): Adjust.
13872 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13873 (first_referenced_var): Remove.
13874 (end_referenced_vars_p): Likewise.
13875 (next_referenced_var): Likewise.
13876 (referenced_var_iterator_set): New helper function.
13877 * tree-dfa.c (referenced_var_lookup): Adjust.
13878 (referenced_var_check_and_insert): Likewise.
13879 (remove_referenced_var): Likewise.
13880 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13881 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13882 (verify_call_clobbering): Likewise.
13883 (verify_memory_partitions): Likewise.
13884 (init_tree_ssa): Allocate bitmap instead of hashtable for
13886 (delete_tree_ssa): Adjust.
13887 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13888 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13889 (compute_tag_properties): Likewise.
13890 (set_initial_properties): Likewise.
13891 (find_partition_for): Likewise.
13892 (update_reference_counts): Likewise.
13893 (dump_may_aliases_for): Likewise.
13894 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13895 (add_call_clobber_ops): Likewise.
13896 (add_call_read_ops): Likewise.
13897 (get_asm_expr_operands): Likewise.
13898 * tree-into-ssa.c (dump_decl_set): Likewise.
13899 (update_ssa): Likewise.
13900 * tree-sra.c (scan_function): Likewise.
13901 (decide_instantiations): Likewise.
13902 (scalarize_parms): Likewise.
13903 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13904 (dsa_named_for): Likewise.
13905 * tree-ssa-structalias.c (update_alias_info): Likewise.
13906 (merge_smts_into): Likewise.
13908 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
13911 * doc/invoke.texi (-fcx-limited-range): Document new option.
13912 * toplev.c (process_options): Handle -fcx-fortran-rules.
13913 * common.opt: Add documentation for -fcx-fortran-rules.
13915 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
13918 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
13919 actual behaviour and C99.
13921 2008-02-26 Ben Elliston <bje@au.ibm.com>
13923 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
13924 (ASM_CPU_POWER6_SPEC): Likewise.
13925 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
13926 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
13927 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
13929 2008-02-25 Richard Guenther <rguenther@suse.de>
13931 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13932 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13933 (lookup_decl_from_uid): Declare.
13934 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13935 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13936 (decl_for_uid_map): New global hashtable mapping DECL_UID
13938 (init_ttree): Allocate it.
13939 (insert_decl_to_uid_decl_map): New helper function.
13940 (make_node_stat): Insert new decls into the map.
13941 (copy_node_stat): Likewise.
13942 (lookup_decl_from_uid): New function.
13943 (print_decl_for_uid_map_statistics): New helper.
13944 (dump_tree_statistics): Call it.
13946 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13947 (referenced_var_iterator): Adjust.
13948 (FOR_EACH_REFERENCED_VAR): Adjust.
13949 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13950 (num_referenced_vars): Adjust.
13951 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13952 (first_referenced_var): Remove.
13953 (end_referenced_vars_p): Likewise.
13954 (next_referenced_var): Likewise.
13955 (referenced_var_iterator_set): New helper function.
13956 * tree-dfa.c (referenced_var_lookup): Adjust.
13957 (referenced_var_check_and_insert): Likewise.
13958 (remove_referenced_var): Likewise.
13959 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13960 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13961 (verify_call_clobbering): Likewise.
13962 (verify_memory_partitions): Likewise.
13963 (init_tree_ssa): Allocate bitmap instead of hashtable for
13965 (delete_tree_ssa): Adjust.
13966 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13967 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13968 (compute_tag_properties): Likewise.
13969 (set_initial_properties): Likewise.
13970 (find_partition_for): Likewise.
13971 (update_reference_counts): Likewise.
13972 (dump_may_aliases_for): Likewise.
13973 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13974 (add_call_clobber_ops): Likewise.
13975 (add_call_read_ops): Likewise.
13976 (get_asm_expr_operands): Likewise.
13977 * tree-into-ssa.c (dump_decl_set): Likewise.
13978 (update_ssa): Likewise.
13979 * tree-sra.c (scan_function): Likewise.
13980 (decide_instantiations): Likewise.
13981 (scalarize_parms): Likewise.
13982 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13983 (dsa_named_for): Likewise.
13984 * tree-ssa-structalias.c (update_alias_info): Likewise.
13985 (merge_smts_into): Likewise.
13987 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
13990 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
13991 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
13992 * alias.h (nonoverlapping_memrefs_p): Likewise.
13994 2008-02-25 Jan Beulich <jbeulich@novell.com>
13996 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
13997 * config/i386/netware-libgcc.exp: Add __bswap?i2,
13998 __emultls_get_address, __emultls_register_common,
13999 __floatundi?f, and _Unwind_GetIPInfo.
14000 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14001 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14002 (gen_regparm_prefix): Likewise.
14003 (i386_nlm_encode_section_info): Sync with
14004 config/i386/winnt.c:i386_pe_encode_section_info().
14005 (i386_nlm_maybe_mangle_decl_assembler_name): New.
14006 i386_nlm_mangle_decl_assembler_name): New.
14007 (netware_override_options): New.
14008 * config/i386/netware.h (netware_override_options): Declare.
14009 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14010 (i386_nlm_mangle_decl_assembler_name): Declare.
14011 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14013 2008-02-25 Ben Elliston <bje@au.ibm.com>
14016 * c-decl.c (grokdeclarator): Remove unused local variables
14017 `typedef_type' and `type_as_written'.
14019 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14020 unused local variable `has_hot_blocks'.
14021 (fix_crossing_conditional_branches): Remove unused local variable
14024 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
14026 PR middle-end/19984
14027 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14028 using DEF_C99_BUILTIN.
14029 (BUILT_IN_NANF): Ditto.
14030 (BUILT_IN_NANL): Ditto.
14032 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
14033 Revital Eres <eres@il.ibm.com>
14035 * modulo-sched.c (calculate_must_precede_follow): Address TODO
14036 regarding the order of two dependent insns in the same row.
14038 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
14040 * stor-layout.c (layout_decl): Do not bump the alignment of a
14041 bit-field to more than byte alignment if it is packed.
14043 2008-02-24 David Edelsohn <edelsohn@gnu.org>
14045 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14048 2008-02-24 Diego Novillo <dnovillo@google.com>
14050 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14053 * tree-vrp.c (vrp_evaluate_conditional): With
14054 -Wtype-limits, emit a warning when comparing against a
14055 constant outside the natural range of OP0's type.
14056 * c.opt (Wtype-limits): Move ...
14057 * common.opt (Wtype-limits): ... here.
14059 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
14061 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14062 * config/rs6000/e300c2c3.md: New file.
14063 * config/rs6000/rs6000.c (processor_costs): Add new costs for
14065 (rs6000_override_options): Add e300c2 and e300c3 cases to
14066 processor_target_table. Do not allow usage of Altivec or Spe
14067 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14068 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14069 * config/rs6000/rs6000.h (processor_type): Add
14070 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14071 (ASM_CPU_SPEC): Add e300c2 and e300c3.
14072 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14073 and ppce300c3. Include e300c2c3.md.
14075 2008-02-23 David Edelsohn <edelsohn@gnu.org>
14077 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14078 instead of TARGET_STRICT_ALIGN.
14080 2008-02-23 Joseph Myers <joseph@codesourcery.com>
14082 * explow.c (memory_address): Assert that the generated address is
14085 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
14088 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
14089 * config/darwin-ppc-ldouble-patch.def: New file.
14090 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
14091 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
14092 SUBTARGET_INIT_BUILTINS if defined.
14093 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
14096 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
14099 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
14100 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
14102 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
14105 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
14106 file" warning condtional on -Winvalid-PCH.
14108 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
14110 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
14112 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
14116 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
14117 prevent reload from using MMX registers.
14118 (*mov<mode>_internal): Ditto.
14119 (*movv2sf_internal_rex64): Ditto.
14120 (*movv2sf_internal): Ditto.
14122 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14124 PR documentation/31569
14125 * doc/install.texi2html: Use makeinfo --no-number-sections.
14127 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14129 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14130 ensure that we can address an entire entity > 8 bytes. Don't
14131 generate reg+reg addressing for such data.
14133 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14135 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14136 strings when optimizing for size, unless the target cares about
14139 2008-02-22 Tom Tromey <tromey@redhat.com>
14141 * regclass.c (current_pass): Remove declaration.
14143 2008-02-22 Anatoly Sokolov <aesok@post.ru>
14145 * config/avr/libgcc.S (__RAMPZ__): Define.
14146 (__do_copy_data): Add for devices with 128KB code memory.
14148 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14150 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14152 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
14154 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
14156 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
14159 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14162 * c-typeck.c (build_binary_op): Warn about floating point
14163 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
14165 2008-02-21 Janis Johnson <janis187@us.ibm.com>
14168 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
14169 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
14171 (rs6000_override_options): Set altivec_abi as default, not override,
14172 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14173 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14174 is used; use new member spe_abi.
14175 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14176 spe_abi and altivec_abi.
14178 2008-02-22 Tomas Bily <tbily@suse.cz>
14180 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14182 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14185 * config.build (build_file_translate): Set to `CMD //c' only if
14187 * Makefile.in (build_file_translate): Improve comment.
14189 2008-02-21 Jan Hubicka <jh@suse.cz>
14191 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14192 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14193 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14195 2008-02-21 Michael Matz <matz@suse.de>
14198 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14200 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
14202 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14203 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14204 as insn constraint.
14205 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14206 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14207 SSE_VEC_FLOAT_MODE_P as insn constraint.
14208 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14209 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14210 sse4a_movntdf using MODEF mode iterator.
14211 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14212 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14213 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14214 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14215 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14216 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14217 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14219 2008-02-21 Richard Guenther <rguenther@suse.de>
14221 * tree.def (PAREN_EXPR): New tree code.
14222 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14224 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14225 * expr.c (expand_expr_real_1): Likewise.
14226 * tree-inline.c (estimate_num_insns_1): Likewise.
14227 * tree-complex.c (expand_complex_move): Likewise.
14228 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14231 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14234 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14236 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14239 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14241 * config/sh/sh.c (find_barrier): Don't go past
14242 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14244 2008-02-20 DJ Delorie <dj@redhat.com>
14246 * config/h8300/h8300.md (insv): Force source operand to be a register.
14248 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14249 as a jump, not as a plain insn.
14251 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
14253 * doc/invoke.texi (Warning Options): Add new option
14254 -Wframe-larger-than=.
14255 (-Wframe-larger-than): Document.
14257 * flags.h (warn_frame_larger_than, frame_larger_than_size):
14258 Add declarations for new option variables.
14260 * final.c (final_start_function): Check the frame size
14261 before emission and issue a Wframe-larger-than warning.
14263 * opts.c (warn_frame_larger_than, frame_larger_than_size):
14264 Add definitions for new option variables.
14265 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14267 * common.opt (Wframe-larger-than=): New option.
14269 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14271 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14272 (<sse>_div<mode>3): Ditto.
14273 (<sse>_vmdiv<mode>3): Ditto.
14274 (<sse>_vmsqrt<mode>2): Ditto.
14275 (*smax<mode>3): Ditto.
14276 (sse5_frcz<mode>2): Ditto.
14277 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
14278 as insn constraint.
14280 2008-02-20 Richard Guenther <rguenther@suse.de>
14282 PR middle-end/35265
14283 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14284 be happy with INTEGRAL_TYPE_P.
14286 2008-02-20 Richard Guenther <rguenther@suse.de>
14288 * fold-const.c (split_tree): Associate floatig-point expressions
14289 if flag_associative_math is set.
14291 2008-02-20 Richard Guenther <rguenther@suse.de>
14293 * tree.h (fold_real_zero_addition_p): Declare.
14294 * fold-const.c (fold_real_zero_addition_p): Export.
14295 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14296 floating-point operations with zero and one.
14298 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
14300 * doc/install.texi: Correct references to CFLAGS, replacing them
14301 with BOOT_CFLAGS. Document flags used during bootstrap for
14304 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14306 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14307 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14308 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14310 (smin<mode>3): Ditto from similar patterns.
14311 (smax<mode>3): Ditto.
14312 (*ieee_smin<mode>3): Ditto.
14313 (*ieee_smax<mode>3): Ditto.
14314 * config/i386/sse.md (sse): New mode attribute.
14315 (mov<mode>): Macroize expander from movv4sf and movv2df using
14316 SSEMODEF2P mode iterator.
14317 (<sse>_movnt<mode>): Ditto from similar patterns. Use
14318 SSE_VEC_FLOAT_MODE_P as insn constraint.
14319 (storent<mode>): Ditto.
14320 (storent<mode>): Macroize expander from storentsf and storentdf using
14321 MODEF mode iterator.
14322 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14323 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14324 (abs<mode>2): Ditto from similar patterns.
14325 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14326 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14327 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14328 (<sse>_vmsqrt<mode>2): Ditto.
14329 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14330 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14331 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14332 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14333 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14334 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14335 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14337 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14338 iterator and SSE_FLOAT_MODE_P as insn constraint.
14339 (<sse>_ucomi): Ditto from similar patterns.
14340 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14341 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14342 SSE_VEC_FLOAT_MODE_P as insn constraint.
14343 (vcond<mode>): Ditto from similar patterns.
14344 (and<mode>3, *and<mode>3): Ditto.
14345 (<sse>_nand<mode>3): Ditto.
14346 (ior<mode>3, *ior<mode>3): Ditto.
14347 (xor<mode>3, *xor<mode>3): Ditto.
14348 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14349 iterator and SSE_FLOAT_MODE_P as insn constraint.
14350 (*nand<mode>3): Ditto from similar patterns.
14351 (*ior<mode>3): Ditto.
14352 (*xor<mode>3): Ditto.
14354 2008-02-20 Ira Rosen <irar@il.ibm.com>
14356 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14357 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14358 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14360 2008-02-19 Jan Hubicka <jh@suse.cz>
14362 * predict.c (tree_bb_level_predictions): Remove variable next
14363 mistakely introduced by previous commit.
14365 2008-02-19 Jan Hubicka <jh@suse.cz>
14367 * predict.c (predict_paths_leading_to): Rewrite.
14368 (predict_paths_for_bb): New.
14369 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14371 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14374 * Makefile.in (build_file_translate): New.
14375 (gcc-vers.texi): Use it for translating $(abs_srcdir).
14376 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14377 * configure.ac (build_file_translate): Substitute it.
14378 * configure: Regenerate.
14380 2008-02-19 Jan Hubicka <jh@suse.cz>
14382 PR rtl-optimization/34408
14383 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14386 2008-02-19 Jan Hubicka <jh@suse.cz>
14388 PR middle-end/28779
14389 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14392 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
14395 * config/i386/i386-modes.def: Revert the last DI alignment
14396 change until Ada people can look into it.
14398 2008-02-19 Nick Clifton <nickc@redhat.com>
14400 * opts.c (print_specific_help): Fix typo in --help text.
14402 2008-02-19 Jakub Jelinek <jakub@redhat.com>
14405 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14406 32-bit inline asm without asm alternatives for host GCC < 3.0.
14408 2008-02-19 Richard Guenther <rguenther@suse.de>
14410 PR tree-optimization/34989
14411 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14412 Allow propagation to INDIRECT_REF if we can simplify only.
14414 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14416 * c-common.c (warn_for_collisions_1): Use appropriate option when
14419 2008-02-19 Nick Clifton <nickc@redhat.com>
14422 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
14423 (handle_options): Fix indentation.
14424 (print_filtered_help): If no language-specific options were
14425 displayed tell the user how to list all the options supported by
14426 the language's front-end.
14427 (print_specific_help): Fix indentation and remove duplicate line.
14428 (common_handle_option): Handle the -v option.
14429 For --help enable the display of undocumented options if the -v
14430 switch has been included on the command line.
14431 For --help= check for overlaps in the arguments between the option
14432 classes and the language names and issue a warning when they
14433 cannot be disambiguated.
14434 * c.opt (v): Pass on to the common option handler.
14436 2008-02-19 Revital Eres <eres@il.ibm.com>
14438 * modulo-sched.c (sms_schedule): Change dump message when
14439 create_ddg function fails.
14440 (try_scheduling_node_in_cycle): Rename row to cycle.
14441 (print_partial_schedule): Rename CYCLE to ROW.
14443 2008-02-19 Christian Bruel <christian.bruel@st.com>
14444 Zdenek Dvorak <ook@ucw.cz>
14446 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
14448 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
14451 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
14452 (*x86_movdicc_0_m1_se): Ditto.
14454 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
14456 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
14457 (CMPtype): Define as __gcc_CMPtype.
14458 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
14459 (CMPtype): Define as __gcc_CMPtype.
14461 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
14463 Support valgrind 3.3 for --enable-checking=valgrind.
14464 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
14466 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
14467 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
14468 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
14469 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
14470 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
14471 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
14472 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
14474 * ggc-zone.c: Similar.
14475 * ggc-page.c: Similar.
14477 2008-02-19 Paul Brook <paul@codesourcery.com>
14480 * config/arm/ieee754-df.S: Fix do_it typo.
14481 * config/arm/ieee754-sf.S: Fix do_it typo.
14483 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
14486 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
14487 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
14488 (OPTION_MASK_ISA_SSE_SET): Likewise.
14489 (OPTION_MASK_ISA_SSE2_SET): Likewise.
14490 (OPTION_MASK_ISA_SSE3_SET): Likewise.
14491 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
14492 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
14493 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
14494 (OPTION_MASK_ISA_SSE4_SET): Likewise.
14495 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
14496 (OPTION_MASK_ISA_SSE5_SET): Likewise.
14497 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
14498 (OPTION_MASK_ISA_MMX_UNSET): Updated.
14499 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
14500 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14501 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14502 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14503 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14504 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14505 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14506 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
14507 (OPTION_MASK_ISA_SSE4): Removed.
14508 (ix86_handle_option): Turn on bits in ix86_isa_flags and
14509 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
14510 (override_options): Don't turn on implied SSE/MMX bits in
14513 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
14515 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14518 2008-02-18 Joey Ye <joey.ye@intel.com>
14520 PR middle-end/34921
14521 * tree-nested.c (insert_field_into_struct): Set type alignment
14522 to field alignment if the former is less than the latter.
14524 2008-02-18 Jakub Jelinek <jakub@redhat.com>
14526 * BASE-VER: Set to 4.4.0.
14528 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14530 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
14531 * doc/cfg.texi: Likewise.
14532 * doc/extend.texi: Likewise.
14533 * doc/gty.texi: Likewise.
14534 * doc/invoke.texi: Likewise.
14535 * doc/loop.texi: Likewise.
14536 * doc/md.texi: Likewise.
14537 * doc/passes.texi: Likewise.
14538 * doc/rtl.texi: Likewise.
14539 * doc/sourcebuild.texi: Likewise.
14540 * doc/tm.texi: Likewise.
14541 * doc/tree-ssa.texi: Likewise.
14543 2008-02-17 Richard Guenther <rguenther@suse.de>
14545 PR middle-end/35227
14546 * tree-complex.c (init_parameter_lattice_values): Handle parameters
14547 without default definition.
14549 2008-02-17 Richard Guenther <rguenther@suse.de>
14551 PR tree-optimization/35231
14552 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
14555 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
14558 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14559 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14560 libgcc_cmp_return mode.
14562 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14565 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
14567 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
14569 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
14572 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14574 * doc/c-tree.texi: Use `@.' where appropriate.
14575 * doc/extend.texi: Likewise.
14576 * doc/install.texi: Likewise.
14577 * doc/invoke.texi: Likewise.
14578 * doc/loop.texi: Likewise.
14579 * doc/makefile.texi: Likewise.
14580 * doc/md.texi: Likewise.
14581 * doc/passes.texi: Likewise.
14582 * doc/standards.texi: Likewise.
14583 * doc/tm.texi: Likewise.
14585 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14587 PR middle-end/35196
14588 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
14590 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
14591 rather than in entry_bb.
14593 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14595 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14596 libgcc_cmp_return mode.
14598 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14600 PR middle-end/35130
14601 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
14602 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
14604 2008-02-15 Richard Guenther <rguenther@suse.de>
14605 Zdenek Dvorak <ook@ucw.cz>
14607 PR tree-optimization/35164
14608 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
14609 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
14610 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14611 Only propagate addresses which do not have abnormal SSA_NAMEs
14614 2008-02-15 Joseph Myers <joseph@codesourcery.com>
14617 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
14619 2008-02-15 Jan Hubicka <jh@suse.cz>
14621 PR middle-end/35149
14622 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
14624 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14626 PR middle-end/34621
14627 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
14628 when calculating alignment_pad.
14630 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14632 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
14633 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
14634 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
14635 and STACK_BOUNDARY define.
14637 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
14639 PR preprocessor/35061
14640 * c-pragma.c (handle_pragma_pop_macro): Check that
14641 pushed_macro_table has been allocated.
14643 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
14645 PR middle-end/35136
14646 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
14647 (force_gimple_operand): Likewise.
14648 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
14649 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
14650 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
14651 (find_interesting_uses_address): Check addressability and alignment
14652 of the base expression only after substituting bases of IVs into it.
14654 2008-02-14 Michael Matz <matz@suse.de>
14657 * function.c (instantiate_virtual_regs_in_insn): Reload address
14658 before falling back to reloading the whole operand.
14660 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
14662 * config/s390/s390.c (s390_mainpool_start): Emit the pool
14663 before the first section switch note.
14665 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14667 * doc/bugreport.texi: Update copyright years.
14668 * doc/c-tree.texi: Likewise.
14669 * doc/cfg.texi: Likewise.
14670 * doc/cpp.texi: Likewise.
14671 * doc/cppinternals.texi: Likewise.
14672 * doc/fragments.texi: Likewise.
14673 * doc/frontends.texi: Likewise.
14674 * doc/gcc.texi: Likewise.
14675 * doc/gty.texi: Likewise.
14676 * doc/hostconfig.texi: Likewise.
14677 * doc/implement-c.texi: Likewise.
14678 * doc/libgcc.texi: Likewise.
14679 * doc/loop.texi: Likewise.
14680 * doc/makefile.texi: Likewise.
14681 * doc/options.texi: Likewise.
14682 * doc/passes.texi: Likewise.
14683 * doc/rtl.texi: Likewise.
14684 * doc/sourcebuild.texi: Likewise.
14685 * doc/standards.texi: Likewise.
14686 * doc/tree-ssa.texi: Likewise.
14687 * doc/trouble.texi: Likewise.
14689 * doc/extend.texi: Use @: or add comma where appropriate.
14690 * doc/invoke.texi: Likewise.
14691 * doc/tm.texi: Likewise.
14693 2008-02-14 Alan Modra <amodra@bigpond.net.au>
14696 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
14699 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
14701 * doc/md.texi (clz, ctz): Add reference.
14702 * doc/rtl.texi (clz, ctz): Likewise.
14704 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14707 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
14710 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
14712 * config/s390/s390.c (struct constant_pool): New field
14713 emit_pool_after added.
14714 (s390_mainpool_start): Set the emit_pool_after flag according
14715 to the section switch notes.
14716 (s390_mainpool_finish): Consider emit_pool_after when emitting
14717 the literal pool at the end of the function.
14718 (s390_chunkify_start): Force literal pool splits at section
14721 2008-02-13 Michael Matz <matz@suse.de>
14724 * var-tracking.c (clobber_variable_part): Correctly traverse the
14727 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14730 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
14731 Add -fdump-ipa-inline.
14732 * tree-dump.c (dump_files): Remove tree-inlined dump.
14733 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
14735 2008-02-12 Richard Guenther <rguenther@suse.de>
14737 PR tree-optimization/35171
14738 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
14741 2008-02-12 Richard Guenther <rguenther@suse.de>
14743 PR middle-end/35163
14744 * fold-const.c (fold_widened_comparison): Use get_unwidened in
14745 value-preserving mode. Disallow final truncation.
14747 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
14749 PR middle-end/35136
14750 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
14751 code from here to...
14752 (force_gimple_operand): ...here.
14754 2008-02-12 Jakub Jelinek <jakub@redhat.com>
14757 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
14758 non-compatible pointers.
14759 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
14760 different FIELD_DECLs, try harder by comparing field offsets, sizes
14763 PR inline-asm/35160
14764 * function.c (match_asm_constraints_1): Don't replace the same input
14767 2008-02-12 Anatoly Sokolov <aesok@post.ru>
14769 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
14770 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
14771 (expand_epilogue): Restore RAMPZ register.
14772 * config/avr/avr.md (RAMPZ_ADDR): New constant.
14774 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
14776 * config/i386/cygwin.asm: (__alloca): Correct calling
14777 convention and alignment.
14778 (__chkstk): Force 8 byte stack alignment.
14780 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
14781 Richard Guenther <rguenther@suse.de>
14783 PR tree-optimization/33992
14784 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
14785 the zero we compare against.
14787 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
14789 PR libfortran/35063
14790 * gthr-win32.h (__gthread_mutex_destroy_function): New function
14791 to CloseHandle after unlocking to prevent accumulation of handle
14794 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14796 PR middle_end/34150
14797 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
14798 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
14799 and update LABEL_NUSES during and after reload.
14801 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
14803 PR middle-end/34627
14804 * combine.c (simplify_if_then_else): Make sure the comparison is
14805 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
14807 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
14810 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
14811 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
14812 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
14813 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
14814 * tree.h (get_type_static_bounds): Likewise.
14816 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14818 * doc/invoke.texi (Option Summary, C++ Dialect Options)
14819 (Objective-C and Objective-C++ Dialect Options, Warning Options):
14820 Make -Wfoo language annotations match what the compiler outputs.
14822 2008-02-08 Sa Liu <saliu@de.ibm.com>
14824 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
14825 intrinsics spu_convts, spu_convtu, spu_convtf.
14827 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
14829 * doc/extend.texi (Function Attributes) <noinline>: Mention
14830 asm ("") as method to keep calls.
14832 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14835 * doc/options.texi (Options): Replace references to opts.sh with
14837 * opts-common.c: Likewise.
14838 * optc-gen.awk: Likewise.
14840 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
14842 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
14844 2008-02-07 Richard Henderson <rth@redhat.com>
14847 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
14848 EXPR_LIST for the REG_EQUAL instead of a comparison with a
14851 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
14853 PR tree-optimization/35085
14854 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
14855 for operand entry oe2 in addition to operand entry oe3 in order to
14856 expose more opportunities for vectorizer sum reduction.
14858 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14861 * Makefile.in (LIBS): Remove $(GMPLIBS).
14862 (cc1-dummy, cc1): Add $(GMPLIBS).
14864 2008-02-06 Jan Hubicka <jh@suse.cz>
14867 * i386.md (moddf_integer): Do not produce partial memory stalls for
14868 targets where it hurts.
14870 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
14873 * optabs.c (expand_float): Do not check for decimal modes when
14874 expanding unsigned integer through signed conversion.
14876 2008-02-06 Nick Clifton <nickc@redhat.com>
14878 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
14879 inside the clobber with a match_operand and duplicated operand
14880 number in the constraint.
14881 (ineqbranchsi): Delete redundant comment.
14883 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
14885 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
14886 builtin_define ("__USE_INIT_FINI__").
14887 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
14889 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
14891 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14893 PR documentation/30330
14894 * doc/invoke.texi (C++ Dialect Options)
14895 (Objective-C and Objective-C++ Dialect Options, Warning Options):
14896 For each warning option -Wfoo that allows -Wno-foo, ensure both
14897 -Wfoo and -Wno-foo are listed in the option index. Fix index
14898 entry of -Wswitch-default, index -Wnormalized= including the
14899 `=', and -Wlarger-than-@var{len} including @var{len}.
14901 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
14903 * config/i386/i386.md (floatunssisf2): Use
14904 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
14905 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
14906 Macroize expander using MODEF mode iterator.
14908 2008-02-05 Diego Novillo <dnovillo@google.com>
14910 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
14913 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
14915 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14918 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
14920 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
14923 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
14924 to indicate if a message should be generated.
14925 (init_cumulative_args): Updated.
14926 (function_value_32): Likewise.
14928 2008-02-05 Joseph Myers <joseph@codesourcery.com>
14930 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
14932 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
14935 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
14936 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
14938 2008-02-04 Diego Novillo <dnovillo@google.com>
14940 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
14943 * tree-vrp.c (vrp_evaluate_conditional): With
14944 -Wtype-limits, emit a warning when comparing against a
14945 constant outside the natural range of OP0's type.
14947 2008-02-04 Richard Guenther <rguenther@suse.de>
14949 PR middle-end/33631
14950 * expr.c (count_type_elements): Give for unions instead of
14953 2008-02-04 Richard Guenther <rguenther@suse.de>
14955 PR middle-end/35043
14956 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
14957 to TYPE_DOMAINs base type instead of using bitsizetype here.
14959 2008-02-03 Jason Merrill <jason@redhat.com>
14961 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
14963 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14966 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
14967 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
14968 (RS/6000 and PowerPC Options): Fix typos and markup.
14969 * doc/passes.texi (Tree-SSA passes): Likewise.
14971 2008-02-02 Michael Matz <matz@suse.de>
14974 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
14975 from record_last_reg_set_info.
14976 (record_last_reg_set_info): Take an RTX argument, iterate over all
14977 constituent hardregs.
14978 (record_last_set_info, record_opr_changes): Change calls to
14979 new signature or to record_last_reg_set_info_regno.
14981 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14983 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
14985 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
14987 PR rtl-optimization/34773
14988 * reg-notes.def (EQUAL): Mention significance of combination of
14989 REG_EQUAL and REG_RETVAL.
14990 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
14991 insn that has a REG_RETVAL.
14993 2008-02-01 Roger Sayle <roger@eyesopen.com>
14996 * configure.ac (--enable-fixed-point): Disable unless explicitly
14998 * configure: Regenerate.
15000 2008-02-01 Richard Guenther <rguenther@suse.de>
15003 * invoke.texi (-finline-limit): Remove no longer true parts
15004 of the documentation. Note that there is no default value.
15006 2008-02-01 Andrew Pinski <pinskia@gmail.com>
15007 Mark Mitchell <mark@codesourcery.com>
15008 Ben Elliston <bje@au.ibm.com>
15011 * doc/extend.texi (Other Builtins): Document.
15013 2008-01-31 Tom Browder <tom.browder@gmail.com>
15015 * doc/c-tree.texi (Types): Fix grammar.
15016 (Expression trees): Ditto.
15017 * doc/passes.texi (Tree-SSA passes): Ditto.
15019 * doc/configterms.texi (Configure Terms): Fix typo.
15020 * doc/cpp.texi (Common Predefined Macros): Ditto.
15021 * doc/md.texi (Machine Constraints): Ditto.
15023 * doc/makefile.texi (Makefile): Add comma.
15025 2008-01-31 Tom Browder <tom.browder@gmail.com>
15026 Gerald Pfeifer <gerald@pfeifer.com>
15028 * doc/sourcebuild.texi (Front End): Remove references to CVS
15029 and CVSROOT/modules.
15030 (Texinfo Manuals): Replace reference to CVS by one to SVN.
15031 (Back End): Remove reference to CVS.
15033 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
15036 * config/mips/mips.c (gen_load_const_gp): New function, taking a
15038 (mips16_gp_pseudo_reg): ...here.
15039 * config/mips/mips.md (load_const_gp): Replace with...
15040 (load_const_gp_<mode>): ...this :P-based insn.
15042 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15044 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15045 options. Minor fixes.
15046 (-std): Move reference to standards closer to where language
15047 standards are first mentioned.
15049 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
15051 PR rtl-optimization/34995
15052 * reload.c (alternative_allows_const_pool_ref): Take an rtx
15053 parameter and return a bool. If the rtx parameter is nonnull,
15054 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15055 (find_reloads): Update call accordingly. Pass the new operand
15056 if it needed no address reloads, otherwise pass null.
15058 2008-01-30 Richard Henderson <rth@redhat.com>
15061 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15062 for unbounded arrays.
15064 2008-01-30 Silvius Rus <rus@google.com>
15066 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15068 2008-01-30 Jan Hubicka <jh@suse.cz>
15071 * i386.c (init_cumulative_args): Use real function declaration when
15074 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
15076 PR rtl-optimization/34998
15077 * global.c (build_insn_chain): Treat non-subreg_lowpart
15078 SUBREGs of pseudos as clobbering all the words covered by the
15079 SUBREG, not just all the bytes.
15080 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
15081 original df_ref rather than an extract parameter.
15082 (global_conflicts): Update call accordingly.
15084 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
15086 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15087 the overflow check to make it easier to read.
15088 (__fixtfdi): Change the type of the ll member in union
15089 long_double to UDItype_x.
15091 2008-01-30 Jakub Jelinek <jakub@redhat.com>
15093 PR middle-end/34969
15094 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
15095 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
15096 * tree-inline.c (fold_marked_statements): Call
15097 cgraph_update_edges_for_call_stmt if folding a call statement.
15098 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
15099 debug_generic_stmt calls, reset it back afterwards.
15102 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
15104 * c-typeck.c (build_external_ref): Don't pedwarn about
15105 static vars in current function's scope.
15107 2008-01-29 Joseph Myers <joseph@codesourcery.com>
15109 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
15111 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
15114 * ipa-struct-reorg.c: Fix spelling.
15115 * params.def: Ditto.
15117 2008-01-29 Richard Guenther <rguenther@suse.de>
15119 PR middle-end/35006
15120 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
15122 * tree-inline.c (remap_type): Increment remapping_type_depth
15123 around remapping types.
15124 (copy_body_r): Only add referenced variables if they are referenced
15125 from code, not types.
15127 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
15138 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15139 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15141 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
15144 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
15145 pointer for tiny stack.
15147 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
15149 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
15151 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
15153 * config/vx-common.h: Fix typo in comment.
15155 2008-01-28 Ian Lance Taylor <iant@google.com>
15159 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15160 coalesce pointers if they have different DECL_NO_TBAA_P values.
15161 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
15162 between variables with different DECL_NO_TBAA_P values.
15164 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
15167 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
15168 are not legitimate small data references on SPE targets.
15170 2008-01-28 David Daney <ddaney@avtrex.com>
15172 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15174 2008-01-28 David Daney <ddaney@avtrex.com>
15176 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
15178 2008-01-27 Joseph Myers <joseph@codesourcery.com>
15180 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15181 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15182 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15183 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15184 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15185 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15186 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15187 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15189 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15191 * basic-block.h (condjump_equiv_p): Fix comment.
15193 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15195 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15196 print_generic_stmt_indented): Fix comment.
15198 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15200 * configure.ac (__stack_chk_fail): Add detecion for availability
15201 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15202 * configure: Regenerate.
15204 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
15206 PR middle-end/34688
15207 * final.c (output_addr_const): Handle TRUNCATE.
15209 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
15212 * tree-ssa-loop-ivopts.c (comp_cost): New type.
15213 (zero_cost, infinite_cost): New constants.
15214 (struct cost_pair): Change type of cost to comp_cost.
15215 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15216 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15218 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15219 split_address_cost, ptr_difference_cost, difference_cost,
15220 get_computation_cost_at, get_computation_cost,
15221 determine_use_iv_cost_generic, determine_use_iv_cost_address,
15222 determine_use_iv_cost_condition, determine_use_iv_costs,
15223 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15224 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15225 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15226 Change type of cost to comp_cost.
15227 (determine_iv_cost): Increase cost of non-original ivs, instead
15228 of decreasing the cost of original ones.
15229 (get_address_cost): Indicate the complexity of the addressing mode
15231 (try_add_cand_for): Prefer using ivs not specific to some object.
15232 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15234 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
15235 Janis Johnson <janis187@us.ibm.com>
15238 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15239 (TARGET_INSTANTIATE_DECLS): Likewise.
15240 * target.h (expand_to_rtl_hook): New target hook.
15241 (instantiate_decls): Likewise.
15242 * function.c (instantiate_decl): Make non-static. Rename to...
15243 (instantiate_decl_rtl): ... this.
15244 (instantiate_expr): Use instantiate_decl_rtl.
15245 (instantiate_decls_1): Likewise.
15246 (instantiate_decls): Likewise.
15247 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15248 * function.h (instantiate_decl_rtl): Add prototype.
15249 * cfgexpand.c (target.h): New include.
15250 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15251 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15252 (TARGET_INSTANTIATE_DECLS): Likewise.
15253 (TARGET_INITIALIZER): New target hooks added.
15254 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15256 * config/rs6000/rs6000.c (tree-flow.h): New include.
15257 (machine_function): Add sdmode_stack_slot field.
15258 (rs6000_alloc_sdmode_stack_slot): New function.
15259 (rs6000_instantiate_decls): Likewise.
15260 (rs6000_secondary_memory_needed_rtx): Likewise.
15261 (rs6000_check_sdmode): Likewise.
15262 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15263 (TARGET_INSTANTIATE_DECLS): Likewise.
15264 (rs6000_hard_regno_mode_ok): Allow SDmode.
15265 (num_insns_constant): Likewise. Handle _Decimal32 constants.
15266 (rs6000_emit_move): Handle SDmode.
15267 (function_arg_advance): Likewise.
15268 (function_arg): Likewise.
15269 (rs6000_gimplify_va_arg): Likewise. Add special handling of
15270 SDmode var args for 32-bit compiles.
15271 (rs6000_secondary_reload_class): Handle SDmode.
15272 (rs6000_output_function_epilogue): Likewise.
15273 (rs6000_function_value): Simplify if statement.
15274 (rs6000_libcall_value): Likewise.
15275 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15276 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15277 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15278 (movsd_hardfloat): New define_insn.
15279 (movsd_softfloat): Likewise.
15280 (movsd_store): Likewise.
15281 (movsd_load): Likewise.
15282 (extendsddd2): Likewise.
15283 (extendsdtd2): Likewise.
15284 (truncddsd2): Likewise.
15285 (movdd_hardfloat64): Fixup comment.
15286 (UNSPEC_MOVSD_LOAD): New constant.
15287 (UNSPEC_MOVSD_STORE): Likewise.
15289 2008-01-26 Jakub Jelinek <jakub@redhat.com>
15292 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15294 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15295 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15296 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15297 and TRUTH_XOR_EXPR.
15299 2008-01-26 David Edelsohn <edelsohn@gnu.org>
15302 * config.gcc: Separate AIX 5.3 from AIX 6.1.
15303 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15304 __LONGDOUBLE128 too.
15305 * config/rs6000/aix61.h: New file.
15307 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15309 PR rtl-optimization/34959
15310 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15311 popcount and parity rtxes the same mode as their operand.
15312 Truncate or extend the result to the return value's mode
15315 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15318 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15319 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15320 to GOT_VERSION_REGNUM.
15321 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15322 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15323 * config/mips/mips.c (mips_emit_call_insn): New function.
15324 (mips_call_tls_get_addr): Call mips_expand_call directly.
15325 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15327 (mips16_build_call_stub): Likewise. Return the call insn or null.
15328 (mips_expand_call): Update the call to mips16_build_call_stub
15329 accordingly and a remove redundant condition. Assert that MIPS16
15330 stubs do not use lazy binding. Use mips_emit_call_insn and return
15332 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15334 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15335 (mips_avoid_hazard): Remove hazard_set handling.
15336 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15337 (UNSPEC_RESTORE_GP): ...this.
15338 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15339 (FAKE_CALL_REGNO): Rename to...
15340 (GOT_VERSION_REGNUM): ...this.
15341 (type): Add "ghost" value. Add an associated insn reservation.
15342 (hazard_set): Remove.
15343 (exception_receiver): Rename to...
15344 (restore_gp): ...this and update the unspec identifier accordingly.
15345 (exception_receiver, nonlocal_got_receiver): New expanders.
15346 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
15347 FAKE_CALL_REGNO. Remove hazard_set attribute.
15348 (set_got_version, update_got_version): New patterns.
15350 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
15353 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15355 2008-01-25 Joseph Myers <joseph@codesourcery.com>
15358 * doc/install.texi2html: Generate gcc-vers.texi.
15360 2008-01-25 DJ Delorie <dj@redhat.com>
15362 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15364 2008-01-25 Joseph Myers <joseph@codesourcery.com>
15366 * config/c4x: Remove directory.
15367 * config.gcc (crx-*, mt-*): Mark obsolete.
15368 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15369 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15370 sh-*-rtemscoff*): Remove cases.
15371 * defaults.h (C4X_FLOAT_FORMAT): Remove.
15372 * real.c (encode_c4x_single, decode_c4x_single,
15373 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15374 c4x_extended_format): Remove.
15375 * real.h (c4x_single_format, c4x_extended_format): Remove.
15376 * doc/extend.texi (interrupt, naked): Remove mention of attributes
15378 (Pragmas): Remove comment about c4x pragmas.
15379 * doc/install.texi (c4x): Remove target-specific instructions.
15380 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15381 * doc/md.texi (Machine Constraints): Remove C4x documentation.
15382 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15383 refer to C4x source files as examples.
15384 (C4X_FLOAT_FORMAT): Remove documentation.
15386 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
15388 * config/bfin/bfin.c (override_options): Reorder tests so that
15389 flag_pic gets enabled for -msep-data.
15391 2008-01-25 Richard Guenther <rguenther@suse.de>
15393 PR middle-end/32244
15394 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15395 to its bitfield precision if required.
15397 2008-01-25 Jakub Jelinek <jakub@redhat.com>
15399 PR middle-end/33880
15400 * tree-nested.c (walk_omp_for): New function.
15401 (convert_nonlocal_reference, convert_local_reference): Call
15402 walk_omp_for on OMP_FOR.
15403 (convert_call_expr): Call walk_body on OMP_FOR's
15404 OMP_FOR_PRE_INIT_BODY.
15406 2008-01-25 Richard Guenther <rguenther@suse.de>
15408 PR tree-optimization/34966
15409 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15410 default defs and PHI_NODEs we have to insert after the
15411 defining statement.
15413 2008-01-24 Nick Clifton <nickc@redhat.com>
15415 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15416 Provide a default definition.
15417 (LIBGCC2_UNITS_PER_WORD): Likewise.
15419 * config/stormy16/stormy16.c: Include df.h for the prototype
15420 for df_regs_ever_live_p.
15421 (xstormy16_expand_builtin_va_start): Convert the stack offset
15422 into a component_ref and then use POINTER_PLUS_EXPR to add it
15423 to the incoming_virtual_args_rtx.
15424 (xstormy16_gimplify_va_arg_expr): Rename to
15425 xstormy16_gimplify_va_arg_expr.
15426 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
15427 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
15428 xstormy16_gimplify_va_arg_expr.
15429 Fix up some formatting issues.
15431 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
15432 Move to predicates.md.
15433 (xs_hi_general_operand): Likewise.
15434 (xs_hi_nonmemory_operand): Likewise.
15435 * config/stormy16/predicates.md:
15436 (xstormy16_carry_plus_operand): New predicate.
15437 (xs_hi_general_operand): New predicate.
15438 (xs_hi_nonmemory_operand): New predicate.
15439 * config/stormy16/stormy16-protos.h:
15440 (xstormy16_carry_plus_operand): Delete prototype.
15441 (xs_hi_general_operand): Likewise.
15442 (xs_hi_nonmemory_operand): Likewise.
15444 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
15445 modifiers as they are no longer needed and they can trigger
15446 reload spill failures.
15448 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
15449 with a match_operand in order to help reload.
15451 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
15452 constraint with 'e' for the 8th alternative as this version of
15453 the mov.w instruction only accepts the lower 8 registers.
15455 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
15458 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
15459 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
15462 2008-01-25 Jakub Jelinek <jakub@redhat.com>
15464 PR middle-end/33333
15465 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
15467 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
15469 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
15471 (remove_structure): Update allocations list before removing structure.
15473 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
15475 * ipa-struct-reorg.c (is_safe_cond_expr,
15476 create_new_stmts_for_cond_expr): Use integer_zerop function,
15477 that recognize not only zero-pointer, but zero-integer too.
15479 2008-01-25 Ben Elliston <bje@au.ibm.com>
15482 * fixproto: Escape "." in sed expression that strips leading "./".
15484 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
15487 * gcc.c (SWITCH_OK): Removed.
15488 (SWITCH_LIVE): Changed to bit.
15489 (SWITCH_FALSE): Likewise.
15490 (SWITCH_IGNORE): Likewise.
15491 (switchstr): Change live_cond to unsigned int.
15492 (process_command): Replace SWITCH_OK with 0.
15493 (do_self_spec): Likewise.
15494 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
15495 (give_switch): Likewise.
15496 (used_arg): Likewise.
15497 (do_spec_1): Set the SWITCH_IGNORE bit.
15498 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
15499 bits. Set the SWITCH_LIVE bit.
15501 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
15503 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
15505 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
15507 PR tree-optimization/34472
15508 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
15509 parameter to a "bool *" and set *DATA to false if there is
15510 an unsafe access. Do not delete the structure here.
15511 (check_cond_exprs): Delete it here instead.
15512 (check_cond_exprs, exclude_cold_structs): Do not increase
15513 I when removing a structure.
15515 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
15518 * config/i386/i386.c (ix86_expand_vector_init): Consider only
15519 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
15521 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
15523 PR middle-end/34934
15524 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
15525 a fixed vector for stack.
15527 2008-01-24 Ben Elliston <bje@au.ibm.com>
15530 * doc/gcc.texi (Software development): Add a direntry for g++.
15532 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
15534 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
15535 stale and straggling -fforce-addr comments above.
15537 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
15539 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
15540 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
15542 2008-01-23 Michael Matz <matz@suse.de>
15545 * dwarf2out.c (force_type_die): Use modified_type_die instead of
15548 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
15550 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
15551 malloc result type.
15553 2008-01-23 Anatoly Sokolov <aesok@post.ru>
15555 * config/avr/avr.c (avr_current_arch): New variable.
15556 (avr_arch_types): Add 'avr31' and 'avr51' entries.
15557 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
15558 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
15559 (avr_override_options): Init 'avr_current_arch'.
15560 (base_arch_s): Move from here...
15561 * config/avr/avr.h (base_arch_s): ... here. Add new members
15562 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
15563 'mega' to 'have_jmp_call'.
15564 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
15565 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
15567 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
15569 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15570 MULTILIB_MATCHES): (Ditto.).
15572 2008-01-23 Richard Guenther <rguenther@suse.de>
15574 PR middle-end/31529
15575 * cgraphunit.c (cgraph_reset_node): Always mark the node
15576 not reachable if it is not queued already.
15578 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
15580 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
15581 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
15582 (cputype_selected): New static variable.
15583 (bfin_handle_option): Set it if -mcpu is used.
15584 (override_option): Select default set of workarounds if no cpu type
15585 selected on the command line.
15586 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
15588 From Michael Frysinger <michael.frysinger@analog.com>
15589 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
15590 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
15592 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
15593 for bf547, bf523, bf524, and bf526.
15594 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
15596 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15597 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
15598 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
15599 __ADSPBF547__ and __ADSPBF54x__ for bf547.
15600 * doc/invoke.texi (Blackfin Options): Document that
15601 -mcpu now accept bf547, bf523, bf524, and bf526.
15603 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
15605 PR rtl-optimization/34628
15606 * combine.c (try_combine): Stop and undo after the first combination
15607 if an autoincrement side-effect on the first insn has effectively
15610 2008-01-22 David Edelsohn <edelsohn@gnu.org>
15613 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
15614 Offset addresses are not valid for Altivec or paired float modes.
15616 2008-01-22 Jakub Jelinek <jakub@redhat.com>
15619 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
15620 if DECL_INITIAL (decl) is error_mark_node.
15623 * c-common.c (handle_vector_size_attribute): Only allow
15624 integral, scalar float and fixed point types. Handle OFFSET_TYPE
15625 the same way as pointer, array etc. types.
15626 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
15629 * tree.c (build_type_attribute_qual_variant): Call
15630 build_qualified_type if attributes are equal, but quals are not.
15632 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15635 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
15636 * flags.h (warn_strict_aliasing): Remove.
15637 (warn_strict_overflow): Remove.
15638 * opts.c (warn_strict_aliasing): Remove.
15639 (warn_strict_overflow): Remove.
15640 * c-opts.c (c_common_handle_option): -Wall only sets
15641 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
15642 (c_common_post_options): Give default values to -Wstrict-aliasing
15643 and -Wstrict-overflow if they are uninitialized.
15644 * common.opt (Wstrict-aliasing): Specify Var and Init.
15645 (Wstrict-overflow): Likewise.
15647 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
15649 PR rtl-optimization/26854
15650 PR rtl-optimization/34400
15651 PR rtl-optimization/34884
15652 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
15654 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
15655 (df_rd_bb_info.expanded_lr_out): Deleted
15656 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
15657 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
15658 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15659 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15660 Removed code to allocate, initialize or free expanded_lr_out.
15661 (df_rd_bb_local_compute_process_def): Restructured to make more
15663 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
15664 sets if the sets are being trimmed.
15666 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
15669 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
15670 (as_vers): Likewise.
15671 * configure: Regenerated.
15673 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15675 PR middle-end/33092
15676 * tree-pass.h (pass_build_alias): New pass.
15677 * tree-ssa-alias.c (gate_build_alias): New.
15678 (pass_build_alias): New.
15679 * passes.c (init_optimization_passes): Add pass_build_alias after
15680 pass_create_structure_vars.
15682 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
15684 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
15685 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
15686 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
15687 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
15688 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
15689 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
15690 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
15691 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
15692 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
15693 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
15694 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
15695 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
15696 * config/s390/s390.md (FP_ALL): New mode iterator.
15697 (_d): New mode attribute.
15698 ("*signbit<mode>2>"): Changed mode of first operand.
15699 ("isinf<mode>2"): Changed mode of first operand.
15700 ("*TDC_insn"): Adaptation for DFP modes.
15702 2008-01-22 Ben Elliston <bje@au.ibm.com>
15704 * tree.c (check_qualified_type): Improve function description.
15706 2008-01-21 Jason Merrill <jason@redhat.com>
15709 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
15710 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
15713 2008-01-21 DJ Delorie <dj@redhat.com>
15715 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
15718 2008-01-21 Richard Guenther <rguenther@suse.de>
15720 PR middle-end/34856
15721 * tree-cfg.c (verify_expr): Allow all invariant expressions
15722 instead of just constant class ones as reference argument.
15723 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
15724 like any other constant.
15725 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15727 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
15729 * regmove.c (fixup_match_1): Update call crossed frequencies.
15731 2008-01-21 Richard Guenther <rguenther@suse.de>
15734 * tree-inline.c (setup_one_parameter): Deal with mismatched
15735 types using a VIEW_CONVERT_EXPR.
15737 2008-01-21 Alon Dayan <alond@il.ibm.com>
15738 Olga Golovanevsky <olga@il.ibm.com>
15740 PR tree-optimization/34701
15741 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
15742 when the structure size is not a power of 2.
15744 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
15746 * doc/install.texi: Add doc for --enable-checking=df.
15748 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
15750 PR rtl-optimization/34808
15751 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
15753 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
15755 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
15758 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
15760 PR rtl-optimization/26854
15761 PR rtl-optimization/34400
15762 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
15764 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
15765 (df_rd_bb_info.expanded_lr_out): New.
15766 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
15767 * loop_iv.c (iv_analysis_loop_init): Ditto.
15768 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15769 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15770 Added code to allocate, initialize or free expanded_lr_out.
15771 (df_rd_bb_local_compute_process_def): Restructured to make
15772 more understandable.
15773 (df_rd_confluence_n): Add code to do nothing with fake edges and
15774 code to no apply invalidate_by_call sets if the sets are being trimmed.
15775 (df_lr_local_finalize): Renamed to df_lr_finalize.
15776 (df_live_local_finalize): Renamed to df_live_finalize.
15778 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
15781 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
15782 deciding whether to use reciprocal instructions.
15784 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
15786 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
15787 dwarf2out_note_section_used if cold_text_section is NULL.
15789 2008-01-19 Jakub Jelinek <jakub@redhat.com>
15791 PR gcov-profile/34610
15792 * tree-cfg.c (make_edges): Mark both outgoing edges from
15793 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
15794 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
15795 from OMP_FOR and OMP_CONTINUE outgoing edges.
15797 * tree-profile.c (tree_profiling): Return early if
15798 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
15800 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
15801 from cfun to child_cfun.
15802 * function.h (struct function): Add after_tree_profile bit.
15804 2008-01-19 Anatoly Sokolov <aesok@post.ru>
15806 * config/avr/avr.S (_exit): Disable interrupt.
15808 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
15809 Steven Bosscher <stevenb.gcc@gmail.com>
15811 PR rtl-optimization/26854
15812 PR rtl-optimization/34400
15813 * df-problems.c (df_live_scratch): New scratch bitmap.
15814 (df_live_alloc): Allocate df_live_scratch when doing df_live.
15815 (df_live_reset): Clear the proper bitmaps.
15816 (df_live_bb_local_compute): Only process the artificial defs once
15817 since the order is not important.
15818 (df_live_init): Init the df_live sets only with the variables
15819 found live by df_lr.
15820 (df_live_transfer_function): Use the df_lr sets to prune the
15821 df_live sets as they are being computed.
15822 (df_live_free): Free df_live_scratch.
15824 2008-01-18 Ian Lance Taylor <iant@google.com>
15826 * common.opt: Add fmerge-debug-strings.
15827 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
15828 flag_merge_debug_strings rather than flag_merge_constants.
15829 * doc/invoke.texi (Option Summary): Mention
15830 -fmerge-debug-strings.
15831 (Debugging Options): Document -fmerge-debug-strings.
15833 2008-01-18 Ian Lance Taylor <iant@google.com>
15836 * tree.h (DECL_IS_OPERATOR_NEW): Define.
15837 (struct tree_function_decl): Add new field operator_new_flag.
15838 * tree-inline.c (expand_call_inline): When inlining a call to
15839 operator new, force the return value to go into a variable, and
15840 set DECL_NO_TBAA_P on that variable.
15841 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
15843 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
15846 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
15847 DWARF2_DEBUGGING_INFO.
15848 (dwarf2out_note_section_used): Ditto. Add prototype.
15849 (have_multiple_function_sections, text_section_used,
15850 cold_text_section_used, *cold_text_sections): Move declarations
15853 2008-01-17 Bob Wilson <bob.wilson@acm.org>
15855 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
15856 field and add signal_ra.
15857 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
15858 assignments to frame state pc. Move end of stack check after
15859 MD_FALLBACK_FRAME_STATE_FOR.
15860 (uw_update_context_1): Use frame state signal_regs if set, instead
15861 of checking signal_frame flag.
15862 (uw_update_context): Use frame state signal_ra if set.
15863 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
15864 * config/xtensa/linux-unwind.h: New file.
15866 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
15868 * modulo-sched.c (get_sched_window): Fix comment typo.
15870 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
15872 PR tree-optimization/34648
15873 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
15875 2008-01-17 Anatoly Sokolov <aesok@post.ru>
15877 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
15878 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
15880 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
15882 PR rtl-optimization/34400
15883 * df-core.c (df_worklist_dataflow_overeager,
15884 df_worklist_dataflow_doublequeue): New functions.
15885 (df_worklist_dataflow): Two different worklist solvers.
15886 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
15889 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15892 * doc/invoke.texi: Document the dependence on pthread for fopenmp
15893 and ftree-parallelize-loops.
15895 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
15897 PR rtl-optimization/34826
15898 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
15900 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
15902 * global.c (find_reg): Mark the eh regs as used if necessary.
15903 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
15904 * ra.h (struct allocno): no_eh_reg field added. Changed
15905 no_stack_reg type to bitfield.
15907 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
15909 * tree.c (substitute_in_expr): Add missing 'break'.
15911 2008-01-17 Richard Guenther <rguenther@suse.de>
15913 PR tree-optimization/34825
15914 * tree-ssa-math-opts.c (is_division_by): Do not recognize
15915 x / x as division to handle.
15917 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15919 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
15920 "-pthread" is specified.
15921 * pa-hpux11.h (LIB_SPEC): Likewise.
15923 2008-01-16 Janis Johnson <janis187@us.ibm.com>
15924 Peter Bergner <bergner@vnet.ibm.com>
15926 PR rtl-optimization/33796
15927 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
15929 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15931 PR libgfortran/34699
15932 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
15934 * pa-hpux10.h (LINK_SPEC): Likewise.
15935 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
15937 2008-01-16 Richard Guenther <rguenther@suse.de>
15939 PR middle-end/32628
15940 * fold-const.c (fold_convert_const_int_from_int): Do not
15941 set overflow if that occured only because of a sign extension
15942 change when converting from/to a sizetype with the same
15943 precision and signedness.
15945 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
15948 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
15949 location address to the correct place. Update copyright year.
15951 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15953 * lambda-code.c (lambda_transform_legal_p): Handle the case of
15954 no dependences in the dependence_relations vector.
15956 2008-01-16 Jan Hubicka <jh@suse.cz>
15958 PR rtl-optimization/31396
15959 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
15960 * cfg.c (dump_reg_info): Print it.
15961 * regs.h (struct reg_info_t): add freq_calls_crossed.
15962 (REG_FREQ_CALLS_CROSSED): New macro.
15963 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
15964 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
15965 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
15966 regmove_optimize): Update call crossed frequencies.
15967 * local-alloc.c (struct qty): Add freq_calls_crossed.
15968 (alloc_qty): Copute freq_calls_crossed.
15969 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
15970 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
15971 * ra.h (struct allocno): Add freq_calls_crossed.
15973 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15975 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
15976 libgomp when compiling with ftree-parallelize-loops.
15977 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
15979 2008-01-16 Richard Guenther <rguenther@suse.de>
15981 PR tree-optimization/34769
15982 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
15983 * tree.c (int_cst_value): Instead make this function more
15984 permissive in what it accepts as valid input. Document this
15985 function always sign-extends the value.
15987 2008-01-16 Jakub Jelinek <jakub@redhat.com>
15988 Richard Guenther <rguenther@suse.de>
15991 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
15992 (gimple_fold_indirect_ref_rhs): ... this.
15993 (gimple_fold_indirect_ref): New function with foldings
15994 that preserve lvalueness.
15995 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
15996 * tree-flow.h (gimple_fold_indirect_ref): Declare.
15997 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
15998 to fold an INDIRECT_REF, fall back to the old use of
15999 fold_indirect_ref_1.
16001 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16003 * tree-data-ref.c (subscript_dependence_tester_1): Call
16004 free_conflict_function.
16005 (compute_self_dependence): Same.
16007 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
16010 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16011 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
16013 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16014 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16015 for DWARF2_UNWIND_INFO targets.
16017 2008-01-16 Richard Guenther <rguenther@suse.de>
16020 * c-typeck.c (common_pointer_type): Do not merge inconsistent
16021 type qualifiers for function types.
16023 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
16025 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16026 loop_iterator li from previous commit.
16028 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
16030 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16032 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
16034 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16035 (parallelize_loops): Don't parallelize irreducible components.
16037 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16040 * c-opts (c_common_post_options): Do not enable CPP
16041 flag_pedantic_errors by default.
16043 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
16045 PR rtl-optimization/31944
16046 * cse.c (remove_pseudo_from_table): New function.
16047 (merge_equiv_classes): Use above function to remove pseudo-registers.
16048 (invalidate): Likewise.
16050 2008-01-13 Richard Guenther <rguenther@suse.de>
16052 PR middle-end/34601
16053 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16054 instead of TYPE_MODE to deal with calls from expand_one_error_var.
16056 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
16058 * gcse.c (cprop_jump): Call validate_unshare_change instead of
16059 validate_change to unshare the source of the PC set.
16061 2008-01-12 Jan Hubicka <jh@suse.cz>
16063 PR middle-end/32135
16064 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16065 references above array bounds. This might trigger bounds checks for
16066 pointers to arrays.
16068 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
16070 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16071 new_replaceable_dependencies.
16073 2008-01-12 Doug Kwan <dougkwan@google.com>
16075 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16076 instead of OPT_Wreturn_type in warning due to ignored return type
16078 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16079 options included in -Wextra.
16080 * c.opt: New option -Wignored_qualifiers.
16081 * doc/invoke.texi (Warning Options, -Wextra): Add new option
16082 -Wignore_qualifiers.
16083 (-Wignored-qualifiers): Document.
16084 (-Wreturn-type): Remove description of functionality now handled
16085 by -Wignored-qualifiers.
16087 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
16090 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
16091 NOP_EXPR if it is between integral types with the same precision.
16093 2008-01-12 Jan Hubicka <jh@suse.cz>
16096 * invoke.texi (max-inline-recursive-depth): Fix default value.
16098 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
16100 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
16103 2008-01-11 Bob Wilson <bob.wilson@acm.org>
16105 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
16107 2008-01-11 James E. Wilson <wilson@specifix.com>
16110 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
16112 2008-01-11 Anatoly Sokolov <aesok@post.ru>
16114 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
16115 save/restore frame pointer register and don't use 'call-prologues'
16116 optimization in function with "OS_task" attribute.
16118 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
16120 PR middle-end/31309
16121 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
16122 when copying to memory.
16124 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
16126 PR rtl-optimization/30905
16127 * cfgcleanup.c: Include dce.h
16128 (crossjumps_occured): New global variable.
16129 (try_crossjump_bb): Exit loop after finding a fallthru edge.
16130 If something changed, set crossjumps_occured to true.
16131 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16132 Don't add/remove fake edges to exit here...
16133 (cleanup_cfg): ...but do it here, when crossjumping.
16134 Run a fast DCE when successful crossjumps occured in the latest
16135 iteration of try_optimize_cfg.
16137 2008-01-11 Richard Guenther <rguenther@suse.de>
16139 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16140 (struct vn_unary_op_s): Likewise.
16141 (vn_reference_insert): Free old reference on hash collision.
16143 2008-01-10 Raksit Ashok <raksit@google.com>
16145 PR rtl-optimization/27971
16146 * combine.c (find_split_point): Split PLUS expressions which are
16147 inside a MEM rtx, and whose first operand is complex.
16149 2008-01-10 DJ Delorie <dj@redhat.com>
16151 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
16152 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
16153 (m32c_hard_regno_ok): Call the underlying function.
16155 2008-01-10 Richard Guenther <rguenther@suse.de>
16157 PR middle-end/34683
16158 * tree-cfg.c (tree_merge_blocks): Do not go through the
16159 full-blown folding and stmt updating path if we just deal
16160 with virtual operands.
16161 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
16162 test for abnormal SSA_NAMEs.
16164 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
16166 PR middle-end/34641
16167 * reload.c (push_reload): Add assertions. All constants from
16168 reg_equiv_constant should have been used for replacing the respective
16170 (find_reloads_address): Invoke find_reloads_address_part for
16171 constant taken from the reg_equiv_constant array.
16173 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
16175 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16176 field (valnum) the first in the struct. Replace bools with
16179 2008-01-10 Richard Guenther <rguenther@suse.de>
16181 PR tree-optimization/34651
16182 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
16183 types and ordering for masking and converting.
16185 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
16187 PR tree-optimization/34017
16188 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16189 also for PHI_NODE expressions.
16191 2008-01-09 Jan Hubicka <jh@suse.cz>
16193 PR tree-optimization/34708
16194 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16195 based on number of case labels.
16196 (init_inline_once): Remove switch_cost.
16197 * tree-inline.h (eni_weights_d): Remove switch_cost.
16199 2008-01-09 Richard Guenther <rguenther@suse.de>
16200 Andrew Pinski <andrew_pinski@playstation.sony.com>
16202 PR middle-end/30132
16203 * gimplify.c (gimplify_cond_expr): Do not create an addressable
16204 temporary if an rvalue is ok or an lvalue is not required.
16206 2008-01-09 Richard Guenther <rguenther@suse.de>
16208 PR middle-end/34458
16209 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16210 adjust return type.
16212 2008-01-09 Richard Guenther <rguenther@suse.de>
16214 PR middle-end/34679
16215 * tree.c (host_integerp): Check for sizetype only if the
16216 type is an integer type.
16218 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
16221 * opts.c (decode_options): Disable inlining of functions called
16222 once if not in unit-at-a-time mode.
16224 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
16226 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16228 2008-01-08 Richard Guenther <rguenther@suse.de>
16230 PR middle-end/31863
16231 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16232 out early if the result will be unused.
16234 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16239 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16240 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16243 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
16245 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16246 for vectorization tuned.
16248 2008-01-08 Richard Guenther <rguenther@suse.de>
16250 PR tree-optimization/34683
16251 * tree-ssa-operands.c (operand_build_cmp): Export.
16252 * tree-ssa-operands.h (operand_build_cmp): Declare.
16253 * tree-vn.c (vuses_compare): Remove.
16254 (sort_vuses): Use operand_build_cmp.
16255 (sort_vuses_heap): Likewise.
16256 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16257 to re-use old VEC if available. Do not sort already sorted VUSEs.
16258 (vdefs_to_vec): Do not sort already sorted VDEFs.
16260 2008-01-08 Jakub Jelinek <jakub@redhat.com>
16262 PR middle-end/34694
16263 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16265 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16268 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16269 limitations of reciprocal sequences on x86 targets.
16271 2008-01-08 Richard Guenther <rguenther@suse.de>
16273 PR tree-optimization/34683
16274 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16276 2008-01-07 Jakub Jelinek <jakub@redhat.com>
16279 * config/darwin.c (darwin_mergeable_string_section): Don't use
16280 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16282 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
16285 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16286 negxf2. Macroize expander using X87MODEF mode iterator. Change
16287 predicates of op0 and op1 to register_operand.
16288 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
16289 expander using X87MODEF mode iterator. Change predicates of
16290 op0 and op1 to register_operand.
16291 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16292 corresponding patterns and macroize using MODEF macro. Change
16293 predicates of op0 and op1 to register_operand and remove
16294 "m" constraint. Disparage "r" alternative with "!".
16295 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16296 macroize using X87MODEF macro. Change predicates of op0 and op1
16297 to register_operand and remove "m" constraint. Disparage "r"
16298 alternative with "!".
16299 (absneg splitter with memory operands): Remove.
16300 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16301 patterns and macroize using X87MODEF mode iterator.
16302 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16303 Change predicate of op1 to register_operand.
16304 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16305 for memory operands.
16307 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
16309 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16311 2008-01-07 Richard Guenther <rguenther@suse.de>
16313 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16316 2008-01-07 Richard Guenther <rguenther@suse.de>
16318 PR tree-optimization/34683
16319 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16320 VOPs of the needed size to save memory. Use VEC_quick_push
16321 to save compile-time.
16322 (vdefs_to_vec): Likewise.
16324 2008-01-07 Sa Liu <saliu@de.ibm.com>
16326 * config/spu/spu.md (divdf3): Genetate inline code for double
16327 division. The implementation doesn't handle INF or NAN, therefore it
16328 only applies when -ffinite-math-only is given.
16330 2008-01-06 Paolo Carlini <pcarlini@suse.de>
16333 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16334 * doc/cpp.texi ([Common Predefined Macros]): Document.
16336 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
16338 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16339 order to use commutative addition instead of subtraction.
16341 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
16342 Mircea Namolaru <namolaru@il.ibm.com>
16343 Vladimir Yanovsky <yanov@il.ibm.com>
16344 Revital Eres <eres@il.ibm.com>
16346 PR tree-optimization/34263
16347 * tree-outof-ssa.c (process_single_block_loop_latch,
16348 contains_tree_r): New functions.
16349 (analyze_edges_for_bb): Call process_single_block_loop_latch
16350 function to empty single-basic-block latch block if possible.
16352 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16354 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16356 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16358 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
16360 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16362 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
16364 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16366 2008-01-05 Jakub Jelinek <jakub@redhat.com>
16368 PR tree-optimization/34618
16369 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16372 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16375 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16376 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
16377 Update copyright year.
16379 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16380 Update copyright year.
16381 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16384 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
16386 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16387 edge does not point to current bb before changing need_assert.
16389 2008-01-04 Richard Guenther <rguenther@suse.de>
16391 PR middle-end/34029
16392 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16393 for verifying purposes if they are is_gimple_min_invariant.
16395 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
16397 PR tree-optimization/34448
16398 PR tree-optimization/34465
16399 * gimplify.c (gimplify_init_constructor): Add new parameter
16400 notify_temp_creation. Use it.
16401 (gimplify_modify_expr_rhs): Take volatiles into account when
16402 optimizing constructors.
16403 Do not optimize constructors if gimplify_init_constructor will dump to
16405 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16406 * gcc.c-torture/compile/pr34448.c: New.
16408 2008-01-04 Jakub Jelinek <jakub@redhat.com>
16410 PR gcov-profile/34609
16411 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16412 return_slot if result is TREE_ADDRESSABLE.
16414 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
16416 * config/mips/mips.md (sqrt_condition): Tweak comment.
16417 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
16419 2008-01-03 Tom Tromey <tromey@redhat.com>
16422 * c-common.c (c_type_hash): Handle VLAs.
16424 2008-01-03 Jan Hubicka <jh@suse.cz>
16426 PR tree-optimization/31081
16427 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
16428 0 when inlining and not inlining to first basic block.
16429 (remap_decl): When var is initialized to 0, don't set default_def.
16430 (expand_call_inline): Set entry_bb.
16431 * tree-inline.h (copy_body_data): Add entry_bb.
16433 2008-01-03 Jakub Jelinek <jakub@redhat.com>
16436 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
16439 PR tree-optimization/29484
16440 * tree-inline.c (inline_forbidden_p_2): New function.
16441 (inline_forbidden_p): Disallow inlining if some static var
16442 has an address of a local LABEL_DECL in its initializer.
16443 * doc/extend.texi (Labels as Values): Document &&foo behaviour
16446 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
16448 PR tree-optimization/34635
16449 * tree-data-ref.c (add_other_self_distances): Make sure that the
16450 evolution step is constant.
16452 2008-01-03 Jakub Jelinek <jakub@redhat.com>
16454 PR middle-end/34608
16455 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
16457 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
16459 * tree-sra.c (scalarize_init): Insert the generate_element_init
16460 statements after the generate_element_zero statements.
16462 2008-01-02 Richard Guenther <rguenther@suse.de>
16464 PR middle-end/34093
16465 PR middle-end/31976
16466 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
16467 for very large number of operands instead of ICEing.
16469 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
16472 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
16473 while stack probing.
16475 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
16477 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
16480 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
16482 PR libmudflap/26442
16483 * tree-mudflap.c (mx_register_decls): Guard warning by
16484 !DECL_ARTIFICIAL check.
16486 2008-01-01 Jakub Jelinek <jakub@redhat.com>
16488 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
16489 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
16490 sse5_perm<mode>): Fix constraints.