OSDN Git Service

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