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