2011-03-27 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blobd8bf12e4d349c9d8bf92359b331883fc7d782ba9
1 2011-03-27  Vladimir Makarov  <vmakarov@redhat.com>
3         PR bootstrap/48307
4         Revert the previous patch.
6 2011-03-27  Vladimir Makarov  <vmakarov@redhat.com>
8         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9         after regstat_init_n_sets_and_refs.
11         * ira.c: Add more comments at the top.
12         (setup_stack_reg_pressure_class, setup_pressure_classes):
13         Add comments how we compute the register pressure classes.
14         (setup_allocno_and_important_classes): Add more comments.
15         (setup_class_translate_array, reorder_important_classes)
16         (setup_reg_class_relations): Add comments.
18         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
19         start of the file.
21         * ira-color.c: Add 2011 to the Copyright line.
22         (assign_hard_reg):  Add more comments.
23         (improve_allocation): Ditto.
25         * ira-costs.c: Add 2011 to the Copyright line.
26         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
27         comments.
28         (setup_regno_cost_classes_by_mode): Ditto.
30         Initial patches from ira-improv branch:
32         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
34         * ira-build.c: (ira_create_object): Remove initialization of
35         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
36         (ira_create_allocno): Remove initialization of
37         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
38         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
39         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
40         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
41         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
42         Initialize ALLOCNO_ADD_DATA.
43         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
44         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
45         ALLOCNO_REG.
46         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
47         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
49         * ira.c (ira_reallocate): Remove.
50         (setup_pressure_classes): Call
51         ira_init_register_move_cost_if_necessary.  Use
52         ira_register_move_cost instead of ira_get_register_move_cost.
53         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
54         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
56         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
57         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
58         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
59         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
60         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
61         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
62         Fix formatting.
63         (object_hard_regs_t, object_hard_regs_node_t): Move from
64         ira-int.h.
65         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
66         (struct allocno_color_data): New.
67         (allocno_color_data_t): New typedef.
68         (allocno_color_data): New definition.
69         (ALLOCNO_COLOR_DATA): New macro.
70         (struct object_color_data): New.
71         (object_color_data_t): New typedef.
72         (object_color_data): New definition.
73         (OBJECT_COLOR_DATA): New macro.
74         (update_copy_costs, calculate_allocno_spill_cost): Call
75         ira_init_register_move_cost_if_necessary.  Use
76         ira_register_move_cost instead of ira_get_register_move_cost.
77         (move_spill_restore, update_curr_costs): Ditto.
78         (allocno_spill_priority): Make it inline.
79         (color_pass): Allocate and free allocno_color_dat and
80         object_color_data.
81         (struct coalesce_data, coalesce_data_t): New.
82         (allocno_coalesce_data): New definition.
83         (ALLOCNO_COALESCE_DATA): New macro.
84         (merge_allocnos, coalesced_allocno_conflict_p): Use
85         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
86         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
87         (coalesce_allocnos): Ditto.
88         (setup_coalesced_allocno_costs_and_nums): Ditto.
89         (collect_spilled_coalesced_allocnos): Ditto.
90         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
91         (setup_slot_coalesced_allocno_live_ranges): Ditto.
92         (coalesce_spill_slots): Ditto.
93         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
94         free allocno_coalesce_data.
96         * ira-conflicts.c: Fix formatting.
97         (process_regs_for_copy): Call
98         ira_init_register_move_cost_if_necessary.  Use
99         ira_register_move_cost instead of ira_get_register_move_cost.
100         (build_object_conflicts): Optimize.
102         * ira-costs.c (record_reg_classes): Optimize.  Call
103         ira_init_register_move_cost_if_necessary.  Use
104         ira_register_move_cost, ira_may_move_in_cost, and
105         ira_may_move_out_cost instead of ira_get_register_move_cost and
106         ira_get_may_move_cost.
107         (record_address_regs): Ditto.
108         (scan_one_insn): Optimize.
109         (find_costs_and_classes): Optimize.
110         (process_bb_node_for_hard_reg_moves): Call
111         ira_init_register_move_cost_if_necessary.  Use
112         ira_register_move_cost instead of ira_get_register_move_cost.
114         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
115         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
116         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
117         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
118         definitions.
119         (ira_initiate_emit_data, ira_finish_emit_data)
120         (create_new_allocno): New functions.
121         (modify_move_list): Call create_new_alloc instead of
122         ira_create_allocno.
123         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
124         Use ira_register_move_cost instead of ira_get_register_move_cost.
126         * ira-int.h: Fix some comments.
127         (object_hard_regs_t, object_hard_regs_node_t): Move
128         to ira-color.c.
129         (struct object_hard_regs, struct object_hard_regs_node):
130         Ditto.
131         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
132         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
133         add_data.
134         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
135         bitfield after mode.  Make hard_regno a short int.  Make
136         hard_regno short.  Remove first_coalesced_allocno and
137         next_coalesced_allocno.  Move mem_optimized_dest_p,
138         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
139         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
140         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
141         temp, colorable_p.  Add new member add_data.
142         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
143         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
144         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
145         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
146         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
147         (ALLOCNO_ADD_DATA): New macro.
148         (ira_emit_data_t): New typedef.
149         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
150         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
151         from struct ira_allocno.
152         (ALLOCNO_EMIT_DATA): New macro.
153         (ira_allocno_emit_data, allocno_emit_reg): New.
154         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
155         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM):
156         Remove.
157         (OBJECT_ADD_DATA): New macro.
158         (ira_reallocate): Remove.
159         (ira_initiate_emit_data, ira_finish_emit_data): New.
160         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
161         (ira_init_register_move_cost_if_necessary): New.
162         (ira_object_conflict_iter_next): Merge into
163         ira_object_conflict_iter_cond.
164         (FOR_EACH_OBJECT_CONFLICT): Don't use
165         ira_object_conflict_iter_next.
167         * ira-live.c: (process_single_reg_class_operands): Call
168         ira_init_register_move_cost_if_necessary.  Use
169         ira_register_move_cost instead of ira_get_register_move_cost.
171         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
173         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
175         * ira-costs.c: Fix formatting.
176         (cost_classes, cost_classes_num): Remove.
177         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
178         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
179         (cost_classes_del, cost_classes_htab): New.
180         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
181         (initiate_regno_cost_classes, setup_cost_classes): New.
182         (setup_regno_cost_classes_by_aclass): New.
183         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes):
184         New.
185         (record_reg_classes): Use regno_cost_classes instead of
186         cost_classes.  Move checking opposite operand up.
187         (record_address_regs): Use regno_cost_classes
188         instead of cost_classes.
189         (scan_one_insn): Ditto.  Use always general register.
190         (print_allocno_costs): Use regno_cost_classes instead of
191         cost_classes.
192         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
193         (find_costs_and_classes): Set up cost classes for each registers.
194         Use also their mode for this.  Use regno_cost_classes instead of
195         cost_classes.
196         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
197         cost_classes.
198         (free_ira_costs, ira_init_costs): Don't use cost_classes.
199         (ira_costs, ira_set_pseudo_classes): Call
200         initiate_regno_cost_classes and finish_regno_cost_classes.
202         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
204         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
206         * target.def (ira_cover_classes): Remove.
208         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and
209         IRA_COVER_CLASSES.
211         * doc/tm.texi.in: Ditto.
213         * ira-conflicts.c: Remove mentioning cover classes from the file.
214         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
215         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix
216         formatting.
218         * targhooks.c (default_ira_cover_classes): Remove.
220         * targhooks.h (default_ira_cover_classes): Ditto.
222         * haifa-sched.c: Remove mentioning cover classes from the file.
223         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
224         ira_pressure_classes and ira_pressure_classes_num instead of
225         ira_reg_class_cover_size and ira_reg_class_cover.  Use
226         sched_regno_pressure_class instead of sched_regno_cover_class.
227         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
228         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
230         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
231         classes from the file.
232         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
233         (struct object_hard_regs, struct object_hard_regs_node): New.
234         (struct ira_object): New members profitable_hard_regs,
235         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
236         (struct ira_allocno): Rename cover_class to aclass.  Rename
237         cover_class_cost and updated_cover_class_cost to class_cost and
238         updated_class_cost.  Remove splay_removed_p and
239         left_conflict_size.  Add new members colorable_p.
240         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
241         (ALLOCNO_COLORABLE_P): New macro.
242         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
243         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
244         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
245         (OBJECT_...): Rename parameter C to O.
246         (OBJECT_PROFITABLE_HARD_REGS): New macro.
247         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
248         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
249         (struct target_ira_int): New members x_ira_max_memory_move_cost,
250         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
251         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
252         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
253         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
254         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
255         x_ira_reg_class_subunion.
256         (ira_max_memory_move_cost, ira_max_register_move_cost)
257         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
258         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
259         (ira_important_class_nums, ira_reg_class_superunion): New macros.
260         (prohibited_class_mode_regs): Rename to
261         ira_prohibited_class_mode_regs.
262         (ira_reg_class_union): Rename to ira_reg_class_subunion.
263         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
264         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
265         (ira_tune_allocno_costs_and_cover_classes): Rename to
266         ira_tune_allocno_costs.
267         (ira_debug_hard_regs_forest): New.
268         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
269         (ira_object_conflict_iter_next): Fix comments.
270         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New
271         functions.
272         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
273         cover_class to aclass.
274         (ira_allocate_and_accumulate_costs): Ditto.
275         (ira_allocate_and_set_or_copy_costs): Ditto.
277         * opts.c (decode_options): Remove ira_cover_class check.
279         * ira-color.c: Remove mentioning cover classes from the file.  Use
280         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
281         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
282         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
283         (splay-tree.h): Remove include.
284         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
285         before copy_freq_compare_func.
286         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
287         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
288         New definitions.
289         (hard_regs_roots, hard_regs_node_vec): Ditto.
290         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
291         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
292         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
293         (create_new_object_hard_regs_node): Ditto.
294         (add_new_object_hard_regs_node_to_forest): Ditto.
295         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover):
296         Ditto.
297         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
298         Ditto.
299         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
300         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
301         (remove_unused_object_hard_regs_nodes): Ditto.
302         (enumerate_object_hard_regs_nodes): Ditto.
303         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
304         (object_hard_regs_subnode_t): Ditto.
305         (struct object_hard_regs_subnode): Ditto.
306         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
307         (setup_object_hard_regs_subnode_index): Ditto.
308         (get_object_hard_regs_subnodes_num): Ditto.
309         (form_object_hard_regs_nodes_forest): Ditto.
310         (finish_object_hard_regs_nodes_tree): Ditto.
311         (finish_object_hard_regs_nodes_forest): Ditto.
312         (allocnos_have_intersected_live_ranges_p): Rename to
313         allocnos_conflict_by_live_ranges_p.  Move before
314         copy_freq_compare_func.
315         (pseudos_have_intersected_live_ranges_p): Rename to
316         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
317         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
318         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
319         (update_copy_costs): Remove assert.  Skip cost update if the hard
320         reg does not belong the class.
321         (assign_hard_reg): Process only profitable hard regs.
322         (uncolorable_allocnos_num): Make it scalar.
323         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
324         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
325         and ira_reg_class_max_nregs.
326         (bucket_allocno_compare_func): Check frequency first.
327         (sort_bucket): Add compare function as a parameter.
328         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
329         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
330         (push_allocno_to_stack): Rewrite for checking new allocno
331         colorability.
332         (remove_allocno_from_bucket_and_push): Print cost too.  Remove
333         assert.
334         (push_only_colorable): Pass new parameter to sort_bucket.
335         (push_allocno_to_spill): Remove.
336         (allocno_spill_priority_compare): Make it inline and rewrite.
337         (splay_tree_allocate, splay_tree_free): Remove.
338         (allocno_spill_sort_compare): New function.
339         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
340         build and use splay tree.  Choose first allocno in uncolorable
341         allocno bucket to spill.  Remove setting spill cost.
342         (all_conflicting_hard_regs): Remove.
343         (setup_allocno_available_regs_num): Check only profitable hard
344         regs.  Print info about hard regs nodes.
345         (setup_allocno_left_conflicts_size): Remove.
346         (put_allocno_into_bucket): Don't call
347         setup_allocno_left_conflicts_size.  Use
348         setup_left_conflict_sizes_p.
349         (improve_allocation): New.
350         (color_allocnos): Call setup_profitable_hard_regs,
351         form_object_hard_regs_nodes_forest, improve_allocation,
352         finish_object_hard_regs_nodes_forest.  Setup spill cost.
353         (print_loop_title): Use pressure classes.
354         (color_allocnso): Ditto.
355         (do_coloring): Remove allocation and freeing splay_tree_node_pool
356         and allocnos_for_spilling.
357         (ira_sort_regnos_for_alter_reg): Don't setup members
358         {first,next}_coalesced_allocno.
359         (color): Remove allocating and freeing removed_splay_allocno_vec.
360         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
361         prohibited_class_mode_regs.
363         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
364         formatting.
365         (update_allocno_pressure_excess_length): Use pressure classes.
366         (inc_register_pressure, dec_register_pressure): Check for pressure
367         class.
368         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
369         pressure class.  Use ira_reg_class_nregs instead of
370         ira_reg_class_max_nregs.
371         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
372         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
373         (single_reg_class): Use ira_reg_class_nregs instead of
374         ira_reg_class_max_nregs.
375         (process_bb_node_lives): Use pressure classes.
377         * ira-emit.c: Remove mentioning cover classes from the file.  Use
378         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
379         (change_loop): Use pressure classes.
380         (modify_move_list): Call ira_set_allocno_class instead of
381         ira_set_allocno_cover_class.
383         * ira-build.c: Remove mentioning cover classes from the file.  Use
384         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
385         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
386         ALLOCNO_UPDATED_CLASS_COST instead of
387         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
388         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
389         (ira_create_allocno): Remove initialization of
390         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
391         ALLOCNO_COLORABLE_P.
392         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
393         Update conflict regs for the objects.
394         (create_cap_allocno): Remove assert.  Don't propagate
395         ALLOCNO_AVAILABLE_REGS_NUM.
396         (ira_free_allocno_costs): New function.
397         (finish_allocno): Change a part of code into call of
398         ira_free_allocno_costs.
399         (low_pressure_loop_node_p): Use pressure classes.
400         (object_range_compare_func): Don't compare classes.
401         (setup_min_max_conflict_allocno_ids): Ditto.
403         * loop-invariant.c: Remove mentioning cover classes from the file.
404         Use ira_pressure_classes and ira_pressure_classes_num instead of
405         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
406         (get_cover_class_and_nregs): Rename to
407         get_cover_pressure_and_nregs.  Use ira_reg_class_max_nregs instead
408         of ira_reg_class_nregs.  Use reg_allocno_class instead of
409         reg_cover_class.
410         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
411         STACK_REG_COVER_CLASS.
412         (get_regno_cover_class): Rename to get_regno_pressure_class.
413         (move_loop_invariants): Initialize and finalize regstat.
415         * ira.c: Remove mentioning cover classes from the file.  Add
416         comments about coloring without cover classes.  Use ALLOCNO_CLASS
417         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
418         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
419         setup_class_subset_and_memory_move_costs.
420         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
421         (setup_cover_and_important_classes): Rename to
422         setup_allocno_and_important_classes.
423         (setup_class_translate_array): New.
424         (setup_class_translate): Call it for allocno and pressure classes.
425         (cover_class_order): Rename to allocno_class_order.
426         (comp_reg_classes_func): Use ira_allocno_class_translate instead
427         of ira_class_translate.
428         (reorder_important_classes): Set up ira_important_class_nums.
429         (setup_reg_class_relations): Set up ira_reg_class_superunion.
430         (print_class_cover): Rename to print_classes.  Add parameter.
431         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
432         Print pressure classes too.
433         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
434         setup_reg_subclasses.
435         (ira_hard_regno_cover_class): Rename to
436         ira_hard_regno_allocno_class.
437         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
438         (setup_prohibited_class_mode_regs): Use
439         ira_prohibited_class_mode_regs instead of
440         prohibited_class_mode_regs.
441         (clarify_prohibited_class_mode_regs): New function.
442         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
443         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
444         (ira_init_once): Initialize them.
445         (free_register_move_costs): Process them.
446         (ira_init): Move calls of find_reg_classes and
447         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
448         Call clarify_prohibited_class_mode_regs.
449         (ira_no_alloc_reg): Remove.
450         (too_high_register_pressure_p): Use pressure classes.
452         * sched-deps.c: Remove mentioning cover classes from the file.
453         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
454         ira_pressure_classes and ira_pressure_classes_num instead of
455         ira_reg_class_cover_size and ira_reg_class_cover.
456         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
457         sched_regno_pressure_class instead of sched_regno_cover_class.
458         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
459         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
461         * ira.h: Add 2010 to Copyright.
462         (ira_no_alloc_reg): Remove external.
463         (struct target_ira): Rename x_ira_hard_regno_cover_class,
464         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
465         x_ira_class_translate to x_ira_hard_regno_allocno_class,
466         x_ira_allocno_classes_num, x_ira_allocno_classes, and
467         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
468         x_ira_pressure_classes, x_ira_pressure_class_translate, and
469         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
470         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
471         x_ira_no_alloc_regs.
472         (ira_hard_regno_cover_class): Rename to
473         ira_hard_regno_allocno_class.
474         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
475         ira_allocno_classes_num and ira_allocno_classes.
476         (ira_class_translate): Rename to ira_allocno_class_translate.
477         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
478         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
479         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
480         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
481         (ira_no_alloc_regs): New.
483         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
484         classes from the file.  Use ALLOCNO_CLASS instead of
485         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
486         ALLOCNO_COVER_CLASS_COST.
487         (regno_cover_class): Rename to regno_aclass.
488         (record_reg_classes): Use ira_reg_class_subunion instead of
489         ira_reg_class_union.
490         (record_address_regs): Check overflow.
491         (scan_one_insn): Ditto.
492         (print_allocno_costs): Print total mem cost fore regional
493         allocation.
494         (print_pseudo_costs): Use REG_N_REFS.
495         (find_costs_and_classes): Use classes intersected with them on the
496         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
497         ira_reg_class_union.  Use ira_allocno_class_translate and
498         regno_aclass instead of ira_class_translate and regno_cover_class.
499         Modify code for finding regno_aclass.  Setup preferred classes for
500         the next pass.
501         (setup_allocno_cover_class_and_costs): Rename to
502         setup_allocno_class_and_costs.  Use regno_aclass instead of
503         regno_cover_class.  Use ira_set_allocno_class instead of
504         ira_set_allocno_cover_class.
505         (init_costs, finish_costs): Use regno_aclass instead of
506         regno_cover_class.
507         (ira_costs): Use setup_allocno_class_and_costs instead of
508         setup_allocno_cover_class_and_costs.
509         (ira_tune_allocno_costs_and_cover_classes): Rename to
510         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
511         by processing objects.  Use ira_reg_class_max_nregs instead of
512         ira_reg_class_nregs.
514         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
516         * sched-int.h: Remove mentioning cover classes from the file.
517         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
519         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
520         classes from the file.
521         (struct reg_pref): Rename coverclass into allocnoclass.
522         (reg_cover_class): Rename to reg_allocno_class.
524         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from
525         dependencies.
527         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
529         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
531         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
533         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
535         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
537         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
539         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
541         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
543         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
545         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
546         (i386_ira_cover_classes): Ditto.
548         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
550         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
552         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
554         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
556         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
558         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
560         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
561         (mips_ira_cover_classes): Ditto.
563         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
565         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
567         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
569         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
571         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
573         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
574         (IRA_COVER_CLASSES_VSX): Ditto.
576         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
577         (rs6000_ira_cover_classes): Ditto.
579         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
581         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
583         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
585         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
587         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
589         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
591         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
593         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
595         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
597         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
599 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
601         PR target/48288
602         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
603         * config/pa/pa.md (iordi3): Use new predicate in expander.
604         (iorsi3): Likewise.
606 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
608         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
609         FUNCTION_VALUE_REGNO_P): Remove macros.
610         * config/mips/mips-protos.h (mips_function_value): Remove.
611         * config/mips/mips.c (mips_function_value): Rename to...
612         (mips_function_value_1): ... this. Make static.  Handle receiving
613         the function type in 'fn_decl_or_type' argument.
614         (mips_function_value, mips_libcall_value,
615         mips_function_value_regno_p): New function.
616         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
617         TARGET_FUNCTION_VALUE_REGNO_P): Define.
619 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
621         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
622         and -mavx256-split-unaligned-store.
623         (ix86_option_override_internal): Split 32-byte AVX unaligned
624         load/store by default.
625         (ix86_avx256_split_vector_move_misalign): New.
626         (ix86_expand_vector_move_misalign): Use it.
628         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
629         -mavx256-split-unaligned-store.
631         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
632         256bit load/store.  Generate unaligned store on misaligned memory
633         operand.
634         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
635         256bit load/store.
636         (*avx_movdqu<avxmodesuffix>): Likewise.
638         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
639         -mavx256-split-unaligned-store.
641 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
643         PR target/38598
644         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
645         Update commentary.
647 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
649         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
650         opno arguments with an expand_operand.  Use create_input_operand.
651         (mips_prepare_builtin_target): Delete.
652         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
653         functions.
654         (mips_expand_builtin_direct): Use create_output_operand and
655         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
656         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
657         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
659 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
661         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
662         function.
663         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
665 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
667         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
668         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
669         basic blocks and call commit_edge_insertions directly.
670         (fixup_abnormal_edges): Move from here to...
671         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
672         on the edges and return whether some have actually been inserted.
673         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
674         compensation code.
676 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
678         PR rtl-optimization/48144
679         * sel-sched-ir.c (merge_history_vect): Factor out from ...
680         (merge_expr_data): ... here.
681         (av_set_intersect): Rename to av_set_code_motion_filter.
682         Update all callers.  Call merge_history_vect when an expression
683         is found in both sets.
684         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
686 2011-03-26  Alan Modra  <amodra@gmail.com>
688         * config/rs6000/predicates.md (word_offset_memref_op): Handle
689         cmodel medium addresses.
690         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
691         64-bit gpr loads and stores.
692         (rs6000_secondary_reload_ppc64): New function.
693         * config/rs6000/rs6000-protos.h: Declare it.
694         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
696 2011-03-26  Alan Modra  <amodra@gmail.com>
698         PR target/47487
699         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
700         GNU Go in traceback table.
702 2011-03-25  Richard Henderson  <rth@redhat.com>
704         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
705         if there are exactly 6 operands.
706         (set_storage_via_setmem): Similarly.
708 2011-03-25  Kai Tietz  <ktietz@redhat.com>
710         * collect2.c (write_c_file_stat): Handle backslash
711         as right-hand directory separator.
712         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
713         checking just for slash.
714         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
715         instead of checking for trailing slash.
716         * gcc.c (record_temp_file): Use filename_cmp instead
717         of strcmp.
718         (do_spec_1): Likewise.
719         (replace_outfile_spec_function): Likewise.
720         (is_directory): Use filename_ncmp instead of strncmp.
721         (print_multilib_info): Likewise.
722         * gcov.c (find_source): Use filename_cmp instead
723         instead of strcmp.
724         (make_gcov_file_name): Fix order of slash/backslash
725         checks.
726         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
727         (add_standard_paths): Likewise.
728         * mips-tfile.c (saber_stop): Handle backslash.
729         * prefix.c (update_path): Use filename_ncmp instead of
730         strncmp.
731         * profile.c (output_location): Use filename_cmp instead
732         of strcmp.
733         * read-md.c (handle_toplevel_file): Handle backslash.
734         * tlink.c (frob_extension):  Likewise.
735         * tree-cfg.c (same_line_p): Use filename_cmp instead of
736         strcmp.
737         * tree-dump.c (dequeue_and_dump): Handle backslash.
738         * tree.c (get_file_function_name): Likewise.
739         * gengtype.c (read_input_list): Likewise.
740         (get_file_realbasename): Likewise.
741         (get_output_file_with_visibility): Use filename_cmp
742         instead of strcmp.
744 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
746         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
747         case to VFPv1.
749 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
751         * fold-const.c (expr_location_or): New function.
752         (fold_truth_not_expr): Call it.
754 2011-03-25  Jeff Law  <law@redhat.com>
756         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
757         va_end.
758         * c-family/c-common.c (def_fn_type): Likewise.
759         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
760         * emit-rtl.c (gen_rtvec): Likewise.
761         * lto/lto-lang.c (def_fn_type): Likewise.
763 2011-03-25  Richard Guenther  <rguenther@suse.de>
765         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
766         also generate copies.
767         (fini_copy_prop): Handle constant values properly.
769 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
771         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
772         mode size instead of bitsize with DWARF2_ADDR_SIZE.
773         (hash_loc_operands, compare_loc_operands): Handle
774         DW_OP_GNU_entry_value.
776 2011-03-25  Kai Tietz  <ktietz@redhat.com>
778         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
779         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
780         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
781         comment and use macro TARGET_64BIT_MS_ABI instead.
782         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
783         and change default behavior for 32-bit MS_ABI.
784         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
785         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
786         32-bit, too.
787         (ix86_cfun_abi): Likewise.
788         (ix86_maybe_switch_abi): Adjust comment.
789         (init_cumulative_args): Check for bit-ness in MS_ABI case.
790         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
791         instead of checking for SYSV_ABI.
792         (ix86_nsaved_sseregs): Likewise.
793         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
794         to 16 bytes.
795         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
796         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
797         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
798         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
799         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
801 2011-03-25  Richard Guenther  <rguenther@suse.de>
803         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
804         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
805         (verify_gimple): Remove.
806         * tree-cfg.c (verify_gimple_call): Merge verification
807         from verify_stmts.
808         (verify_gimple_phi): Merge verification from verify_stmts.
809         (verify_gimple_label): New function.
810         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
811         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
812         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
813         (verify_stmts): Rename to verify_gimple_in_cfg.
814         (verify_gimple_in_cfg): New function.
815         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
816         * tree-ssa.c (verify_ssa): Likewise.
817         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
819 2011-03-25  Richard Guenther  <rguenther@suse.de>
821         * passes.c (init_optimization_passes): Add FRE pass after
822         early SRA.
824 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
825             Andrew Stubbs  <ams@codesourcery.com>
827         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
828         for Cortex-A8.
829         (arm_movdi_vfp_cortexa8): New pattern.
830         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
831         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
832         instructions when tuning for Cortex-A8.  Set attribute "arch".
833         * config/arm/arm.md: Move include arm-tune.md up a bit.
834         (define_attr "arch"): Add "onlya8" and "nota8" values.
835         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
837 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
839         PR bootstrap/48282
840         Revert:
841         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
843         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
844         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
845         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
846         * passes.c (init_optimization_passes): Move
847         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
849 2011-03-25  Kai Tietz  <ktietz@redhat.com>
851         * c-typeck.c (comptypes_internal): Replace target
852         hook call of comp_type_attributes by version in tree.c file.
853         * gimple.c (gimple_types_compatible_p_1): Likewise.
854         * tree-ssa.c (useless_type_conversion_p): Likewise.
855         * tree.c (build_type_attribute_qual_variant): Likewise.
856         (attribute_value_equal): New static helper function.
857         (comp_type_attributes): New function.
858         (merge_attributes): Use attribute_value_equal for comparison.
859         (attribute_list_contained): Likewise.
860         * tree.h (comp_type_attributes): New prototype.
862 2011-03-25  Richard Guenther  <rguenther@suse.de>
864         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
865         of complex types at -O0.
866         (verify_gimple_assign_binary): Likewise.
867         (verify_gimple_assign_ternary): Likewise.
869 2011-03-24  Mark Wielaard  <mjw@redhat.com>
871         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
872         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
874 2011-03-24  Mark Wielaard  <mjw@redhat.com>
876         PR debug/48041
877         * dwarf2out.c (output_abbrev_section): Only write table when
878         abbrev_die_table_in_use > 1.
880 2011-02-24  Richard Henderson  <rth@redhat.com>
882         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
883         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
884         (alpha_expand_unaligned_load_words): Use extql.
885         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
886         (emit_insxl): Handle all modes for consistency.
888 2011-02-24  Richard Henderson  <rth@redhat.com>
890         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
891         (alpha_expand_unaligned_load): Likewise.
892         (alpha_expand_unaligned_store): Likewise.
893         (alpha_expand_unaligned_load_words): Likewise.
894         (alpha_expand_unaligned_store_words): Likewise.
895         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
896         (alpha_split_lock_test_and_set_12): Likewise.
897         (print_operand, alpha_fold_builtin_extxx): Likewise.
898         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
899         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
900         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
901         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
902         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
903         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
904         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
905         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
906         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
907         (extwl, extll, extql): Similarly.
908         (inswh, inslh, insqh): Similarly.
909         (mskbl, mskwl, mskll, mskql): Similarly.
910         (mskwh, msklh, mskqh): Similarly.
912 2011-02-24  Richard Henderson  <rth@redhat.com>
914         * config/alpha/alpha.md (attribute isa): Add er, ner.
915         (attribute enabled): Handle them.
916         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
918 2011-02-24  Richard Henderson  <rth@redhat.com>
920         * config/alpha/alpha.md (attribute isa): Add vms.
921         (attribute enabled): Handle it.
922         (*movsf): Merge *movsf_{nofix,fix,nofp}.
923         (*movdf): Merge *movdf_{nofix,fix,nofp}.
924         (*movtf): Rename from *movtf_internal for consistency.
925         (*movsi): Merge with *movsi_nt_vms.
926         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
927         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
928         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
929         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
931 2011-02-24  Richard Henderson  <rth@redhat.com>
933         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
934         (extendqisi2, extendhisi2): Likewise.
935         (extendqidi2): Simplify BWX/non-BWX expansions.
936         (extendhidi2): Similarly.
938 2011-02-24  Richard Henderson  <rth@redhat.com>
940         * config/alpha/alpha.md (attribute isa): New.
941         (attribute enabled): New.
942         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
943         (zero_extendqisi2, zero_extendqidi2): Similarly.
944         (zero_extendhisi2, zero_extendhidi2): Similarly.
945         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
947 2011-02-24  Richard Henderson  <rth@redhat.com>
949         * config/alpha/predicates.md (input_operand): Revert last change;
950         update comment to mention 32-bit VMS rather than Windows.
952 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
954         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
955         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
956         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
957         * passes.c (init_optimization_passes): Move
958         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
960 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
962         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
964 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
966         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
967         correctly.
969 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
971         PR debug/48204
972         * simplify-rtx.c (simplify_const_unary_operation): Call
973         real_convert when changing mode class with FLOAT_EXTEND.
975 2011-03-24  Nick Clifton  <nickc@redhat.com>
977         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
978         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
979         * config/rx/rx.c (rx_option_override): Set align_jumps,
980         align_loops and align_labels if not set by the user.
981         (rx_align_for_label): New function.
982         (rx_max_skip_for_label): New function.
983         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
984         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
985         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
986         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
987         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
989 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
991         PR rtl-optimization/48263
992         * optabs.c (expand_binop_directly): Reinstate convert_modes code
993         and original commutative_p handling.  Use maybe_gen_insn.
995 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
997         * reload.c (find_reloads_subreg_address): Add address_reloaded
998         parameter and return true there if the full address has been
999         reloaded.
1000         (find_reloads_toplev): Pass address_reloaded flag.
1001         (find_reloads_address_1): Don't use address_reloaded parameter.
1003 2011-03-24  Jeff Law  <law@redhat.com>
1005         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
1006         unused variable "ann".
1007         (remove_unused_locals): Likewise.
1009         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
1010         statement.
1012         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
1013         after it is freed.
1015 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1017         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
1018         for invalid symbolic addresses.
1019         (s390_secondary_reload): Don't use s390_check_symref_alignment for
1020         larl operands.
1022 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
1024         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
1025         the argument in calls to fold_truth_not_expr.
1027 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
1029         * tree.c (record_node_allocation_statistics): New function.
1030         (make_node_stat, copy_node_stat, build_string): Call it.
1031         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
1032         (build1_stat, build_omp_clause): Likewise.
1034 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
1036         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
1037         last commit.
1039 2011-03-24  Richard Guenther  <rguenther@suse.de>
1041         PR tree-optimization/48271
1042         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
1043         blocks that still exist.
1045 2011-03-24  Richard Guenther  <rguenther@suse.de>
1047         PR tree-optimization/48270
1048         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
1049         not free datarefs before ddrs.
1051 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
1053         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
1054         from the address built for a reference with variable offset.
1056 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
1058         PR target/48237
1059         * config/i386/i386.md (*movdf_internal_rex64): Do not split
1060         alternatives that can be handled with movq or movabsq insn.
1061         (*movdf_internal): Disable for !TARGET_64BIT.
1062         (*movdf_internal_nointeger): Ditto.
1063         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
1065 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
1067         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
1068         (FUNCTION_ARG_ADVANCE): Likewise.
1069         * tm.texi.in: Change references to them to hook references.
1070         * tm.texi: Regenerate.
1071         * targhooks.c (default_function_arg): Eliminate check for target macro.
1072         (default_function_incoming_arg): Likewise.
1073         (default_function_arg_advance): Likewise.
1074         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
1075         (function_arg_advance): Likewise.
1076         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
1078 2011-03-24  Richard Guenther  <rguenther@suse.de>
1080         PR middle-end/48269
1081         * tree-object-size.c (addr_object_size): Do not double-account
1082         for MEM_REF offsets.
1084 2011-03-24  Diego Novillo  <dnovillo@google.com>
1086         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
1087         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
1088         (lto_input_data_block): Move from lto-opts.c.  Make extern.
1089         Update all users.
1090         (lto_input_string): Rename from input_string.  Make extern.
1091         Update all users.
1092         * lto-streamer-out.c (lto_output_string_with_length): Rename from
1093         output_string_with_length.
1094         Output 0 to indicate a non-NULL string.  Update all callers to
1095         not emit 0.
1096         (lto_output_string): Rename from output_string.  Make extern.
1097         Update all users.
1098         (lto_output_decl_state_streams): Make extern.
1099         (lto_output_decl_state_refs): Make extern.
1100         * lto-streamer.h (lto_input_string): Declare.
1101         (lto_input_data_block): Declare.
1102         (lto_output_string): Declare.
1103         (lto_output_string_with_length): Declare.
1104         (lto_output_decl_state_streams): Declare.
1105         (lto_output_decl_state_refs): Declare.
1107 2011-03-24  Richard Guenther  <rguenther@suse.de>
1109         PR tree-optimization/46562
1110         * tree.c (build_invariant_address): New function.
1111         * tree.h (build_invariant_address): Declare.
1112         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
1113         a renamed function moved ...
1114         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
1115         Take valueization callback parameter.
1116         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
1117         * gimple-fold.h: New file.
1118         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
1119         (ccp_fold, fold_const_aggregate_ref,
1120         fold_ctor_reference, fold_nonarray_ctor_reference,
1121         fold_array_ctor_reference, fold_string_cst_ctor_reference,
1122         get_base_constructor): Move ...
1123         * gimple-fold.c: ... here.
1124         (gimple_fold_stmt_to_constant_1): New function
1125         split out from ccp_fold.  Take a valueization callback parameter.
1126         Valueize all operands.
1127         (gimple_fold_stmt_to_constant): New wrapper function.
1128         (fold_const_aggregate_ref_1): New function split out from
1129         fold_const_aggregate_ref.  Take a valueization callback parameter.
1130         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
1131         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
1132         invariant POINTER_PLUS_EXPRs to invariant form.
1133         (vn_valueize): New function.
1134         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
1135         * tree-vrp.c (vrp_valueize): New function.
1136         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
1137         to fold statements to constants.
1138         * tree-ssa-pre.c (eliminate): Properly guard propagation of
1139         function declarations.
1140         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
1141         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
1143 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
1145         * config/h8300/predicates.md (jump_address_operand): Fix register
1146         mode check.
1148 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
1150         * doc/invoke.texi (max-stores-to-sink): Document.
1151         * params.h (MAX_STORES_TO_SINK): Define.
1152         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
1153         if either vectorization or if-conversion is disabled.
1154         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
1155         tree-vect-data-refs.c vect_equal_offsets.
1156         (dr_equal_offsets_p): New function.
1157         (find_data_references_in_bb): Remove static.
1158         * tree-data-ref.h (find_data_references_in_bb): Declare.
1159         (dr_equal_offsets_p): Likewise.
1160         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
1161         (vect_drs_dependent_in_basic_block): Update calls to
1162         vect_equal_offsets.
1163         (vect_check_interleaving): Likewise.
1164         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
1165         (cond_if_else_store_replacement): Rename to...
1166         (cond_if_else_store_replacement_1): ... this.  Change arguments and
1167         documentation.
1168         (cond_if_else_store_replacement): New function.
1169         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
1170         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
1172 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
1174         PR target/46934
1175         * config/arm/arm.md (casesi): Use the gen_int_mode() function
1176         to subtract lower bound instead of GEN_INT().
1178 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
1180         PR other/48179
1181         PR other/48221
1182         PR other/48234
1183         * doc/extend.texi (Alignment): Move section to match order in TOC.
1184         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
1185         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
1187 2011-03-23  Jeff Law  <law@redhat.com>
1189         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
1190         before removing the edge.
1192         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
1193         it may have been freed by redirect_branch_edge or
1194         redirect_edge_succ_nodup.
1196 2011-03-23  Richard Guenther  <rguenther@suse.de>
1198         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
1199         (check_va_list_escapes): Likewise.
1200         (check_all_va_list_escapes): Likewise.
1202 2011-03-23  Richard Guenther  <rguenther@suse.de>
1204         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
1205         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
1206         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
1207         (alias.o): Likewise.
1208         (ipa-type-escape.o): Remove.
1209         (ipa-struct-reorg.o): Likewise.
1210         (GTFILES): Remove ipa-struct-reorg.c.
1211         * alias.c: Do not include ipa-type-escape.h.
1212         * tree-ssa-alias.c: Likewise.
1213         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
1214         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
1215         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
1216         and ipa-type-escape passes.
1217         * tree-pass.h (pass_ipa_type_escape): Remove.
1218         (pass_ipa_struct_reorg): Likewise.
1219         * ipa-struct-reorg.h: Remove.
1220         * ipa-struct-reorg.c: Likewise.
1221         * ipa-type-escape.h: Likewise.
1222         * ipa-type-escape.c: Likewise.
1223         * doc/invoke.texi (-fipa-struct-reorg): Remove.
1224         (--param struct-reorg-cold-struct-ratio): Likewise.
1225         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
1226         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
1227         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
1229 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1231         * config/s390/2084.md: Enable all insn reservations also for z9_ec
1232         cpu attribute value.
1233         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
1234         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
1235         * config/s390/s390.c (processor_flags_table): New constant array.
1236         (s390_handle_arch_option): Remove.
1237         (s390_handle_option): Remove s390_handle_arch_option invocations
1238         and OPT_mwarn_framesize_ handling.
1239         (s390_option_override): Remove s390_handle_arch_option invocation.
1240         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
1241         warnings.
1242         * config/s390/s390.md (cpu attribute): Add z9_ec value.
1243         * config/s390/s390.opt (s390_tune, s390_arch)
1244         (march=): Replace s390_arch_option enum and values with
1245         processor_type.  Set variable name to s390_arch.  Set
1246         initialization value.
1247         (mtune=): Replace s390_arch_option with processor_type.  Set
1248         variable name to s390_tune.  Set initialization value.
1250 2011-03-23  Julian Brown  <julian@codesourcery.com>
1252         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
1253         accesses which are not naturally aligned.
1255 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
1257         PR target/47553
1258         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
1260 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
1262         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
1263         parameter from "int" to "enum insn_code".
1264         (expand_operand_type): New enum.
1265         (expand_operand): New structure.
1266         (create_expand_operand): New function.
1267         (create_fixed_operand, create_output_operand): Likewise
1268         (create_input_operand, create_convert_operand_to): Likewise.
1269         (create_convert_operand_from, create_address_operand): Likewise.
1270         (create_integer_operand): Likewise.
1271         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
1272         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
1273         (expand_insn, expand_jump_insn): Likewise.
1274         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
1275         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
1276         (expand_movstr, expand_builtin___clear_cache): Likewise.
1277         (expand_builtin_lock_release): Likewise.
1278         * explow.c (allocate_dynamic_stack_space): Likewise.
1279         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
1280         and use the default handling in that case.
1281         * expmed.c (check_predicate_volatile_ok): Delete.
1282         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
1283         (emit_cstore): Likewise.
1284         * expr.c (emit_block_move_via_movmem): Likewise.
1285         (set_storage_via_setmem, expand_assignment): Likewise.
1286         (emit_storent_insn, try_casesi): Likewise.
1287         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
1288         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
1289         (expand_vec_shift_expr, expand_binop_directly): Likewise.
1290         (expand_twoval_unop, expand_twoval_binop): Likewise.
1291         (expand_unop_direct, emit_indirect_jump): Likewise.
1292         (emit_conditional_move, vector_compare_rtx): Likewise.
1293         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
1294         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
1295         (expand_sync_lock_test_and_set): Likewise.
1296         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
1297         (emit_unop_insn): Likewise.
1298         (expand_copysign_absneg): Change icode to an insn_code.
1299         (create_convert_operand_from_type): New function.
1300         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
1301         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
1302         (expand_insn, expand_jump_insn): Likewise.
1303         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
1304         than const_int_operand for operand 2.
1306 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1308         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
1309         if possible.
1311 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
1313         * emit-rtl.c (emit_pattern_before_noloc): New function.
1314         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
1315         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
1316         (emit_pattern_after_noloc): New function.
1317         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
1318         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
1320 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
1322         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
1323         (__ffsDI2): Likewise.
1325 2011-03-22  Richard Henderson  <rth@redhat.com>
1327         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
1328         of !TARGET_ABI_OPEN_VMS.
1329         (alpha_trampoline_init, alpha_start_function): Likewise.
1330         (alpha_expand_epilogue, alpha_file_start): Likewise.
1331         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
1332         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
1333         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
1334         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
1335         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
1337 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1339         * config/s390/s390-opts.h: New.
1340         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
1341         s390_arch_flags, s390_warn_framesize, s390_stack_size,
1342         s390_stack_guard): Remove.
1343         (s390_handle_arch_option): Return void.  Take enum
1344         s390_arch_option value instead of string and searching array.
1345         (s390_handle_option): Don't assert that global structures are in
1346         use.  Access variables via opts pointer.  Use error_at.  Don't use
1347         sscanf for -mstack-guard= or -mstack-size=.  Update call to
1348         s390_handle_arch_option.
1349         (s390_option_override): Update call to s390_handle_arch_option.
1350         (s390_emit_prologue): Use %d format for s390_stack_size in
1351         diagnostic.  Use %wd for HOST_WIDE_INT.
1352         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
1353         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
1354         * config/s390/s390.opt (config/s390/s390-opts.h): New
1355         HeaderInclude entry.
1356         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
1357         s390_arch_flags, s390_warn_framesize): New Variable entries.
1358         (s390_arch_option): New Enum and EnumValue entries.
1359         (march=): Use Enum instead of Var.
1360         (mstack-guard=, mstack-size=): Use UInteger and Var.
1361         (mtune=): Use Enum.
1363 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1365         * config/score/score.c (score_handle_option): Don't assert that
1366         global structures are in use.  Access target_flags via opts
1367         pointer.  Use value of -march= option to determine target_flags
1368         settings.
1369         * config/score/score.opt (march=): Use Enum.
1370         (score_arch): New Enum and EnumValue entries.
1372 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1374         * config/mep/mep.c (option_mtiny_specified): Remove.
1375         (mep_option_override): Move register handling for -mivc2 from
1376         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
1377         instead of option_mtiny_specified.
1378         (mep_handle_option): Access target_flags via opts pointer.  Don't
1379         assert that global structures are in use.  Defer part of -mivc2
1380         handling and move it to mep_option_override.
1381         * config/mep/mep.opt (IVC2): New Mask entry.
1382         (mivc2): Use Var and Defer instead of Mask.
1384 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1386         * config/v850/v850-opts.h: New.
1387         * config/v850/v850.c (small_memory): Replace with
1388         small_memory_physical_max array.  Make that array static const.
1389         (v850_handle_memory_option): Take integer value of argument.  Take
1390         gcc_options pointer, option text and location.  Return void.
1391         Update for changes to small memory structures.
1392         (v850_handle_option): Access target_flags via opts pointer.  Don't
1393         assert that global structures are in use.  Update calls to
1394         v850_handle_memory_option.
1395         (v850_encode_data_area): Update references to small memory settings.
1396         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
1397         (enum small_memory_type): Move to v850-opts.h.
1398         * config/v850/v850.opt (config/v850/v850-opts.h): New
1399         HeaderInclude entry.
1400         (small_memory_max): New Variable entry.
1401         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
1402         (mtda, mzda): Likewise.
1404 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1406         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
1407         pointer.  Don't assert that global structures are in use.
1409 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1411         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
1412         via opts pointer.  Don't assert that global structures are in use.
1414 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1416         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
1417         (munix=93): Use Var.
1418         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
1419         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
1420         * config/pa/pa-opts.h: New.
1421         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
1422         (pa_handle_option): Don't assert that global structures are in
1423         use.  Access target_flags via opts pointer.  Don't handle
1424         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
1425         OPT_munix_98 here.
1426         (pa_option_override): Handle deferred OPT_mfixed_range_.
1428 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1430         * config/mn10300/mn10300-opts.h: New.
1431         * config/mn10300/mn10300.c (mn10300_processor,
1432         mn10300_tune_string): Remove.
1433         (mn10300_handle_option): Don't assert that global structures are
1434         in use.  Access mn10300_processor via opts pointer.  Don't handle
1435         OPT_mtune_ here.
1436         * config/mn10300/mn10300.h (enum processor_type): Move to
1437         mn10300-opts.h.
1438         (mn10300_processor): Remove.
1439         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
1440         HeaderInclude entry.
1441         (mn10300_processor): New Variable entry.
1442         (mtune=): Use Var.
1444 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1446         * config/microblaze/microblaze.c: Don't include opts.h.
1447         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
1448         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
1449         (mno-clearbss): Use Var and Warn.
1451 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1453         * config/m32r/m32r-opts.h: New.
1454         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
1455         (m32r_handle_option): Don't assert that global structures are in
1456         use.  Access target_flags and m32r_cache_flush_func via opts
1457         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
1458         OPT_mno_flush_trap here.
1459         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
1460         include of m32r-opts.h.
1461         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
1462         HeaderInclude entry.
1463         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
1464         (mmodel=): Use Enum and Var.
1465         (m32r_model): New Enum and EnumValue entries.
1466         (mno-flush-trap): Use Var.
1467         (msdata=): Use Enum and Var.
1468         (m32r_sdata): New Enum and EnumValue entries.
1470 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1472         * config/m32c/m32c.c: Don't include opts.h.
1473         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
1474         m32c_handle_option): Remove.
1475         (m32c_option_override): Check global_options_set.x_target_memregs
1476         instead of target_memregs_set.
1477         * config/m32c/m32c.h (target_memregs): Remove.
1478         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
1479         variable.
1481 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1483         * config/iq2000/iq2000-opts.h: New.
1484         * config/iq2000/iq2000.c: Don't include opts.h.
1485         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
1486         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
1487         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
1488         HeaderInclude entry.
1489         (iq2000_tune): New Variable entry.
1490         (march=): Add comment.  Use Enum.
1491         (iq2000_arch): New Enum and EnumValue entries.
1492         (mcpu=): Use Enum and Var.
1493         (iq2000_tune): New Enum and EnumValue entries.
1495 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1497         * config/ia64/ia64-opts.h: New.
1498         * config/ia64/ia64.c (ia64_tune): Remove.
1499         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
1500         here.  Use error_at.
1501         (ia64_option_override): Handle deferred OPT_mfixed_range_.
1502         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
1503         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
1504         HeaderInclude entry.
1505         (ia64_tune): New Variable entry.
1506         (mfixed-range=): Use Defer and Var.
1507         (mtune=): Use Enum and Var.
1508         (ia64_tune): New Enum and EnumValue entries.
1510 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1512         * config/frv/frv-opts.h: New.
1513         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
1514         frv-opts.h.
1515         (frv_cpu_type): Remove.
1516         * config/frv/frv.c: Don't include opts.h.
1517         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
1518         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
1519         (frv_cpu_type): New Variable entry.
1520         (frv_cpu): New Enum and EnumValue entries.
1522 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1524         * config/cris/cris.c (cris_handle_option): Access target_flags via
1525         opts pointer.  Don't assert that global structures are in use.
1526         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
1527         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
1529 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1531         * config/bfin/bfin-opts.h: New.
1532         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
1533         bfin_si_revision, bfin_workarounds): Remove.
1534         (bfin_cpus): Make static const.
1535         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
1536         not bfin_lib_id_given.
1537         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
1538         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
1539         pointer. Use error_at.  Don't assert that global structures are in use.
1540         * config/bfin/bfin.h: Include bfin-opts.h.
1541         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
1542         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
1543         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
1544         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
1545         entries.
1547 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1549         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
1550         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
1551         or -msoft-float here.
1552         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
1553         -msoft-float and -mhard-float.
1554         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
1555         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
1556         msoft-float.
1557         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
1558         -msoft-float.
1559         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
1560         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
1561         not mhard-float.
1562         (LIBGCC_SPEC): Don't handle -msoft-float.
1563         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
1564         -mhard-float.
1565         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
1566         msoft-float.
1567         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
1568         -mfloat-abi=*, not -msoft-float and -mhard-float.
1569         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
1570         -msoft-float.
1571         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
1572         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
1573         mhard-float and msoft-float.
1574         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
1575         mfloat-abi=soft in comments, not mhard-float and msoft-float.
1576         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
1577         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
1578         mhard-float.
1579         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
1580         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
1581         msoft-float.
1582         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
1583         not mhard-float.
1584         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
1585         not msoft-float.
1587 2011-03-22  Richard Henderson  <rth@redhat.com>
1589         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
1590         TARGET_ABI_WINDOWS_NT.
1591         (alpha_output_function_end_prologue): Likewise.
1592         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
1593         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
1594         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
1595         (trap, *movsi_nt_vms): Likewise.
1596         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
1597         (*tablejump_osf_nt_internal): Remove.
1598         * config/alpha/predicates.md (input_operand): Only test Pmode.
1600 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1602         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
1603         via opts pointer.  Use error_at.  Don't assert that global
1604         structures are in use.
1606 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1608         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
1609         (ix86_handle_option): Access ix86_isa_flags and
1610         ix86_isa_flags_explicit via opts pointer.  Don't assert that
1611         global structures are in use.
1612         (ix86_function_specific_save, ix86_function_specific_restore):
1613         Update ix86_isa_flags_explicit field name.
1614         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1615         (ix86_isa_flags_explicit): Rename TargetSave entry to
1616         x_ix86_isa_flags_explicit.
1618 2011-03-22  Richard Henderson  <rth@redhat.com>
1620         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
1621         (alpha_option_override, direct_return): Likewise.
1622         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
1623         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
1624         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
1625         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
1626         (alpha_expand_epilogue, alpha_end_function): Likewise.
1627         (alpha_init_libfuncs): Likewise.
1628         (struct machine_function): Remove unicosmk members.
1629         (print_operand) ['t']: Remove.
1630         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
1631         unicosmk_output_module_name, unicosmk_output_common,
1632         current_section_align, unicosmk_output_text_section_asm_op,
1633         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
1634         unicosmk_section_type_flags, unicosmk_unique_section,
1635         unicosmk_asm_named_section, unicosmk_insert_attributes,
1636         unicosmk_output_align, unicosmk_defer_case_vector,
1637         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
1638         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
1639         unicosmk_output_ssib, unicosmk_add_call_info_word,
1640         unicosmk_extern_head, unicosmk_output_default_externs,
1641         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
1642         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
1643         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
1644         * config/alpha/alpha-protos.h: Update.
1645         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
1646         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
1647         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
1648         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
1649         (*mulsi_se, mulvsi3): Likewise.
1650         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
1651         (*divmodsi_internal, call, call_value, realign): Likewise.
1652         (moddi3, umoddi3): Likewise; remove duplicate expander.
1653         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
1654         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
1655         (*movdi_nofix): Remove r/U alternative.
1656         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
1657         * config/alpha/constraints.md ("U"): Remove.
1658         * config/alpha/predicates.md (call_operand"): Don't test
1659         TARGET_ABI_UNICOSMK.
1661 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1663         * target.def (handle_option): Take gcc_options and
1664         cl_decoded_option pointers and location_t.
1665         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
1666         * doc/tm.texi: Regenerate.
1667         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
1668         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
1669         * lto-opts.c (lto_reissue_options): Generate option structure for
1670         targetm.handle_option call.
1671         * opts.c (target_handle_option): Update call to
1672         targetm.handle_option.  Remove assertions about values now passed
1673         down to hook.
1674         * targhooks.c (default_target_handle_option): New.
1675         * targhooks.h (default_target_handle_option): Declare.
1676         * config/alpha/alpha.c: Include opts.h.
1677         (alpha_handle_option): Update to new hook interface.
1678         * config/arm/arm.c: Include opts.h.
1679         (arm_handle_option): Update to new hook interface.
1680         * config/arm/t-arm (arm.o): Update dependencies.
1681         * config/bfin/bfin.c: Include opts.h.
1682         (bfin_handle_option): Update to new hook interface.
1683         * config/cris/cris.c: Include opts.h.
1684         (cris_handle_option): Update to new hook interface.
1685         * config/frv/frv.c: Include opts.h.
1686         (frv_handle_option): Update to new hook interface.
1687         * config/i386/i386.c: Include opts.h.
1688         (ix86_handle_option): Update to new hook interface.
1689         (ix86_valid_target_attribute_inner_p): Generate option structure
1690         for call to ix86_handle_option.
1691         * config/i386/t-i386 (i386.o): Update dependencies.
1692         * config/ia64/ia64.c: Include opts.h.
1693         (ia64_handle_option): Update to new hook interface.
1694         * config/ia64/t-ia64 (ia64.o): Update dependencies.
1695         * config/iq2000/iq2000.c: Include opts.h.
1696         (iq2000_handle_option): Update to new hook interface.
1697         * config/m32c/m32c.c: Include opts.h.
1698         (m32c_handle_option): Update to new hook interface.
1699         * config/m32r/m32r.c: Include opts.h.
1700         (m32r_handle_option): Update to new hook interface.
1701         * config/m68k/m68k.c: Include opts.h.
1702         (m68k_handle_option): Update to new hook interface.
1703         * config/mep/mep.c: Include opts.h.
1704         (mep_handle_option): Update to new hook interface.
1705         * config/microblaze/microblaze.c: Include opts.h.
1706         (microblaze_handle_option): Update to new hook interface.
1707         * config/mips/mips.c: Include opts.h.
1708         (mips_handle_option): Update to new hook interface.
1709         * config/mn10300/mn10300.c: Include opts.h.
1710         (mn10300_handle_option): Update to new hook interface.
1711         * config/pa/pa.c: Include opts.h.
1712         (pa_handle_option): Update to new hook interface.
1713         * config/pdp11/pdp11.c: Include opts.h.
1714         (pdp11_handle_option): Update to new hook interface.
1715         * config/rs6000/rs6000.c: Include opts.h.
1716         (rs6000_handle_option): Update to new hook interface.
1717         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1718         * config/rx/rx.c: Include opts.h.
1719         (rx_handle_option): Update to new hook interface.
1720         * config/s390/s390.c: Include opts.h.
1721         (s390_handle_option): Update to new hook interface.
1722         * config/score/score.c: Include opts.h.
1723         (score_handle_option): Update to new hook interface.
1724         * config/sh/sh.c: Include opts.h.
1725         (sh_handle_option): Update to new hook interface.
1726         * config/sparc/sparc.c: Include opts.h.
1727         (sparc_handle_option): Update to new hook interface.
1728         * config/v850/v850.c: Include opts.h.
1729         (v850_handle_option): Update to new hook interface.
1731 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1733         * gcc.c (driver_unknown_option_callback): Only permit and save
1734         unknown -Wno- options.
1735         (driver_wrong_lang_callback): Save options directly instead of via
1736         driver_unknown_option_callback.
1738 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
1740         * combine.c (simplify_set): Try harder to find the best CC mode when
1741         simplifying a nested COMPARE on the RHS.
1743 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1745         * config/alpha/gnu.h: Remove.
1746         * config/arc: Remove directory.
1747         * config/arm/netbsd.h: Remove.
1748         * config/arm/t-pe: Remove.
1749         * config/crx: Remove directory.
1750         * config/i386/netbsd.h: Remove.
1751         * config/m68hc11: Remove directory.
1752         * config/m68k/uclinux-oldabi.h: Remove.
1753         * config/mcore/mcore-pe.h: Remove.
1754         * config/mcore/t-mcore-pe: Remove.
1755         * config/netbsd-aout.h: Remove.
1756         * config/rs6000/gnu.h: Remove.
1757         * config/sh/sh-symbian.h: Remove.
1758         * config/sh/symbian-base.c: Remove.
1759         * config/sh/symbian-c.c: Remove.
1760         * config/sh/symbian-cxx.c: Remove.
1761         * config/sh/symbian-post.h: Remove.
1762         * config/sh/symbian-pre.h: Remove.
1763         * config/sh/t-symbian: Remove.
1764         * config/svr3.h: Remove.
1765         * config/vax/netbsd.h: Remove.
1766         * config.build: Don't handle i[34567]86-*-pe.
1767         * config.gcc: Remove handling of deprecations for most deprecated
1768         targets.
1769         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
1770         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
1771         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
1772         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
1773         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
1774         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
1775         Remove cases.
1776         * config.host: Don't handle i[34567]86-*-pe.
1777         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
1778         (ASM_SPEC32): Don't handle -mcall-gnu.
1779         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
1780         -mcall-gnu.
1781         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
1782         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
1783         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
1784         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
1785         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
1786         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
1787         conditional on SYMBIAN.
1788         * configure.ac: Don't handle powerpc*-*-gnu*.
1789         * configure: Regenerate.
1790         * doc/extend.texi (interrupt attribute): Don't mention CRX.
1791         * doc/install-old.texi (m6811, m6812): Don't mention.
1792         * doc/install.texi (arc-*-elf*): Don't document multilib option.
1793         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
1794         (m68k-uclinuxoldabi): Don't mention.
1795         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
1796         Remove.
1797         (-mcall-gnu): Remove.
1798         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
1799         families): Remove constraint documentation.
1801 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
1803         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
1804         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
1805         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
1807 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
1809         * config/avr/avr-protos.h (expand_epilogue): Change prototype
1810         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
1811         * config/avr/avr.c (init_cumulative_args)
1812         (avr_function_arg_advance): Use it.
1813         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
1814         sibcall epilogues.
1815         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
1816         (avr_function_ok_for_sibcall): ...this new function.
1817         (avr_lookup_function_attribute1): New static Function.
1818         (avr_naked_function_p, interrupt_function_p)
1819         (signal_function_p, avr_OS_task_function_p)
1820         (avr_OS_main_function_p): Use it.
1821         * config/avr/avr.md ("sibcall", "sibcall_value")
1822         ("sibcall_epilogue"): New expander.
1823         ("*call_insn", "*call_value_insn"): New insn.
1824         ("call_insn", "call_value_insn"): Remove
1825         ("call", "call_value", "epilogue"): Change expander to handle
1826         sibling calls.
1828 2011-03-21  Nick Clifton  <nickc@redhat.com>
1830         * doc/invoke.texi (Overall Options): Move closing brace to end of
1831         options list.
1832         (Optimization Options): Add missing @gol.
1833         (Directory Options): Likewise.
1834         (i386 and x86-64 Options): Likewise.
1835         (RS6000 and PowerPC Options): Likewise.
1836         (i386 and x86-64 Windows Options): Likewise.
1837         (V850 Options): Add text missing from descriptions.
1839 2011-03-22  Richard Henderson  <rth@redhat.com>
1841         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
1842         (avr_incoming_return_addr_rtx): New.
1843         (emit_push_byte): New.
1844         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
1845         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
1846         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
1847         (emit_pop_byte): New.
1848         (expand_epilogue): Use it.  Pop frame pointer by bytes.
1849         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
1850         (INCOMING_RETURN_ADDR_RTX): New.
1851         (INCOMING_FRAME_SP_OFFSET): New.
1852         (ARG_POINTER_CFA_OFFSET): New.
1853         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
1854         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
1855         (pophi): Remove.
1857         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
1859 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
1861         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
1862         (FUNCTION_ARG_ADVANCE): Likewise.
1863         * tm.texi.in: Change references to them to hook references.
1864         * tm.texi: Regenerate.
1865         * targhooks.c (default_function_arg): Eliminate check for target
1866         macro.
1867         (default_function_incoming_arg): Likewise.
1868         (default_function_arg_advance): Likewise.
1869         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
1870         (function_arg_advance): Likewise.
1871         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
1873 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
1875         * tree.c (build_call_1): New function.
1876         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
1878 2011-03-22  Richard Guenther  <rguenther@suse.de>
1880         PR tree-optimization/48228
1881         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
1882         for single-arg PHIs.
1884 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
1886         PR rtl-optimization/48143
1887         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
1888         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
1889         sse2_cvtps2pd): Likewise.
1891 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1893         * recog.c (canonicalize_change_group): Use validate_unshare_change.
1895 2011-03-22  Richard Guenther  <rguenther@suse.de>
1897         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
1898         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
1899         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
1900         and REALIGN_LOAD_EXPR.
1901         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
1902         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
1903         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
1904         DOT_PROD_EXPR case ...
1905         (expand_expr_real_2): ... here.
1906         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
1907         and REALIGN_LOAD_EXPR.
1908         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
1909         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
1910         (vect_create_epilog_for_reduction): Likewise.
1911         (vectorizable_reduction): Likewise.
1912         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
1913         * tree-vect-stmts.c (vectorizable_load): Likewise.
1915 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
1917         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
1919 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1921         * config/s390/s390.c (s390_delegitimize_address): Fix offset
1922         handling for PLTOFF/GOTOFF.
1924 2011-03-22  Nick Clifton  <nickc@redhat.com>
1926         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
1927         trailing backslash from the end of the macro definition.
1929 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1931         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
1932         and PLT unspecs.
1934 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
1936         * expr.h (prepare_operand): Move to...
1937         * optabs.h (prepare_operand): ...here and change the insn code
1938         parameter from "int" to "enum insn_code".
1939         (insn_operand_matches): Declare.
1940         * expr.c (init_expr_target): Use insn_operand_matches.
1941         (compress_float_constant): Likewise.
1942         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
1943         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
1944         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
1945         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
1946         Likewise.
1947         (gen_cond_trap): Likewise.
1948         (prepare_operand): Likewise.  Change icode to an insn_code.
1949         (insn_operand_matches): New function.
1950         * reload.c (find_reloads_address_1): Use insn_operand_matches.
1951         * reload1.c (gen_reload): Likewise.
1952         * targhooks.c (default_secondary_reload): Likewise.
1954 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
1956         * config/alpha/alpha.md (unspec): New define_c_enum.
1957         (unspecv): Ditto.
1959 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
1961         PR debug/48214
1962         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
1963         between a call and its CALL_ARG_LOCATION note.
1965 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
1967         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
1969 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
1971         PR c/42544
1972         PR c/48197
1973         * c-common.c (shorten_compare): If primopN is first sign-extended
1974         to opN and then zero-extended to result type, set primopN to opN.
1976 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
1978         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
1979         for barrier handlers.
1981 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1983         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
1984         UNSPEC constants to be in the unspec enumeration, and redefine
1985         all UNSPECV constants to be in the unspecv enumeration, so that
1986         dumps print which unspec/unspec_volatile this is.
1987         * config/rs6000/vector.md (UNSPEC_*): Ditto.
1988         * config/rs6000/paired.md (UNSPEC_*): Ditto.
1989         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
1990         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
1991         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
1993         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
1994         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
1995         UNSPECV_LWSYNC, since these are used as unspec_volatile.
1996         * config/rs6000/sync.md (isync, lwsync): Ditto.
1998 2011-03-21  Richard Guenther  <rguenther@suse.de>
2000         * params.def (lto-min-partition): Fix typo.
2002 2011-03-21  Richard Guenther  <rguenther@suse.de>
2004         PR c/47939
2005         * c-decl.c (grokdeclarator): Drop to the main variant only
2006         for array types.  Drop flag_gen_aux_info check.
2008 2011-03-21  Richard Guenther  <rguenther@suse.de>
2010         PR translation/47911
2011         * params.def (lto-partitions): Fix typo.
2012         (lto-min-partition): Fix wording.
2014 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
2016         * config/rs6000/t-freebsd: Remove duplication from file.
2018 2011-03-21  Richard Guenther  <rguenther@suse.de>
2020         PR middle-end/47661
2021         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
2023 2011-03-21  Richard Guenther  <rguenther@suse.de>
2025         PR lto/48210
2026         * params.def (lto-partitions): Require at least 1 partition.
2028 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2030         * gthr-solaris.h: Remove.
2031         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
2032         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
2033         (LIB_SPEC): Likewise.
2034         * config/sol2.opt (threads): Remove.
2035         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
2036         (sparc*-*-solaris2*): Likewise.
2037         * configure.ac (enable_threads): Enable solaris support.
2038         * configure: Regenerate.
2039         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
2040         * doc/install.texi (Configuration, --enable-threads=lib): Remove
2041         solaris.
2043 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2045         * config.gcc: Obsolete *-*-solaris2.8*.
2046         * doc/install.texi (Specific, *-*-solaris2*): Document it.
2048 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2050         PR bootstrap/48135
2051         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
2052         reference.  Solaris 8 perl works.
2054 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2056         PR bootstrap/48135
2057         * doc/install.texi (Prerequisites): Move jar etc. up.
2058         Explain support library version requirements.
2060 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2062         PR bootstrap/48135
2063         * doc/install.texi (Prerequisites): Move Perl to build
2064         requirements.  Always necessary on Solaris 2 with Sun ld.
2066 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2068         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
2069         binutils 2.21.
2070         (Specific, i?86-*-solaris2.[89]): Likewise.
2071         (Specific, i?86-*-solaris2.10): Likewise.
2072         (Specific, mips-sgi-irix6): Likewise.
2073         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
2074         Update for binutils 2.21.
2076 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2078         * configure.ac (gcc_cv_lto_plugin): Fix typo.
2079         Allow -fuse-linker-plugin for non-default plugin linker.
2080         * configure: Regenerate.
2082 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2084         PR bootstrap/48167
2085         * gengtype.c (files_rules): Added rule for cp/parser.h.
2087 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
2089         PR target/48213
2090         * config/s390/s390.c (s390_delegitimize_address): Don't call
2091         lowpart_subreg if orig_x has BLKmode.
2093 2011-03-21  Kai Tietz  <ktietz@redhat.com>
2095         PR target/12171
2096         * doc/plugins.texi: Adjust documentation for plugin register_callback.
2097         * tree.h (attribute_spec): Add new member affects_type_identity.
2098         * attribs.c (empty_attribute_table): Adjust attribute_spec
2099         initializers.
2100         * config/alpha/alpha.c: Likewise.
2101         * config/arc/arc.c: Likewise.
2102         * config/arm/arm.c: Likewise.
2103         * config/avr/avr.c: Likewise.
2104         * config/bfin/bfin.c: Likewise.
2105         * config/crx/crx.c: Likewise.
2106         * config/darwin.h: Likewise.
2107         * config/h8300/h8300.c: Likewise.
2108         * config/i386/cygming.h: Likewise.
2109         * config/i386/i386.c: Likewise.
2110         * config/ia64/ia64.c: Likewise.
2111         * config/m32c/m32c.c: Likewise.
2112         * config/m32r/m32r.c: Likewise.
2113         * config/m68hc11/m68hc11.c: Likewise.
2114         * config/m68k/m68k.c: Likewise.
2115         * config/mcore/mcore.c: Likewise.
2116         * config/mep/mep.c: Likewise.
2117         * config/microblaze/microblaze.c: Likewise.
2118         * config/mips/mips.c: Likewise.
2119         * config/rs6000/rs6000.c: Likewise.
2120         * config/rx/rx.c: Likewise.
2121         * config/sh/sh.c: Likewise.
2122         * config/sol2.h: Likewise.
2123         * config/sparc/sparc.c: Likewise.
2124         * config/spu/spu.c: Likewise.
2125         * config/stormy16/stormy16.c: Likewise.
2126         * config/v850/v850.c: Likewise.
2128 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
2130         * simplify-rtx.c (simplify_binary_operation_1): Handle
2131         (xor (and A B) C) case when B and C are both constants.
2133 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
2135         * tree-dfa.c (add_referenced_var): Fix typo in comment.
2137 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
2139         PR bootstrap/48168
2140         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
2142 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
2144         PR rtl-optimization/48156
2145         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
2146         assume df and df_lr are not NULL.
2148 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2150         PR debug/48023
2151         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
2152         between a call and its CALL_ARG_LOCATION note.
2154 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
2156         PR debug/48178
2157         * config/sh/sh.c (find_barrier): Don't emit a constant pool
2158         between a call and its corresponding CALL_ARG_LOCATION note.
2160 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
2162         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
2163         instead of loop. Use HARD_REGISTER_NUM_P predicate.
2164         * haifa-sched.c (setup_ref_regs): Ditto.
2165         * caller-save.c (add_used_regs_1): Ditto.
2166         * dse.c (look_for_hardregs): Ditto.
2167         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
2168         * sched-rgn.c (check_live_1): Ditto.
2170 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
2172         * c-decl.c (diagnose_mismatched_decls): Give an error for
2173         redefining a typedef with variably modified type.
2175 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
2177         * c-decl.c (grokfield): Don't allow typedefs for structures or
2178         unions with no tag by default.
2179         * doc/extend.texi (Unnamed Fields): Update.
2181 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
2183         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
2184         Rewrite using indirect functions.
2185         (lwp_slwpcb): Ditto.
2186         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
2187         (avx_vinsertf128<mode>): Ditto.
2189 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2191         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
2192         unspecs.
2194 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2196         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
2197         splitting between a call and its corresponding CALL_ARG_LOCATION note.
2199 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2201         PR rtl-optimization/48170
2202         * gcse.c (hoist_code): Remove bogus asserts.
2204 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
2206         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
2207         computation for prologue/epilogue.
2209 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2211         * Makefile.in (check-consistency): Remove.
2213 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
2215         PR debug/48176
2216         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
2217         arange_table_in_use is 0, but either text_section_used or
2218         cold_text_section_used is true.  Don't call it if
2219         !info_section_emitted.
2221 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
2223         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
2224         FUNCTION_VALUE_REGNO_P): Remove.
2225         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
2226         Remove.
2227         * config/avr/avr.c (avr_ret_register): Make static inline.
2228         (avr_function_value_regno_p): New function.
2229         (avr_libcall_value): Make static. Add 'func' argument.
2230         (avr_function_value): Make static. Rename 'func' argument to
2231         'fn_decl_or_type', forward it to avr_libcall_value. Call
2232         avr_ret_register function instead of RET_REGISTER macro.
2233         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2235 2011-03-18  Jason Merrill  <jason@redhat.com>
2237         PR c++/23372
2238         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
2240 2011-03-18  Richard Guenther  <rguenther@suse.de>
2242         * doc/install.texi (--enable-gold): Remove.
2243         (--with-plugin-ld): Document.
2244         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
2246 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
2248         PR middle-end/47790
2249         * expr.c (optimize_bitfield_assignment_op): Revamp to work
2250         again after expansion changes.
2252 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
2254         * combine.c (try_combine): Do simplification only call of
2255         subst() on i2 even when i1 is present. Update comments.
2257 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
2259         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
2260         and UNSPEC_PCREL_SYMOFF.
2262 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2264         * config/s390/s390.md: Use define_c_enum for the unspec constant
2265         definitions.
2267 2011-03-18  Richard Henderson  <rth@redhat.com>
2268             Jakub Jelinek  <jakub@redhat.com>
2270         PR bootstrap/48161
2271         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
2272         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
2274 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2276         PR middle-end/47725
2277         * combine.c (cant_combine_insn_p): Don't check zero/sign
2278         extended hard registers.
2280 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2282         PR middle-end/47725
2283         * combine.c (cant_combine_insn_p): Check zero/sign extended
2284         hard registers.
2286 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
2288         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2289         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
2290         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
2291         Change return type to bool.
2292         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2294 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
2296         PR debug/48163
2297         * var-tracking.c (prepare_call_arguments): If CALL target
2298         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
2299         pc instead of looking it up using cselib_lookup and use
2300         Pmode for it if x has VOIDmode.
2301         * dwarf2out.c (gen_subprogram_die): If also both first and
2302         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
2304         PR debug/48163
2305         * function.c (assign_parms): For data.passed_pointer parms
2306         use MEM of data.entry_parm instead of data.entry_parm itself
2307         as DECL_INCOMING_RTL.
2308         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
2309         also when passed and declared mode is the same, DECL_RTL
2310         is a MEM with pseudo as address and DECL_INCOMING_RTL is
2311         a MEM too.
2313 2011-03-16  Jeff Law  <law@redhat.com>
2315         PR rtl-optimization/37273
2316         * ira-costs.c (scan_one_insn): Detect constants living in memory and
2317         handle them like argument loads from stack slots.  Do not double
2318         count memory for memory constants and argument loads from stack slots.
2320 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2322         PR debug/48160
2323         * var-tracking.c (prepare_call_arguments): Check SUBREG.
2325 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2327         PR target/48171
2328         * config/i386/i386.opt: Add Save to -mavx and -mfma.
2330 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
2332         PR bootstrap/48153
2333         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
2334         if dwarf_strict.
2335         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
2336         Clear call_arg_locations and call_arg_loc_last always.
2338         PR middle-end/48152
2339         * var-tracking.c (prepare_call_arguments): If argument needs to be
2340         passed by reference, adjust argtype and mode.
2342 2011-03-17  Richard Guenther  <rguenther@suse.de>
2344         PR middle-end/48134
2345         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
2346         a value make sure to fold the statement.
2348 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
2350         PR target/43872
2351         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
2352         return condition with !cfun->calls_alloca.
2354 2011-03-17  Richard Guenther  <rguenther@suse.de>
2356         PR bootstrap/48148
2357         * lto-cgraph.c (input_overwrite_node): Clear the abstract
2358         origin for decls in other ltrans units.
2359         (input_varpool_node): Likewise.
2361 2011-03-17  Richard Guenther  <rguenther@suse.de>
2363         PR middle-end/48165
2364         * tree-object-size.c (compute_object_offset): Properly return
2365         the offset operand of MEM_REFs as sizetype.
2367 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
2369         PR rtl-optimization/48141
2370         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
2371         * dse.c: Include params.h.
2372         (active_local_stores_len): New variable.
2373         (add_wild_read, dse_step1): Clear it when setting active_local_stores
2374         to NULL.
2375         (record_store, check_mem_read_rtx): Decrease it when removing
2376         from the chain.
2377         (scan_insn): Likewise.  Increase it when adding to chain, if it
2378         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
2379         set active_local_stores to NULL before the addition.
2380         * Makefile.in (dse.o): Depend on $(PARAMS_H).
2382         PR rtl-optimization/48141
2383         * dse.c (record_store): If no positions are needed in an insn
2384         that cannot be deleted, at least unchain it from active_local_stores.
2386 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
2388         PR debug/47510
2389         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
2390         (lookup_type_die_strip_naming_typedef): ... here.
2391         (get_context_die): Use it.
2392         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
2393         the anonymous struct named by the naming typedef.
2395 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2397         PR target/48154
2398         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
2399         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
2401 2011-03-16  Jeff Law  <law@redhat.com>
2403         * tree-vrp.c (identify_jump_threads): Slightly simplify type
2404         check for operands of conditional.  Allow type to be a pointer.
2406 2011-03-16  Richard Guenther  <rguenther@suse.de>
2408         PR tree-optimization/48149
2409         * fold-const.c (fold_binary_loc): Fold
2410         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
2412 2011-03-16  Richard Guenther  <rguenther@suse.de>
2414         PR tree-optimization/26134
2415         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
2416         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
2417         (non_rewritable_mem_ref_base): Handle complex type component
2418         accesses, constrain offsets for vector and complex extracts
2419         more properly.
2421 2011-03-16  Richard Guenther  <rguenther@suse.de>
2423         PR tree-optimization/48146
2424         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
2425         operands avoiding the need for renaming.
2427 2011-03-16  Richard Guenther  <rguenther@suse.de>
2429         * gimple-fold.c (maybe_fold_reference): Open-code relevant
2430         constant folding.  Move MEM_REF canonicalization first.
2431         Rely on fold_const_aggregate_ref for initializer folding.
2432         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
2434 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
2436         PR middle-end/48136
2437         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
2438         arg0/arg1 or their arguments are always fold converted to matching
2439         types.
2441         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
2442         to nargs.
2444 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2446         PR lto/46944
2447         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
2448         Handle in-tree gold.
2449         (ld_vers): Extract binutils version for gold.
2450         (gcc_cv_ld_hidden): Handle gold here.
2451         (gcc_cv_lto_plugin): Determine level of linker plugin support.
2452         * configure: Regenerate.
2453         * config.in: Regenerate.
2454         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
2455         -fuse-linker-plugin otherwise.
2456         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
2457         (LINK_COMMAND_SPEC): Use it.
2458         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
2460 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
2462         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
2463         * calls.c: Remove debug.h include.
2464         (emit_call_1): Don't call virtual_call_token debug hook.
2465         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
2466         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
2467         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
2468         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
2469         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
2470         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
2471         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
2472         dwarf2out_virtual_call): Remove.
2473         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
2474         copy_call_info and virtual_call hooks.
2475         (dwarf2out_init): Don't initialize vcall_insn_table,
2476         debug_dcall_section and debug_vcall_section.
2477         (prune_unused_types): Don't mark nodes from dcall_table.
2478         (dwarf2out_finish): Don't output dcall or vcall tables.
2479         * final.c (final_scan_insn): Don't call direct_call or
2480         virtual_call debug hooks.
2481         * debug.h (struct gcc_debug_hooks): Remove direct_call,
2482         virtual_call_token, copy_call_info and virtual_call hooks.
2483         (debug_nothing_uid): Remove prototype.
2484         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
2485         copy_call_info and virtual_call hooks.
2486         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2487         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
2488         * debug.c (do_nothing_debug_hooks): Likewise.
2489         (debug_nothing_uid): Remove.
2490         * doc/invoke.texi (-fenable-icf-debug): Remove.
2491         * common.opt (-fenable-icf-debug): Likewise.
2493         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
2494         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
2495         call's MEM.  Handle functions returning aggregate through a hidden
2496         first pointer.  For virtual calls add clobbered pc to call arguments
2497         chain.
2498         * dwarf2out.c (gen_subprogram_die): Emit
2499         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
2500         can't be emitted.
2502         PR debug/45882
2503         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
2504         * rtl.h (ENTRY_VALUE_EXP): Define.
2505         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
2506         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
2507         * print-rtl.c (print_rtx): Likewise.
2508         * gengtype.c (adjust_field_rtx_def): Likewise.
2509         * var-tracking.c (vt_add_function_parameter): Adjust
2510         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
2511         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
2512         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
2513         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
2514         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
2516         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
2517         Call var_location debug hook even on CALL_INSNs.
2518         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
2519         * rtl.def (ENTRY_VALUE): New.
2520         * dwarf2out.c: Include cfglayout.h.
2521         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2522         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
2523         (struct call_arg_loc_node): New type.
2524         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
2525         tail_call_site_count): New variables.
2526         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
2527         DW_TAG_GNU_call_site_parameter.
2528         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
2529         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
2530         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
2531         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
2532         and DW_AT_GNU_all_source_call_sites.
2533         (mem_loc_descriptor): Handle ENTRY_VALUE.
2534         (add_src_coords_attributes): Don't add enything if
2535         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
2536         (dwarf2out_abstract_function): Save and clear call_arg_location,
2537         call_site_count and tail_call_site_count around dwarf2out_decl call.
2538         (gen_call_site_die): New function.
2539         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
2540         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
2541         (dwarf2out_function_decl): Clear call_arg_locations,
2542         call_arg_loc_last, set call_site_count and tail_call_site_count
2543         to -1 and free block_map.
2544         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
2545         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
2546         followed by any real instructions.
2547         (dwarf2out_begin_function): Set call_site_count and
2548         tail_call_site_count to 0.
2549         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
2550         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
2551         attempt to force a DIE for it and worst case remove the attribute.
2552         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
2553         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
2554         the decl itself.
2555         * var-tracking.c: Include tm_p.h.
2556         (vt_stack_adjustments): For calls call note_register_arguments.
2557         (argument_reg_set): New variable.
2558         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
2559         ensure the VALUE is resolved.
2560         (call_arguments): New variable.
2561         (prepare_call_arguments): New function.
2562         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
2563         (struct expand_loc_callback_data): Add ignore_cur_loc field.
2564         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
2565         always use the best expression.
2566         (vt_expand_loc): Add ignore_cur_loc argument.
2567         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
2568         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
2569         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
2570         note for all calls.
2571         (vt_add_function_parameter): Use cselib_lookup_from_insn.
2572         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
2573         argument.  Don't call cselib_preserve_only_values and
2574         cselib_reset_table.
2575         (note_register_arguments): New function.
2576         (vt_initialize): Compute argument_reg_set.  Call
2577         vt_add_function_parameters before processing basic blocks instead of
2578         afterwards.  For calls call prepare_call_arguments before calling
2579         cselib_process_insn.
2580         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
2581         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
2582         (var-tracking.o): Depend on $(TM_P_H).
2583         * cfglayout.h (insn_scope): New prototype.
2584         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
2585         * cfglayout.c (insn_scope): No longer static.
2586         * insn-notes.def (CALL_ARG_LOCATION): New.
2587         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
2588         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
2589         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
2590         nothing for DECL_EXTERNAL BLOCK_VARS.
2592 2011-03-16  Alan Modra  <amodra@gmail.com>
2594         PR target/45844
2595         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
2596         create invalid offset address for vsx splat insn.
2597         * config/rs6000/predicates.md (splat_input_operand): New.
2598         * config/rs6000/vsx.md (vsx_splat_*): Use it.
2600 2011-03-15  Xinliang David Li  <davidxl@google.com>
2602         PR c/47837
2603         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
2604         (normalize_preds): New function.
2605         (is_use_properly_guarded): Normalize def predicates.
2607 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2609         PR target/46788
2610         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
2611         in the output template.
2613 2011-03-15  Richard Guenther  <rguenther@suse.de>
2615         PR middle-end/47650
2616         * tree-pretty-print.c (dump_function_declaration): Properly
2617         dump unprototyped and varargs function types.
2619 2011-03-15  Richard Guenther  <rguenther@suse.de>
2621         PR tree-optimization/13954
2622         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
2623         and friends.
2625 2011-03-15  Richard Guenther  <rguenther@suse.de>
2627         PR tree-optimization/48037
2628         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
2629         selects into BIT_FIELD_REFs.
2630         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
2631         vector select.
2633 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
2635         PR tree-optimization/48129
2636         * builtins.c (fold_builtin_snprintf): Convert to type of
2637         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
2638         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
2640 2011-03-15  Richard Guenther  <rguenther@suse.de>
2642         PR tree-optimization/41490
2643         * tree-ssa-dce.c (propagate_necessity): Handle returns without
2644         value but with VUSE.
2645         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
2646         return statements.
2647         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
2648         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
2649         * tree-tailcall.c (find_tail_calls): Ignore returns.
2651 2011-03-15  Richard Guenther  <rguenther@suse.de>
2653         PR middle-end/48031
2654         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
2655         or variable-indexed array accesses when in gimple form.
2657 2011-03-15  Richard Guenther  <rguenther@suse.de>
2659         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
2661 2011-03-15  Alan Modra  <amodra@gmail.com>
2663         PR target/48032
2664         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
2665         presume symbol_refs without a symbol_ref_decl are suitably
2666         aligned, nor other trees we may see here.  Handle anchor symbols.
2667         (legitimate_constant_pool_address_p): Comment.  Add mode param.
2668         Check cmodel=medium addresses.  Adjust all calls.
2669         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
2670         creating cmodel=medium optimized access to locals.
2671         * config/rs6000/constraints.md (R): Pass QImode to
2672         legitimate_constant_pool_address_p.
2673         * config/rs6000/predicates.md (input_operand): Pass mode to
2674         legitimate_constant_pool_address_p.
2675         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
2676         Update prototype.
2678 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2680         PR target/48053
2681         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
2682         64-bit constants being loaded into registers other than GPRs such
2683         as loading 0 into a VSX register.
2685 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2687         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
2689 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
2691         PR middle-end/47917
2692         * builtins.c (fold_builtin_snprintf): New function.
2693         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
2694         (fold_builtin_4): Likewise.
2696         PR middle-end/38878
2697         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
2698         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
2699         and C - X == X also strip nops from +/-/p+ operand.
2700         When optimizing -X == C, fold C to arg0's type.
2702         PR debug/47946
2703         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
2704         emit it as add_AT_int instead of add_AT_unsigned.
2706 2011-03-14  Tom Tromey  <tromey@redhat.com>
2708         * unwind-dw2.c: Include sys/sdt.h if it exists.
2709         (_Unwind_DebugHook): Use STAP_PROBE2.
2710         * config.in, configure: Rebuild.
2711         * configure.ac: Check for sys/sdt.h.
2713 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
2715         * config/i386/i386.md (ROUND_FLOOR): New constant.
2716         (ROUND_CEIL): Ditto.
2717         (ROUND_TRUNC): Ditto.
2718         (ROUND_MXCSR): Ditto.
2719         (ROUND_NO_EXC): Ditto.
2720         (rint<mode>2): Use new defines instead of numerical constants.
2721         (floor<mode>2): Ditto.
2722         (ceil<mode>2): Ditto.
2723         (btrunc<mode>2): Ditto.
2724         * config/i386/i386-builtin-types.def: Define ROUND function type
2725         aliases.
2726         * config/i386/i386.c (enum ix86_builtins): Add
2727         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
2728         (struct builtin_description): Add
2729         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
2730         (ix86_expand_sse_round): New static function.
2731         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
2732         function types.
2733         (ix86_builtin_vectorized_function): Handle
2734         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
2736 2011-03-14  Tom Tromey  <tromey@redhat.com>
2738         * c-parser.c (c_parser_asm_string_literal): Clear
2739         warn_overlength_strings.
2741 2011-03-14  Tom Tromey  <tromey@redhat.com>
2743         * c-parser.c (disable_extension_diagnostics): Save
2744         warn_overlength_strings.
2745         (restore_extension_diagnostics): Restore warn_overlength_strings.
2747 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
2749         * BASE-VER: Change to 4.7.0.
2751 2011-03-14  Richard Guenther  <rguenther@suse.de>
2753         PR middle-end/48098
2754         * tree.c (build_vector_from_val): Adjust assert to requirements
2755         and reality.
2757 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
2759         PR bootstrap/48102
2760         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
2762 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
2764         * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
2765         terms of target_flags_explicit. Adjust copyright year.
2767         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
2768         * config/rs6000/t-freebsd: New file. Add override for
2769         LIB2FUNCS_EXTRA.
2771 2011-03-13  Chris Demetriou  <cgd@google.com>
2773         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
2774         (-fno-diagnostics-show-option): this, to reflect current default.
2775         (-Werror=): Update text about -fno-diagnostics-show-option.
2777 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
2779         PR target/48053
2780         * config/rs6000/predicates.md (easy_vector_constant_add_self,
2781         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
2782         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
2783         mode is not V2DImode or V2DFmode.
2784         (vspltis_constant): Do not handle V2DImode and V2DFmode.
2785         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
2786         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
2787         registers to 0.
2788         (movdi_internal64): Likewise.
2790 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
2792         PR tree-optimization/47127
2793         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
2794         parameter.
2795         (set_cloog_options): Same.
2796         (scop_to_clast): Same.
2797         (print_clast_stmt): Do not call cloog_state_malloc and
2798         cloog_state_free.
2799         (print_generated_program): Same.
2800         (gloog): Same.
2801         * graphite-clast-to-gimple.h (cloog_state): Declared.
2802         (scop_to_clast): Adjust declaration.
2803         * graphite.c (cloog_state): Defined here.
2804         (graphite_initialize): Call cloog_state_malloc.
2805         (graphite_finalize): Call cloog_state_free.
2807 2011-03-11  Jason Merrill  <jason@redhat.com>
2809         * attribs.c (lookup_attribute_spec): Take const_tree.
2810         * tree.h: Adjust.
2812 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
2814         * config/sparc/sparc.c (sparc_option_override): Use
2815         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
2817 2011-03-11  Richard Guenther  <rguenther@suse.de>
2819         PR tree-optimization/48067
2820         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
2821         multiplication result will be only used once on the target
2822         stmt.
2824 2011-03-11  Richard Guenther  <rguenther@suse.de>
2826         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
2828 2011-03-11  Richard Guenther  <rguenther@suse.de>
2830         PR lto/48073
2831         * tree.c (find_decls_types_r): Do not walk types only reachable
2832         from IDENTIFIER_NODEs.
2834 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
2836         PR middle-end/48044
2837         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
2838         all vnode->force_output nodes as needed.
2840 2011-03-11  Jason Merrill  <jason@redhat.com>
2842         PR c++/48069
2843         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
2844         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
2846 2011-03-11  Martin Jambor  <mjambor@suse.cz>
2848         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
2849         cgraph_node.
2851 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
2853         PR tree-optimization/48063
2854         * ipa-inline.c (cgraph_decide_inlining): Don't try to
2855         inline functions called once if !tree_can_inline_p (node->callers).
2857 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
2859         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
2860         extra_objs.
2861         * config/score/score3.c: Delete.
2862         * config/score/score3.h: Delete.
2863         * config/score/mul-div.S: Delete.
2864         * config/score/sfp-machine.h: Add new file.
2865         * config/score/constraints.md: Add new file.
2866         * config/score/t-score-softfp: Add new file.
2867         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
2868         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
2869         (score7_extra_constraint): Delete.
2870         (score7_option_override): Remove unused code.
2871         * config/score/score.c: Remove score3 and score5 define and code.
2872         * config/score/score.h: Remove score3 and score5 define and code.
2873         * config/score/score.md: Remove score3 template and unusual insn.
2874         * config/score/score.opt: Remove score3 and score5 options.
2876 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2878         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2879         when _HPUX_SOURCE is defined.
2880         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
2882 2011-03-10  Jason Merrill  <jason@redhat.com>
2884         PR c++/48029
2885         * stor-layout.c (layout_type): Don't set structural equality
2886         on arrays of incomplete type.
2887         * tree.c (type_hash_eq): Handle comparing them properly.
2889 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
2891         PR debug/48043
2892         * config/s390/s390.c (s390_delegitimize_address): Make sure the
2893         result mode matches original rtl mode.
2895 2011-03-10  Nick Clifton  <nickc@redhat.com>
2897         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
2898         (andsi3, andsi3_flags): Fix timings for three operand alternative.
2900 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
2902         PR rtl-optimization/47866
2903         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
2904         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
2905         if target wasn't scalar.
2906         * function.c (assign_stack_temp_for_type): Assert that neither
2907         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
2908         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
2909         macro.
2910         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
2912 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2914         * config/s390/s390-protos.h (s390_label_align): New prototype.
2915         * config/s390/s390.c (s390_label_align): New function.
2916         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
2918 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2920         PR target/47755
2921         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
2922         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
2923         (output_vec_const_move): Ditto.
2925 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
2927         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
2928         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
2929         * config/mips/mips.c (mips_preferred_reload_class): Make static.
2930         Change 'rclass' argument and result type to reg_class_t.
2931         (TARGET_PREFERRED_RELOAD_CLASS): Define.
2933 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
2935         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2936         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
2937         (TARGET_MEMORY_MOVE_COST): Define.
2938         (avr_register_move_cost, avr_memory_move_cost): New Functions.
2940 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
2942         PR debug/47881
2943         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
2944         removed anything.
2946         PR tree-optimization/48022
2947         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
2948         for EQ/NE_EXPR.
2950 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
2952         PR debug/47991
2953         * var-tracking.c (find_use_val): Return NULL for
2954         cui->sets && cui->store_p BLKmode MEMs.
2956 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
2958         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
2959         Remove.
2960         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
2961         xstormy16_print_operand_address): Remove.
2962         * config/stormy16/stormy16.c (xstormy16_print_operand,
2963         xstormy16_print_operand_address): Make static.
2964         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2966 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
2968         PR target/47862
2969         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2970         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
2971         before definition.
2973 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
2975         PR bootstrap/48000
2976         * cfgloopmanip.c (fix_bb_placements): Return immediately
2977         if FROM is BASE_LOOP's header.
2979 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
2981         * gimplify.c (gimplify_function_tree): Fix building calls
2982         to __builtin_return_address.
2984 2011-03-07  Alan Modra  <amodra@gmail.com>
2986         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
2987         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
2988         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
2989         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
2990         return_mode args.
2991         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
2992         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
2993         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
2994         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
2995         * config/rs6000/rs6000.c
2996         (rs6000_elf_end_indicate_exec_stack): Rename to..
2997         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
2998         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
2999         (rs6000_file_start): ..here.
3000         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
3001         file scope variables.
3002         (call_ABI_of_interest): New function.
3003         (init_cumulative_args): Set above vars when function return value
3004         is a float, vector, or small struct.
3005         (rs6000_function_arg_advance_1): Likewise for function args.
3006         (rs6000_va_start): Set rs6000_passes_float if variable arg function
3007         references float args.
3009 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
3011         * doc/cfg.texi: Remove "See" before @ref.
3012         * doc/invoke.texi: Likewise.
3014 2011-03-05  Jason Merrill  <jason@redhat.com>
3016         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
3018 2011-03-05  Anthony Green  <green@moxielogic.com>
3020         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
3022 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
3024         PR rtl-optimization/47899
3025         * cfgloopmanip.c (fix_bb_placements): Fix first argument
3026         to flow_loop_nested_p when moving the loop upward.
3028 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
3030         PR target/47719
3031         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
3033 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
3035         PR tree-optimization/47967
3036         * ipa-cp.c (build_const_val): Return NULL instead of creating
3037         VIEW_CONVERT_EXPR for mismatching sizes.
3038         (ipcp_create_replace_map): Return NULL if build_const_val failed.
3039         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
3040         give up on versioning.
3042 2011-03-05  Alan Modra  <amodra@gmail.com>
3044         PR target/47986
3045         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3046         full cmodel medium/large lo_sum + high addresses.
3048 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3050         * config/s390/s390.c (s390_decompose_address): Reject non-literal
3051         pool references in UNSPEC_LTREL_OFFSET.
3053 2011-03-04  Jan Hubicka  <jh@suse.cz>
3055         PR lto/47497
3056         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
3057         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
3058         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
3059         Add node pointers.
3060         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
3061         cgraph_add_thunk): Add node pointers.
3062         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
3063         associated to right node.
3064         (input_node): Update use of cgraph_same_body_alias
3065         and cgraph_add_thunk.
3067 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
3069         * config/i386/i386.opt (mprefer-avx128): New flag.
3070         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
3071         modes when the flag -mprefer-avx128 is on.
3073 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
3075         * dwarf2out.c (compare_loc_operands): Fix address handling.
3077 2011-03-04  Alan Modra  <amodra@gmail.com>
3079         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
3081 2011-03-04  Richard Guenther  <rguenther@suse.de>
3083         PR middle-end/47968
3084         * expmed.c (extract_bit_field_1): Prefer vector modes that
3085         vec_extract patterns can handle.
3087 2011-03-04  Richard Guenther  <rguenther@suse.de>
3089         PR middle-end/47975
3090         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
3092 2011-03-04  Richard Henderson  <rth@redhat.com>
3094         * explow.c (emit_stack_save): Remove 'after' parameter.
3095         (emit_stack_restore): Likewise.
3096         * expr.h: Update to match.
3097         * builtins.c, calls.c, stmt.c: Likewise.
3098         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
3099         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
3100         * function.c (expand_function_end): Insert the emit_stack_save
3101         sequence before parm_birth_insn instead of after.
3103 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
3105         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
3106         (ssse3_pmaddubsw128): Ditto.
3107         (ssse3_pmaddubsw): Ditto.
3109 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
3111         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
3113 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
3115         PR c/47963
3116         * gimplify.c (omp_add_variable): Only call omp_notice_variable
3117         on TYPE_SIZE_UNIT if it is a DECL.
3119         PR debug/47283
3120         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
3121         first operand is not is_gimple_mem_ref_addr, try to fold it.
3122         If the operand still isn't is_gimple_mem_ref_addr, clear
3123         MEM_EXPR on op0.
3125 2011-03-03  Richard Guenther  <rguenther@suse.de>
3127         PR middle-end/47283
3128         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
3129         match comment.
3130         (refs_may_alias_p_1): For release branches return true if
3131         we are confused by our input.
3133 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3135         * config/s390/s390.c (s390_function_value): Rename to ...
3136         (s390_function_and_libcall_value): ... this.
3137         (s390_function_value): New function.
3138         (s390_libcall_value): New function.
3139         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
3140         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
3141         target macro definitions.
3142         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
3144 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
3146         * config/i386/freebsd64.h (CC1_SPEC): Define.
3147         * config/i386/linux64.h (CC1_SPEC): Define.
3148         * config/i386/x86-64.h (CC1_SPEC): Don't define.
3150 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
3152         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3153         Remove.
3154         * config/stormy16/stormy16.c: Include reload.h.
3155         (xstormy16_memory_move_cost): New function.
3156         (TARGET_MEMORY_MOVE_COST): Define.
3158 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
3160         PR rtl-optimization/47925
3161         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
3162         with side effects.  Remove the more-specific check for volatile asms.
3164 2011-03-02  Alan Modra  <amodra@gmail.com>
3166         PR target/47935
3167         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
3168         toc relative addresses for valid offsets.
3170 2011-03-01  Richard Guenther  <rguenther@suse.de>
3172         PR tree-optimization/47890
3173         * tree-vect-loop.c (get_initial_def_for_induction): Set
3174         related stmt properly.
3176 2011-03-01  Richard Guenther  <rguenther@suse.de>
3178         PR lto/47924
3179         * lto-streamer.c (lto_record_common_node): Also register
3180         the canonical type.
3182 2011-03-01  Richard Guenther  <rguenther@suse.de>
3184         PR lto/46911
3185         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3186         Do not stream DECL_ABSTRACT_ORIGIN.
3187         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
3188         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
3189         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3190         Do not stream DECL_ABSTRACT_ORIGIN.
3191         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
3192         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
3194 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
3196         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
3197         FUNCTION_VALUE_REGNO_P): Remove.
3198         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
3199         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
3200         Add 'outgoing' argument.
3201         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
3202         function.
3203         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3204         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3206 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
3208         PR debug/28047
3209         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
3210         (lookup_filename): Likewise.
3211         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
3213 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
3214             Jakub Jelinek  <jakub@redhat.com>
3216         PR middle-end/47893
3217         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
3218         (assign_stack_local_1): Change last argument type to int.
3219         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
3220         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
3221         don't record padding space into frame_space_list nor use those areas.
3222         (assign_stack_local): Adjust caller.
3223         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
3224         of assign_stack_local, pass 0 as last argument.
3225         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
3226         callers.
3228 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
3230         PR debug/47283
3231         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
3232         Use target address_mode and pointer_mode hooks instead of hardcoded
3233         Pmode and ptr_mode.  Handle some simple cases of extending if
3234         POINTERS_EXTEND_UNSIGNED < 0.
3235         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
3236         Call convert_debug_memory_address.
3237         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
3238         convert_debug_memory_address.
3240         PR middle-end/46790
3241         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
3242         * configure: Regenerated.
3243         * config.in: Regenerated.
3244         * varasm.c (default_function_section): Return NULL
3245         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
3247 2011-02-28  Martin Jambor  <mjambor@suse.cz>
3249         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
3250         the description to match the printed values.
3252 2011-02-28  Richard Guenther  <rguenther@suse.de>
3254         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
3255         of the copied scope tree.
3257 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3259         * doc/extend.texi (Function Attributes): Avoid deeply (and
3260         wrongly) nested tables.
3262 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
3264         PR middle-end/47903
3265         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
3266         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
3267         r isn't op0 nor op1.
3269 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
3271         * config/avr/avr.md: Remove magic comment for emacs.
3273 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
3275         PR target/45261
3276         * config/avr/avr.c (avr_option_override): Use error on bad options.
3277         (avr_help): New function.
3278         (TARGET_HELP): Define.
3280 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
3282         PR target/42240
3283         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
3284         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
3286 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
3288         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
3289         (ARM Options): Ditto.
3290         (i386 and x86-64 Options): Ditto.
3291         (RX Options): Ditto.
3292         (SPARC Options): Ditto.
3294 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
3296         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
3297         FreeBSD 6 and later.  Generally use cpu generic.
3299 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
3301         * doc/cpp.texi: Update copyright years.
3303 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
3305         PR target/46898
3306         * config/lm32/lm32.md (ashrsi3): Added needed variable.
3308 2011-02-25  Jon Beniston  <jon@beniston.com>
3310         PR target/46898
3311         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
3312         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
3313         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
3314         (lm32_block_move_inline): Add type cast to remove warning.
3315         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
3316         (gen_int_relational): Move declarations to start of function.
3318 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
3320         PR tree-optimization/45470
3321         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
3322         can throw internally only.
3323         * tree-vect-stmts.c (vectorizable_call): Likewise.
3325 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
3327         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
3328         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3329         * config/stormy16/stormy16-protos.h
3330         (xstormy16_preferred_reload_class): Remove.
3331         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
3332         static. Change 'rclass' argument and return type to reg_class_t.
3333         (TARGET_PREFERRED_RELOAD_CLASS,
3334         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3336 2011-02-24  Richard Guenther  <rguenther@suse.de>
3338         * lto-streamer-in.c (input_bb): Do not find referenced vars
3339         in debug statements.
3341 2011-02-23  Jason Merrill  <jason@redhat.com>
3343         * common.opt (fabi-version): Document v5 and v6.
3345 2011-02-23  Richard Guenther  <rguenther@suse.de>
3347         PR tree-optimization/47849
3348         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
3350 2011-02-23  Jie Zhang  <jie@codesourcery.com>
3352         * opts-common.c (decode_cmdline_option): Print empty string
3353         argument as "" in decoded->orig_option_with_args_text.
3354         * gcc.c (execute): Print empty string argument as ""
3355         in the verbose output.
3356         (do_spec_1): Keep empty string argument.
3358 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
3360         * config.gcc: Declare score-* and crx-* obsolete.
3362 2011-02-23  Jie Zhang  <jie@codesourcery.com>
3364         PR rtl-optimization/47763
3365         * web.c (web_main): Ignore naked clobber when replacing register.
3367 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
3369         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
3370         Remove.
3372 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
3374         PR doc/47848
3375         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
3377 2011-02-22  Mike Stump  <mikestump@comcast.net>
3379         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
3380         assembler.
3381         * configure: Regenerate.
3383 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
3385         PR rtl-optimization/46002
3386         * ira-color.c (update_copy_costs): Change class intersection
3387         test to reg_class_contents[] test of 'hard_regno'.
3389 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
3391         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
3392         than Driver option.
3393         * config/hpux11.opt (mt): Likewise.
3394         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
3395         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
3396         * config/vax/elf.opt (mno-asm-pic): Likewise.
3397         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
3399 2011-02-21  Mike Stump  <mikestump@comcast.net>
3401         PR target/47822
3402         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
3403         tree so we can get save the type.
3404         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
3405         for CFString instead of trying to use past the end of the builtins.
3406         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
3407         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
3408         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
3409         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
3410         Rename to darwin_builtin_cfstring.
3411         (darwin_init_cfstring_builtins): Return the built type.
3413 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
3415         PR target/47840
3416         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
3417         (_mm256_insert_epi64): Use _mm_insert_epi64.
3419 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
3421         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3422         * config/stormy16/stormy16-protos.h
3423         (xstormy16_mode_dependent_address_p): Remove.
3424         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
3425         Make static. Change return type to bool. Change argument type to
3426         const_rtx. Remove dead code.
3427         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3429 2011-02-21  Richard Guenther  <rguenther@suse.de>
3431         PR lto/47820
3432         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3433         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
3434         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
3435         TUs context.
3436         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3437         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
3439 2011-02-20  Richard Guenther  <rguenther@suse.de>
3441         PR lto/47822
3442         * tree.c (free_lang_data_in_decl): Clean builtins from
3443         the TU decl BLOCK_VARS.
3445 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
3447         PR debug/47620
3448         PR debug/47630
3449         * haifa-sched.c (fix_tick_ready): Skip tick computation
3450         for debug insns.
3452 2011-02-19  Richard Guenther  <rguenther@suse.de>
3454         PR lto/47647
3455         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
3456         Remove lazy BLOCK_VARS streaming.
3457         (lto_input_ts_block_tree_pointers): Likewise.
3458         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
3460 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
3462         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
3464 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
3466         * config/i386/biarch32.h, config/i386/mach.h,
3467         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
3469 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
3471         PR target/47800
3472         * config/i386/i386.md (peephole2 for shift and plus): Use
3473         operands[1] original mode in the first insn.
3475 2011-02-18  Mike Stump  <mikestump@comcast.net>
3477         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
3479 2011-02-18  Jan Hubicka  <jh@suse.cz>
3481         PR middle-end/47788
3482         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
3483         to zero when the function is not inlinable at all.
3485 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3487         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
3488         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
3489         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
3490         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
3491         * config/pa/t-pa64: Likewise.
3492         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3494 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
3496         PR driver/47787
3497         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
3499 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3501         PR target/47792
3502         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
3504 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
3506         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3507         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
3508         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
3509         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3510         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
3511         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
3512         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
3513         m32r_load_postinc_p, m32r_store_preinc_predec_p,
3514         m32r_legitimate_address_p): New functions.
3515         * config/m32r/constraints.md (constraint "S"): Don't use
3516         STORE_PREINC_PREDEC_P.
3517         (constraint "U"): Don't use LOAD_POSTINC_P.
3519 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
3521         PR rtl-optimization/46178
3522         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
3523         compute ira_hard_regno_cover_class[].
3525 2011-02-18  Richard Guenther  <rguenther@suse.de>
3527         PR lto/47798
3528         * lto-streamer.h (lto_global_var_decls): Declare.
3529         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
3530         statics for global var processing.
3532 2011-02-18  Richard Guenther  <rguenther@suse.de>
3534         PR tree-optimization/47737
3535         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
3536         edge dominance check.
3538 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
3540         PR debug/47780
3541         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
3542         avoid invalid rtx sharing.
3544 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
3546         * doc/cpp.texi (Obsolete Features): Add background on the
3547         origin of assertions.
3549 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
3551         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
3552         objc_abi == 2.
3553         * config/darwin.c (output_objc_section_asm_op): Added support for
3554         ABI v1 and v2.
3555         (is_objc_metadata): New.
3556         (darwin_objc2_section): New.
3557         (darwin_objc1_section): New.
3558         (machopic_select_section): Added support for ABI v1 and v2.
3559         (darwin_emit_objc_zeroed): New.
3560         (darwin_output_aligned_bss): Detect objc metadata and treat it
3561         appropriately.
3562         (darwin_asm_output_aligned_decl_common): Same.
3563         (darwin_asm_output_aligned_decl_local): Same.
3564         * config/darwin-sections.def: Updated for ABI v1 and v2.
3565         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
3566         compiling Objective-C code for the NeXT runtime, default to using
3567         ABI version 0 for 32-bit, and version 2 for 64-bit.
3569 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
3571         * common.opt (optimize_fast): New Variable.
3572         * opts.c (default_options_optimization): Use opts->x_optimize_fast
3573         instead of local variable ofast.
3575 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3577         * doc/invoke.texi (fobjc-abi-version): Documented.
3578         (fobjc-nilcheck): Documented.
3579         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
3580         version.
3582 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
3584         PR driver/47390
3585         * common.opt (export-dynamic): New Driver option.
3586         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
3588 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
3590         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
3592 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
3593             Jan Hubicka  <jh@suse.cz>
3595         PR debug/47106
3596         PR debug/47402
3597         * cfgexpand.c (account_used_vars_for_block): Remove.
3598         (estimated_stack_frame_size): Use referenced vars.
3599         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
3600         that were referenced in the original function.  Test src_fn
3601         rather than cfun.  Drop redundant get_var_ann.
3602         (setup_one_parameter): Drop redundant get_var_ann.
3603         (declare_return_variable): Likewise.
3604         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
3605         (copy_arguments_for_versioning): Drop redundant get_var_ann.
3606         * ipa-inline.c (compute_inline_parameters): Do not compute
3607         disregard_inline_limits here.
3608         (compute_inlinable_for_current, pass_inlinable): New.
3609         (pass_inline_parameters): Require PROP_referenced_vars.
3610         * cgraphunit.c (cgraph_process_new_functions): Don't run
3611         compute_inline_parameters explicitly unless function is in SSA form.
3612         (cgraph_analyze_function): Set .disregard_inline_limits.
3613         * tree-sra.c (convert_callers): Compute inliner parameters
3614         only for functions already in SSA form.
3616 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
3618         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
3619         -mlittle-endian-data.
3621 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
3623         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
3624         -mno-fpu, not -fpu and -no-fpu.
3625         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
3626         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
3628 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
3630         PR target/43653
3631         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
3632         input reload with PLUS RTX.
3634 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
3636         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
3637         of InverseVar(MDMX).
3639 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
3641         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
3642         --m4-340.
3644 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
3646         * config/mn10300/mn10300.opt (mno-crt0): New.
3648 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
3650         * config/m68k/uclinux.opt (static-libc): New Driver option.
3652 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
3654         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
3656 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
3658         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
3659         %{muser-extend-enabled}.
3661 2011-02-16  Richard Guenther  <rguenther@suse.de>
3663         PR tree-optimization/47738
3664         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
3665         the TODO from tree_predictive_commoning.
3667 2011-02-15  Jeff Law  <law@redhat.com>
3669         Revert
3670         2011-01-25  Jeff Law  <law@redhat.com>
3672         PR rtl-optimization/37273
3673         * ira-costs.c (scan_one_insn): Detect constants living in memory and
3674         handle them like argument loads from stack slots.  Do not double
3675         count memory for memory constants and argument loads from stack slots.
3677 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
3679         PR middle-end/47725
3680         * combine.c (cant_combine_insn_p): Revert the last change.
3682 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
3684         PR target/47755
3685         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
3686         mode for vector constants.  Remove code that checks for TImode.
3688 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
3690         PR debug/47106
3691         PR debug/47402
3692         * cgraph.h (compute_inline_parameters): Return void.
3693         * ipa-inline.c (compute_inline_parameters): Adjust.
3695 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
3697         PR debug/47106
3698         PR debug/47402
3699         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
3700         rather than decl.
3701         * cfgexpand.c (estimated_stack_frame_size): Likewise.
3702         * ipa-inline.c (compute_inline_parameters): Adjust.
3704 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
3706         PR debug/47106
3707         PR debug/47402
3708         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
3709         Adjust all users.  Pass FN to...
3710         * tree-flow-inline.h (first_referenced_var): ... this.  Add
3711         fn argument.
3712         * ipa-struct-reorg.c: Adjust.
3713         * tree-dfa.c: Adjust.
3714         * tree-into-ssa.c: Adjust.
3715         * tree-sra.c: Adjust.
3716         * tree-ssa-alias.c: Adjust.
3717         * tree-ssa-live.c: Adjust.
3718         * tree-ssa.c: Adjust.
3719         * tree-ssanames.c: Adjust.
3720         * tree-tailcall.c: Adjust.
3722 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
3724         PR debug/47106
3725         PR debug/47402
3726         * tree-flow.h (referenced_var_lookup): Add fn parameter.
3727         Adjust all callers.
3728         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
3729         * tree-flow-inline.h: Adjust.
3730         * gimple-pretty-print.c: Adjust.
3731         * tree-into-ssa.c: Adjust.
3732         * tree-ssa.c: Adjust.
3733         * cfgexpand.c: Adjust.
3735 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
3737         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
3738         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3739         (EXTRA_CONSTRAINT): Delete.
3740         * config/iq2000/constraints.md: New file.
3741         * config/iq2000/iq2000.md: Include it.
3742         (define_insn ""): Delete.
3743         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
3744         unsupported constraint letters from patterns.
3745         (call_value, call_value_internal1): Likewise.
3746         (call_value_multiple_internal1): Likewise.
3748 2011-02-15  Nick Clifton  <nickc@redhat.com>
3750         * config/mn10300/mn10300.c: Include tm-constrs.h.
3751         (struct liw_data): New data structure describing an LIW candidate
3752         instruction.
3753         (extract_bundle): Use struct liw_data.  Allow small integer
3754         operands for some instructions.
3755         (check_liw_constraints): Use struct liw_data.  Remove swapped
3756         parameter.  Add comments describing the checks.  Fix bug when
3757         assigning the source of liw1 to the source of liw2.
3758         (liw_candidate): Delete.  Code moved into extract_bundle.
3759         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
3760         before swapping.
3761         * config/mn10300/predicates.md (liw_operand): New predicate.
3762         Allows registers and small integer constants.
3763         * config/mn10300/constraints.md (O): New constraint.  Accetps
3764         integers in the range -8 to +7 inclusive.
3765         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
3766         for moving a small integer into a register.  Give this alternative
3767         LIW attributes.
3768         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
3769         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
3770         using the J,K,L and M constraints,
3771         (liw): Remove SI mode on second operands to allow for HI and QI
3772         mode values.
3773         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
3774         instruction.
3776 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
3778         PR middle-end/47725
3779         * combine.c (cant_combine_insn_p): Check zero/sign extended
3780         hard registers.
3782 2011-02-15  Richard Guenther  <rguenther@suse.de>
3784         PR tree-optimization/47743
3785         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
3786         for a non-type-compatible VN lookup bail out.
3788 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
3790         * config/fr30/constraints.md: New file.
3791         * config/fr30/fr30.md: Include it.
3792         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
3793         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3794         (EXTRA_CONSTRAINT): Delete.
3796 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
3798         * config/frv/constraints.md: New file.
3799         * config/frv/predicates.md: Include it.
3800         * config/frv/frv.c (reg_class_from_letter): Delete.
3801         (frv_option_override): Don't initialize it.
3802         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
3803         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
3804         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
3805         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
3806         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
3807         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3808         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
3809         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
3810         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
3811         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
3812         (REG_CLASS_FROM_CONSTRAINT): Delete.
3814 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
3816         PR middle-end/47581
3817         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
3818         if frame size is 0 in a leaf function.
3820 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3822         PR pch/14940
3823         * config/alpha/host-osf.c: New file.
3824         * config/alpha/x-osf: New file.
3825         * config.host (alpha*-dec-osf*): Use it.
3827 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
3829         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3830         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
3831         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
3832         (rx_mode_dependent_address_p): ...this. Make static. Change argument
3833         type to const_rtx.
3834         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3836 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
3838         * config/stormy16/constraints.md: New file.
3839         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
3840         Use satisfies_constraint_Q and satisfies_constraint_R.
3841         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
3842         Delete.
3843         (xstormy16_legitiamte_address_p): Declare.
3844         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
3845         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3846         (EXTRA_CONSTRAINT): Delete.
3847         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
3848         Un-staticize.
3849         (xstormy16_extra_constraint_p): Delete.
3851 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
3853         PR tree-optimization/46494
3854         * loop-unroll.c (split_edge_and_insert): Adjust comment.
3855         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
3856         (pass_rtl_loop_done): Add TODO_verify_flow.
3857         * fwprop.c (pass_rtl_fwprop): Likewise.
3858         * modulo-sched.c (pass_sms): Likewise.
3859         * tree-ssa-dom.c (pass_dominator): Likewise.
3860         * tree-ssa-loop-ch.c (pass_ch): Likewise.
3861         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
3862         (pass_tree_loop_done): Likewise.
3863         * tree-ssa-pre.c (execute_pre): Likewise.
3864         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
3865         * tree-ssa-sink.c (pass_sink_code): Likewise.
3866         * tree-vrp.c (pass_vrp): Likewise.
3868 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
3870         * config/v850/constraints.md: New file.
3871         * config/v850/v850.md: Include it.
3872         * config/v850/predicates.md (reg_or_0_operand): Use
3873         satisfies_constraint_G.
3874         (special_symbolref_operand): Use satisfies_constraint_K.
3875         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
3876         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
3877         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
3878         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
3879         (EXTRA_CONSTRAINT): Delete.
3880         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
3881         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
3882         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
3884 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
3886         PR target/47696
3887         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
3888         description.
3890 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
3892         * config/mcore/constraints.md: New file.
3893         * config/mcore/mcore.md: Include it.
3894         * config/mcore/mcore.c (reg_class_from_letter): Delete.
3895         * config/mcore/mcore.h (reg_class_from_letter): Delete.
3896         (REG_CLASS_FROM_LETTER): Delete.
3897         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
3898         insn_const_int_ok_for_constraint.
3899         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
3900         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
3901         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3902         (EXTRA_CONSTRAINT): Delete.
3904 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3906         PR ada/41929
3907         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
3908         (IS_SIGHANDLER): Define.
3909         (sparc64_is_sighandler): New function, split off from
3910         sparc64_fallback_frame_state.
3911         (sparc_is_sighandler): New function, split off from
3912         sparc_fallback_frame_state.
3913         (sparc64_fallback_frame_state): Merge with ...
3914         (sparc_fallback_frame_state): ... this into ...
3915         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
3916         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
3917         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
3918         stack instead of hardcoded offsets.
3920 2011-02-14  Andriy Gapon  <avg@freebsd.org>
3922         PR target/45808
3923         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
3925 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3927         * configure: Regenerate.
3929 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
3931         PR driver/45731
3932         * gcc.c (asm_options): Correct spec matching --target-help.
3934 2011-02-12  Martin Jambor  <mjambor@suse.cz>
3936         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
3937         to gimple call error.
3939 2011-02-12  Mike Stump  <mikestump@comcast.net>
3941         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
3942         comments in backslash regions.
3944 2011-02-12  Mike Stump  <mikestump@comcast.net>
3945             Jakub Jelinek  <jakub@redhat.com>
3946             Iain Sandoe  <iains@gcc.gnu.org>
3948         PR target/47324
3949         * dwarf2out.c (output_cfa_loc): When required, apply the
3950         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
3951         (output_loc_sequence): Likewise.
3952         (output_loc_operands_raw): Likewise.
3953         (output_loc_sequence_raw): Likewise.
3954         (output_cfa_loc): Likewise.
3955         (output_loc_list): Suppress register number adjustment when
3956         calling output_loc_sequence()
3957         (output_die): Likewise.
3959 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
3961         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3962         Remove macros.
3963         * config/xtensa/xtensa.c (xtensa_register_move_cost,
3964         xtensa_memory_move_cost): New functions.
3965         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
3967 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
3969         PR lto/47225
3970         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
3971         in the current directory.
3972         * configure: Rebuilt.
3974 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
3976         * config/darwin.c (darwin_override_options): Add a hunk missed
3977         from the commit of r168571.  Trim comment line lengths and
3978         correct indents of the preceding block.
3980 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
3982         * gcc.c (driver_handle_option): Concatenate the argument to -F with
3983         the switch.
3985 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
3987         * common.opt (nostartfiles): New Driver option.
3989 2011-02-11  Xinliang David Li  <davidxl@google.com>
3991         PR tree-optimization/47707
3992         * tree-chrec.c (convert_affine_scev): Keep type precision.
3994 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
3996         PR tree-optimization/47420
3997         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
3999 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
4001         PR rtl-optimization/47614
4002         * rtl.h (check_for_inc_dec): Declare.
4003         * dse.c (check_for_inc_dec): Externalize...
4004         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
4005         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
4007 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
4009         PR driver/47678
4010         * gcc.c (main): Do not compile inputs if there were errors in
4011         option handling.
4012         * opts-common.c (read_cmdline_option): Check for wrong language
4013         after other error checks.
4015 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
4017         * cgraph.c: Fix comment typos.
4018         * cgraph.h: Likewise.
4019         * cgraphunit.c: Likewise.
4020         * ipa-cp.c: Likewise.
4021         * ipa-inline.c: Likewise.
4022         * ipa-prop.c: Likewise.
4023         * ipa-pure-const.c: Likewise.
4024         * ipa-ref.c: Likewise.
4025         * ipa-reference.c: Likewise.
4027 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
4029         PR debug/47684
4030         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
4032 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4034         PR testsuite/47400
4035         * doc/sourcebuild.texi (Require Support): Document
4036         dg-require-ascii-locale.
4038 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
4040         * doc/lto.texi (Write summary): Fix missing parentheses.
4042 2011-02-10  DJ Delorie  <dj@redhat.com>
4044         * config/m32c/m32c.c (m32c_option_override): Disable
4045         -fcombine-stack-adjustments until flag value tracking and compare
4046         optimization can be rewritten.
4048 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
4050         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
4051         PROCESSOR_POWER7.
4052         (PROCESSOR_DEFAULT64): Likewise.
4054 2011-02-10  Richard Henderson  <rth@redhat.com>
4056         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
4057         change from 2011-02-03.
4058         * config/rx/rx.c (flags_from_code): Likewise.
4059         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
4060         is valid, n/pz otherwise.
4061         (rx_select_cc_mode): Return CCmode if Y is not zero.
4063 2011-02-10  Richard Guenther  <rguenther@suse.de>
4065         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
4067 2011-02-10  Richard Guenther  <rguenther@suse.de>
4069         PR tree-optimization/47677
4070         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
4072 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
4074         PR target/47665
4075         * combine.c (make_compound_operation): Only change shifts into
4076         multiplication for SCALAR_INT_MODE_P.
4078 2011-02-10  Jie Zhang  <jie@codesourcery.com>
4080         PR testsuite/47622
4081         Revert
4082         2011-02-05  Jie Zhang  <jie@codesourcery.com>
4083         PR debug/42631
4084         * web.c (entry_register): Don't clobber the number of the
4085         first uninitialized reference in used[].
4087 2011-02-09  Richard Guenther  <rguenther@suse.de>
4089         PR tree-optimization/47664
4090         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
4091         all edges again.
4093 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
4095         PR target/46481
4096         PR target/47032
4097         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
4098         PROCESSOR_POWER7.
4099         (PROCESSOR_DEFAULT64): Same.
4100         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
4102 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4104         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
4106 2011-02-09  Martin Jambor  <mjambor@suse.cz>
4108         PR middle-end/45505
4109         * tree-sra.c (struct access): New flags grp_scalar_read and
4110         grp_scalar_write.  Changed description of assignment read and write
4111         flags.
4112         (dump_access): Dump new flags, reorder all of them.
4113         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
4114         to detect multiple scalar reads.
4115         (analyze_access_subtree): Use the new scalar read write flags instead
4116         of the old flags.  Adjusted comments.
4118 2011-02-08  DJ Delorie  <dj@redhat.com>
4120         PR target/47548
4121         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
4122         patterns.
4124 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4126         * config/m68k/uclinux.opt: New.
4127         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
4129 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4131         * config/cris/elf.opt (sim): New Driver option.
4133 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4135         * config/xtensa/elf.opt: New.
4136         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
4138 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4140         * config/vax/elf.opt: New.
4141         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
4143 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4145         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
4147 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4149         * config/gnu-user.opt: New.
4150         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
4151         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
4152         *-*-uclinux*): Use gnu-user.opt.
4154 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
4156         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
4157         * config/i386/gnu.h (CPP_SPEC): Likewise.
4159 2011-02-08  Ian Lance Taylor  <iant@google.com>
4161         * common.opt (fcx-limited-range): Add SetByCombined flag.
4162         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
4163         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
4164         (fassociative-math, freciprocal-math): Likewise.
4165         (funsafe-math-optimizations): Likewise.
4166         * opth-gen.awk: Handle SetByCombined.
4167         * optc-gen.awk: Likewise.
4168         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
4169         (set_unsafe_math_optimizations_flags): Likewise.
4170         * doc/options.texi (Option properties): Document SetByCombined.
4172 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
4174         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
4175         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
4176         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
4177         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
4178         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
4180 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
4182         PR tree-optimization/46834
4183         PR tree-optimization/46994
4184         PR tree-optimization/46995
4185         * graphite-sese-to-poly.c (used_outside_reduction): New.
4186         (detect_commutative_reduction): Call used_outside_reduction.
4187         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
4188         translate_scalar_reduction_to_array only when at least one
4189         loop-phi/close-phi tuple has been detected.
4191 2011-02-08  Richard Guenther  <rguenther@suse.de>
4193         PR middle-end/47639
4194         * tree-vect-generic.c (expand_vector_operations_1): Update
4195         stmts here ...
4196         (expand_vector_operations): ... not here.  Cleanup EH info
4197         and the CFG if required.
4199 2011-02-08  Richard Guenther  <rguenther@suse.de>
4201         PR tree-optimization/47641
4202         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
4203         require type compatibility.
4205 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4207         * gimple-low.c (lower_function_body): Don't remove the location of
4208         the return statement here.
4209         (lower_gimple_return): Do it here instead but only if the return
4210         statement is actually used twice.
4212 2011-02-08  Richard Guenther  <rguenther@suse.de>
4214         PR tree-optimization/47632
4215         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
4216         unused up_to_stmt parameter, return whether cfg-cleanup is
4217         necessary, remove EH info properly.
4218         (forward_propagate_into_gimple_cond): Adjust caller.
4219         (forward_propagate_into_cond): Likewise.
4220         (forward_propagate_comparison): Likewise.
4221         (tree_ssa_forward_propagate_single_use_vars): Make
4222         forward_propagate_comparison case similar to the two others.
4224 2011-02-08  Nick Clifton  <nickc@redhat.com>
4226         * config/mn10300/mn10300.opt (mliw): New command line option.
4227         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
4228         (liw_bundling): New automaton.
4229         (liw): New attribute.
4230         (liw_op): New attribute.
4231         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
4232         (movsi_internal): Add LIW attributes.
4233         (andsi3): Likewise.
4234         (iorsi3): Likewise.
4235         (xorsi3): Likewise.
4236         (addsi3): Separate register and immediate alternatives.
4237         Add LIW attributes.
4238         (subsi3): Likewise.
4239         (cmpsi): Likewise.
4240         (aslsi3): Likewise.
4241         (lshrsi3): Likewise.
4242         (ashrsi3): Likewise.
4243         (liw): New pattern.
4244         * config/mn10300/mn10300.c (liw_op_names): New
4245         (mn10300_print_operand): Handle 'W' operand descriptor.
4246         (extract_bundle): New function.
4247         (check_liw_constraints): New function.
4248         (liw_candidate): New function.
4249         (mn10300_bundle_liw): New function.
4250         (mn10300_reorg): New function.
4251         (TARGET_MACHINE_DEPENDENT_REORG): Define.
4252         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
4253         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
4254         __LIW__ or __NO_LIW__.
4255         * doc/invoke.texi: Describe the -mliw command line option.
4257 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4259         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
4260         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4261         pthread_mutex_unlock): Remove.
4262         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
4263         * config/pa/t-pa64: Likewise.
4264         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
4265         shared libc if not linking against libpthread.
4266         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4268 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
4270         PR target/47558
4271         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
4272         on 10.6 and later to ensure that we always use the unwinder from
4273         the system.  Only add -no_compact_unwind when tarteting darwin
4274         10.6 or later.
4276 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
4278         PR target/46997
4279         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
4280         (vec_interleave_lowv2sf): Ditto.
4281         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
4282         (vec_extract_oddv2sf): Ditto.
4284 2011-02-07  Mike Stump  <mikestump@comcast.net>
4286         PR target/42333
4287         Add __ieee_divdc3 entry point.
4288         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
4289         entry point.
4290         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
4291         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
4292         * config/darwin.c (darwin_rename_builtins): Add.
4293         * config/darwin-protos.h (darwin_rename_builtins): Add.
4295 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
4297         PR target/47636
4298         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
4299         for the condition.
4301 2011-02-07  Mike Stump  <mikestump@comcast.net>
4303         * config/darwin.opt (mmacosx-version-min): Update default OS version.
4305 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
4307         PR target/47534
4308         * config/avr/libgcc.S (exit): Move .endfunc
4310 2011-02-07  Richard Guenther  <rguenther@suse.de>
4312         PR tree-optimization/47615
4313         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
4314         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
4315         (run_scc_vn): Initialize it.
4316         (visit_reference_op_load): Use it.
4317         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
4319 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4321         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
4322         DImode trapping arithmetic libfuncs.
4324 2011-02-07  Richard Guenther  <rguenther@suse.de>
4326         PR tree-optimization/47621
4327         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
4328         two duplicates ...
4329         (execute_update_addresses_taken): ... here.  Make it more
4330         conservative in what we accept.
4332 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
4334         * config/sparc/freebsd.h (ASM_SPEC): Define.
4335         * config/sparc/vxworks.h (ASM_SPEC): Define.
4337 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
4339         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
4341 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
4343         * doc/invoke.texi: Remove reference to compiler internals from
4344         user documentation.
4346         * reg-notes.def: Remove REG_VALUE_PROFILE.
4347         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
4349 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
4351         PR middle-end/47610
4352         * varasm.c (default_section_type_flags): If decl is NULL,
4353         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
4355 2011-02-05  Jie Zhang  <jie@codesourcery.com>
4357         PR debug/42631
4358         * web.c (entry_register): Don't clobber the number of the
4359         first uninitialized reference in used[].
4361 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
4363         PR tree-optimization/46194
4364         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
4365         (build_classic_dist_vector_1): Do not represent classic distance
4366         vectors when the access functions are variating in different loops.
4368 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
4370         * config/mips/iris6.opt: New.
4371         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
4373 2011-02-04  Richard Henderson  <rth@redhat.com>
4374             Steve Ellcey  <sje@cup.hp.com>
4376         PR target/46997
4377         * config/ia64/predicates.md (mux1_brcst_element): New.
4378         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
4379         * config/ia64/ia64.c (ia64_unpack_assemble): New.
4380         (ia64_unpack_sign): New.
4381         (ia64_expand_unpack): Rewrite using new routines.
4382         (ia64_expand_widen_sum): Ditto.
4383         (ia64_expand_dot_prod_v8qi): Ditto.
4384         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
4385         routines, add endian check.
4386         (pmpy2_even): Rename from pmpy2_r, add endian check.
4387         (pmpy2_odd): Rename from pmpy2_l, add endian check.
4388         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
4389         (vec_widen_smult_hi_v4hi): Ditto.
4390         (vec_widen_umult_lo_v4hi): Ditto.
4391         (vec_widen_umult_hi_v4hi): Ditto.
4392         (mulv2si3): Change endian checks.
4393         (sdot_prodv4hi): Rewrite with new calls.
4394         (udot_prodv4hi): New.
4395         (vec_pack_ssat_v4hi): Add endian check.
4396         (vec_pack_usat_v4hi): Ditto.
4397         (vec_pack_ssat_v2si): Ditto.
4398         (max1_even): Rename from max1_r, add endian check.
4399         (max1_odd): Rename from max1_l, add endian check.
4400         (*mux1_rev): Format change.
4401         (*mux1_mix): Ditto.
4402         (*mux1_shuf): Ditto.
4403         (*mux1_alt): Ditto.
4404         (*mux1_brcst_v8qi): Use new predicate.
4405         (vec_extract_evenv8qi): Remove endian check.
4406         (vec_extract_oddv8qi): Ditto.
4407         (vec_interleave_lowv4hi): Format change.
4408         (vec_interleave_highv4hi): Ditto.
4409         (mix2_even): Rename from mix2_r, add endian check.
4410         (mix2_odd): Rename from mux2_l, add endian check.
4411         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
4412         (vec_extract_evenodd_helper): Format change.
4413         (vec_extract_evenv4hi): Remove endian check.
4414         (vec_extract_oddv4hi): Remove endian check.
4415         (vec_interleave_lowv2si): Format change.
4416         (vec_interleave_highv2si): Format change.
4417         (vec_initv2si): Remove endian check.
4418         (vecinit_v2si): Add endian check.
4419         (reduc_splus_v2sf): Add endian check.
4420         (reduc_smax_v2sf): Ditto.
4421         (reduc_smin_v2sf): Ditto.
4422         (vec_initv2sf): Remove endian check.
4423         (fpack): Add endian check.
4424         (fswap): Add endian check.
4425         (vec_interleave_highv2sf): Add endian check.
4426         (vec_interleave_lowv2sf): Add endian check.
4427         (fmix_lr): Add endian check.
4428         (vec_setv2sf): Format change.
4429         (*vec_extractv2sf_0_be): Use shift to extract operand.
4430         (*vec_extractv2sf_1_be): New.
4431         (vec_pack_trunc_v4hi): Add endian check.
4432         (vec_pack_trunc_v2si): Format change.
4434 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
4436         PR inline-asm/23200
4437         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
4438         do bb, locus and block comparison and disallow loads if it is not set.
4439         (stmt_is_replaceable_p): New function.
4440         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
4441         callers.
4442         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
4443         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
4444         SSA_NAME_DEF_STMT.
4445         * tree-flow.h (stmt_is_replaceable_p): New prototype.
4447 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
4449         * config/rs6000/xilinx.opt: New.
4450         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
4452 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
4454         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
4456 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
4458         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
4459         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4460         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
4461         secondary_reload_info, xtensa_secondary_reload): Remove.
4462         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
4463         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4464         (xtensa_preferred_reload_class): Make static. Change return and
4465         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
4466         Use CONST_DOUBLE_P predicate.
4467         (xtensa_preferred_output_reload_class): New function.
4468         (xtensa_secondary_reload): Make static.
4470 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
4472         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
4473         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
4474         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
4476 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
4478         PR middle-end/31490
4479         * output.h (SECTION_RELRO): Define.
4480         (SECTION_MACH_DEP): Adjust.
4481         (get_variable_section): New prototype.
4482         * varpool.c (varpool_finalize_named_section_flags): New function.
4483         (varpool_assemble_pending_decls): Call it.
4484         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
4485         * cgraphunit.c (cgraph_output_in_order): Call
4486         varpool_finalize_named_section_flags.
4487         * varasm.c (get_section): Allow section flags conflicts between
4488         relro and read-only sections if the section hasn't been declared yet.
4489         Set SECTION_OVERRIDE after diagnosing section type conflict.
4490         (get_variable_section): No longer static.
4491         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
4492         readonly sections that need relocations.
4493         (decl_readonly_section_1): New function.
4494         (decl_readonly_section): Use it.
4496         Revert:
4497         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
4498                     Steve Ellcey  <sje@cup.hp.com>
4500         PR middle-end/31490
4501         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
4502         if section attribute used.
4504 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
4506         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
4507         * config/darwin.c (SECTION_NO_ANCHOR): Define.
4508         (darwin_init_sections): Remove assertion.
4510 2011-02-03  Nick Clifton  <nickc@redhat.com>
4512         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
4513         lt and ge.
4514         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
4515         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
4516         instead of "n" and "pz".
4517         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
4518         CC_FLAG_S.
4520 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
4522         PR target/47312
4523         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
4524         fma, expand FMA_EXPR as fma{,f,l} call.
4526         PR lto/47274
4527         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
4528         copy them into a unsigned char variable and pass address of it to
4529         lto_output_data_stream.
4531         PR target/47564
4532         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
4533         around backend_init_target and lang_dependent_init_target calls.
4534         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
4535         (verify_cgraph_node): Don't call set_cfun here.  Use
4536         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
4537         Set error_found for incorrectly represented calls to thunks.
4539 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
4541         PR debug/43092
4542         PR rtl-optimization/43494
4543         * rtl.h (for_each_inc_dec_fn): New type.
4544         (for_each_inc_dec): Declare.
4545         * rtlanal.c (struct for_each_inc_dec_ops): New type.
4546         (for_each_inc_dec_find_inc_dec): New fn.
4547         (for_each_inc_dec_find_mem): New fn.
4548         (for_each_inc_dec): New fn.
4549         * dse.c (struct insn_size): Remove.
4550         (replace_inc_dec, replace_inc_dec_mem): Remove.
4551         (emit_inc_dec_insn_before): New fn.
4552         (check_for_inc_dec): Use it, along with for_each_inc_dec.
4553         (canon_address): Pass mem modes to cselib_lookup.
4554         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
4555         (cselib_lookup_from_insn): Likewise.
4556         (cselib_subst_to_values): Likewise.
4557         * cselib.c (find_slot_memmode): New var.
4558         (cselib_find_slot): New fn.  Use it instead of
4559         htab_find_slot_with_hash everywhere.
4560         (entry_and_rtx_equal_p): Use find_slot_memmode.
4561         (autoinc_split): New fn.
4562         (rtx_equal_for_cselib_p): Rename and implement in terms of...
4563         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
4564         Deal with autoinc.  Special-case recursion into MEMs.
4565         (cselib_hash_rtx): Likewise.
4566         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
4567         address and MEM modes.
4568         (cselib_subst_to_values): Add memmode, pass it on.
4569         Deal with autoinc.
4570         (cselib_lookup): Add memmode argument, pass it on.
4571         (cselib_lookup_from_insn): Add memmode.
4572         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
4573         (struct cselib_record_autoinc_data): New.
4574         (cselib_record_autoinc_cb): New fn.
4575         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
4576         mode to cselib_lookup.  Reset autoinced REGs here instead of...
4577         (cselib_process_insn): ... here.
4578         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
4579         to cselib_lookup.
4580         (add_uses): Likewise, also to cselib_subst_to_values.
4581         (add_stores): Likewise.
4582         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
4583         cselib_subst_to_values.
4584         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
4585         * gcse.c (do_local_cprop): Adjusted.
4586         * postreload.c (reload_cse_simplify_set): Adjusted.
4587         (reload_cse_simplify_operands): Adjusted.
4588         * sel-sched-dump (debug_mem_addr_value): Pass mode.
4590 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
4592         PR tree-optimization/45122
4593         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
4594         unsafe assumptions when there's more than one loop exit.
4596 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4598         PR target/47272
4599         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
4600         Document using vector double with the load/store builtins, and
4601         that the load/store builtins always use Altivec instructions.
4603         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
4604         to use altivec memory instructions, even on VSX.
4605         (vector_altivec_store_<mode>): Ditto.
4607         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
4608         function.
4610         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4611         V2DF, V2DI support to load/store overloaded builtins.
4613         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
4614         altivec load/store builtins for V2DF/V2DI types.
4616         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4617         set avoid indexed addresses on power6 if -maltivec.
4618         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
4619         vector_altivec_load/vector_altivec_store builtins.
4620         (altivec_expand_st_builtin): Ditto.
4621         (altivec_expand_builtin): Add VSX memory builtins.
4622         (rs6000_init_builtins): Add V2DI types to internal types.
4623         (altivec_init_builtins): Add support for V2DF/V2DI altivec
4624         load/store builtins.
4625         (rs6000_address_for_altivec): Insure memory address is appropriate
4626         for Altivec.
4628         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
4629         vec_vsx_ld and vec_vsx_st.
4630         (vsx_store_<mode>): Ditto.
4632         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
4633         variables to hold long long types for VSX vector memory builtins.
4634         (RS6000_BTI_unsigned_long_long): Ditto.
4635         (long_long_integer_type_internal_node): Ditti.
4636         (long_long_unsigned_type_internal_node): Ditti.
4638         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
4639         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
4640         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
4642         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
4643         short cuts.
4644         (vec_vsx_st): Ditto.
4646 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
4648         * config/pa/pa-hpux10.opt: New.
4649         * config/hpux11.opt (pthread): New Driver option.
4650         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
4651         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
4653 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
4655         * config/ia64/vms.opt: New.
4656         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
4658 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
4660         PR target/47580
4661         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
4662         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
4663         generator functions.
4664         (vsx_floatuns<VSi><mode>2): Ditto.
4665         (vsx_fix_trunc<mode><VSi>2): Ditto.
4666         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
4668 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
4670         * config/i386/djgpp.opt (posix): New Driver option.
4672 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
4674         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
4675         Move to the unsupported targets list.
4677 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
4679         PR rtl-optimization/47525
4680         * df-scan.c: Update copyright years.
4681         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
4682         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
4684 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4686         * config/i386/sysv4.h (TARGET_VERSION): Remove.
4687         (SUBTARGET_RETURN_IN_MEMORY): Remove.
4688         (ASM_OUTPUT_ASCII): Remove.
4689         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
4691 2011-02-02  Jeff Law  <law@redhat.com>
4693         PR middle-end/47543
4694         * reload.c (find_reloads_address): Handle reg+d address where both
4695         components are invalid by reloading the entire address.
4697 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
4698             Richard Guenther  <rguenther@suse.de>
4700         PR tree-optimization/40979
4701         PR bootstrap/47044
4702         * passes.c (init_optimization_passes): After LIM call copy_prop
4703         and DCE to clean up.
4704         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
4706 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
4708         PR tree-optimization/47576
4709         PR tree-optimization/47555
4710         * doc/invoke.texi (scev-max-expr-complexity): Documented.
4711         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
4712         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
4713         * tree-scalar-evolution.c (follow_ssa_edge): Use
4714         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
4716 2011-02-02  Richard Guenther  <rguenther@suse.de>
4718         PR tree-optimization/47566
4719         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
4721 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
4723         PR debug/47106
4724         PR debug/47402
4725         * tree-inline.c (declare_return_variable): Remove unused caller
4726         variable.
4728         PR debug/47106
4729         PR debug/47402
4730         * tree-flow-inline.h (clear_is_used, is_used_p): New.
4731         * cfgexpand.c (account_used_vars_for_block): Use them.
4732         * tree-nrv.c (tree_nrv): Likewise.
4733         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
4734         (dump_scope_block): Likewise.
4735         (remove_unused_locals): Likewise.
4737         PR debug/47106
4738         PR debug/47402
4739         * tree-inline.c (declare_return_variable): Add result decl to
4740         local decls only once.
4741         * gimple-low.c (record_vars_into): Mark newly-created variables
4742         as referenced.
4744 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
4746         PR debug/47498
4747         PR debug/47501
4748         PR debug/45136
4749         PR debug/45130
4750         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
4751         debug insns.
4752         (no_real_insns_p, schedule_block, set_priorities): Drop special
4753         treatment of boundary debug insns.
4754         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
4755         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
4756         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
4757         (BOUNDARY_DEBUG_INSN_P): Likewise.
4758         (SCHEDULE_DEBUG_INSN_P): Likewise.
4759         * sched-rgn.c (init_ready_list): Drop special treatment of
4760         boundary debug insns.
4761         * final.c (rest_of_clean_state): Clear notes' BB.
4763 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4765         * config/openbsd.opt (assert=): New Driver option.
4767 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4769         * config/i386/nto.opt: New.
4770         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
4772 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4774         * config/i386/netware.opt: New.
4775         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
4777 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4779         * config/interix.opt (posix): New Driver option.
4781 2011-02-01  DJ Delorie  <dj@redhat.com>
4783         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
4785         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
4786         class for A0/A1.
4788 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
4790         PR tree-optimization/47561
4791         * toplev.c (process_options): Print the Graphite flags.  Add
4792         flag_loop_flatten to the list of options requiring Graphite.
4794 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4796         * config/i386/cygming.opt (posix): New Driver option.
4798 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4800         * config/arm/vxworks.opt: New.
4801         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
4803 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4805         * config/alpha/elf.opt: New.
4806         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
4807         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
4809 2011-02-01  Richard Guenther  <rguenther@suse.de>
4811         PR tree-optimization/47559
4812         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
4813         store-motion on references that can throw.
4815 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
4817         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
4818         * tree-pass.h (TDF_CSELIB): New macro.
4819         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
4820         cselib_lookup): Check for it rather than for TDF_DETAILS.
4822 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
4824         PR driver/47547
4825         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
4826         is HOST_BIT_BUCKET.
4828         * opts.c (finish_options): Don't add x_aux_base_name if it is
4829         HOST_BIT_BUCKET.
4831 2011-02-01  Richard Guenther  <rguenther@suse.de>
4833         PR tree-optimization/47555
4834         Revert
4835         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
4837         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
4839 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
4841         PR gcc/46692
4842         * config/lm32/t-lm32: Add multilib for all CPU options.
4844 2011-02-01  Richard Guenther  <rguenther@suse.de>
4846         PR tree-optimization/47541
4847         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
4848         sure to have a field at offset zero.
4850 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
4852         * config/arc/arc.opt (EB, EL): New Driver options.
4854 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
4856         * config/alpha/osf5.opt: New.
4857         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
4859 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
4861         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
4863 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
4865         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
4866         -floop-interchange.
4867         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
4868         is an alias of -floop-interchange and that it requires the
4869         Graphite infrastructure.
4870         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
4871         flag_loop_interchange based on the value of flag_tree_loop_linear.
4873 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
4874             Richard Guenther  <rguenther@suse.de>
4876         PR tree-optimization/47538
4877         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
4878         type instead of r1type, except for comparisons.  For right
4879         shifts and comparisons punt if there are mismatches in
4880         sizetype vs. non-sizetype types.
4882 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4884         * doc/sourcebuild.texi (Effective-Target Keywords): Document
4885         avx_runtime.
4887 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4889         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
4890         version number.
4891         * configure: Regenerate.
4893 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4895         * configure.ac (gcc_cv_ld_static_option): Define.
4896         (gcc_cv_ld_dynamic_option): Define.
4897         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
4898         instead.
4899         (HAVE_LD_STATIC_DYNAMIC): Update message.
4900         (LD_STATIC_OPTION): Define.
4901         (LD_DYNAMIC_OPTION): Define.
4902         * configure: Regenerate.
4903         * config.in: Regenerate.
4904         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
4905         HAVE_LD_STATIC_DYNAMIC]: Use them.
4907 2011-01-31  Nick Clifton  <nickc@redhat.com>
4909         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
4910         registers inside interrupt handlers if the handler is not a leaf
4911         function.
4913 2011-01-31  Nick Clifton  <nickc@redhat.com>
4915         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
4916         reg_renumber returning an INVALID_REGNUM.
4918 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
4920         PR libgcj/44341
4921         * doc/install.texi: Document host options discarded when cross
4922         configuring target libraries.
4924 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
4926         Reverted:
4927         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
4928         PR debug/45136
4929         PR debug/45130
4930         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
4931         debug insns.
4932         (no_real_insns_p, schedule_block, set_priorities): Drop special
4933         treatment of boundary debug insns.
4934         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
4935         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
4936         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
4937         (BOUNDARY_DEBUG_INSN_P): Likewise.
4938         (SCHEDULE_DEBUG_INSN_P): Likewise.
4939         * sched-rgn.c (init_ready_list): Drop special treatment of
4940         boundary debug insns.
4941         * final.c (rest_of_clean-state): Clear notes' BB.
4943 2011-01-31  Alan Modra  <amodra@gmail.com>
4945         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
4946         toc relative expressions as we do in print_operand_address.
4948 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
4950         * doc/extend.texi: Follow spelling conventions.
4951         * doc/invoke.texi: Fix a typo.
4953 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
4955         * config/hpux11.opt: New.
4956         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
4957         ia64*-*-hpux*): Use hpux11.opt.
4959 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
4961         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
4962         to tmake_file.
4964 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
4966         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
4967         support sites.
4969 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
4971         * doc/install.texi (Binaries): Remove outdated reference for
4972         Motorola 68HC11/68HC12 downloads.
4974 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
4976         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
4977         Drepper's paper.
4979 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
4981         PR bootstrap/47147
4982         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
4983         used by NetBSD.
4985 2011-01-28  Ahmad Sharif  <asharif@google.com>
4987         * value-prof.c (check_counter): Corrected error message.
4989 2011-01-29  Jie Zhang  <jie@codesourcery.com>
4991         * config/arm/arm.c (arm_legitimize_reload_address): New.
4992         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
4993         arm_legitimize_reload_address.
4994         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
4996 2011-01-28  Ian Lance Taylor  <iant@google.com>
4998         * godump.c (go_define): Ignore macros whose definitions include
4999         two adjacent operands.
5001 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
5003         PR target/42894
5004         * varasm.c (force_const_mem): Store copy of x in desc->constant
5005         instead of x itself.
5006         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
5007         itself into REG_EQUAL note.
5009 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
5011         * config/freebsd.opt (posix, rdynamic): New Driver options.
5013 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5015         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
5016         -Bstatic/-Bdynamic.
5017         * configure: Regenerate.
5019 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
5021         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
5022         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
5024 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
5026         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
5027         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
5028         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5029         (s390_preferred_reload_class): Make static. Change return and
5030         'rclass' argument type to reg_class_t.
5032 2011-01-27  Jan Hubicka  <jh@suse.cz>
5034         PR middle-end/46949
5035         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
5036         (process_function_and_variable_attributes): Check defined weakrefs.
5038 2011-01-27  Martin Jambor  <mjambor@suse.cz>
5040         PR tree-optimization/47228
5041         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
5042         build_ref_for_offset.
5044 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5046         * config/spu/spu-elf.h (ASM_SPEC): Remove.
5048 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
5050         PR rtl-optimization/46856
5051         * postreload.c (reload_combine_recognize_const_pattern): Do not
5052         separate cc0 setter and user on cc0 targets.
5054 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
5056         PR c/43082
5057         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
5058         passed a VOID_TYPE expression, immediately emit an error and
5059         return error_mark_node.
5061 2011-01-26  Jeff Law  <law@redhat.com>
5063         PR rtl-optimization/47464
5064         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
5065         rather than may_trap_p as needed.
5067 2011-01-26  DJ Delorie  <dj@redhat.com>
5069         PR rtl-optimization/46878
5070         * combine.c (insn_a_feeds_b): Check for the implicit cc0
5071         setter/user dependency as well.
5073 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
5075         PR rtl-optimization/44469
5076         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
5077         after removing trivially dead basic blocks.
5079 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
5081         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
5082         * config/frv/frv.h (LINK_SPEC): Likewise.
5083         * config/i386/netware.h (LINK_SPEC): Likewise.
5084         * config/m68k/linux.h (ASM_SPEC): Likewise.
5085         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
5086         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5087         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5088         * config/sparc/linux.h (ASM_SPEC): Likewise.
5089         * config/sparc/linux64.h (ASM_SPEC): Likewise.
5090         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5092 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
5094         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
5095         * config/frv/frv.h (ASM_SPEC): Likewise.
5096         * config/m68k/linux.h (ASM_SPEC): Likewise.
5097         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5098         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
5099         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5100         * config/sparc/linux.h (ASM_SPEC): Likewise.
5101         * config/sparc/linux64.h (ASM_SPEC): Likewise.
5102         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5104 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
5106         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
5107         * config/frv/frv.h (LINK_SPEC): Likewise.
5108         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5110 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
5112         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
5113         * config/frv/frv.h (ASM_SPEC): Likewise.
5114         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
5115         * config/m68k/linux.h (ASM_SPEC): Likewise.
5116         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5117         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
5118         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5119         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
5120         * config/sparc/linux.h (ASM_SPEC): Likewise.
5121         * config/sparc/linux64.h (ASM_SPEC): Likewise.
5122         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5123         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
5125 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
5127         PR target/46997
5128         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
5129         (*mux2): Ditto.
5130         (vec_extract_evenodd_help): Ditto.
5131         (vec_extract_evenv4hi): Ditto.
5132         (vec_extract_oddv4hi): Ditto.
5133         (vec_interleave_lowv2si): Ditto.
5134         (vec_interleave_highv2si): Ditto.
5135         (vec_extract_evenv2si): Ditto.
5136         (vec_extract_oddv2si: Ditto.
5137         (vec_pack_trunc_v2si): Ditto.
5139 2011-01-22  Jan Hubicka  <jh@suse.cz>
5141         PR target/47237
5142         * cgraph.h (cgraph_local_info): New field can_change_signature.
5143         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
5144         signature can change.
5145         (ipcp_estimate_growth): Call sequence simplify only if calle signature
5146         can change.
5147         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
5148         (cgraph_function_versioning): We can not change signature of functions
5149         that don't allow that.
5150         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
5151         (lto_input_node): Likewise.
5152         * ipa-inline.c (compute_inline_parameters): Compute
5153         local.can_change_signature.
5154         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
5155         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
5156         functions that can not change signature.
5157         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
5158         init_cumulative_args): Do not use local calling conventions
5159         for functions that can not change signature.
5161 2011-01-22  Jan Hubicka  <jh@suse.cz>
5163         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
5165 2011-01-26  Richard Guenther  <rguenther@suse.de>
5167         PR tree-optimization/47190
5168         * cgraphunit.c (process_common_attributes): New function.
5169         (process_function_and_variable_attributes): Use it.
5171 2011-01-26  Richard Guenther  <rguenther@suse.de>
5173         PR lto/47423
5174         * cgraphbuild.c (record_eh_tables): Record reference to personality
5175         function.
5177 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
5179         PR debug/45454
5180         * sel-sched.c (moveup_expr): Don't let debug insns prevent
5181         non-debug insns from moving up.
5183 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
5185         PR target/40125
5186         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
5187         t-dlldir{,-x} fragment for build and add it to tmake_file.
5188         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
5189         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
5190         * config/i386/t-dlldir: New file.
5191         (SHLIB_DLLDIR): Define.
5192         * config/i386/t-dlldir-x: New file.
5193         (SHLIB_DLLDIR): Define.
5194         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
5195         (SHLIB_INSTALL): Use it.
5197 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
5199         PR target/47246
5200         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
5201         lower bound of the allowed Thumb-2 coprocessor load/store
5202         index range to -256. Add explaining comment.
5204 2011-01-25  Ian Lance Taylor  <iant@google.com>
5206         * godump.c (go_define): Improve lexing of macro expansion to only
5207         accept expressions which match Go spec.
5209 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
5211         PR c++/43601
5212         * tree.c (handle_dll_attribute): Handle it.
5213         * doc/extend.texi (@item dllexport): Mention it.
5214         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
5216 2011-01-25  Ian Lance Taylor  <iant@google.com>
5218         PR tree-optimization/26854
5219         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
5220         (decl_jump_unsafe): Move higher in file, with no other change.
5221         (bind): Set has_jump_unsafe_decl if appropriate.
5222         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
5223         (check_earlier_gotos): Likewise.
5224         (c_check_switch_jump_warnings): Likewise.
5226 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
5228         * doc/invoke.texi (Warning Options): Add missing hyphen.
5229         (-fprofile-dir): Minor grammatical fixes.
5230         (-fbranch-probabilities): Likewise.
5232 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
5234         PR debug/45136
5235         PR debug/45130
5236         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5237         debug insns.
5238         (no_real_insns_p, schedule_block, set_priorities): Drop special
5239         treatment of boundary debug insns.
5240         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
5241         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
5242         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5243         (BOUNDARY_DEBUG_INSN_P): Likewise.
5244         (SCHEDULE_DEBUG_INSN_P): Likewise.
5245         * sched-rgn.c (init_ready_list): Drop special treatment of
5246         boundary debug insns.
5247         * final.c (rest_of_clean-state): Clear notes' BB.
5249 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5251         * Makefile.in (LAMBDA_H): Removed.
5252         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
5253         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
5254         lambda-trans.o, and tree-loop-linear.o.
5255         (lto-symtab.o): Remove dependence on LAMBDA_H.
5256         (tree-loop-linear.o): Remove rule.
5257         (lambda-mat.o): Same.
5258         (lambda-trans.o): Same.
5259         (lambda-code.o): Same.
5260         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
5261         (tree-vect-slp.o): Same.
5262         * hwint.h (gcd): Moved here.
5263         (least_common_multiple): Same.
5264         * lambda-code.c: Removed.
5265         * lambda-mat.c: Removed.
5266         * lambda-trans.c: Removed.
5267         * lambda.h: Removed.
5268         * tree-loop-linear.c: Removed.
5269         * lto-symtab.c: Do not include lambda.h.
5270         * omega.c (gcd): Removed.
5271         * passes.c (init_optimization_passes): Remove pass_linear_transform.
5272         * tree-data-ref.c (print_lambda_vector): Moved here.
5273         (lambda_vector_copy): Same.
5274         (lambda_matrix_copy): Same.
5275         (lambda_matrix_id): Same.
5276         (lambda_vector_first_nz): Same.
5277         (lambda_matrix_row_add): Same.
5278         (lambda_matrix_row_exchange): Same.
5279         (lambda_vector_mult_const): Same.
5280         (lambda_vector_negate): Same.
5281         (lambda_matrix_row_negate): Same.
5282         (lambda_vector_equal): Same.
5283         (lambda_matrix_right_hermite): Same.
5284         * tree-data-ref.h: Do not include lambda.h.
5285         (lambda_vector): Moved here.
5286         (lambda_matrix): Same.
5287         (dependence_level): Same.
5288         (lambda_transform_legal_p): Removed declaration.
5289         (lambda_collect_parameters): Same.
5290         (lambda_compute_access_matrices): Same.
5291         (lambda_vector_gcd): Same.
5292         (lambda_vector_new): Same.
5293         (lambda_vector_clear): Same.
5294         (lambda_vector_lexico_pos): Same.
5295         (lambda_vector_zerop): Same.
5296         (lambda_matrix_new): Same.
5297         * tree-flow.h (least_common_multiple): Removed declaration.
5298         * tree-parloops.c (lambda_trans_matrix): Moved here.
5299         (LTM_MATRIX): Same.
5300         (LTM_ROWSIZE): Same.
5301         (LTM_COLSIZE): Same.
5302         (LTM_DENOMINATOR): Same.
5303         (lambda_trans_matrix_new): Same.
5304         (lambda_matrix_vector_mult): Same.
5305         (lambda_transform_legal_p): Same.
5306         * tree-pass.h (pass_linear_transform): Removed declaration.
5307         * tree-ssa-loop.c (tree_linear_transform): Removed.
5308         (gate_tree_linear_transform): Removed.
5309         (pass_linear_transform): Removed.
5310         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
5311         flag_loop_interchange.
5313 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
5315         PR tree-optimization/47265
5316         PR tree-optimization/47443
5317         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
5318         if name still has some uses.
5320 2011-01-25  Martin Jambor  <mjambor@suse.cz>
5322         PR tree-optimization/47382
5323         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
5324         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
5326 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
5328         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
5329         sjlj_except_unwind_info.
5331 2011-01-25  Richard Guenther  <rguenther@suse.de>
5333         PR tree-optimization/47426
5334         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
5335         visible functions results escape.
5337 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
5339         PR target/45701
5340         * config/arm/arm.c (any_sibcall_uses_r3): New function.
5341         (arm_get_frame_offsets): Use it.
5343 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5344             Jakub Jelinek  <jakub@redhat.com>
5346         PR tree-optimization/47271
5347         * tree-if-conv.c (bb_postdominates_preds): New.
5348         (if_convertible_bb_p): Call bb_postdominates_preds.
5349         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
5350         (predicate_scalar_phi): Call bb_postdominates_preds.
5352 2011-01-25  Nick Clifton  <nickc@redhat.com>
5354         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
5355         * config/rx/rx.c (rx_function_value): Likewise.
5356         (rx_promote_function_mode): Likewise.
5357         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
5358         in order to make it legitimate.
5359         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
5360         make sure that the first operand is the same as the result register.
5361         (addsi3_unspec): Delete.
5362         (subdi3): Do not accept immediate operands.
5363         (subdi3_internal): Likewise.
5365 2011-01-25  Jeff Law  <law@redhat.com>
5367         PR rtl-optimization/37273
5368         * ira-costs.c (scan_one_insn): Detect constants living in memory and
5369         handle them like argument loads from stack slots.  Do not double
5370         count memory for memory constants and argument loads from stack slots.
5372 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
5374         PR tree-optimization/47427
5375         PR tree-optimization/47428
5376         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
5377         coalesce if the new root var would be TREE_READONLY.
5379 2011-01-25  Richard Guenther  <rguenther@suse.de>
5381         PR middle-end/47414
5382         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
5383         correct type for TBAA.
5385 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5387         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
5388         (close_phi_written_to_memory): Call for_each_index with
5389         dr_indices_valid_in_loop.
5391 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5393         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
5394         when it is initialized.
5396 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5398         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
5399         call to graphite_find_data_references_in_stmt.
5400         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
5401         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
5402         call to graphite_find_data_references_in_stmt.
5403         (analyze_drs_in_stmts): Same.
5404         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
5405         in which the scalar analysis of indices is performed.
5406         (create_data_ref): Same.  Update call to dr_analyze_indices.
5407         (find_data_references_in_stmt): Update call to create_data_ref.
5408         (graphite_find_data_references_in_stmt): Same.
5409         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
5410         declaration.
5411         (create_data_ref): Same.
5412         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
5413         call to create_data_ref.
5415 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5417         * graphite-sese-to-poly.c (build_poly_scop): Move
5418         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
5420 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5422         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
5423         VAR_DECL, PARM_DECL, and RESULT_DECL.
5425 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5427         * graphite-dependences.c (reduction_dr_1): Allow several reductions
5428         in a reduction PBB.
5429         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
5430         that have already been marked as PBB_IS_REDUCTION.
5432 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5434         * graphite-scop-detection.c (same_close_phi_node): New.
5435         (remove_duplicate_close_phi): New.
5436         (make_close_phi_nodes_unique): New.
5437         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
5439 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5441         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
5442         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
5443         of both data references to be the same.
5445 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5447         * graphite-dependences.c (build_lexicographical_constraint): Remove
5448         the gdim parameter.
5449         (build_lexicographical_constraint): Adjust call to
5450         ppl_powerset_is_empty.
5451         (dependence_polyhedron): Same.
5452         (graphite_legal_transform_dr): Same.
5453         (graphite_carried_dependence_level_k): Same.
5454         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
5455         parameter.
5456         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
5458 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5460         * graphite-sese-to-poly.c
5461         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
5462         (close_phi_written_to_memory): New.
5463         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
5464         and unshare_expr.
5466 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5468         * doc/install.texi: Update the expected version number of PPL to 0.11.
5469         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
5470         #if PPL_VERSION_MINOR < 11.
5472 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5474         * graphite-dependences.c: Include graphite-cloog-util.h.
5475         (new_poly_ddr): Inlined into dependence_polyhedron.
5476         (free_poly_ddr): Moved close by new_poly_ddr.
5477         (dependence_polyhedron_1): Renamed dependence_polyhedron.
5478         Early return NULL when ppl_powerset_is_empty returns true.
5479         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
5480         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
5481         (graphite_legal_transform_dr): Call new_poly_ddr.
5482         (graphite_carried_dependence_level_k): Same.
5483         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
5484         (dot_transformed_deps_stmt_1): Removed.
5485         (dot_deps_stmt_1): Call dot_deps_stmt_2.
5486         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
5487         (dot_deps_1): Call dot_deps_2.
5488         * Makefile.in (graphite-dependences.o): Add missing dependence on
5489         graphite-cloog-util.h.
5491 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5493         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
5494         (build_lexicographical_constraint): Same.
5495         (dependence_polyhedron_1): Same.
5496         (graphite_legal_transform_dr): Same.
5497         (graphite_carried_dependence_level_k): Same.
5498         * graphite-ppl.c (ppl_powerset_is_empty): New.
5499         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
5500         * tree-data-ref.c (dump_data_reference): Print the basic block index.
5502 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5504         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
5505         the "a followed by b" relation and document it.
5507 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5509         * graphite-dependences.c (build_lexicographical_constraint): Stop the
5510         iteration when the bag of constraints is empty.
5512 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5514         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
5516 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5518         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
5519         nest and two loop depths as parameters.
5520         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
5521         lst_perfect_nestify.
5523 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5525         * graphite-dependences.c (print_pddr): Call
5526         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
5528 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
5530         * graphite-ppl.c (debug_gmp_value): New.
5531         * graphite-ppl.h (debug_gmp_value): Declared.
5533 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
5535         * doc/install.texi: Document availability of cloog-0.16.
5537 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
5539         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
5540         invalid postdominance info.
5542 2011-01-24  Jan Hubicka  <jh@suse.cz>
5544         PR c/21659
5545         * doc/extend.texi (weak pragma): Drop claim that it must
5546         appear before definition.
5547         * varasm.c (merge_weak, declare_weak): Only sanity check
5548         that DECL is not output at a time it is declared weak.
5550 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
5552         * machmode.def: Fixed comments.
5554 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
5556         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
5558 2011-01-24  Paul Koning  <ni1d@arrl.net>
5560         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
5561         WORDS_BIG_ENDIAN.
5563 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
5565         PR target/46519
5566         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
5567         (block_info): Add scanned and prev.
5568         (move_or_delete_vzeroupper_2): Return if the basic block
5569         has been scanned and the upper 128bit state is unchanged
5570         from the last scan.
5571         (move_or_delete_vzeroupper_1): Return true if the exit
5572         state is changed.
5573         (move_or_delete_vzeroupper): Visit basic blocks using the
5574         work-list based algorithm based on vt_find_locations in
5575         var-tracking.c.
5577         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
5579 2011-01-24  Nick Clifton  <nickc@redhat.com>
5581         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
5582         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
5583         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
5584         then define __v850e1__.
5585         * doc/invoke.texi: Document -mv850es.
5587 2011-01-24  Richard Henderson  <rth@redhat.com>
5589         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
5590         compound unordered comparisons.
5591         * config/rx/rx.c (rx_split_fp_compare): Remove.
5592         * config/rx/rx-protos.h: Update.
5593         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
5594         (cbranchsf4): Don't call rx_split_fp_compare.
5595         (*cbranchsf4): Use rx_split_cbranch.
5596         (*cmpsf): Don't accept "i" constraint.
5597         (*conditional_branch): Only valid after reload.
5598         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
5600 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
5602         PR target/47385
5603         * config/rs6000/altivec.md (vector constant splitters): Add
5604         support for creating vector single precision constants if -mvsx is
5605         used and we would create the constant using Altivec primitives.
5607 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
5608             Richard Sandiford  <rdsandiford@googlemail.com>
5610         PR rtl-optimization/47166
5611         * reload1.c (emit_reload_insns): Disable the spill_reg_store
5612         mechanism for PRE_MODIFY and POST_MODIFY.
5613         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
5614         reloadreg.
5616 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
5618         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
5620 2011-01-22  Jan Hubicka  <jh@suse.cz>
5622         PR lto/47333
5623         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
5625 2011-01-22  Jan Hubicka  <jh@suse.cz>
5627         PR tree-optimization/43884
5628         PR lto/44334
5629         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
5630         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
5632 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
5634         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5635         * config/s390/s390.c (s390_register_move_cost,
5636         s390_memory_move_cost): New.
5637         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5639 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5641         PR middle-end/47401
5642         * except.c (sjlj_assign_call_site_values): Move setting the
5643         crtl->uses_eh_lsda flag to ...
5644         (sjlj_mark_call_sites): ... here.
5645         (sjlj_emit_function_enter): Support NULL dispatch label.
5646         (sjlj_build_landing_pads): In a function with no landing pads
5647         that still has must-not-throw regions, generate code to register
5648         a personality function with empty LSDA.
5650 2011-01-21  Richard Henderson  <rth@redhat.com>
5652         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
5654         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
5656         * compare-elim.c: New file.
5657         * Makefile.in (OBJS-common): Add it.
5658         (compare-elim.o): New.
5659         * common.opt (fcompare-elim): New.
5660         * opts.c (default_options_table): Add OPT_fcompare_elim.
5661         * tree-pass.h (pass_compare_elim_after_reload): New.
5662         * passes.c (init_optimization_passes): Add it.
5663         * recog.h: Protect against re-inclusion.
5664         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
5665         * doc/invoke.texi (-fcompare-elim): Document it.
5666         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
5667         * doc/tm.texi: Rebuild.
5669 2011-01-22  Nick Clifton  <nickc@redhat.com>
5671         * config/rx/rx.md (cstoresf4): Pass comparison operator to
5672         rx_split_fp_compare.
5674 2011-01-22  Nick Clifton  <nickc@redhat.com>
5676         * config/rx/rx.md (UNSPEC_CONST): New.
5677         (deallocate_and_return): Wrap the amount popped off the stack in
5678         an UNSPEC_CONST in order to stop it being rejected by
5679         -mmax-constant-size.
5680         (pop_and_return): Add a "(return)" rtx.
5681         (call): Drop the immediate operand.
5682         (call_internal): Likewise.
5683         (call_value): Likewise.
5684         (call_value_internal): Likewise.
5685         (sibcall_internal): Likewise.
5686         (sibcall_value_internal): Likewise.
5687         (sibcall): Likewise.  Generate an explicit call using
5688         sibcall_internal.
5689         (sibcall_value): Likewise.
5690         (mov<>): FAIL if a constant operand is not legitimate.
5691         (addsi3_unpsec): New pattern.
5693         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
5694         (ok_for_max_constant): New function.
5695         (gen_safe_add): New function.
5696         (rx_expand_prologue): Use gen_safe_add.
5697         (rx_expand_epilogue): Likewise.
5698         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
5699         UNSPEC CONSTs.
5701 2011-01-21  Jeff Law  <law@redhat.com>
5703         PR tree-optimization/47053
5704         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
5705         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
5706         statements are deleted.
5707         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
5708         is nonempty, then purge dead edges and cleanup the CFG.
5710 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
5712         PR debug/47402
5713         Temporarily revert:
5714         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
5715         PR debug/47106
5716         * tree-dfa.c (create_var_ann): Mark variable as used.
5718 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
5720         PR middle-end/45566
5721         * except.c (convert_to_eh_region_ranges): Emit queued no-region
5722         notes from other section in hot/cold partitioning even if
5723         last_action is -3.  Increment call_site_base.
5725         PR rtl-optimization/47366
5726         * fwprop.c (forward_propagate_into): Return bool.  If
5727         any changes are made, -fnon-call-exceptions is used and
5728         REG_EH_REGION note is present, call purge_dead_edges
5729         and return true if it purged anything.
5730         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
5731         any EH edges were purged.
5733 2011-01-21  Jeff Law  <law@redhat.com>
5735         PR rtl-optimization/41619
5736         * caller-save.c (setup_save_areas): Break out code to determine
5737         which hard regs are live across calls by examining the reload chains
5738         so that it is always used.
5739         Eliminate code which checked REG_N_CALLS_CROSSED.
5741 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
5743         PR tree-optimization/47355
5744         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
5745         NOP has non-debug uses beyond PHIs in new_bb.
5747 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
5749         PR debug/47106
5750         * cfgexpand.c (account_used_vars_for_block): Only account vars
5751         that are annotated as used.
5752         (estimated_stack_frame_size): Don't set TREE_USED.
5753         * tree-dfa.c (create_var_ann): Mark variable as used.
5755 2011-01-21  Richard Guenther  <rguenther@suse.de>
5757         PR middle-end/47395
5758         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
5760 2011-01-21  Richard Guenther  <rguenther@suse.de>
5762         PR tree-optimization/47365
5763         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
5764         (vn_reference_lookup_pieces): Adjust.
5765         (vn_reference_lookup): Likewise.
5766         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
5767         (vn_reference_lookup_3): Only look through kills if in
5768         VN_WALKREWRITE mode.
5769         (vn_reference_lookup_pieces): Adjust.
5770         (vn_reference_lookup): Likewise.
5771         (visit_reference_op_load): Likewise.
5772         (visit_reference_op_store): Likewise.
5773         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
5774         (compute_avail): Likewise.
5775         (eliminate): Likewise.
5777 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
5779         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
5780         DECL_IGNORED_P non-reg vars if they are used.
5782         PR tree-optimization/47391
5783         * varpool.c (const_value_known_p): Return false if
5784         decl is volatile.
5786 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
5788         PR bootstrap/47215
5789         * config/i386/i386.c (ix86_local_alignment): Handle
5790         case for va_list_type_node is nil.
5791         (ix86_canonical_va_list_type): Likewise.
5793 2011-01-21  Alan Modra  <amodra@gmail.com>
5795         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
5796         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
5798 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5800         * config/arm/arm.md (define_attr type): Rename f_load
5801         and f_store to f_fpa_load and f_fpa_store. Update.
5802         (write_conflict): Deal with rename fallout.
5803         (*push_fp_multi): Likewise.
5804         * config/arm/fpa.md (f_load): Use f_fpa_load.
5805         (f_store): Use f_fpa_store.
5806         (*movsf_fpa): Likewise.
5807         (*movdf_fpa): Likewise.
5808         (*movxf_fpa): Likewise.
5809         (*thumb2_movsf_fpa): Likewise.
5810         (*thumb2_movdf_fpa): Likewise.
5811         (*thumb2_movxf_fpa): Likewise.
5812         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
5813         f_loadd and f_stored.
5814         (*thumb2_movdi_vfp): Likewise.
5815         (*thumb2_movsf_vfp): Fix attribute to f_loads.
5816         (*thumb2_movsi_vfp): Likewise.
5817         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
5818         Use f_loads instead of f_load.
5819         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
5821 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
5823         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5824         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
5825         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5826         (xtensa_mode_dependent_address_p): New function.
5827         (constantpool_address_p): Make static. Change return type to bool.
5828         Change argument type to const_rtx. Use CONST_INT_P predicate.
5830 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
5832         PR debug/46583
5833         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
5835 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
5837         PR debug/47283
5838         * cfgexpand.c (expand_debug_expr): Instead of generating
5839         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
5840         etc. handling.
5842 2011-01-20  Richard Guenther  <rguenther@suse.de>
5844         PR middle-end/47370
5845         * tree-inline.c (remap_gimple_op_r): Recurse manually for
5846         the pointer operand of MEM_REFs.
5848 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
5850         PR tree-optimization/46130
5851         * ipa-split.c (consider_split): If return_bb contains non-virtual
5852         PHIs other than for retval or if split_function would not adjust it,
5853         refuse to split.
5855 2011-01-20  Richard Guenther  <rguenther@suse.de>
5857         PR tree-optimization/47167
5858         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
5859         Revert previous change, only avoid enumeral type changes.
5861 2011-01-19  Mike Stump  <mikestump@comcast.net>
5863         * doc/tm.texi.in (BRANCH_COST): Englishify.
5864         * doc/tm.texi (BRANCH_COST): Likewise.
5866 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
5868         PR c++/47291
5869         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
5870         (gen_scheduled_generic_parms_dies): New functions.
5871         (gen_struct_or_union_type_die): Schedule template parameters DIEs
5872         generation for the end of CU compilation.
5873         (dwarf2out_finish): Generate template parameters DIEs here.
5875 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
5877         PR debug/46240
5878         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
5879         debug bind stmt on merge edges.
5881 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
5883         PR debug/47079
5884         PR debug/46724
5885         * function.c (instantiate_expr): Instantiate incoming rtl of
5886         implicit arguments, and recurse on VALUE_EXPRs.
5887         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
5888         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
5890 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
5892         * c-parser.c (c_parser_for_statement): Initialize
5893         collection_expression.
5895 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
5897         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
5899 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
5901         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
5902         (LINK_SHLIB_SPEC): Don't use %(link_path).
5903         (SUBTARGET_EXTRA_SPECS): Remove link_path.
5905 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
5907         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
5908         (NO_SHARED_LIB_SUPPORT): Remove.
5909         (LINK_SHLIB_SPEC): Remove one conditional definition.
5911 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
5913         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
5914         %{call_shared}.
5915         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
5916         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
5917         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
5918         %{call_shared} and conditionals on these options not being passed.
5919         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
5920         %{call_shared}.
5922 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
5924         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
5925         simplify.
5927         * ipa-split.c: Spelling fixes.
5929 2011-01-19  Richard Henderson  <rth@redhat.com>
5931         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
5932         (*mulsi3): Likewise.
5934         * longlong.h [__mn10300__] (count_leading_zeros): New.
5935         [__mn10300__] (umul_ppmm, smul_ppmm): New.
5936         [__mn10300__] (add_ssaaaa, subddmmss): New.
5937         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
5938         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
5940 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5942         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
5944 2011-01-19  Richard Henderson  <rth@redhat.com>
5946         * config/mn10300/mn10300.md (addsi3_flags): New.
5947         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
5948         (subsi3_flags, subc_internal, subdi3): New.
5949         (subdi3_internal, *subdi3_degenerate): New.
5950         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
5952         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
5953         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
5954         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
5955         * config/mn10300/mn10300-protos.h: Update.
5956         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
5957         (return_ret): Likewise.  Rename from return_internal_regs.
5958         (return_internal): Remove.
5960         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
5961         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
5962         (mn10300_legitimate_constant_p): Likewise.
5963         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
5964         (mn10300_frame_size): New.
5965         (mn10300_expand_prologue): Use it.
5966         (mn10300_expand_epilogue): Likewise.
5967         (mn10300_initial_offset): Likewise.
5968         * config/mn10300/mn10300-protos.h: Update.
5969         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
5970         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
5971         (prologue, epilogue, return_internal): Tidy output code.
5972         (mn10300_store_multiple_operation, return): Likewise.
5973         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
5974         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
5975         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
5976         (load_pic, am33_load_pic): New.
5977         (mn10300_load_pic0, mn10300_load_pic1): New.
5979         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
5980         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
5981         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
5982         (cc_flags_for_mode, cc_flags_for_code): New.
5983         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
5984         overflow flag is not valid.  Validate that the flags we need
5985         for the comparison are valid.
5986         (mn10300_output_cmp): Remove.
5987         (mn10300_output_add): New.
5988         (mn10300_select_cc_mode): Use cc_flags_for_code.
5989         (mn10300_split_cbranch): New.
5990         (mn10300_match_ccmode): New.
5991         (mn10300_split_and_operand_count): New.
5992         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
5993         to the function.
5994         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
5995         (addsi3): ... here.  Use mn10300_output_add.
5996         (*addsi3_flags): New.
5997         (*am33_subsi3, *mn10300_subsi3): Merge...
5998         (subsi3): ... here.  Use attribute isa.
5999         (*subsi3_flags): New.
6000         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
6001         when possible.
6002         (*am33_andsi3, *mn10300_andsi3): Merge...
6003         (andsi3): ... here.
6004         (*andsi3_flags): New.
6005         (andsi3 splitters): New.
6006         (*am33_iorsi3, *mn10300_iorsi3): Merge...
6007         (iorsi3): ... here.
6008         (*iorsi3_flags): New.
6009         (*am33_xorsi3, *mn10300_xorsi3): Merge...
6010         (xorsi3): ... here.
6011         (*xorsi3_flags): New.
6012         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
6013         (one_cmplsi2): ... here.
6014         (*one_cmplsi2_flags): New.
6015         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
6016         instead of "dax" in constraints.  Use mn10300_split_cbranch.
6017         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
6018         use matching constraints to eliminate a self-comparison.
6019         (*integer_conditional_branch): Rename from integer_conditional_branch.
6020         Use int_mode_flags to match CC_REG.
6021         (*cbranchsi4_btst, *btstsi): New.
6022         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
6023         mn10300_split_cbranch.
6024         (*am33_cmpsf): Rename from am33_cmpsf.
6025         (*float_conditional_branch): Rename from float_conditional_branch.
6026         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
6027         (zero_extendqisi2): ... here.
6028         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
6029         (zero_extendhisi2): ... here.
6030         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
6031         (extendqisi2): ... here.
6032         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
6033         (extendhisi2): ... here.
6034         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
6035         (ashlsi3): ... here.
6036         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
6037         (lshrsi3): ... here.
6038         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
6039         (ashrsi3): ... here.
6040         (consecutive add peephole): Remove.
6041         * config/mn10300/predicates.md (label_ref_operand): New.
6042         (int_mode_flags): New.
6043         (CCZN_comparison_operator): New.
6045         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
6046         (throughput_42_latency_43): New reservation.
6047         (mulsidi3, umulsidi3): New expanders.
6048         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
6049         the MDR register to allocation; separately allocate the low and
6050         high parts of the DImode result.
6051         (umulsidi3_internal): Similarly.
6052         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
6053         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
6054         (udivsi3, umodsi3): Remove.
6055         (udivmodsi4, divmodsi4): New expanders.
6056         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
6057         (*divmodsi4): Simiarly.
6058         (ext_internal): New.
6060         * config/mn10300/constraints.md ("z"): New constraint.
6061         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
6062         (FIXED_REGISTERS): Don't fix MDR.
6063         (CALL_USED_REGSITERS): Reformat nicely.
6064         (REG_ALLOC_ORDER): Add MDR.
6065         (enum regclass): Add MDR_REGS.
6066         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
6067         (IRA_COVER_CLASSES): Add MDR_REGS.
6068         (REGNO_REG_CLASS): Handle MDR_REG.
6069         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
6070         (mn10300_register_move_cost): Likewise.
6071         * config/mn10300/mn10300.md (MDR_REG): New.
6072         (*movsi_internal): Handle moves to/from MDR_REGS.
6074         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
6075         POST_MODIFY.
6076         (mn10300_secondary_reload): Tidy combination reload classes.
6077         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
6078         addresses for AM33.  Allow symbolic offsets for reg+imm.
6079         (mn10300_regno_in_class_p): New.
6080         (mn10300_legitimize_reload_address): New.
6081         * config/mn10300/mn10300.h (enum reg_class): Remove
6082         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
6083         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
6084         SP_OR_GENERAL_REGS.
6085         (REG_CLASS_NAMES): Update to match.
6086         (REG_CLASS_CONTENTS): Likewise.
6087         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
6088         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
6089         (REGNO_IN_RANGE_P): Remove.
6090         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
6091         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
6092         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
6093         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
6094         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
6095         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
6096         (REGNO_GENERAL_P): New.
6097         (HAVE_POST_MODIFY_DISP): New.
6098         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
6099         (LEGITIMIZE_RELOAD_ADDRESS): New.
6100         * config/mn10300/mn10300-protos.h: Update.
6102         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
6103         DATA_REGS for AM33 stack-pointer destination.
6104         (mn10300_preferred_output_reload_class): Likewise.
6105         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
6106         into a form appropriate for ...
6107         (TARGET_SECONDARY_RELOAD): New.
6108         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
6109         * config/mn10300/mn10300-protos.h: Update.
6110         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
6111         reload_insi; use the "A" constraint for the scratch; handle AM33
6112         moves of sp to non-address registers.
6114         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
6115         (*movqi_internal): ... here.
6116         (*am33_movhi, *mn10300_movhi): Merge into...
6117         (*movhi_internal): ... here.
6118         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
6119         as the source/destination of moves from/to SP.
6120         (movsf): Only allow for AM33-2.
6121         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
6122         any integer constant constraint.  Only allow for AM33-2.  Tidy
6123         all of the alternative outputs.
6124         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
6125         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
6126         for MN103.
6127         (udivsi3, umodsi3): New patterns for MN103 only.
6129 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
6131         * doc/tm.texi.in: Spell out that a lack of register class unions
6132         can lead to ICEs.
6133         * doc/tm.texi: Regenerate.
6135 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
6137         PR rtl-optimization/47337
6138         * dce.c (check_argument_store): New function.
6139         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
6141         PR tree-optimization/47290
6142         * tree-eh.c (infinite_empty_loop_p): New function.
6143         (cleanup_empty_eh): Use it.
6145 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
6147         PR target/46997
6148         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
6149         (a64_expand_widen_sum): Ditto.
6150         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
6151         (vec_extract_evenodd_help): Ditto.
6152         (vec_extract_evenv4hi): Ditto.
6153         (vec_extract_oddv4hi): Ditto.
6154         (vec_extract_evenv2si): Ditto.
6155         (vec_extract_oddv2si): Ditto.
6156         (vec_extract_evenv2sf): Ditto.
6157         (vec_extract_oddv2sf): Ditto.
6158         (vec_pack_trunc_v4hi: Ditto.
6159         (vec_pack_trunc_v2si): Ditto.
6160         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
6161         (vec_interleave_highv8qi): Ditto.
6162         (mix1_r): Ditto.
6163         (vec_extract_oddv8qi): Ditto.
6164         (vec_interleave_lowv4hi): Ditto.
6165         (vec_interleave_highv4hi): Ditto.
6166         (vec_interleave_lowv2si): Ditto.
6167         (vec_interleave_highv2si): Ditto.
6169 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6171         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
6172         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
6173         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
6174         (pa_c_mode_for_suffix): New.
6175         (TARGET_EXPAND_BUILTIN): Define.
6176         (TARGET_C_MODE_FOR_SUFFIX): Define.
6177         (pa_builtins): Define.
6178         (pa_init_builtins): Register __float128 type and init new support
6179         builtins.
6180         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
6181         * config/pa/quadlib.c (_U_Qfcopysign): New.
6183 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
6185         PR middle-end/46894
6186         * explow.c (allocate_dynamic_stack_space): Do not assume more than
6187         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
6188         are defined.
6190 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6192         PR tree-optimization/47179
6193         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
6194         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
6196 2011-01-18  Richard Guenther  <rguenther@suse.de>
6198         PR rtl-optimization/47216
6199         * emit-rtl.c: Include tree-flow.h.
6200         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
6201         of replicating it with different semantics.
6202         * Makefile.in (emit-rtl.o): Adjust.
6204 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6206         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
6207         (cortex_a9_dp): Handle neon types correctly.
6209 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
6211         PR rtl-optimization/47299
6212         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
6213         subtarget.  Use normal multiplication if both operands are constants.
6214         * expmed.c (expand_widening_mult): Don't try to optimize constant
6215         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
6216         before using it.
6218 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6220         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
6221         spacing after 'e.g.', typos, comma, hyphenation.
6223 2011-01-17  Richard Henderson  <rth@redhat.com>
6225         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
6226         (rx_restricted_mem_operand): New.
6227         (rx_shift_operand): Use register_operand.
6228         (rx_source_operand, rx_compare_operand): Likewise.
6229         * config/rx/rx.md (addsi3_flags): New expander.
6230         (adddi3): Rewrite as expander.
6231         (adc_internal, *adc_flags, adddi3_internal): New patterns.
6232         (subsi3_flags): New expander.
6233         (subdi3): Rewrite as expander.
6234         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
6236         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
6237         (rx_init_builtins): Remove sat builtin.
6238         (rx_expand_builtin): Likewise.
6239         * config/rx/rx.md (ssaddsi3): New.
6240         (*sat): Rename from sat.  Represent the CC_REG input.
6242         * config/rx/predicates.md (rshift_operator): New.
6243         * config/rx/rx.c (rx_expand_insv): Remove.
6244         * config/rx/rx-protos.h: Update.
6245         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
6246         operand to the canonical position.
6247         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
6248         (*bitclr, *bitclr_in_memory): Similarly.
6249         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
6250         (insv): Retain the zero_extract in the expansion.
6252         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
6253         (bswaphi2, bitinvert, revw): Likewise.
6255         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
6256         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
6257         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
6258         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
6259         (bitset, bitset_in_memory): Likewise.
6260         (bitinvert, bitinvert_in_memory): Likewise.
6261         (bitclr, bitclr_in_memory): Likewise.
6262         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
6263         (rx_strend, rx_cmpstrn): Likewise.
6264         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
6265         (bitop peep2 patterns): Remove.
6267         * config/rx/rx.c (rx_match_ccmode): New.
6268         * config/rx/rx-protos.h: Update.
6269         * config/rx/rx.md (abssi2): Clobber, don't set flags.
6270         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
6271         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
6272         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
6273         (fix_truncsfsi2, floatsisf2): Likewise.
6274         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
6275         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
6276         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
6277         (*subsi3_flags, *xorsi3_flags): New.
6279         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
6281         * config/rx/rx.c (rx_print_operand): Remove workaround for
6282         unsplit comparison operations.
6284         * config/rx/rx.md (movsicc): Split after reload.
6285         (*movsicc): Merge *movsieq and *movsine via match_operator.
6286         (*stcc): New pattern.
6288         * config/rx/rx.c (rx_float_compare_mode): Remove.
6289         * config/rx/rx.h (rx_float_compare_mode): Remove.
6290         * config/rx/rx.md (cstoresi4): Split after reload.
6291         (*sccc): New pattern.
6293         * config/rx/predicates.md (label_ref_operand): New.
6294         (rx_z_comparison_operator): New.
6295         (rx_zs_comparison_operator): New.
6296         (rx_fp_comparison_operator): New.
6297         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
6298         Validate that the flags are set properly for the comparison.
6299         (rx_gen_cond_branch_template): Remove.
6300         (rx_cc_modes_compatible): Remove.
6301         (mode_from_flags): New.
6302         (flags_from_code): Rename from flags_needed_for_conditional.
6303         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
6304         (rx_select_cc_mode): Likewise.
6305         (rx_split_fp_compare): New.
6306         (rx_split_cbranch): New.
6307         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
6308         (*cbranchsi4): Use match_operator and rx_split_cbranch.
6309         (*cbranchsf4): Similarly.
6310         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
6311         match_operator and rx_split_cbranch.
6312         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
6313         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
6314         (*cmpsi): Rename from cmpsi.
6315         (*tstsi): Rename from tstsi.
6316         (*cmpsf): Rename from cmpsf; use CC_Fmode.
6317         (*conditional_branch): Rename from conditional_branch.
6318         (*reveresed_conditional_branch): Remove.
6319         (b<code>): Remove expander.
6320         * config/rx/rx-protos.h: Update.
6322         * config/rx/rx.c (rx_compare_redundant): Remove.
6323         * config/rx/rx.md (cmpsi): Don't use it.
6324         * config/rx/rx-protos.h: Update.
6326         * config/rx/rx-modes.def (CC_F): New mode.
6327         * config/rx/rx.c (rx_select_cc_mode): New.
6328         * config/rx/rx.h (SELECT_CC_MODE): Use it.
6329         * config/rx/rx-protos.h: Update.
6331 2011-01-17  Richard Henderson  <rth@redhat.com>
6333         * except.c (dump_eh_tree): Fix stray ; after for statement.
6335 2011-01-17  Richard Guenther  <rguenther@suse.de>
6337         PR tree-optimization/47313
6338         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
6339         handling before copying the body.  Properly deal with
6340         by-reference result in SSA form.
6342 2011-01-17  Ian Lance Taylor  <iant@google.com>
6344         PR target/47219
6345         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
6346         (struct_value_alias_set): Don't define.
6347         (sparc_option_override): Don't set sparc_sr_alias_set and
6348         struct_value_alias_set.
6349         (save_or_restore_regs): Use gen_frame_mem rather than calling
6350         set_mem_alias_set.
6351         (sparc_struct_value_rtx): Likewise.
6353 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
6355         PR target/47318
6356         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
6357         __m128i.
6358         (_mm_maskstore_pd): Likewise.
6359         (_mm_maskload_ps): Likewise.
6360         (_mm_maskstore_ps): Likewise.
6361         (_mm256_maskload_pd): Change mask to __m256i.
6362         (_mm256_maskstore_pd): Likewise.
6363         (_mm256_maskload_ps): Likewise.
6364         (_mm256_maskstore_ps): Likewise.
6366         * config/i386/i386-builtin-types.def: Updated.
6367         (ix86_expand_special_args_builtin): Likewise.
6369         * config/i386/i386.c (bdesc_special_args): Update
6370         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
6371         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
6372         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
6373         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
6375         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
6376         Use <avxpermvecmode> on mask register.
6377         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
6379 2011-01-17  Olivier Hainque  <hainque@adacore.com>
6380             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
6381             Eric Botcazou  <ebotcazou@adacore.com>
6383         PR target/46655
6384         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
6385         if <= USHRT_MAX in 32-bit mode.
6387 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6389         * doc/install.texi (Configuration, Specific): Wrap long
6390         lines in examples.  Allow line wrapping in long options
6391         and URLs where beneficial for PDF output.
6393 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
6395         * config/mips/mips.c (mips_classify_symbol): Don't return
6396         SYMBOL_PC_RELATIVE for nonlocal labels.
6398 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
6400         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
6402 2011-01-15  Jan Hubicka  <jh@suse.cz>
6404         PR tree-optimization/47276
6405         * ipa.c (function_and_variable_visibility): Do not try to mark alias
6406         declarations as needed.
6408 2011-01-15  Martin Jambor  <mjambor@suse.cz>
6410         * common.opt (fdevirtualize): New flag.
6411         * doc/invoke.texi (Option Summary): Document it.
6412         * opts.c (default_options_table): Add devirtualize flag.
6413         * ipa-prop.c (detect_type_change): Return immediately if
6414         devirtualize flag is not set.
6415         (detect_type_change_ssa): Likewise.
6416         (compute_known_type_jump_func): Likewise.
6417         (ipa_analyze_virtual_call_uses): Likewise.
6419 2011-01-14  Martin Jambor  <mjambor@suse.cz>
6421         PR tree-optimization/45934
6422         PR tree-optimization/46302
6423         * ipa-prop.c (type_change_info): New type.
6424         (stmt_may_be_vtbl_ptr_store): New function.
6425         (check_stmt_for_type_change): Likewise.
6426         (detect_type_change): Likewise.
6427         (detect_type_change_ssa): Likewise.
6428         (compute_complex_assign_jump_func): Check for dynamic type change.
6429         (compute_complex_ancestor_jump_func): Likewise.
6430         (compute_known_type_jump_func): Likewise.
6431         (compute_scalar_jump_functions): Likewise.
6432         (ipa_analyze_virtual_call_uses): Likewise.
6433         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
6435 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6437         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
6438         * config/i386/i386.opt (msse5): New Alias.
6440 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6442         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
6443         * config/sparc/linux64.h (CC1_SPEC): Likewise.
6444         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6445         * config/sparc/sparc.h (CC1_SPEC): Likewise.
6447 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6449         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
6450         -mcpu options.
6451         * config/sparc/linux64.h (CC1_SPEC): Likewise.
6452         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6453         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
6454         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
6455         Likewise.
6456         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
6458 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6460         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
6462 2011-01-14  Mike Stump  <mikestump@comcast.net>
6464         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
6465         * config/fr30/fr30.md: Likweise
6466         (movsi_push): Likewise.
6467         (movsi_pop): Likewise.
6468         (enter_func): Likewise.
6469         * config/moxie/moxie.md (movsi_push): Likewise.
6470         (movsi_pop): Likewise.
6472 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6474         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
6475         %{no_archive} %{exact_version}.
6476         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
6477         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
6478         %{no_archive} %{exact_version}.
6479         * config/mips/openbsd.h (LINK_SPEC): Likewise.
6480         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
6481         * config/mips/vxworks.h: Likewise.
6483 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6485         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
6487 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6489         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
6490         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
6492 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6494         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
6495         -nodefaultlib.
6497 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6499         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
6500         for mcpu not cpu.
6501         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
6502         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
6503         not cpu.
6504         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
6505         Don't handle -shlib.
6507 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6509         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
6510         (CC1_SPEC): Don't handle -profile.
6512 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6514         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
6515         * config/mips/mips.h (CC1_SPEC): Likewise.
6517 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6519         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
6520         * config/mips/mips.h (CC1_SPEC): Likewise.
6522 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6524         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
6525         * config/m32r/linux.h (LINK_SPEC): Likewise.
6526         * config/mips/linux.h (LINK_SPEC): Likewise.
6527         * config/mips/linux64.h (LINK_SPEC): Likewise.
6528         * config/sparc/linux.h (LINK_SPEC): Likewise.
6529         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
6530         LINK_SPEC): Likewise.
6531         * config/xtensa/linux.h (LINK_SPEC): Likewise.
6533 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6535         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
6536         %{version:-v}.
6537         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
6539 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6541         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
6542         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
6544 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
6546         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
6548 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6550         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
6551         supports -Bstatic/-Bdynamic.
6552         * configure: Regenerate.
6554 2011-01-14  Jan Hubicka  <jh@suse.cz>
6555             Jack Howarth  <howarth@bromo.med.uc.edu>
6557         PR target/46037
6558         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
6559         when checking debug_info_level. Test write_symbols instead of
6560         debug_hooks->var_location when setting flag_var_tracking_uninit.
6562 2011-01-14  Richard Guenther  <rguenther@suse.de>
6564         PR tree-optimization/47179
6565         * target.def (ref_may_alias_errno): New target hook.
6566         * targhooks.h (default_ref_may_alias_errno): Declare.
6567         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
6568         (default_ref_may_alias_errno): New function.
6569         * target.h (struct ao_ref_s): Declare.
6570         * tree-ssa-alias.c: Include target.h.
6571         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
6572         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
6573         (targhooks.o): Likewise.
6574         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
6575         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
6577 2011-01-14  Richard Guenther  <rguenther@suse.de>
6579         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
6581 2011-01-14  Richard Guenther  <rguenther@suse.de>
6583         PR tree-optimization/47280
6584         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
6585         return CFG changes.
6586         (tree_ssa_forward_propagate_single_use_vars): Deal with
6587         CFG changes from associate_plusminus.
6589 2011-01-14  Richard Guenther  <rguenther@suse.de>
6591         PR middle-end/47281
6592         Revert
6593         2011-01-11  Richard Guenther  <rguenther@suse.de>
6595         PR tree-optimization/46076
6596         * tree-ssa.c (useless_type_conversion_p): Conversions from
6597         unprototyped to empty argument list function types are useless.
6599 2011-01-14  Richard Guenther  <rguenther@suse.de>
6601         PR tree-optimization/47286
6602         * tree-ssa-structalias.c (new_var_info): Register variables are global.
6604 2011-01-14  Martin Jambor  <mjambor@suse.cz>
6606         PR middle-end/46823
6607         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
6609 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
6611         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
6612         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6613         * config/xtensa/xtensa.c (xtensa_libcall_value,
6614         xtensa_function_value_regno_p): New functions.
6615         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6617 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
6619         PR c++/47213
6620         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
6621         PE specific hook.
6622         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
6623         New function prototype.
6624         * config/i386/winnt.c (i386_pe_assemble_visibility):
6625         Warn only if attribute was specified by user.
6627 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
6629         PR target/47251
6630         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
6631         floating point.
6632         (floatunsdidf2_fcfidu): Ditto.
6634 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6636         * config/s390/s390.c (print_operand_address): Replace 'error' with
6637         'output_operand_lossage'.
6638         (print_operand): Likewise.
6640 2011-01-13  Jeff Law  <law@redhat.com>
6642         PR rtl-optimization/39077
6643         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
6644         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
6645         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
6646         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
6647         * gcse.c (prune_insertions_deletions): New function.
6648         (compute_pre_data): Use it.
6650 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
6652         PR debug/PR46973
6653         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
6654         static function.
6655         (prune_unused_types_mark): Use it.
6657 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
6659         PR rtl-optimization/45352
6660         * sel-sched.c: Update copyright years.
6661         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
6662         in the advancing loop when we have issued issue_rate insns.
6664 2011-01-12  Richard Henderson  <rth@redhat.com>
6666         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
6667         (TARGET_MD_ASM_CLOBBERS): New.
6669         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
6670         (TARGET_DELEGITIMIZE_ADDRESS): New.
6672         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
6673         (clzsi2, *bsch): New patterns.
6675         * config/mn10300/mn10300.md (INT): New mode iterator.
6676         (*mov<INT>_clr): New pattern, and peep2 to generate it.
6678         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
6679         flag_split_wide_types.
6681         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
6682         (mn10300_trampoline_init): Rewrite without a template, an immediate
6683         load and a direct branch.
6684         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
6686 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
6688         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6689         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
6690         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
6691         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6693 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
6695         PR debug/47209
6696         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
6697         of type.
6699 2011-01-12  Jan Hubicka  <jh@suse.cz>
6701         PR driver/47244
6702         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
6703         (PLUGIN_COND_CLOSE): New macro.
6704         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
6706 2011-01-12  Richard Guenther  <rguenther@suse.de>
6708         PR lto/47259
6709         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
6710         register variables in a MEM_REF.
6712 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
6714         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
6715         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
6716         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
6717         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6718         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6719         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
6720         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
6721         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
6722         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
6723         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
6724         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
6725         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
6726         * config/gnu-user.h: New.  Copied from linux.h.
6727         (LINUX_TARGET_STARTFILE_SPEC): Rename to
6728         GNU_USER_TARGET_STARTFILE_SPEC.
6729         (LINUX_TARGET_ENDFILE_SPEC): Rename to
6730         GNU_USER_TARGET_ENDFILE_SPEC.
6731         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
6732         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
6733         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
6734         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
6735         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
6736         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
6737         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
6738         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
6739         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
6740         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
6741         * config/arm/linux-eabi.h (CC1_SPEC): Use
6742         GNU_USER_TARGET_CC1_SPEC.
6743         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
6744         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
6745         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
6746         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
6747         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
6748         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
6749         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
6750         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
6752 2011-01-12  Richard Guenther  <rguenther@suse.de>
6754         PR other/46946
6755         * doc/invoke.texi (ffast-math): Document it is turned on
6756         with -Ofast.
6758 2011-01-12  Jan Hubicka  <jh@suse.cz>
6760         PR tree-optimization/47233
6761         * opts.c (common_handle_option): Disable ipa-reference with profile
6762         feedback.
6764 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
6766         * c-parser.c (c_parser_objc_at_property_declaration): Improved
6767         error message.
6769 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
6771         * c-parser.c (c_lex_one_token): Updated and reindented some
6772         comments.  No changes in code.
6774 2011-01-11  Ian Lance Taylor  <iant@google.com>
6776         * godump.c (go_output_var): Don't output the variable if there is
6777         already a type with the same name.
6779 2011-01-11  Ian Lance Taylor  <iant@google.com>
6781         * godump.c (go_format_type): Don't generate float80.
6783 2011-01-11  Richard Henderson  <rth@redhat.com>
6785         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
6786         declaration.  Rewrite for both speed and size.
6787         (mn10300_address_cost_1): Remove.
6788         (mn10300_register_move_cost): New.
6789         (mn10300_memory_move_cost): New.
6790         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
6791         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
6792         extensions, shifts, BSWAP, CLZ.
6793         (mn10300_wide_const_load_uses_clr): Remove.
6794         (TARGET_REGISTER_MOVE_COST): New.
6795         (TARGET_MEMORY_MOVE_COST): New.
6796         * config/mn10300/mn10300-protos.h: Update.
6797         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
6799         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
6800         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
6801         * config/mn10300/mn10300-protos.h: Update.
6802         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
6803         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
6804         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
6805         (*test_int_bitfield, *test_byte_bitfield): Remove.
6806         (*bit_test, *subreg_bit_test): Remove.
6807         * config/mn10300/predicates.md (const_8bit_operand): Remove.
6809         * config/mn10300/constraints.md ("c"): Rename from "A".
6810         ("A", "D"): New constraint letters.
6811         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
6812         (fmssf4, fnmasf4, fnmssf4): Likewise.
6814         * config/mn10300/mn10300.md (isa): New attribute.
6815         (enabled): New attribute.
6817         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
6818         (abssf2, negsf2): Define only for hardware fp.
6819         (sqrtsf2): Reformat.
6820         (addsf3, subsf3, mulsf3): Merge expander and insn.
6822         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
6823         (DEBUGGER_AUTO_OFFSET): Remove.
6824         (DEBUGGER_ARG_OFFSET): Remove.
6826         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
6827         Emit register stores with the same offsets as the hardware.
6828         (mn10300_store_multiple_operation): Don't check that the register
6829         save offsets are monotonic.
6830         * config/mn10300/mn10300-protos.h: Update.
6832         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
6834         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
6835         in terms of the value on the stack, not the MDR register.
6837 2011-01-11  Jan Hubicka  <jh@suse.cz>
6839         PR lto/45721
6840         PR lto/45375
6841         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
6842         (symbol_alias_set_destroy, symbol_alias_set_contains,
6843         propagate_aliases_backward): Declare.
6844         * lto-streamer-out.c (struct sets): New sturcture.
6845         (trivally_defined_alias): New function.
6846         (output_alias_pair_p): Rewrite.
6847         (output_unreferenced_globals): Fix output of alias pairs.
6848         (produce_symtab): Likewise.
6849         * ipa.c (function_and_variable_visibility): Set weak alias destination
6850         as needed in lto.
6851         * varasm.c (symbol_alias_set_t): Remove.
6852         (symbol_alias_set_destroy): Export.
6853         (propagate_aliases_forward, propagate_aliases_backward): New functions
6854         based on ...
6855         (compute_visible_aliases): ... this one; remove.
6856         (trivially_visible_alias): New
6857         (trivially_defined_alias): New.
6858         (remove_unreachable_alias_pairs): Rewrite.
6859         (finish_aliases_1): Reorganize code checking if alias is defined.
6860         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
6861         in LTO mode.
6863 2011-01-11  Richard Guenther  <rguenther@suse.de>
6865         PR tree-optimization/46076
6866         * tree-ssa.c (useless_type_conversion_p): Conversions from
6867         unprototyped to empty argument list function types are useless.
6869 2011-01-11  Richard Guenther  <rguenther@suse.de>
6871         PR middle-end/45235
6872         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
6873         volatile MEMs as MEM_READONLY_P.
6875 2011-01-11  Richard Guenther  <rguenther@suse.de>
6877         PR tree-optimization/47239
6878         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
6880 2011-01-11  Jeff Law  <law@redhat.com>
6882         PR tree-optimization/47086
6883         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
6884         IVs from statements that might throw.
6886 2011-01-10  Jan Hubicka  <jh@suse.cz>
6888         PR lto/45375
6889         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
6891 2011-01-10  Jan Hubicka  <jh@suse.cz>
6893         PR lto/45375
6894         * profile.c (read_profile_edge_counts): Ignore profile inconistency
6895         when correcting profile.
6897 2011-01-10  Jan Hubicka  <jh@suse.cz>
6899         PR lto/46083
6900         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
6901         DECL_FINI_PRIORITY.
6902         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
6903         Restore DECL_FINI_PRIORITY.
6905 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6907         * doc/gimple.texi: Fix quoting of multi-word return values in
6908         @deftypefn statements.  Ensure presence of return value.  Wrap
6909         overlong @deftypefn lines.
6910         (is_gimple_operand, is_gimple_min_invariant_address): Remove
6911         descriptions of removed functions.
6912         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
6913         of multi-word return value in @deftypefn statement.
6915 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6917         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
6918         (Conditional Expressions, Logical Operators)
6919         (Statement and operand traversals): Do not indent smallexample
6920         code.  Fix duplicate function argument in example.
6922 2011-01-10  Jeff Law  <law@redhat.com>
6924         PR tree-optimization/47141
6925         * ipa-split.c (split_function): Handle case where we are
6926         returning a value and the return block has a virtual operand phi.
6928 2011-01-10  Jan Hubicka  <jh@suse.cz>
6930         PR tree-optimization/47234
6931         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
6932         (pass_feedback_split_functions): Declare.
6933         * passes.c (init_optimization_passes): Add ipa-split as subpass of
6934         tree-profile.
6935         * ipa-split.c (gate_split_functions): Update comments; disable
6936         split-functions for profile_arc_flag and branch_probabilities.
6937         (gate_feedback_split_functions): New function.
6938         (execute_feedback_split_functions): New function.
6939         (pass_feedback_split_functions): New global var.
6941 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
6943         PR lto/46760
6944         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
6945         calling gimple_call_set_cannot_inline.
6947 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
6949         * config/darwin-sections.def: Remove unused section.
6951 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
6953         PR c++/47218
6954         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
6956 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
6958         PR objc/47232
6959         * c-parser.c (c_parser_declaration_or_fndef): Improved
6960         error message.
6962 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
6964         * config/i386/winnt.c (i386_pe_start_function): Make sure
6965         to switch back to function's section.
6967 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
6969         PR gcc/46902
6970         PR testsuite/46912
6971         * plugin.c: Move include of dlfcn.h from here...
6972         * system.h: ... to here.
6974 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6976         * doc/cpp.texi (C++ Named Operators): Fix markup for header
6977         file name.
6978         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
6979         two extra empty pages in PDF output.
6981 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
6983         PR objc/47078
6984         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
6985         for error recovery purposes behave as if it was not specified so
6986         that the default type is usd.
6988 2011-01-07  Jan Hubicka  <jh@suse.cz>
6990         PR tree-optmization/46469
6991         * ipa.c (function_and_variable_visibility): Clear needed flags on
6992         nodes with external decls; handle weakrefs merging correctly.
6994 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
6996         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
6997         not false.
6999 2011-01-07  Jan Hubicka  <jh@suse.cz>
7001         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
7002         and no longer claim that gold is required for linker plugin.
7003         * configure: Regenerate.
7004         * gcc.c (PLUGIN_COND): New macro.
7005         (LINK_COMMAND_SPEC): Use it.
7006         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
7007         * config.in (HAVE_LTO_PLUGIN): New.
7008         * configure.ac (--with-lto-plugin): New parameter; autodetect
7009         HAVE_LTO_PLUGIN.
7011 2011-01-07  Jan Hubicka  <jh@suse.cz>
7013         PR tree-optimization/46367
7014         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
7015         when we can update original.
7016         (cgraph_mark_inline_edge): Sanity check.
7017         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
7019 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7021         * config/spu/spu.h (ASM_COMMENT_START): Define.
7023 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
7025         PR driver/42445
7026         * gcc.c (%>S): New.
7027         (SWITCH_KEEP_FOR_GCC): Likewise.
7028         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
7029         (do_spec_1): Handle "%>".
7031         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
7033 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
7035         PR target/47201
7036         * config/i386/i386.c (ix86_delegitimize_address): If
7037         simplify_gen_subreg fails, return orig_x.
7039         PR bootstrap/47187
7040         * value-prof.c (gimple_stringop_fixed_value): Handle
7041         lhs of the call properly.
7043 2011-01-07  Jan Hubicka  <jh@suse.cz>
7045         PR lto/45375
7046         * lto-opt.c (lto_reissue_options): Set flag_shlib.
7048 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
7050         * target.def (function_switched_text_sections): New hook.
7051         * doc/tm.texi: Regenerated.
7052         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
7053         * final.c (default_function_switched_text_sections): New.
7054         (final_scan_insn): Call function_switched_text_sections when a
7055         mid-function section change occurs.
7056         * output.h (default_function_switched_text_sections): Declare.
7057         * config/darwin-protos.h (darwin_function_switched_text_sections):
7058         Likewise.
7059         * config/darwin.c (darwin_function_switched_text_sections): New.
7060         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
7062 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
7064         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
7065         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
7066         the secondary code fragment when outputting for DWARF == 2.
7068 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
7070         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7071         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
7072         Remove.
7073         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
7074         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7076 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
7078         PR debug/46704
7079         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
7080         when it is not empty.
7082 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
7084         Bobcat Enablement
7085         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
7086         (case ${target}): Add btver1.
7087         * config/i386/driver-i386.c (host_detect_local_cpu): Let
7088         -march=native recognize btver1 processors.
7089         * config/i386/i386-c.c (ix86_target_macros_internal): Add
7090         btver1 def_and_undef
7091         * config/i386/i386.c (struct processor_costs btver1_cost): New
7092         btver1 cost table.
7093         (m_BTVER1): New definition.
7094         (m_AMD_MULTIPLE): Includes m_BTVER1.
7095         (initial_ix86_tune_features): Add btver1 tune.
7096         (processor_target_table): Add btver1 entry.
7097         (static const char *const cpu_names): Add btver1 entry.
7098         (software_prefetching_beneficial_p): Add btver1.
7099         (ix86_option_override_internal): Add btver1 instruction sets.
7100         (ix86_issue_rate): Add btver1.
7101         (ix86_adjust_cost): Add btver1.
7102         * config/i386/i386.h (TARGET_BTVER1): New definition.
7103         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
7104         (enum processor_type): Add PROCESSOR_BTVER1.
7105         * config/i386/i386.md (define_attr "cpu"): Add btver1.
7107 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7109         PR target/43309
7110         * config/i386/i386.c (legitimize_tls_address)
7111         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
7112         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
7113         (tls_initial_exec_64_sun): New pattern.
7115 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
7117         * doc/invoke.texi (Overall Options): Improve wording and markup
7118         of the description of -wrapper.
7120 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
7122         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
7123         rdynamic, threads): New Driver options.
7125 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7127         PR target/38118
7128         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
7129         if coming from .tdata.
7130         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7132 2011-01-06  Jan Hubicka  <jh@suse.cz>
7134         PR lto/47188
7135         * collect2.c (main): Do not enable LTOmode when plugin is active.
7137 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7139         PR other/45915
7140         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
7141         --version output if supported.
7142         * configure: Regenerate.
7144 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
7146         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
7147         Driver options.
7149 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
7151         PR c/47150
7152         * c-convert.c (convert): When converting a complex expression
7153         other than COMPLEX_EXPR to a different complex type, ensure
7154         c_save_expr is called instead of save_expr, unless in_late_binary_op.
7155         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
7156         when converting COMPLEX_TYPE.
7158 2011-01-06  Ira Rosen  <irar@il.ibm.com>
7160         PR tree-optimization/47139
7161         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
7162         only the last reduction value is used outside the loop.  Update
7163         documentation.
7165 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
7167         * config/rtems.opt: New.
7168         * config.gcc (*-*-rtems*): Use rtems.opt.
7170 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
7172         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
7173         processors do not support 3DNow instructions.
7175 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7177         * config/spu/spu.c (spu_option_override): Set parameter
7178         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
7180 2011-01-05  Jan Hubicka  <jh@suse.cz>
7182         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
7183         at the command line.
7185 2011-01-05  Martin Jambor  <mjambor@suse.cz>
7187         PR lto/47162
7188         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
7189         deltas on streamed outgoing edges.
7190         (output_node_opt_summary): Output info for outgoing edges only when
7191         the node is in new parameter set.
7192         (output_cgraph_opt_summary): New parameter set, passed to the two
7193         aforementioned functions.  Update its forward declaration and its
7194         callee too.
7196 2011-01-05  Tom Tromey  <tromey@redhat.com>
7198         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
7199         operator to c_finish_omp_atomic.
7200         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
7201         (build_unary_op): Update.
7202         (build_modify_expr): Update.
7203         (build_asm_expr): Update.
7205 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7207         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
7208         newly inserted insns.
7209         (pad_bb): Likewise.
7210         (spu_emit_branch_hint): Likewise.
7211         (insert_hbrp_for_ilb_runout): Likewise.
7212         (spu_machine_dependent_reorg): Call df_finish_pass after
7213         schedule_insns returns.
7215 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7217         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
7219 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
7221         PR tree-optimization/47005
7222         * tree-sra.c (struct access): Add 'non_addressable' bit.
7223         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
7224         (decide_one_param_reduction): Return 0 if the parameter is passed by
7225         reference and one of the accesses in the group is non_addressable.
7227 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
7229         PR tree-optimization/47056
7230         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
7231         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
7232         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
7234 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
7236         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
7237         initializer.  Skip view conversions from aggregate types.
7239 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
7241         PR bootstrap/47055
7242         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
7244 2011-01-04  Philipp Thomas  <pth@suse.de>
7246         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
7247         obvious typo.
7249 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7251         * function.c (thread_prologue_and_epilogue_insns): Do not crash
7252         on empty epilogue sequences.
7254 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
7256         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
7257         non-static): New Driver options.
7259 2011-01-04  Jie Zhang  <jie@codesourcery.com>
7261         PR driver/47137
7262         * gcc.c (default_compilers[]): Set combinable field to 0
7263         for all assembly languages.
7265 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
7267         * config/mips/loongson3a.md: New file.
7268         * config/mips/mips.md: Include loongson3a.md.
7269         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
7270         TUNE_LOONGSON_3A.
7272 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
7274         PR middle-end/47017
7275         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
7276         instead of convert_memory_address_addr_space on the base expression.
7278 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7280         * config/spu/spu.c (spu_option_override): Update error text
7281         for bad -march= / -mtune= values.
7283 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7285         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
7286         if branch-hint optimization will be performed.
7288 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
7290         PR tree-optimization/47148
7291         * ipa-split.c (split_function): Convert arguments to
7292         DECL_ARG_TYPE if possible.
7294         PR tree-optimization/47155
7295         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
7296         when computing uns.
7298         PR rtl-optimization/47157
7299         * combine.c (try_combine): If undobuf.other_insn becomes
7300         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
7301         and set *new_direct_jump_p too.
7303 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
7305         PR tree-optimization/47021
7306         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
7308 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
7310         * gcc.c (process_command): Update copyright notice dates.
7311         * gcov.c (print_version): Likewise.
7312         * gcov-dump.c (print_version): Likewise.
7313         * mips-tfile.c (main): Likewise.
7314         * mips-tdump.c (main): Likewise.
7316 2011-01-03  Martin Jambor  <mjambor@suse.cz>
7318         PR tree-optimization/46801
7319         * tree-sra.c (type_internals_preclude_sra_p): Check whether
7320         aggregate fields start at byte boundary instead of the bit-field flag.
7322 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
7324         PR driver/47137
7325         * gcc.c (main): Revert revision 168407.
7327 2011-01-03  Martin Jambor  <mjambor@suse.cz>
7329         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
7331 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7333         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
7334         vector optab to expand vector/scalar shift, update gimple to vector.
7336 2011-01-03  Martin Jambor  <mjambor@suse.cz>
7338         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
7339         a thunk.
7341 2011-01-03  Martin Jambor  <mjambor@suse.cz>
7343         PR tree-optimization/46984
7344         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
7345         HOST_WIDE_INT.
7346         (cgraph_create_indirect_edge): Fixed line length.
7347         (cgraph_indirect_call_info): Declare.
7348         (cgraph_make_edge_direct) Update declaration.
7349         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
7350         (cgraph_create_indirect_edge): Use it.
7351         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
7352         callees.
7353         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
7354         the new thunk_delta representation.
7355         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
7356         HOST_WIDE_INT.
7357         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
7358         (ipa_read_indirect_edge_info): Likewise.
7359         * lto-cgraph.c (output_edge_opt_summary): New function.
7360         (output_node_opt_summary): Call it on all outgoing edges.
7361         (input_edge_opt_summary): New function.
7362         (input_node_opt_summary): Call it on all outgoing edges.
7364 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
7366         PR driver/47137
7367         * gcc.c (main): Don't check have_o when settting combine_inputs.
7369 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
7371         * regrename.c: Add general comment describing the pass.
7372         (struct du_head): Remove 'length' field.
7373         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
7374         (regrename_optimize): Do not sort chains.  Rework comments, add others.
7375         Force renaming to the preferred class (if any) in the first pass and do
7376         not consider registers that belong to it in the second pass.
7377         (create_new_chain): Do not set 'length' field.
7378         (scan_rtx_reg): Likewise.
7380 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
7382         PR tree-optimization/47140
7383         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
7384         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
7385         to bit_value_binop.
7387         PR rtl-optimization/47028
7388         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
7389         parm_birth_insn instead of at the beginning of first bb.
7391 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
7393         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
7394         Remove the word "see" before "@pxref".
7395         * doc/rtl.texi: Remove the word "see" before "@pxref".
7397 2011-01-01  Jan Hubicka  <jh@suse.cz>
7399         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
7400         memory.
7402 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
7404         PR target/38662
7405         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
7408 Copyright (C) 2011 Free Software Foundation, Inc.
7410 Copying and distribution of this file, with or without modification,
7411 are permitted in any medium without royalty provided the copyright
7412 notice and this notice are preserved.