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