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