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