OSDN Git Service

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