1 2011-05-01 Jan Hubicka <jh@suse.cz>
3 * ipa-inline.c (caller_growth_limits): Fix thinko when
4 looking for largest stack frame.
5 * ipa-inline.h (dump_inline_summary): Declare.
6 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
8 (dump_inline_summary): Export.
9 (debug_inline_summary): Declare as DEBUG_FUNCTION.
11 2011-05-01 Anatoly Sokolov <aesok@post.ru>
13 * reginfo.c (memory_move_cost): Change rclass argument type form
14 'enum reg_class' to reg_class_t.
15 * reload.h (memory_move_cost): Update prototype.
16 * postreload.c reload_cse_simplify_set): Change type dclass var to
18 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
20 (ira_allocate_and_set_costs): Change aclass argument type form
21 'enum reg_class' to reg_class_t.
22 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
23 Change aclass argument type to reg_class_t.
24 (update_conflict_hard_reg_costs): Change type aclass and pref vars
26 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
27 memory_move_cost call.
29 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
30 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
31 Change type tmp var to reg_class_t.
33 2011-04-30 Jan Hubicka <jh@suse.cz>
35 * ipa-inline.c (can_inline_edge_p): Disregard limits when
36 inlining into function with flatten attribute.
37 (want_inline_small_function_p): Be more realistic about inlining
38 cold calls where callee size grows.
40 2011-04-30 Jan Hubicka <jh@suse.cz>
42 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
45 2011-04-30 Anatoly Sokolov <aesok@post.ru>
47 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
48 PRINT_OPERAND_PUNCT_VALID_P): Remove.
49 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
50 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
51 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
52 (print_operand): Rename to...
53 (sparc_print_operand): ...this. Make static. Adjust
54 sparc_print_operand function call.
55 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
58 2011-04-30 Jan Hubicka <jh@suse.cz>
61 * ipa-inline.c (early_inliner): Disable when doing late
64 2011-04-30 Jakub Jelinek <jakub@redhat.com>
66 * dwarf2out.c (get_address_mode): New inline.
67 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
68 if not dwarf_strict emit
69 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
70 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
71 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
72 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
73 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
74 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
75 mem_loc_descriptor callers.
76 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
77 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
78 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
79 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
80 (base_types): New variable.
81 (get_base_type_offset, calc_base_type_die_sizes,
82 base_type_for_mode, mark_base_types, base_type_cmp,
83 move_marked_base_types): New functions.
84 (calc_die_sizes): Assert that die_offset is 0 or equal to
86 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
87 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
88 callers. If not dwarf_strict, call mem_loc_descriptor even for
89 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
90 (gen_subprogram_die): Don't give up on call site parameters
91 with non-integral or large integral modes. Adjust
92 mem_loc_descriptor callers.
93 (prune_unused_types): Call prune_unused_types_mark on base_types
95 (resolve_addr): Call mark_base_types.
96 (dwarf2out_finish): Call move_marked_base_types.
98 PR tree-optimization/48809
99 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
101 (gen_inbound_check): Don't compute index_expr - range_min in utype
102 again, instead reuse SSA_NAME initialized in build_arrays.
103 Remove two useless gsi_for_stmt calls.
105 2011-04-29 Jeff Law <law@redhat.com>
107 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
109 2011-04-29 Martin Jambor <mjambor@suse.cz>
111 * cgraph.h (cgraph_postorder): Remove declaration.
112 * ipa-utils.h (ipa_free_postorder_info): Declare.
113 (ipa_reverse_postorder): Likewise.
114 * cgraphunit.c: Include ipa-utils.h.
115 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
116 * ipa-inline.c: Include ipa-utils.h.
117 (ipa_inline): Update call to ipa_reverse_postorder.
118 * ipa-pure-const.c (propagate_pure_const): Update call to
119 ipa_reduced_postorder and ipa_print_order. Call
120 ipa_free_postorder_info to clean up.
121 (propagate_nothrow): Likewise.
122 * ipa-reference.c (propagate): Removed a useless call to
123 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
124 and ipa_print_order. Call ipa_free_postorder_info to clean up.
125 * ipa.c: Include ipa-utils.h.
126 (ipa_profile): Update call to ipa_reverse_postorder.
127 (cgraph_postorder): Moved to...
128 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
129 (ipa_utils_print_order): Renamed to ipa_print_order.
130 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
132 (ipa_free_postorder_info): New function.
133 * passes.c: Include ipa-utils.h.
134 (do_per_function_toporder): Update call to ipa_reverse_postorder.
135 (ipa_write_summaries): Likewise.
136 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
137 (cgraphunit.o): Likewise.
139 (ipa-inline.o): Likewise.
141 2011-04-29 Jan Hubicka <jh@suse.cz>
143 * gcc.dg/tree-ssa/inline-10.c: New testcase.
144 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
145 * ipa-inline.h (clause_t): Turn into unsigned int.
146 * ipa-inline-analysis.c (add_clause): Do more simplification.
147 (and_predicates): Shortcut more cases.
148 (predicates_equal_p): Move forward; check that clauses are properly
150 (or_predicates): Shortcut more cases.
151 (edge_execution_predicate): Rewrite as...
152 (set_cond_stmt_execution_predicate): ... this function; handle
153 __builtin_constant_p.
154 (set_switch_stmt_execution_predicate): New .
155 (compute_bb_predicates): New.
156 (will_be_nonconstant_predicate): Update TODO.
157 (estimate_function_body_sizes): Use compute_bb_predicates
158 and free them later, always try to estimate if stmt is constant.
159 (estimate_time_after_inlining, estimate_size_after_inlining):
160 Gracefully handle optimized out edges.
161 (read_predicate): Fix off by one error.
163 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
165 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
167 2011-04-27 Xinliang David Li <davidxl@google.com>
169 * tree-profile.c (init_ic_make_global_vars): Set
170 tls attribute on ic vars.
171 * coverage.c (coverage_end_function): Initialize
172 function_list with zero.
174 2011-04-29 Richard Guenther <rguenther@suse.de>
176 * builtins.c (fold_builtin_classify_type): Use integer_type_node
177 for the type of the result.
178 (fold_builtin_isascii): Likewise.
179 (fold_builtin_toascii): Use integer_type_node where appropriate.
180 (fold_builtin_logb): Likewise.
181 (fold_builtin_frexp): Likewise.
182 (fold_builtin_strstr): Likewise.
183 (fold_builtin_strpbrk): Likewise.
184 (fold_builtin_fputs): Likewise.
185 (fold_builtin_sprintf): Likewise.
186 (fold_builtin_snprintf): Likewise.
187 (fold_builtin_printf): Likewise.
188 (do_mpfr_remquo): Use a proper type for the assigned constant.
189 (do_mpfr_lgamma_r): Likewise.
190 * dwarf2out.c (resolve_one_addr): Use size_int.
191 * except.c (init_eh): Likewise.
192 (assign_filter_values): Use integer_type_node for filter values.
193 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
195 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
196 for EH region numbers.
197 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
198 for the shift amount.
200 2011-04-29 Richard Guenther <rguenther@suse.de>
202 * expr.h (expand_shift): Rename to ...
203 (expand_variable_shift): ... this.
204 (expand_shift): Take a constant shift amount.
205 * expmed.c (expand_shift): Rename to ...
206 (expand_variable_shift): ... this.
207 (expand_shift): New wrapper around expand_variable_shift.
208 * expr.c (convert_move, emit_group_load_1, emit_group_store,
209 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
210 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
211 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
212 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
213 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
214 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
215 emit_store_flag_1, emit_store_flag): Likewise.
216 * builtins.c (expand_builtin_signbit): Likewise.
217 * calls.c (load_register_parameters): Likewise.
218 * function.c (assign_parm_setup_block): Likewise.
219 * lower-subreg.c (resolve_shift_zext): Likewise.
220 * optabs.c (widen_bswap, expand_abs_nojump,
221 expand_one_cmpl_abs_nojump, expand_float): Likewise.
222 * spu/spu.c (spu_expand_extv): Likewise.
223 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
225 2011-04-29 Richard Guenther <rguenther@suse.de>
227 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
228 for the remapped region number.
229 * predict.c (build_predict_expr): Use integer_type_node for the
231 * fold-const.c (fold_binary_loc): Use integer_type_node for
232 the shift amount. Use a proper type for the PLUS_EXPR operand.
234 2011-04-29 Michael Matz <matz@suse.de>
236 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
237 other trees that just builtins.
238 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
240 2011-04-29 Richard Guenther <rguenther@suse.de>
242 * tree-nested.c (get_trampoline_type): Use size_int.
243 (get_nl_goto_field): Likewise.
244 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
246 (lower_eh_constructs_2): Likewise.
247 (lower_resx): Likewise.
248 (lower_eh_dispatch): Likewise.
249 * tree-mudflap.c (mf_build_string): Use size_int.
250 (mudflap_register_call): Use integer_type_node for the flag.
251 (mudflap_enqueue_constant): Use size_int.
252 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
253 instead of rebuilding it.
255 2011-04-29 Richard Guenther <rguenther@suse.de>
257 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
259 (find_func_aliases_for_call): Use it more consistently.
261 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
263 * haifa-sched.c (last_nondebug_scheduled_insn): New.
264 (rank_for_schedule): Use it.
265 (schedule_block): Set it.
267 2011-04-28 David Li <davidxl@google.com>
269 * tree.c (crc32_string): Use crc32_byte.
270 (crc32_byte): New function.
271 * tree.h (crc32_byte): New function.
272 * gcov.c (read_graph_file): Handle new cfg_cksum.
273 (read_count_file): Ditto.
274 * profile.c (instrument_values): Ditto.
275 (get_exec_counts): Ditto.
276 (read_profile_edge_counts): Ditto.
277 (compute_branch_probabilities): Ditto.
278 (compute_value_histograms): Ditto.
279 (branch_prob): Ditto.
280 (end_branch_prob): Ditto.
281 * coverage.c (read_counts_file): Ditto.
282 (get_coverage_counts): Ditto.
283 (tree_coverage_counter_addr): Ditto.
284 (coverage_checksum_string): Ditto.
285 (coverage_begin_output): Ditto.
286 (coverage_end_function): Ditto.
287 (build_fn_info_type): Ditto.
288 (build_fn_info_value): Ditto.
289 * libgcov.c (gcov_exit): Ditto.
290 * gcov-dump.c (tag_function): Ditto.
291 (compute_checksum): Remove.
293 2011-04-29 Alan Modra <amodra@gmail.com>
295 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
296 unspec plus offset. Tidy macho code.
298 2011-04-29 Martin Jambor <mjambor@suse.cz>
300 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
301 node instead of a decl. Update all callers.
302 * cgraph.h: Update declaration.
304 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
306 PR tree-optimization/48765
307 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
308 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
309 to indicate if loop aware SLP is being used. Scan the statements
310 and update the vectorization factor according to the type of
311 vectorization before statement analysis.
312 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
313 pass it to vect_analyze_loop_operations.
314 (vectorizable_reduction): Set number of copies to 1 in case of pure
316 * tree-vect-stmts.c (vectorizable_conversion,
317 vectorizable_assignment, vectorizable_shift,
318 vectorizable_operation, vectorizable_type_demotion,
319 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
321 (vectorizable_condition): Move the check that it is not SLP
322 vectorization before the number of copies check.
323 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
324 to vectorize the loop using SLP.
326 2011-04-28 Jakub Jelinek <jakub@redhat.com>
329 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
332 2011-04-28 Joseph Myers <joseph@codesourcery.com>
334 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
335 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
336 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
337 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
338 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
340 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
342 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
343 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
344 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
345 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't
347 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
349 * config/i386/linux.h (REG_NAME): Don't define.
350 * config/i386/linux64.h (REG_NAME): Don't define.
351 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
352 Undefine before defining.
354 2011-04-28 Jan Hubicka <jh@suse.cz>
356 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take nonconstant_names
358 (estimate_function_body_sizes): Build nonconstant_names array; handle
361 2011-04-28 Richard Guenther <rguenther@suse.de>
365 2011-04-28 Richard Guenther <rguenther@suse.de>
367 * tree-ssa-structalias.c (solve_constraints): Build succ graph
370 2011-04-28 Richard Guenther <rguenther@suse.de>
372 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
373 (debug_constraint): Do it here.
374 (dump_constraints): And here.
375 (rewrite_constraints): And here.
376 (dump_constraint_edge): Remove.
377 (dump_constraint_graph): Rewrite to produce DOT output.
378 (solve_constraints): Build succ graph as late as possible.
379 Dump constraint graphs before and after solving.
381 2011-04-28 Richard Guenther <rguenther@suse.de>
383 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
384 New function split out from ...
385 (find_func_aliases): ... here. Call it.
386 (find_func_aliases_for_call): Likewise.
388 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
390 * internal-fn.h (internal_fn_name_array): Declare.
391 (internal_fn_flags_array): Likewise.
393 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
395 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
396 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
398 (ssemodefsuffix): Remove.
399 (ssevecmodesuffix): New mode attribute.
400 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
401 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
402 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
403 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
404 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
405 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
406 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
407 ssemodesuffix mode attribute.
408 (float splitters): Use ssevecmodesuffix mode attribute.
409 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
410 (sseinsmode): Rename from avxvecmode.
411 (avxsizesuffix): Rename from avxmodesuffix.
412 (sseintvecmode): Rename from avxpermvecmode.
413 (ssedoublevecmode): Rename from ssedoublesizemode.
414 (ssehalfvecmode): Rename from avxhalfvecmode.
415 (ssescalarmode): Rename from avxscalarmode.
416 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
417 templates for ssemodesuffix mode attribute.
418 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
421 Adjust RTX patterns globally for renamed mode attributes.
423 2011-04-27 Jan Hubcika <jh@suse.cz>
425 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
426 * ipa-inline-analysis.c: Include alloc-pool.h.
427 (edge_predicate_pool): New.
428 (trye_predicate_p): New function
429 (false_predicate_p): New function.
430 (add_clause): Sanity check that false clauses are "optimized";
431 never add clauses to predicate that is already known to be false.
432 (and_predicate): Use flase_predicate_p.
433 (evaulate_predicate): Rename to ...
434 (evaluate_predicate): ... this one; update all callers; assert
435 that false is not listed among possible truths.
436 (dump_predicate): Use true_predicate_p.
437 (account_size_time): Use false_predicate_p.
438 (evaulate_conditions_for_edge): Rename to ...
439 (evaluate_conditions_for_edge) ... this one.
440 (edge_set_predicate): New function.
441 (inline_edge_duplication_hook): Duplicate edge predicates.
442 (inline_edge_removal_hook): Free edge predicates.
443 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
444 (dump_inline_summary): Update.
445 (estimate_function_body_sizes): Set edge predicates.
446 (estimate_calls_size_and_time): Handle predicates.
447 (estimate_callee_size_and_time): Update.
448 (remap_predicate): Add toplev_predicate; update comment.
449 (remap_edge_predicates): New function.
450 (inline_merge_summary): Compute toplev predicate; update.
451 (read_predicate): New function.
452 (read_inline_edge_summary): Use it.
453 (inline_read_section): Likewise.
454 (write_predicate): New function.
455 (write_inline_edge_summary): Use it.
456 (inline_write_summary): Likewise.
457 (inline_free_summary): Free alloc pool and edge summary vec.
459 2011-04-27 Richard Guenther <rguenther@suse.de>
461 * tree-ssa-structalias.c (changed_count): Remove.
462 (changed): Use a bitmap.
463 (unify_nodes): Adjust.
464 (do_sd_constraint): Likewise.
465 (do_ds_constraint): Likewise.
466 (do_complex_constraint): Likewise.
467 (solve_graph): Likewise.
469 2011-04-27 Jan Hubicka <jh@suse.cz>
471 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
473 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
475 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
476 (avx_vperm2f128_*_operand): Ditto.
477 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
478 Use avx_vpermilp_parallel in insn condition.
479 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
480 Use avx_vperm2f128_parallel in insn condition.
482 2011-04-27 Richard Guenther <rguenther@suse.de>
484 * Makefile.in (tree-ssa-structalias.o): Remove
485 gt-tree-ssa-structalias.h dependency.
486 (GTFILES): Remove tree-ssa-structalias.c.
487 * tree.c (allocate_decl_uid): New function.
488 (make_node_stat): Use it.
489 (copy_node_stat): Likewise.
490 * tree.h (allocate_decl_uid): Declare.
491 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
492 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
493 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
494 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
495 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
496 (struct heapvar_map): Likewise.
497 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
498 heapvar_insert): Likewise.
499 (make_heapvar_for): Rename to ...
500 (make_heapvar): ... this. Simplify.
501 (fake_var_decl_obstack): New global var.
502 (build_fake_var_decl): New function.
503 (make_constraint_from_heapvar): Adjust.
504 (handle_lhs_call): Likewise.
505 (create_function_info_for): Likewise.
506 (intra_create_variable_infos): Likewise.
507 (init_alias_vars): Allocate fake_var_decl_obstack.
508 (init_alias_heapvars, delete_alias_heapvars): Remove.
509 (compute_points_to_sets): Do not call init_alias_heapvars.
510 (ipa_pta_execute): Likewise.
511 (delete_points_to_sets): Free fake_var_decl_obstack.
513 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
515 * config/spu/divmovti4.c (union qword_UTItype): New data type.
516 (si_from_UTItype, si_to_UTItype): New functions.
517 (__udivmodti4): Use them to implement type-punning.
518 * config/spu/multi3.c (union qword_TItype): New data type.
519 (si_from_TItype, si_to_TItype): New functions.
520 (__multi3): Use them to implement type-punning.
522 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
524 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
526 2011-04-27 Jan Hubicka <jh@suse.cz>
528 * ipa-prop.c (function_insertion_hook_holder): New holder.
529 (ipa_add_new_function): New function.
530 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
531 Register/deregister holder.
533 2011-04-27 Richard Guenther <rguenther@suse.de>
535 PR tree-optimization/48772
536 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
538 2011-04-27 Richard Guenther <rguenther@suse.de>
540 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
541 TARGET_MEM_REF handling.
543 2011-04-27 Nick Clifton <nickc@redhat.com>
545 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
546 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
547 (REG_CLASS_NAMES): Likewise.
548 (REG_CLASS_CONTENTS): Likewise.
549 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
550 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
551 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
552 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
553 (EVEN_REGS): New macro. Alias for QUAD_REGS.
554 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
555 duplicate register classes.
556 (frv_class_likely_spilled_p): Likewise.
557 (frv_register_move_cost): Likewise.
559 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
560 end of the regno_reg_class array.
562 2011-04-27 Jakub Jelinek <jakub@redhat.com>
565 * c-typeck.c (build_binary_op): Don't wrap arguments if
566 int_operands is true.
568 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
571 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
572 targetm.calls.must_pass_in_stack for void type.
574 2011-04-26 Jan Hubicka <jh@suse.cz>
576 * cgraphbuild.c (build_cgraph_edges): Update call
577 of cgraph_create_edge and cgraph_create_indirect_edge.
578 * cgraph.c (cgraph_create_edge_including_clones,
579 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
580 cgraph_update_edges_for_call_stmt_node): Do not take nest
581 argument; do not initialize call_stmt_size/time.
582 (dump_cgraph_node): Do not dump nest.
583 (cgraph_clone_edge): Do not take loop_nest argument;
584 do not propagate it; do not clone call_stmt_size/time.
585 (cgraph_clone_node): Likewise.
586 (cgraph_create_virtual_clone): Update.
587 * cgraph.h (struct cgraph_edge): Remove
588 call_stmt_size/call_stmt_time/loop_nest.
589 (cgraph_create_edge, cgraph_create_indirect_edge,
590 cgraph_create_edge_including_clones, cgraph_clone_node): Update
592 * tree-emutls.c (gen_emutls_addr): Update.
593 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
594 loop_nest; handle indirect calls, too.
595 (clone_inlined_nodes): Do not care about updating inline summaries.
596 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
597 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
598 stream call_stmt_size/call_stmt_time/loop_nest.
599 * ipa-inline.c (edge_badness): Update.
600 (ipa_inline): dump summaries after inlining.
601 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
603 (inline_edge_summary): New function.
604 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
605 (inline_edge_removal_hook): Handle edge summaries.
606 (inline_edge_duplication_hook): New hook.
607 (inline_summary_alloc): Alloc hooks.
608 (initialize_growth_caches): Do not register removal hooks.
609 (free_growth_caches); Do not free removal hook.
610 (dump_inline_edge_summary): New function.
611 (dump_inline_summary): Use it.
612 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
613 (inline_update_callee_summaries): New function.
614 (inline_merge_summary): Use it.
615 (do_estimate_edge_time, do_estimate_edge_growth): Update.
616 (read_inline_edge_summary): New function.
617 (inline_read_section): Use it.
618 (write_inline_edge_summary): New function.
619 (inline_write_summary): Use it.
620 (inline_free_summary): Free edge new holders.
621 * tree-inline.c (copy_bb): Update.
623 2011-04-26 Jason Merrill <jason@redhat.com>
625 * tree-eh.c (lower_try_finally_switch): Create the label along with
628 2011-04-26 David S. Miller <davem@davemloft.net>
629 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
631 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
632 * configure: Regenerate.
634 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
637 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
639 (VEC_reduc): New code iterator and splitters for vector reduction.
640 (VEC_reduc_name): Ditto.
641 (VEC_reduc_rtx): Ditto.
642 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
643 (reduc_<VEC_reduc_name>_v4sf): Ditto.
645 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
646 support for extracting SF on VSX.
648 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
650 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
651 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
652 double add, minimum, maximum vector reduction.
653 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
654 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
655 optimize double vector reduction.
656 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
658 2011-04-26 Joseph Myers <joseph@codesourcery.com>
660 * config/fr30/fr30.h (inhibit_libc): Don't define.
661 * config/m32r/m32r-protos.h: Correct comment.
662 * config/v850/v850.h (GHS_default_section_names,
663 GHS_current_section_names): Use tree, not union tree_node *.
665 2011-04-26 Xinliang David Li <davidxl@google.com>
667 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
668 * c-family/c-opts.c (c_common_handle_option): Set
669 warn_maybe_uninitialized.
670 * opts.c (common_handle_option): Ditto.
671 * common.opt: New option.
672 * tree-ssa.c (warn_uninit): Add one more parameter.
673 (warn_uninitialized_var): Pass warning code.
674 * tree-flow.h: Interface change.
677 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
679 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
680 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
681 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
683 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
685 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
686 * config/mips/mips.opt (mmips-tfile): Remove.
688 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
689 mips-tdump reference to ...
690 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
691 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
692 reference by Tru64 UNIX.
694 2011-04-26 Jakub Jelinek <jakub@redhat.com>
697 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
698 is error_mark_node, set value to NULL.
700 PR tree-optimization/48734
701 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
702 if return value from maybe_fold_*_comparsions isn't something
703 the code is prepared to handle.
705 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
707 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
709 (ext_QIreg_nomode_operands): Remove.
710 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
714 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
716 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
718 2011-04-26 Richard Guenther <rguenther@suse.de>
720 * c-typeck.c (build_unary_op): Do not expand array-refs via
721 pointer arithmetic. Only adjust qualifiers for function types.
723 2011-04-26 Richard Guenther <rguenther@suse.de>
726 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
727 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
728 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
729 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
731 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
733 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
734 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
735 * doc/extend.texi: Document __underlying_type.
737 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
739 * config/rs6000/titan.md (automata_option "progress"): Remove.
741 2011-04-25 Jeff Law <law@redhat.com>
743 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
745 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
747 * system.h (ENUM_BITFIELD): Remove.
749 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
750 Eric Botcazou <ebotcazou@adacore.com>
752 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
753 for STORE_FLAG_VALUE==-1 case.
755 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
758 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
759 LEGITIMATE_PIC_OPERAND_P.
761 2011-04-24 Jan Hubicka <jh@suse.cz>
763 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
765 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
766 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
767 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
768 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
769 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
770 Sanity check predicate length.
771 (remap_predicate): Likewise; sanity check jump functions.
772 (inline_read_section, inline_write_summary): Sanity check
775 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
778 * doc/extend.texi (Type Traits): Document __is_standard_layout,
779 __is_literal_type, and __is_trivial; update throughout about
780 possibly cv-qualified void types.
782 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
784 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
785 testsuite and make it version agnostic.
787 2011-04-22 Jan Hubicka <jh@suse.cz>
789 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
791 2011-04-23 Jakub Jelinek <jakub@redhat.com>
794 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
795 to VOID_TYPE even around MODIFY_EXPR.
797 2011-04-22 Mike Stump <mikestump@comcast.net>
799 * gensupport.c (read_md_rtx): Fix typo in comment.
800 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
803 2011-04-22 Jan Hubicka <jh@suse.cz>
805 * gengtype.c (open_base_files): Add ipa-inline.h include.
806 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
807 ipa-prop.c; update all uses.
808 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
809 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
810 merge summary of inlined function into former caller.
811 * ipa-inline.c (max_benefit): Remove.
812 (edge_badness): Compensate for removal of benefits.
813 (update_caller_keys): Use
814 reset_node_growth_cache/reset_edge_growth_cache.
815 (update_callee_keys): Likewise.
816 (update_all_callee_keys): Likewise.
817 (inline_small_functions): Do not collect max_benefit; do not reset
818 estimated_growth; call free_growth_caches and initialize_growth_caches.
819 * ipa-inline.h (struct condition, type clause_t, struct predicate,
820 struct size_time_entry): New structures.
821 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
822 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
823 and estimated_growth.
824 (edge_growth_cache_entry): New structure.
825 (node_growth_cache, edge_growth_cache): New global vars.
826 (estimate_growth): Turn into inline.
827 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
828 initialize_growth_caches, free_growth_caches): Declare.
829 (estimate_edge_growth): Rewrite.
830 (estimate_edge_time): Implement as inline cache lookup.
831 (reset_node_growth_cache, reset_edge_growth_cache): New inline
833 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
834 (NUM_CONDITIONS): New constant.
835 (predicate_conditions): New enum.
836 (IS_NOT_CONSTANT): New constant.
837 (edge_removal_hook_holder): New var.
838 (node_growth_cache, edge_growth_cache): New global vars.
839 (true_predicate, single_cond_predicate, false_predicate,
840 not_inlined_predicate, add_condition, add_clause, and_predicates,
841 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
842 dump_clause, dump_predicate, account_size_time,
843 evaulate_conditions_for_edge): New functions.
844 (inline_summary_alloc): Move to heap.
845 (inline_node_removal_hook): Clear condition and entry vectors.
846 (inline_edge_removal_hook): New function.
847 (initialize_growth_caches, free_growth_caches): New function.
848 (dump_inline_summary): Update.
849 (edge_execution_predicate): New function.
850 (will_be_nonconstant_predicate): New function.
851 (estimate_function_body_sizes): Compute BB and constantness predicates.
852 (compute_inline_parameters): Do not clear estimated_growth.
853 (estimate_edge_size_and_time): New function.
854 (estimate_calls_size_and_time): New function.
855 (estimate_callee_size_and_time): New function.
856 (remap_predicate): New function.
857 (inline_merge_summary): New function.
858 (do_estimate_edge_time): New function based on...
859 (estimate_edge_time): ... this one.
860 (do_estimate_edge_growth): New function.
861 (do_estimate_growth): New function based on....
862 (estimate_growth): ... this one.
863 (inline_analyze_function): Analyze after deciding on jump functions.
864 (inline_read_section): New function.
865 (inline_read_summary): Use it.
866 (inline_write_summary): Write all the new data.
867 * ipa-prop.c (ipa_get_param_decl_index): Export.
868 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
869 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
871 (ipa_get_lattice): Move here from ipa-cp.c
872 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
873 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
874 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
875 cgraph_edge_inlinable_p): Remove.
876 * cgraphunit.c: Include ipainline.h
877 (cgraph_process_new_functions): Update call of
878 compute_inline_parameters.
880 2011-04-22 Richard Guenther <rguenther@suse.de>
882 * tree.c (build_int_cst): Properly create canonicalized integer
884 (build_int_cst_type): Remove scary comments.
886 2011-04-22 Xinliang David Li <davidxl@google.com>
888 * toplev.c (process_options): Enable -Werror=coverage-mismatch
889 by default when -Wno-error is not specified.
890 * opts-global.c (decode_options): Remove call to
891 control_warning_options.
893 2011-04-22 Jakub Jelinek <jakub@redhat.com>
895 PR tree-optimization/48717
896 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
897 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
899 2011-04-22 Joseph Myers <joseph@codesourcery.com>
901 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
902 definition where used.
904 2011-04-22 Jakub Jelinek <jakub@redhat.com>
907 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
908 TREE_STATIC variables declared inside of some OpenMP construct.
910 2011-04-22 Martin Jambor <mjambor@suse.cz>
913 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
915 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
918 * c-typeck.c (pop_init_level): Do not warn about initializing
921 2011-04-22 Alan Modra <amodra@gmail.com>
923 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
924 when returning call_cookie.
925 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
926 pointers, to functions with no more vector args than the current
927 function, and some non-local calls for ABI_V4.
928 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
929 sibcall_nonlocal_aix64): Combine to ..
930 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
931 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
932 (sibcall_value_nonlocal_aix<mode>): ..likewise.
933 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
934 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
936 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
937 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
938 sibcall_value_symbolic_64): Delete.
940 2011-04-21 Xinliang David Li <davidxl@google.com>
942 * cgraph.h: Remove pid.
943 * cgraph.c: Remove pid.
944 * value-prof.c (init_node_map): New function.
945 (del_node_map): New function.
946 (find_func_by_funcdef_no): New function.
947 (gimple_ic_transform): Call new function.
948 * cgraphunit.c (cgraph_finalize_function): Remove pid.
949 * function.c (get_last_funcdef_no): New function.
950 * function.h (get_last_funcdef_no): New function.
951 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
953 (tree-profiling): Call node map init and delete function.
955 2011-04-21 Ian Lance Taylor <iant@google.com>
957 * godump.c (go_format_type): Use exported Go name for anonymous
960 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
962 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
963 Call builtin_function_type_list instead of builtin_function_type.
964 (UNARY, BINARY, TRINARY, QUAD): Likewise.
966 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
968 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
969 build_function_type_list instead of build_function_type.
970 Delete variable `endlink'.
972 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
974 * config/s390/s390.c (s390_init_builtins): Call
975 build_function_type_list instead of build_function_type.
977 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
979 * config/ia64/ia64.c (ia64_init_builtins): Call
980 build_function_type_list instead of builtin_function_type.
982 2011-04-21 Easwaran Raman <eraman@google.com>
984 * cfgexpand.c (stack_var): Remove OFFSET...
985 (add_stack_var): ...and its reference here...
986 (expand_stack_vars): ...and here.
987 (stack_var_cmp): Sort by descending order of size.
988 (partition_stack_vars): Change heuristic.
989 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
990 (dump_stack_var_partition): Add newline after each partition.
992 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
993 Jeff Law <law@redhat.com>
995 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
996 * gengtype.c (matching_file_name_substitute): Likewise.
998 2011-04-21 Richard Guenther <rguenther@suse.de>
1001 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
1003 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
1005 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
1007 2011-04-21 Richard Guenther <rguenther@suse.de>
1009 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
1012 2011-04-21 Richard Guenther <rguenther@suse.de>
1014 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1015 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
1016 Use DECL_P, not SSA_VAR_P.
1017 (ptr_derefs_may_alias_p): Likewise.
1018 (ptr_deref_may_alias_ref_p_1): Likewise.
1019 (decl_refs_may_alias_p): Likewise.
1020 (refs_may_alias_p_1): Likewise.
1021 (ref_maybe_used_by_call_p_1): Likewise.
1022 (call_may_clobber_ref_p_1): Likewise.
1023 (indirect_ref_may_alias_decl_p): Assume indirect refrences
1024 are either MEM_REF or TARGET_MEM_REF.
1025 (indirect_refs_may_alias_p): Likewise.
1026 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
1027 for MEM_EXPR of indirect calls.
1029 2011-04-21 Tristan Gingold <gingold@adacore.com>
1031 * vmsdbgout.c (write_srccorr): Compute file length from the string.
1032 (dst_file_info_struct): Remove flen field.
1033 (lookup_filename): Remove code that set flen field.
1035 2011-04-21 Tristan Gingold <gingold@adacore.com>
1037 * config/ia64/ia64.c (ia64_start_function): Add a guard.
1039 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
1042 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
1043 vec_extract and vec_concat for non-SSE4_1 targets.
1045 2011-04-21 Richard Guenther <rguenther@suse.de>
1047 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
1050 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1052 * config/i386/cygming.h (union tree_node, TREE): Don't define or
1054 (FILE): Don't undefine.
1056 2011-04-21 Joseph Myers <joseph@codesourcery.com>
1058 * config/alpha/alpha.c (struct machine_function): Use rtx, not
1060 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
1062 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
1063 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
1064 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
1066 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
1067 definitions where used.
1068 * config/microblaze/microblaze.h (struct microblaze_args): Use
1069 rtx, not struct rtx_def *.
1070 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
1072 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
1073 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
1074 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
1075 not struct rtx_def *.
1076 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
1078 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
1080 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
1082 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1084 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
1085 operand_equal_p to compare DR_BASE_ADDRESSes.
1086 (vect_check_interleaving): Likewise.
1088 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1091 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
1092 for all Neon struct constants.
1094 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1096 * target.def (legitimate_constant_p): New hook.
1097 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
1098 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
1099 * doc/tm.texi: Regenerate.
1100 * hooks.h (hook_bool_mode_rtx_true): Declare.
1101 * hooks.c (hook_bool_mode_rtx_true): Define.
1102 * system.h (LEGITIMATE_CONSTANT_P): Poison.
1103 * calls.c (precompute_register_parameters): Replace uses of
1104 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
1105 (emit_library_call_value_1): Likewise.
1106 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
1107 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
1108 * ira-costs.c (scan_one_insn): Likewise.
1109 * recog.c (general_operand, immediate_operand): Likewise.
1110 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
1111 * reload1.c (init_eliminable_invariants): Likewise.
1113 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
1115 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
1116 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
1118 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1119 * config/alpha/predicates.md (input_operand): Update call to
1120 alpha_legitimate_constant_p.
1122 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
1123 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
1124 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
1125 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1126 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
1127 (arm_legitimate_constant_p): New functions.
1128 (arm_cannot_force_const_mem): Make static.
1130 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
1132 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
1133 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
1134 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
1135 instead of bfin_legitimate_constant_p.
1136 (bfin_legitimate_constant_p): Make static. Add a mode argument.
1137 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1139 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
1141 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
1143 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
1144 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
1145 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1146 (frv_legitimate_constant_p): Make static. Add a mode argument.
1148 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
1149 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
1150 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
1152 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
1153 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
1154 * config/i386/i386.c (legitimate_constant_p): Rename to...
1155 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
1157 (ix86_cannot_force_const_mem): Update accordingly.
1158 (ix86_legitimate_address_p): Likewise.
1159 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1160 * config/i386/i386.md: Update commentary.
1162 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
1163 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
1164 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1165 (ia64_legitimate_constant_p): Make static. Add a mode argument.
1167 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
1169 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
1170 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
1171 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1172 (lm32_legitimate_constant_p): Make static. Add a mode argument.
1174 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
1175 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
1176 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
1178 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
1179 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1180 (m32r_legitimate_constant_p): New function.
1182 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
1183 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
1184 LEGITIMATE_CONSTANT_P.
1185 (LEGITIMATE_CONSTANT_P): Delete.
1186 * config/m68k/m68k.c (m68k_expand_prologue): Call
1187 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
1188 (m68k_legitimate_constant_p): New function.
1189 * config/m68k/m68k.md: Update comments.
1191 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
1192 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1193 (mcore_legitimate_constant_p): New function.
1195 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
1196 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
1197 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
1198 Add a mode argument.
1199 (mep_legitimate_address): Update accordingly.
1200 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1202 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
1204 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
1205 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
1206 static. Check OP's mode for VOIDmode.
1207 (microblaze_legitimate_constant_p): New function.
1208 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1210 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
1211 * config/mips/mips.c (mips_legitimate_constant_p): New function.
1212 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
1213 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1214 * config/mips/predicates.md: Update comments.
1216 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
1217 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
1218 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1219 (mmix_legitimate_constant_p): Make static, return a bool, and take
1221 (mmix_print_operand_address): Update accordingly.
1223 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
1225 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
1226 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
1227 static. Add a mode argument.
1228 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1230 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
1232 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
1233 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1234 (pa_legitimate_constant_p): New function.
1236 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
1238 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
1239 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1240 (pdp11_legitimate_constant_p): New function.
1242 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
1243 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1244 (rs6000_legitimate_constant_p): New function.
1246 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
1247 (rx_legitimate_constant_p): ...this.
1248 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
1249 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
1250 (rx_legitimate_constant_p): ...this.
1251 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1252 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
1254 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
1255 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
1256 * config/s390/s390.c (legitimate_constant_p): Rename to...
1257 (s390_legitimate_constant_p): ...this. Make static, return a bool,
1258 and add a mode argument.
1259 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1261 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
1263 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
1264 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1265 (sh_legitimate_constant_p): New function.
1267 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
1268 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
1269 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1270 (legitimate_constant_p): Rename to...
1271 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
1273 (constant_address_p): Update accordingly.
1275 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
1276 argument and return a bool.
1277 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
1278 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1279 (spu_legitimate_constant_p): Add a mode argument and return a bool.
1280 (spu_rtx_costs): Update accordingly.
1281 * config/spu/predicates.md (vec_imm_operand): Likewise.
1283 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
1285 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
1286 * config/v850/v850.c (v850_legitimate_constant_p): New function.
1287 (TARGET_LEGITIMATE_CONSTANT_P): Define.
1289 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
1290 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
1291 * config/vax/vax.c (legitimate_constant_p): Likewise.
1293 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
1294 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
1295 (xtensa_legitimate_constant_p): New function.
1297 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
1299 * target.def (cannot_force_const_mem): Add a mode argument.
1300 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
1301 * doc/tm.texi: Regenerate.
1302 * hooks.h (hook_bool_mode_rtx_false): Declare.
1303 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
1304 (hook_bool_mode_const_rtx_true): Likewise.
1305 (hook_bool_mode_rtx_false): New function.
1306 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
1307 to be non-VOID. Update call to cannot_force_const_mem.
1308 (find_reloads): Update accordingly.
1309 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
1310 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
1312 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
1313 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
1314 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
1315 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
1316 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
1317 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
1318 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
1319 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
1320 (m68k_cannot_force_const_mem): ...this new function.
1321 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
1323 (mips_const_insns, mips_legitimize_const_move): Update calls.
1324 (mips_secondary_reload_class): Likewise.
1325 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
1326 (pa_cannot_force_const_mem): ...this new function.
1327 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
1328 (rs6000_cannot_force_const_mem): ...this new function.
1329 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
1331 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
1332 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
1334 (xtensa_cannot_force_const_mem): ...this new function.
1336 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
1338 * config/mips/mips.c (mips16_build_function_stub): Call
1339 build_function_type_list instead of build_function_type.
1340 (mips16_build_call_stub): Likewise.
1342 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
1344 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
1345 instead of build_function_type.
1347 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
1349 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
1350 instead of build_function_type.
1352 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
1355 * config/i386/i386.md (insv): Change operand 0 constraint to
1356 "register_operand". Change operand 1 and 2 constraint to
1357 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
1358 * config/i386/sse.md (sse4_1_pinsrb): Export.
1359 (sse2_pinsrw): Ditto.
1360 (sse4_1_pinsrd): Ditto.
1361 (sse4_1_pinsrq): Ditto.
1362 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
1363 * config/i386/i386.c (ix86_expand_pinsr): New.
1365 2011-04-20 Easwaran Raman <eraman@google.com>
1367 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
1368 containing union type only with -fstrict-aliasing.
1370 2011-04-20 Jim Meyering <meyering@redhat.com>
1372 Remove useless if-before-free tests.
1373 * calls.c (expand_call, save_area): Likewise.
1374 * cfgcleanup.c (try_forward_edges): Likewise.
1375 * collect2.c (collect_execute): Likewise.
1376 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
1377 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
1378 * coverage.c (coverage_checksum_string): Likewise.
1379 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
1380 * cselib.c (cselib_init): Likewise.
1381 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
1382 (df_set_clean_cfg): Likewise.
1383 * function.c (free_after_compilation): Likewise.
1384 * gcc.c (do_spec_1, main): Likewise.
1385 * gcov.c (create_file_names): Likewise.
1386 * gensupport.c (identify_predicable_attribute): Likewise.
1387 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
1388 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
1389 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
1390 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
1391 * ipa-pure-const.c (local_pure_const): Likewise.
1392 * ipa-reference.c (propagate): Likewise.
1393 * ira-costs.c (free_ira_costs): Likewise.
1394 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
1395 * matrix-reorg.c (mat_free): Likewise.
1396 * prefix.c (get_key_value): Likewise.
1397 * profile.c (compute_value_histograms): Likewise.
1398 * reload1.c (free_reg_equiv): Likewise.
1399 * sched-deps.c (free_deps): Likewise.
1400 * sel-sched-ir.c (fence_clear): Likewise.
1401 * sese.c (set_rename, if_region_set_false_region): Likewise.
1402 * tree-data-ref.c (free_rdg): Likewise.
1403 * tree-eh.c (lower_try_finally): Likewise.
1404 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
1405 * tree-ssa-live.c (delete_var_map): Likewise.
1406 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
1407 * tree-ssa-pre.c (phi_trans_add): Likewise.
1409 2011-04-20 Jakub Jelinek <jakub@redhat.com>
1411 PR tree-optimization/48611
1412 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
1413 beyond ERT_MUST_NOT_THROW region.
1415 2011-04-20 Catherine Moore <clm@codesourcery.com>
1417 * config/mips/mips.opt (mfix-24k): New.
1418 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
1419 * config/mips/mips.md (length): Increase by 4 for stores if
1421 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
1422 all noreorder if fixing 24K errata.
1423 * doc/invoke.texi: Document mfix-24k.
1425 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
1427 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
1428 quad-word modes, reduce to 9-bit index range when above 1016 limit.
1430 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
1432 * config/arm/arm.c (arm_gen_constant): Move movw support ....
1433 (const_ok_for_op): ... to here.
1435 2011-04-20 Kai Tietz <ktietz@redhat.com>
1437 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
1438 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
1440 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
1442 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
1444 2011-04-20 Richard Guenther <rguenther@suse.de>
1446 PR tree-optimization/47892
1447 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
1450 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
1452 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
1454 2011-04-20 Tristan Gingold <gingold@adacore.com>
1456 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
1458 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
1462 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
1463 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
1464 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1465 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1466 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
1468 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
1471 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
1472 (avr_asm_named_section, avr_asm_output_aligned_common,
1473 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
1474 New functions to update...
1475 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
1476 (avr_asm_init_sections): Overwrite section callbacks for
1477 data_section, bss_section.
1478 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
1480 (avr_file_end): ...here.
1482 2011-04-20 Richard Guenther <rguenther@suse.de>
1485 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
1486 objects and types here. Adjust for their offset before comparing.
1488 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
1490 * tree-vect-stmts.c (vectorizable_store): Only chain one related
1493 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
1495 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
1496 (GIMPLE_H): Include $(INTERNAL_FN_H).
1497 (OBJS-common): Add internal-fn.o.
1498 (internal-fn.o): New rule.
1499 * internal-fn.def: New file.
1500 * internal-fn.h: Likewise.
1501 * internal-fn.c: Likewise.
1502 * gimple.h: Include internal-fn.h.
1503 (GF_CALL_INTERNAL): New gf_mask.
1504 (gimple_statement_call): Put fntype into a union with a new
1506 (gimple_build_call_internal): Declare.
1507 (gimple_build_call_internal_vec): Likewise.
1508 (gimple_call_same_target_p): Likewise.
1509 (gimple_call_internal_p): New function.
1510 (gimple_call_internal_fn): Likewise.
1511 (gimple_call_fntype): Return null for internal calls.
1512 (gimple_call_set_fntype): Assert that the function is not internal.
1513 (gimple_call_set_fn): Likewise.
1514 (gimple_call_set_fndecl): Likewise.
1515 (gimple_call_set_internal_fn): New function.
1516 (gimple_call_addr_fndecl): Handle null functions.
1517 (gimple_call_return_type): Likewise null types.
1518 * gimple.c (gimple_build_call_internal_1): New function.
1519 (gimple_build_call_internal): Likewise.
1520 (gimple_build_call_internal_vec): Likewise.
1521 (gimple_call_same_target_p): Likewise.
1522 (gimple_call_flags): Handle calls to internal functions.
1523 (gimple_call_fnspec): New function.
1524 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
1525 (gimple_has_side_effects): Handle null functions.
1526 (gimple_rhs_has_side_effects): Likewise.
1527 (gimple_call_copy_skip_args): Handle calls to internal functions.
1528 * cfgexpand.c (expand_call_stmt): Likewise.
1529 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
1530 * gimple-fold.c (gimple_fold_call): Handle null functions.
1531 (gimple_fold_stmt_to_constant_1): Don't fold
1532 calls to internal functions.
1533 * gimple-low.c (gimple_check_call_args): Handle calls to internal
1535 * gimple-pretty-print.c (dump_gimple_call): Likewise.
1536 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
1537 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
1538 (do_warn_unused_result): Likewise.
1539 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
1540 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
1541 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
1542 the target of a call.
1543 (initialize_hash_element): Update accordingly.
1544 (hashable_expr_equal_p): Use gimple_call_same_target_p.
1545 (iterative_hash_hashable_expr): Handle calls to internal functions.
1546 (print_expr_hash_elt): Likewise.
1547 * tree-ssa-pre.c (can_value_number_call): Likewise.
1548 (eliminate): Handle null functions.
1549 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
1550 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
1551 (find_func_aliases): Likewise.
1552 * value-prof.c (gimple_ic_transform): Likewise.
1553 (gimple_indirect_call_to_profile): Likewise.
1554 * lto-streamer-in.c (input_gimple_stmt): Likewise.
1555 * lto-streamer-out.c (output_gimple_stmt): Likewise.
1557 2011-04-19 Jan Hubicka <jh@suse.cz>
1559 * ipa-inline-transform.c (save_inline_function_body): Add comments.
1560 * ipa-inline.c (inline_small_functions): Compute summaries first,
1561 populate heap later.
1563 2011-04-19 Jan Hubicka <jh@suse.cz>
1565 * cgraph.h (save_inline_function_body): Remove.
1566 * ipa-inline-transform.c: New file, broke out of...
1567 * ipa-inline.c: ... this one; Update toplevel comment.
1568 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
1570 (update_noncloned_frequencies): Move to ipa-inline-transform.c
1571 (cgraph_mark_inline_edge): Rename to inline_call; move to
1572 ipa-inline-transform.c.
1573 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
1574 move to ipa-inline-transform.c
1575 (recursive_inlining, inline_small_functions, flatten_function,
1576 ipa_inline, inline_always_inline_functions,
1577 early_inline_small_functions): Update.
1578 (inline_transform): Move to ipa-inline-transform.c.
1579 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
1581 * Makefile.in (ipa-inline-transform.o): New file.
1582 * cgraphunit.c (save_inline_function_body): Move to
1583 ipa-inline-transform.c
1585 2011-04-19 DJ Delorie <dj@redhat.com>
1587 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
1588 registers if we already know there aren't any.
1589 (m32c_emit_epilogue): Don't emit a barrier here.
1590 (m32c_emit_eh_epilogue): Likewise.
1591 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
1592 operands at expand time.
1593 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
1595 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
1596 duplicates. Provide aliases instead.
1597 * config/m32c/prologue.md (eh_return): Emit a barrier here.
1598 (eh_epilogue): Add a "(return)" here as a hint to other parts of
1601 2011-04-19 Anatoly Sokolov <aesok@post.ru>
1603 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
1604 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
1605 (general_or_i64_p, sparc_register_move_cost): New function.
1607 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1609 * doc/install.texi (Configuration, --enable-threads): Remove mach.
1610 Add lynx, mipssde. Sort table.
1612 2011-04-19 Xinliang David Li <davidxl@google.com>
1614 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
1617 2011-04-19 Jakub Jelinek <jakub@redhat.com>
1620 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
1621 is a SUBREG with non-MODE_INT mode inside of it.
1623 2011-04-19 Martin Jambor <mjambor@suse.cz>
1625 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
1626 also according to actual contants.
1627 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
1628 (gimple_fold_call): Use it.
1629 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
1631 2011-04-19 Martin Jambor <mjambor@suse.cz>
1633 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
1634 non-pointer assignments.
1636 2011-04-19 Martin Jambor <mjambor@suse.cz>
1638 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
1639 account anc_offset and otr_type from the indirect edge info.
1640 * ipa-prop.c (get_ancestor_addr_info): New function.
1641 (compute_complex_ancestor_jump_func): Assignment analysis moved to
1642 get_ancestor_addr_info, call it.
1643 (ipa_note_param_call): Do not initialize information about polymorphic
1644 calls, return the indirect call graph edge. Remove the last
1645 parameter, adjust all callers.
1646 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
1647 parameters. Initialize polymorphic information in the indirect edge.
1649 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
1652 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
1653 the types if they have different enumeration identifiers.
1655 2011-04-19 Jan Hubicka <jh@suse.cz>
1657 * cgraph.h (cgraph_optimize_for_size_p): Declare.
1658 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
1659 * predict.c (cgraph_optimize_for_size_p): Break out from ...
1660 (optimize_function_for_size_p) ... here.
1662 2011-04-19 Richard Guenther <rguenther@suse.de>
1665 * tree.c (free_lang_data): Do not reset the decl-assembler-name
1668 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
1670 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
1671 if DECL_NO_INLINE_WARNING_P is set on the function.
1673 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
1676 * reload1.c (inc_for_reload): Return void. All callers changed.
1677 (emit_input_reload_insns): Don't try to delete previous output
1678 reloads to a register, or record spill_reg_store for autoincs.
1680 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
1682 * gengtype.h: Updated copyright year.
1683 (struct input_file_st): Add inpisplugin field.
1684 (type_fileloc): New function.
1686 (write_typed_struct_alloc_def): Add gcc_assert.
1687 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
1688 (write_typed_alloc_defns): Don't output for plugin files.
1689 (input_file_by_name): Clear inpisplugin field.
1690 (main): Set inpisplugin field for plugin files.
1692 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
1694 * gengtype-state.c (string_eq): New.
1695 (read_state): Use string_eq instead of strcmp when creating the
1698 2011-04-19 Wei Guozhi <carrot@google.com>
1701 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
1702 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
1704 * config/arm/constraints.md (Uu): New constraint.
1705 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
1707 2011-04-19 Tristan Gingold <gingold@adacore.com>
1709 * config.gcc (-*-*-*vms): Added.
1710 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
1712 * config/vms/vms-ld.c: New file.
1713 * config/vms/vms-ar.c: New file.
1714 * config/vms/t-vmsnative: New file.
1716 2011-04-18 Xinliang David Li <davidxl@google.com>
1718 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
1720 2011-04-18 Jakub Jelinek <jakub@redhat.com>
1723 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
1724 if TREE_TYPE (v) is non-NULL.
1726 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
1727 gimple_get_virt_mehtod_for_binfo.
1728 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
1729 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
1731 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1733 2011-04-18 Michael Matz <matz@suse.de>
1734 Steve Ellcey <sje@cup.hp.com>
1736 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
1737 use its mode as source mode if it isn't VOIDmode.
1739 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
1741 * doc/passes.texi: Fill crossref nodes.
1743 2011-04-18 Jim Meyering <meyering@redhat.com>
1745 Fix doubled-word typos in comments and strings
1746 * config/alpha/vms-unwind.h: s/for for/for/
1747 * config/arm/unwind-arm.h: Likewise.
1748 * config/microblaze/microblaze.c: Likewise.
1749 * config/sh/constraints.md: s/in in/in/
1750 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
1752 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
1754 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
1755 (AVX_FLOAT_MODE_P): Ditto.
1756 (AVX128_VEC_FLOAT_MODE_P): Ditto.
1757 (AVX256_VEC_FLOAT_MODE_P): Ditto.
1758 (AVX_VEC_FLOAT_MODE_P): Ditto.
1759 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
1760 (UNSPEC_MASKSTORE): Ditto.
1761 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
1762 Merge from <sse>_movmsk<ssemodesuffix> and
1763 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
1764 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
1766 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
1767 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
1768 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
1770 2011-04-18 Jan Hubicka <jh@suse.cz>
1772 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
1774 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
1775 (want_inline_function_called_once_p): Break out the logic from
1777 (edge_badness): Ensure that profile is not misupdated.
1778 (lookup_recursive_calls): Prioritize by call frequencies.
1779 (inline_small_functions): Move program size estimates here;
1780 actually process whole queue even when unit growth has been
1781 met. (to properly compute inline_failed reasons and for the
1782 case unit size decrease.) Revisit comments on recursive inlining.
1783 (ipa_inline): Remove unit summary code; first inline hot calls
1784 of functions called once, cold calls next.
1785 (order, nnodes): Remove unused variables.
1786 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
1787 (GTFILES): Remove ipa-inline.c
1788 * sel-sched.c (fill_insns): Silence uninitialized var warning.
1790 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
1792 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
1794 2011-04-18 Jie Zhang <jie@codesourcery.com>
1795 Richard Earnshaw <rearnsha@arm.com>
1797 * arm.c (neon_builtin_type_bits): Remove.
1798 (typedef enum neon_builtin_mode): New.
1799 (T_MAX): Don't define.
1800 (typedef enum neon_builtin_datum): Remove bits, codes[],
1801 num_vars and base_fcode. Add mode, code and fcode.
1802 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
1803 VAR10): Change accordingly.
1804 (neon_builtin_data[]): Change accordingly
1805 (arm_init_neon_builtins): Change accordingly.
1806 (neon_builtin_compare): Remove.
1807 (locate_neon_builtin_icode): Remove.
1808 (arm_expand_neon_builtin): Change accordingly.
1810 * arm.h (enum arm_builtins): Move to ...
1811 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
1813 * arm.c (arm_builtin_decl): Declare.
1814 (TARGET_BUILTIN_DECL): Define.
1815 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
1816 (arm_builtin_decls[]): New.
1817 (arm_init_neon_builtins): Store builtin declarations in
1818 arm_builtin_decls[].
1819 (arm_init_tls_builtins): Likewise.
1820 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
1821 (arm_builtin_decl): New.
1823 2011-04-18 Richard Guenther <rguenther@suse.de>
1825 * tree.c (upper_bound_in_type): Build properly canonicalized
1827 (lower_bound_in_type): Likewise.
1829 2011-04-18 Richard Guenther <rguenther@suse.de>
1831 * gimple.h (gimple_call_addr_fndecl): New function.
1832 (gimple_call_fndecl): Use it.
1833 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
1835 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
1836 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
1838 2011-04-18 Richard Guenther <rguenther@suse.de>
1841 * tree.c (build_string): STRING_CST is now derived from tree_typed.
1843 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
1846 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
1847 DECL_IN_CONSTANT_POOL without RTL.
1849 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
1850 Ira Rosen <ira.rosen@linaro.org>
1853 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
1854 to match neon_vzip/vuzp/vtrn_internal.
1855 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
1856 outputs explicitly dependent on both inputs.
1857 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
1859 2011-04-18 Jakub Jelinek <jakub@redhat.com>
1861 PR tree-optimization/48616
1862 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
1863 whether the shift is by scalar or vector based on whether all SLP
1864 scalar stmts have the same rhs.
1866 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
1868 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
1871 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
1873 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1876 2011-04-17 Jan Hubicka <jh@suse.cz>
1878 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1879 * cgrpahunit.c (cgraph_finalize_function): Do not set
1880 finalized_by_frontend.
1881 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1882 finalized_by_frontend.
1884 2011-04-17 Jan Hubicka <jh@suse.cz>
1886 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1887 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1888 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1889 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1891 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1893 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1895 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
1898 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1899 is non-null before accessing it.
1900 (input_cgraph): Remove trailing spaces.
1902 2011-04-17 Revital Eres <revital.eres@linaro.org>
1904 * params.def (sms-min-sc): New param flag.
1905 * modulo-sched.c (sms_schedule): Use it.
1906 * doc/invoke.texi (sms-min-sc): Document it.
1908 2011-04-17 Jan Hubicka <jh@suse.cz>
1910 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1911 present, also set gimple_call_set_cannot_inline.
1912 * ipa-inline.c: Update toplevel comment.
1914 (cgraph_clone_inlined_nodes): Fix linebreaks.
1915 (cgraph_check_inline_limits): Restructure to ...
1916 (caller_growth_limits): ... this one; be more tolerant
1917 on growth in nested inline chains; add explanatory comment;
1918 fix stack accounting thinko introduced by previous patch.
1919 (cgraph_default_inline_p): Remove.
1920 (report_inline_failed_reason): New function.
1921 (can_inline_edge_p): New function.
1922 (can_early_inline_edge_p): New function.
1923 (leaf_node_p): Move upwards in file.
1924 (want_early_inline_function_p): New function.
1925 (want_inline_small_function_p): New function.
1926 (want_inline_self_recursive_call_p): New function.
1927 (cgraph_edge_badness): Rename to ...
1928 (edge_badness) ... this one; fix linebreaks.
1929 (update_edge_key): Update call of edge_baddness; add
1930 detailed dump about queue updates.
1931 (update_caller_keys): Use can_inline_edge_p and
1932 want_inline_small_function_p.
1933 (cgraph_decide_recursive_inlining): Rename to...
1934 (recursive_inlining): Use can_inline_edge_p and
1935 want_inline_self_recursive_call_p; simplify and remove no longer
1937 (cgraph_set_inline_failed): Remove.
1938 (add_new_edges_to_heap): Use can_inline_edge_p and
1939 want_inline_small_function_p.
1940 (cgraph_decide_inlining_of_small_functions): Rename to ...
1941 (inline_small_functions): ... this one; cleanup; use
1942 can/want predicates; cleanup debug ouput; work edges till fibheap
1943 is exhausted and do not stop once unit growth is reached; remove
1944 later loop processing remaining edges.
1945 (cgraph_flatten): Rename to ...
1946 (flatten_function): ... this one; use can_inline_edge_p
1947 and can_early_inline_edge_p predicates.
1948 (cgraph_decide_inlining): Rename to ...
1949 (ipa_inline): ... this one; remove unreachable nodes before
1950 inlining functions called once; simplify the pass.
1951 (cgraph_perform_always_inlining): Rename to ...
1952 (inline_always_inline_functions): ... this one; use
1953 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1954 (cgraph_decide_inlining_incrementally): Rename to ...
1955 (early_inline_small_functions): ... this one; simplify
1956 using new predicates; cleanup; make dumps prettier.
1957 (cgraph_early_inlining): Rename to ...
1958 (early_inliner): newer inline regular functions into always-inlines;
1959 fix updating of call stmt summaries.
1960 (pass_early_inline): Update for new names.
1961 (inline_transform): Fix formating.
1962 (gate_cgraph_decide_inlining): Rename to ...
1963 (pass_ipa_inline): ... this one.
1964 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1965 * ipa-inline-analysis.c (dump_inline_summary): Update.
1966 (compute_inline_parameters): Do not compute disregard_inline_limits;
1967 look for mismatching arguments.
1968 (estimate_growth): Fix handlig of non-trivial self recursion.
1969 (inline_read_summary): Do not read info->disregard_inline_limits.
1970 (inline_write_summary): Do not write info->disregard_inline_limits.
1971 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1972 and move all checks into can_inline_edge_p predicate; re-enable code
1973 comparing optimization levels.
1974 (expand_call_inline): Do not test inline_forbidden_into_p.
1975 * Makefile.in (ipa-inline.o): Update arguments.
1977 2011-04-17 Revital Eres <revital.eres@linaro.org>
1979 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1981 2011-04-17 Revital Eres <revital.eres@linaro.org>
1983 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1985 2011-04-17 Michael Matz <matz@suse.de>
1987 PR tree-optimization/48622
1989 * ipa-inline-analysis.c (inline_read_summary): Read size/time
1990 in same order as they're written.
1992 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1994 * config/pa/predicates.md: Reorganize and simplify predicates.
1995 Eliminate duplicate code checks.
1996 (arith_operand): Rename to arith14_operand
1997 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1998 * config/pa/pa.md: Use renamed operands.
1999 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
2000 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
2001 arith11_operand, adddi3_operand, indexed_memory_operand,
2002 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
2003 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
2004 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
2005 move_dest_operand, move_src_operand, prefetch_cc_operand,
2006 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
2007 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
2008 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
2009 div_operand, int5_operand, movb_comparison_operator,
2010 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
2011 arith_double_operand, ireg_operand, lhs_lshift_operand,
2012 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
2013 integer_store_memory_operand): Likewise.
2014 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
2015 (integer_store_memory_operand, read_only_operand,
2016 function_label_operand, borx_reg_operand,
2017 non_hard_reg_operand): Likewise.
2018 (eq_neq_comparison_operator): Delete unused operator.
2019 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
2020 function_label_operand.
2021 (emit_move_sequence): Likewise.
2023 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2025 * config/i386/sse.md (sseunpackmode): New mode attribute.
2026 (ssepackmode): Ditto.
2027 (vec_pack_trunc_<mode>): Macroize expander from
2028 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
2029 (vec_unpacks_lo_<mode>): Macroize expander from
2030 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2031 (vec_unpacks_hi_<mode>): Macroize expander from
2032 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2033 (vec_unpacku_lo_<mode>): Macroize expander from
2034 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2035 (vec_unpacku_hi_<mode>): Macroize expander from
2036 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
2037 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
2038 ix86_expand_sse4_unpack.
2039 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
2041 2011-04-16 Jan Hubicka <jh@suse.cz>
2043 * cgraphbuild.c: Include ipa-inline.h.
2044 (reset_inline_failed): Use initialize_inline_failed.
2045 * cgraph.c: Include ipa-inline.h.
2046 (cgraph_create_node_1): Do not initialize estimated_growth.
2047 (initialize_inline_failed): More to ipa-inline-analysis.c
2048 (dump_cgraph_node): Do not dump inline flags.
2049 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
2050 and disregard_inline_limits flags.
2051 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
2052 time, size, estimated_growth.
2053 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
2055 * cgraphunit.c (cgraph_decide_is_function_needed): Use
2056 DECL_DISREGARD_INLINE_LIMITS.
2057 (cgraph_analyze_function): Do not initialize
2058 node->local.disregard_inline_limits.
2059 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
2060 inlinable, versionable and disregard_inline_limits.
2061 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
2062 cgraph_check_inline_limits, cgraph_default_inline_p,
2063 cgraph_edge_badness, update_caller_keys, update_callee_keys,
2064 add_new_edges_to_heap): Update.
2065 (cgraph_decide_inlining_of_small_function): Update; set
2066 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
2067 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
2068 cgraph_decide_inlining_incrementally): Update.
2069 * ipa-inline.h (inline_summary): Add inlinable, versionable,
2070 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
2071 time, size and estimated_growth parameters.
2072 (estimate_edge_growth): Update.
2073 (initialize_inline_failed): Declare.
2074 * ipa-split.c: Include ipa-inline.h
2075 (execute_split_functions): Update.
2076 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
2077 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
2078 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
2079 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
2080 estimated_growth to INT_MIN.
2081 (inline_node_duplication_hook): Likewise.
2082 (dump_inline_summary): Dump new fields.
2083 (compute_inline_parameters): Update.
2084 (estimate_edge_time, estimate_time_after_inlining,
2085 estimate_size_after_inlining, estimate_growth, inline_read_summary,
2086 inline_write_summary):
2087 (initialize_inline_failed): Move here from cgraph.c.
2088 * tree-sra.c: Include ipa-inline.h.
2089 (ipa_sra_preliminary_function_checks): Update.
2090 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
2093 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
2095 * config/i386/sse.md (V16): New mode iterator.
2097 (AVXMODEQI, AVXMODEDI): Remove.
2098 (sse2, sse3): New mode attribute.
2099 (mov<mode>): Use V16 mode iterator.
2100 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
2101 (push<mode>1): Use V16 mode iterator.
2102 (movmisalign<mode>): Ditto.
2103 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2104 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
2105 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
2106 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
2107 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
2108 avx_movdqu<avxmodesuffix>.
2109 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
2110 *avx_movdqu<avxmodesuffix>.
2111 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
2112 avx_lddqu<avxmodesuffix>.
2113 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
2114 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
2115 avx_movnt<AVXMODEDI:mode>.
2116 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
2117 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
2119 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
2122 * haifa-sched.c (prune_ready_list, schedule_block): Use
2123 sched_pressure_p rather than flag_sched_pressure.
2125 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
2127 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2128 cgraph_get_node instead of cgraph_get_create_node.
2130 2011-04-15 Jakub Jelinek <jakub@redhat.com>
2132 * cfgexpand.c (expand_debug_expr): Use
2133 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
2135 2011-04-15 Michael Matz <matz@suse.de>
2137 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
2138 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
2139 * function.c (gimplify_parameters): Ditto.
2140 * gimplify.c (gimplify_vla_decl): Ditto.
2142 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
2143 (gimple_call_set_alloca_for_var): New inline function.
2144 (gimple_call_alloca_for_var_p): Ditto.
2145 * gimple.c (gimple_build_call_from_tree): Remember
2146 CALL_ALLOCA_FOR_VAR_P state.
2147 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
2149 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
2150 calls if they were for VLA objects.
2152 2011-04-15 Martin Jambor <mjambor@suse.cz>
2154 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
2157 2011-04-15 Martin Jambor <mjambor@suse.cz>
2160 * tree-emutls.c (lower_emutls_function_body): Call
2161 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
2164 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2166 * c-decl.c (detect_field_duplicates): Call
2167 objc_detect_field_duplicates instead of objc_get_interface_ivars.
2169 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
2171 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
2172 * gimple.c (gimple_asm_clobbers_memory_p): Define.
2173 * ipa-pure-const.c (check_stmt): Call it.
2174 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
2176 2011-04-15 Richard Guenther <rguenther@suse.de>
2178 PR tree-optimization/48290
2179 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
2180 Properly decide inhibiting propagation based on the valueized
2181 operand. Do loop-closed SSA form preserving here ...
2182 (init_copy_prop): ... not here.
2184 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
2187 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
2188 (*ieee_smax<mode>3): Likewise.
2190 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2192 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
2193 Replace match_operand with match_dup for the third operand in
2196 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2198 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
2199 to track processing of conditionals. Update all callers.
2200 (try_combine, simplify_if_then_else): Update.
2202 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2204 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
2207 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
2209 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
2210 instead of match_operand for operand 3.
2212 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
2214 * recog.h (insn_operand_data): Add an "allows_mem" field.
2215 * genoutput.c (output_operand_data): Initialize it.
2216 * optabs.c (maybe_legitimize_operand_same_code): New function.
2217 (maybe_legitimize_operand): Use it when matching the original
2220 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
2222 * gimplify.c: Fix issues in comments throughout.
2223 (voidify_wrapper_expr): Fix long line.
2224 (build_stack_save_restore): Likewise.
2225 (gimplify_loop_expr): Likewise.
2226 (gimplify_compound_lval): Likewise.
2227 (gimplify_init_ctor_eval): Likewise.
2228 (gimplify_modify_expr_rhs): Likewise.
2229 (omp_notice_threadprivate_variable): Likewise.
2231 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
2233 * cfgexpand.c (expand_call_stmt): Convert the function type to the
2234 original one if this is not a builtin function.
2236 2011-04-14 Jakub Jelinek <jakub@redhat.com>
2239 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
2240 offset it as needed based on top 2 bits in operands[3], change
2241 MEM mode to SFmode and mask those 2 bits away from operands[3].
2243 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2245 * c-parser.c (c_parser_objc_protocol_definition): Updated for
2246 change from objc_declare_protocols() to objc_declare_protocol().
2248 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
2250 * config/i386/sse.md (sse4_1): New mode attribute.
2251 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
2252 avx_blend<ssemodesuffix><avxmodesuffix> and
2253 sse4_1_blend<ssemodesuffix> using VF mode iterator.
2254 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
2255 avx_blendv<ssemodesuffix><avxmodesuffix> and
2256 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
2257 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
2258 avx_dp<ssemodesuffix><avxmodesuffix> and
2259 sse4_1_dp<ssemodesuffix> using VF mode iterator.
2260 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
2261 (sse4_1_packusdw): Merge with *avx_packusdw.
2262 (sse4_1_pblendvb): Merge with *avx_pblendvb.
2263 (sse4_1_pblendw): Merge with *avx_pblendw.
2264 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
2265 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
2266 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
2268 (sse4_1_round<ssescalarmodesuffix>): Merge with
2269 *avx_round<ssescalarmodesuffix>.
2270 (aesenc): Merge with *avx_aesenc.
2271 (aesenclast): Merge with *avx_aesenclast.
2272 (aesdec): Merge with *avx_aesdec.
2273 (aesdeclast): Merge with *avx_aesdeclast.
2274 (pclmulqdq): Merge with *pclmulqdq.
2275 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
2277 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
2279 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
2282 * cfgexpand.c (get_decl_align_unit): Renamed to ...
2283 (align_local_variable): This. Update DECL_ALIGN.
2284 (add_stack_var): Updated.
2285 (expand_one_stack_var): Likewise.
2287 2011-04-14 Richard Guenther <rguenther@suse.de>
2289 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
2291 (dse_initialize_block_local_data, dse_leave_block,
2292 record_voperand_set, get_stmt_uid): Likewise.
2293 (dse_possible_dead_store_p): Allow any kind of killing stmt.
2294 (dse_optimize_stmt): Remove voperand set handling code.
2295 Simplify and improve to handle any kind of killing stmt.
2296 (dse_record_phi): Remove.
2297 (dse_enter_block): Simplify.
2298 (tree_ssa_dse): Likewise.
2299 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
2301 2011-04-14 Jan Hubicka <jh@suse.cz>
2303 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
2304 * cgraph.h (struct inline_summary): Move to ipa-inline.h
2305 (cgraph_local_info): Remove inline_summary.
2306 * ipa-cp.c: Include ipa-inline.h.
2307 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
2308 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
2310 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
2311 (input_overwrite_node): Do not set inline summary.
2312 (input_node): Do not stream inline summary.
2313 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
2314 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
2315 growth; we do not have inline parameters computed for that anyway.
2316 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
2317 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
2318 (inline_summary_t): New type and VECtor.
2319 (debug_inline_summary, dump_inline_summaries): Declare.
2320 (inline_summary): Use VOCtor.
2321 (estimate_edge_growth): Kill hack computing call stmt size directly.
2322 * lto-section-in.c (lto_section_name): Add inline section.
2323 * ipa-inline-analysis.c: Include lto-streamer.h
2324 (node_removal_hook_holder, node_duplication_hook_holder): New holders
2325 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
2326 (inline_summary_vec): Define.
2327 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
2328 dump_inline_summaries): New functions.
2329 (estimate_function_body_sizes): Properly compute size/time of outgoing
2331 (compute_inline_parameters): Alloc inline_summary; do not compute
2332 size/time of incomming calls.
2333 (estimate_edge_time): Avoid missing time summary hack.
2334 (inline_read_summary): Read inline summary info.
2335 (inline_write_summary): Write inline summary info.
2336 (inline_free_summary): Free all hooks and inline summary vector.
2337 * lto-streamer.h: Add LTO_section_inline_summary section.
2338 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
2339 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
2341 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2343 * tree-vectorizer.h (vect_strided_store_supported): Add a
2344 HOST_WIDE_INT argument.
2345 (vect_strided_load_supported): Likewise.
2346 (vect_permute_store_chain): Return void.
2347 (vect_transform_strided_load): Likewise.
2348 (vect_permute_load_chain): Delete.
2349 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
2350 count argument. Check that the count is a power of two.
2351 (vect_strided_load_supported): Likewise.
2352 (vect_permute_store_chain): Return void. Update after above changes.
2353 Assert that the access is supported.
2354 (vect_permute_load_chain): Likewise.
2355 (vect_transform_strided_load): Return void.
2356 * tree-vect-stmts.c (vectorizable_store): Update calls after
2357 above interface changes.
2358 (vectorizable_load): Likewise.
2359 (vect_analyze_stmt): Don't check for strided powers of two here.
2361 2011-04-14 Richard Guenther <rguenther@suse.de>
2363 PR tree-optimization/48590
2364 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
2365 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
2366 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
2367 BUILT_IN_STACK_SAVE.
2368 * tree-ssa-dce.c (propagate_necessity): Handle
2369 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
2371 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2373 * c-parser.c (c_parser_objc_class_declaration): Updated call to
2376 2011-04-14 Richard Guenther <rguenther@suse.de>
2378 * tree.h (get_object_alignment_1): Declare.
2379 * builtins.c (get_object_alignment_1): Split out worker from ...
2380 (get_object_alignment): ... here.
2381 * fold-const.c (get_pointer_modulus_and_residue): Use
2382 get_object_alignment_1.
2384 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2386 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
2388 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
2389 parameter. Generalise code to handle arrays as well as vectors.
2390 (vect_setup_realignment): Update accordingly.
2391 * tree-vect-stmts.c (vectorizable_store): Likewise.
2392 (vectorizable_load): Likewise.
2394 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2396 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
2397 within the per-copy loop.
2399 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2401 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
2404 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
2406 * doc/options.texi (Negative): Explicitly mention that the
2407 Negative chain must be circular.
2409 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
2411 * function.h (block_chainon): Declare.
2412 * function.c (block_chainon): Define.
2414 2011-04-14 Anatoly Sokolov <aesok@post.ru>
2415 Eric Weddington <eric.weddington@atmel.com>
2416 Georg-Johann Lay <avr@gjlay.de>
2418 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
2420 (avr_init_builtins, avr_expand_builtin,
2421 avr_expand_delay_cycles, avr_expand_unop_builtin,
2422 avr_expand_binop_builtin ): New functions.
2423 (avr_builtin_id): New enum
2424 (struct avr_builtin_description): New struct
2425 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
2426 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
2428 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
2429 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
2430 UNSPECV_DELAY_CYCLES): new enumeration values
2431 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
2432 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
2433 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
2434 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
2435 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
2436 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
2437 "fmulsu"): New insns
2439 * config/avr/avr-c.c: fix line endings
2440 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
2441 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
2442 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
2443 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
2444 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
2446 * doc/extend.texi (AVR Built-in Functions): New node
2447 (Target Builtins): Add documentation of AVR
2450 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
2453 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
2454 alone. Error if non-const data has attribute progmem.
2456 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2458 * tree.h (struct tree_constructor): Include tree_typed instead of
2460 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
2461 TS_TYPED instead of TS_COMMON.
2463 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
2465 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
2466 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
2467 (sse2_psadbw): Merge with *avx_psadbw.
2468 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
2469 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
2470 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
2471 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
2472 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
2473 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
2474 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
2475 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
2476 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
2477 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
2478 (ssse3_palignrti): Merge with *avx_palignrti.
2480 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2482 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
2483 * tree-ssanames.c (fini_ssanames): VEC_free it.
2484 (make_ssa_name_fn): Update for VECness of free_ssanames.
2485 (release_ssa_name, release_dead_ssa_names): Likewise.
2486 * tree.h (struct tree_ssa_name): Include tree_typed instead of
2488 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
2489 TS_TYPED instead of TS_COMMON.
2491 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2493 * postreload-gcse.c (gcse_after_reload_main): Add calls to
2494 statistics_counter_event.
2495 * tree-ssa-copyrename.c (stats): Define.
2496 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
2497 statistics_counter_event.
2498 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
2499 (bswap_stats, widen_mul_stats): Define.
2500 (insert_reciprocals): Increment rdivs_inserted.
2501 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
2502 rfuncs_inserted. Add calls to statistics_counter_event.
2503 (execute_cse_sincos_1): Increment inserted.
2504 (execute_cse_sincos): Zeroize sincos_stats. Add call to
2505 statistics_counter_event.
2506 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
2507 of bswap_stats. Add calls to statistics_counter_event.
2508 (convert_mult_to_widen): Increment widen_mults_inserted.
2509 (convert_plusminus_to_widen): Increment maccs_inserted.
2510 (convert_mult_to_fma): Increment fmas_inserted.
2511 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
2512 calls to statistics_counter_event.
2514 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
2516 PR rtl-optimization/48455
2517 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
2518 `temp_costs->mem_cost'.
2520 2011-04-13 Jan Hubicka <jh@suse.cz>
2522 * ipa-inline.h: New file.
2523 * ipa-inline-analysis.c: New file. Broken out of ...
2524 * ipa-inline.c: ... this file; update toplevel comment;
2525 include ipa-inline.h
2526 (inline_summary): Move to ipa-inline.h
2527 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
2528 ipa-inline-analysis.c.
2529 (cgraph_estimate_time_after_inlining): Rename to
2530 estiamte_time_after_inlining; move to ipa-inline-analysis.c
2531 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
2532 to estimate_edge_growth.
2533 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
2534 rename to estimate_size_after_inlining.
2535 (cgraph_mark_inline_edge): Update for new naming convention.
2536 (cgraph_check_inline_limits): Likewise.
2537 (cgraph_edge_badness): Likewise.
2538 (cgraph_decide_recursive_inlining): Likewise.
2539 (cgraph_decide_inlining_of_small_functions): Likewise.
2540 (cgraph_decide_inlining_incrementally): Likewise.
2541 (cgraph_estimate_growth): Rename to estimate_growth; move to
2542 ipa-inline-analysis.c.
2543 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
2544 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
2545 (compute_inline_parameters): Likewise.
2546 (compute_inline_parameters_for_current): Likewise.
2547 (pass_inline_parameters): Likewise.
2548 (inline_indirect_intraprocedural_analysis): Likewise.
2549 (analyze_function): Rename to inline_analyze_function; likewise.
2550 (add_new_function): Move to ipa-inline-analysis.c.
2551 (inline_generate_summary): Likewise.
2552 (inline_read_summary): Likewise.
2553 (inline_write_summary): Likewise.
2554 * Makefile.in (ipa-inline-analysis.c): New file.
2556 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2558 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
2559 * configure: Regenerate.
2561 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
2563 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
2564 instead of tree_common.
2565 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
2567 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
2568 TS_TYPED rather than TS_COMMON.
2569 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
2571 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
2574 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
2575 r20 around calls of __tablejump_elpm__
2577 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2580 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
2582 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
2584 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
2586 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
2587 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
2588 (cfi_vec): New typedef.
2589 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
2590 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
2591 (cie_cfi_vec): New static variable.
2592 (cie_cfi_head): Delete.
2593 (add_cfi): Accept a cfi_vec * as first argument. All callers and
2594 declaration changed. Use vector rather than list operations.
2595 (new_cfi): Don't initialize the dw_cfi_next field.
2596 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
2597 rather than list operations.
2598 (lookup_cfa): Use vector rather than list operations.
2599 (output_cfis): New argument upto. Accept a cfi_vec rather than
2600 a dw_cfi_ref list head as argument. All callers changed.
2601 Iterate over the vector using upto as a maximum index.
2602 (output_all_cfis): New static function.
2603 (output_fde): Use vector rather than list operations. Use the
2604 new upto argument for output_cfis rather than manipulating a
2606 (dwarf2out_begin_prologue): Change initializations to match
2608 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
2609 from the vector length rather than searching for the end of a list.
2610 Use output_all_cfis.
2611 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
2613 2011-04-13 Nick Clifton <nickc@redhat.com>
2615 * config/rx/rx.md (movmemsi): Do not use this pattern when
2616 volatile pointers are involved.
2618 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
2620 * config/i386/sse.md (pinsrbits): Remove.
2621 (sse2_packsswb): Merge with *avx_packsswb.
2622 (sse2_packssdw): Merge with *avx_packssdw.
2623 (sse2_packuswb): Merge with *avx_packuswb.
2624 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
2625 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
2626 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
2627 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
2628 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
2629 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
2630 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
2631 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
2632 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
2633 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
2634 (sse2_loadld): Merge with *avx_loadld.
2635 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
2636 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
2637 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
2638 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
2639 (vec_concatv2di): Merge with *vec_concatv2di_avx.
2641 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2643 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
2645 * print-tree.c (print_node): Likewise.
2646 * tree-inline.c (copy_tree_r): Likewise.
2647 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
2648 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
2649 instead of TS_COMMON.
2650 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
2651 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
2652 (copy_node_stat): Zero TREE_CHAIN only if necessary.
2653 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
2654 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
2656 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
2658 (TREE_CHAIN): Check for a TS_COMMON structure.
2659 (TREE_TYPE): Check for a TS_TYPED structure.
2661 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
2663 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2664 cgraph_get_create_node instead of cgraph_node.
2666 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2668 * c-parser.c (c_parser_initelt): Updated call to
2669 objc_build_message_expr.
2670 (c_parser_postfix_expression): Likewise.
2672 2011-04-12 Kai Tietz <ktietz@redhat.com>
2674 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
2675 MASK_MS_BITFIELD_LAYOUT bit.
2677 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2679 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
2680 assert it is always true.
2681 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
2684 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2686 * c-parser.c (c_lex_one_token): Rewritten conditional used when
2687 compiling Objective-C to be more efficient.
2689 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
2691 * opts-common.c (decode_cmdline_options_to_array): Remove variable
2694 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2696 * recog.h, genoutput.c, optabs.c: Revert last patch.
2698 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2701 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
2703 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2705 * recog.h (insn_operand_data): Add an "allows_mem" field.
2706 * genoutput.c (output_operand_data): Initialize it.
2707 * optabs.c (maybe_legitimize_operand_same_code): New function.
2708 (maybe_legitimize_operand): Use it when matching the original
2711 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2713 * genpreds.c (process_define_predicate): Move most processing
2714 to gensupport.c. Continue to validate the expression.
2715 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
2716 (process_define_predicate): Move processing to gensupport.c.
2717 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
2718 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
2719 (compute_predicate_codes): Moved from genrecog.c. Add lineno
2721 (valid_predicate_name_p): New function, split out from old
2722 genpreds.c:process_define_predicate.
2723 (process_define_predicate): New function, combining code from
2724 old genpreds.c and genrecog.c functions.
2725 (process_rtx): Call it for DEFINE_PREDICATE and
2726 DEFINE_SPECIAL_PREDICATE.
2728 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2730 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
2731 size of a '%A' memory reference.
2732 (T_DREG, T_QREG): New neon_builtin_type_bits.
2733 (arm_init_neon_builtins): Assert that the load and store operands
2734 are neon_struct_operands.
2735 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
2736 (NEON_ARG_MEMORY): New builtin_arg.
2737 (neon_dereference_pointer): New function.
2738 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
2739 Handle NEON_ARG_MEMORY.
2740 (arm_expand_neon_builtin): Update after above interface changes.
2741 Use NEON_ARG_MEMORY for loads and stores.
2742 * config/arm/predicates.md (neon_struct_operand): New predicate.
2743 * config/arm/iterators.md (V_two_elem): Tweak formatting.
2744 (V_three_elem): Use BLKmode for accesses that have no associated mode.
2745 (V_four_elem): Tweak formatting.
2746 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
2747 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
2748 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
2749 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
2750 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
2751 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
2752 (neon_vst4<mode>): Replace pointer operand with a memory operand.
2753 Use %A in the output template.
2754 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
2755 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
2756 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
2757 the width of the memory access. Remove post-increment.
2758 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
2760 2011-04-12 Nick Clifton <nickc@redhat.com>
2762 * config/v850/v850.c (expand_prologue): Do not use the CALLT
2763 instruction for interrupt handlers if the target is the basic V850
2765 (expand_epilogue): Likewise.
2767 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2769 PR rtl-optimization/48549
2770 * combine.c (propagate_for_debug): Also stop after BB_END of
2771 this_basic_block. Process LAST and just stop processing after it.
2772 (combine_instructions): If last_combined_insn has been deleted,
2773 set last_combined_insn to its PREV_INSN.
2775 2011-04-12 Richard Guenther <rguenther@suse.de>
2777 PR tree-optimization/46076
2778 * gimple.h (struct gimple_statement_call): Add fntype field.
2779 (gimple_call_fntype): Adjust.
2780 (gimple_call_set_fntype): New function.
2781 * gimple.c (gimple_build_call_1): Set the call function type.
2782 * gimplify.c (gimplify_call_expr): Preserve the function
2783 type the frontend used for the call.
2784 (gimplify_modify_expr): Likewise.
2785 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
2787 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
2789 * tree-ssa.c (useless_type_conversion_p): Function pointer
2790 conversions are useless.
2792 2011-04-12 Martin Jambor <mjambor@suse.cz>
2794 * cgraph.h (cgraph_node): Remove function declaration.
2795 (cgraph_create_node): Declare.
2796 (cgraph_get_create_node): Likewise.
2797 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
2798 Updated all callers.
2799 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
2800 the decl does not already exist. Call cgraph_get_create_node instead
2802 (cgraph_get_create_node): New function.
2803 (cgraph_same_body_alias): Update comment.
2804 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
2805 assert it does not return NULL.
2806 (cgraph_update_edges_for_call_stmt): Likewise.
2807 (cgraph_clone_edge): Likewise.
2808 (cgraph_create_virtual_clone): Likewise.
2809 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
2810 instead of cgraph_node.
2811 (cgraph_add_new_function): Call cgraph_create_node or
2812 cgraph_get_create_node instead of cgraph_node.
2813 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
2814 instead of cgraph_node.
2815 (record_eh_tables): Likewise.
2816 (mark_address): Likewise.
2817 (mark_load): Likewise.
2818 (build_cgraph_edges): Call cgraph_get_create_node instead
2820 (rebuild_cgraph_edges): Likewise.
2821 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
2822 instead of cgraph_node.
2823 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
2825 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
2826 cgraph_create_node instead of cgraph_node.
2827 * c-decl.c (finish_function): Call cgraph_get_create_node instead
2829 * lto-cgraph.c (input_node): Likewise.
2830 * lto-streamer-in.c (input_function): Likewise.
2831 * varasm.c (mark_decl_referenced): Likewise.
2832 (assemble_alias): Likewise.
2834 2011-04-12 Martin Jambor <mjambor@suse.cz>
2836 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
2837 instead of cgraph_node and assert it does not return NULL.
2838 * lto-streamer-in.c (lto_read_body): Likewise.
2839 * omp-low.c (new_omp_context): Likewise.
2840 (create_task_copyfn): Likewise.
2841 * tree-emutls.c (lower_emutls_function_body): Likewise.
2842 * matrix-reorg.c (transform_allocation_sites): Likewise.
2844 2011-04-12 Jakub Jelinek <jakub@redhat.com>
2847 * c-typeck.c (build_asm_expr): Error out on attempts to use
2848 void type outputs or inputs for constraints that allow reg or
2851 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
2852 Richard Earnshaw <rearnsha@arm.com>
2855 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
2856 to use sign-magnitude offsets. Reject unsupported unaligned
2857 cases. Add detailed description in comments.
2858 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
2859 condition from TARGET_32BIT to TARGET_ARM.
2861 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
2863 * tree.h (struct typed_tree): New.
2864 (struct tree_common): Include it instead of tree_base.
2865 (TREE_TYPE): Update for new location of type field.
2866 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
2867 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
2868 (union tree_node): Add typed field.
2869 * treestruct.def (TS_TYPED): New.
2870 * lto-streamer.c (check_handled_ts_structures): Handle it.
2871 * tree.c (MARK_TS_TYPED): New macro.
2872 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
2874 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
2876 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
2877 (force_nonfallthru): Do not alter the loop nest if no basic block
2880 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
2882 * config/i386/sse.md (VI): New mode iterator.
2884 (AVX256MODEI): Ditto.
2885 (AVXMODEF4P): Ditto.
2886 (avxvecpsmode): Ditto.
2887 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
2888 (sse2_andnot<mode>3): New expander.
2889 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2890 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
2891 (<any_logic:code><mode>3): Use VI mode iterator.
2892 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2893 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
2894 (*andnottf3): Handle AVX three-operand constraints.
2895 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2897 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2898 Robert Millan <rmh@gnu.org>
2900 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2901 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2902 GNU_USER_DYNAMIC_LINKER64): Define.
2903 (REG_NAME): Don't undefine.
2904 (MD_UNWIND_SUPPORT): Undefine.
2905 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2906 (REG_NAME): Don't undefine.
2907 (MD_UNWIND_SUPPORT): Undefine.
2908 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
2910 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2912 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2913 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2915 2011-04-11 Xinliang David Li <davidxl@google.com>
2917 * value-profile.c (check_ic_target): New function.
2918 (gimple_ic_transform): Sanity check indirect call target.
2919 * gimple-low.c (gimple_check_call_args): Interface change.
2920 (gimple_check_call_matching_types): New function.
2921 * tree-inline.c (tree_can_inline_p): Call new function.
2923 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
2925 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2926 tree-pretty-print.h & realmpfr.h.
2928 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
2931 * ira.c (setup_pressure_classes): Fix typo in loop condition.
2932 (setup_allocno_and_important_classes): Ditto.
2934 2011-04-11 Joseph Myers <joseph@codesourcery.com>
2936 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2937 GNU_USER_DYNAMIC_LINKER.
2938 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2939 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2940 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2941 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2942 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2943 GNU_USER_TARGET_OS_CPP_BUILTINS.
2944 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2945 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2946 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2947 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2948 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2949 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2950 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2951 GNU_USER_TARGET_OS_CPP_BUILTINS.
2952 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2953 GNU_USER_DYNAMIC_LINKER.
2954 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2955 GNU_USER_TARGET_OS_CPP_BUILTINS.
2956 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2957 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2958 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2959 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2960 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2961 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2962 GNU_USER_DYNAMIC_LINKER64): Remove.
2963 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2964 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2965 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2966 GNU_USER_DYNAMIC_LINKER.
2967 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2968 GNU_USER_TARGET_OS_CPP_BUILTINS.
2969 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2970 GNU_USER_TARGET_OS_CPP_BUILTINS.
2971 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2972 to GNU_USER_TARGET_OS_CPP_BUILTINS.
2973 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2974 GNU_USER_TARGET_OS_CPP_BUILTINS.
2975 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2976 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2977 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2978 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2979 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2980 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2981 GNU_USER_DYNAMIC_LINKER.
2982 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2983 GNU_USER_TARGET_OS_CPP_BUILTINS.
2984 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2985 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2986 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2987 GNU_USER_DYNAMIC_LINKER.
2988 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2989 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2990 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2991 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2992 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2993 GNU_USER_DYNAMIC_LINKER.
2994 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2995 GNU_USER_DYNAMIC_LINKERN32.
2996 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2997 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
2998 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
2999 GNU_USER_DYNAMIC_LINKER32.
3000 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
3001 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3002 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3003 GNU_USER_DYNAMIC_LINKER.
3004 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
3005 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3006 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
3007 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3008 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3009 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
3010 GNU_USER_DYNAMIC_LINKER32.
3011 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
3012 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
3013 GNU_USER_DYNAMIC_LINKER.
3014 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
3015 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3016 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3017 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
3018 GNU_USER_DYNAMIC_LINKER64.
3019 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
3020 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3021 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3022 GNU_USER_DYNAMIC_LINKER.
3023 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
3024 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3025 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
3026 GNU_USER_DYNAMIC_LINKER.
3027 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
3028 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3029 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
3030 GNU_USER_DYNAMIC_LINKER32.
3031 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3032 GNU_USER_DYNAMIC_LINKER64.
3033 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
3034 GNU_USER_DYNAMIC_LINKER64.
3035 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
3036 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3037 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
3038 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
3039 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
3041 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3043 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
3044 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
3045 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
3046 GNU_USER_DYNAMIC_LINKER.
3047 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3048 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
3049 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
3050 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
3051 GNU_USER_DYNAMIC_LINKER64.
3052 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
3053 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
3054 GNU_USER_LINK_EMULATION.
3055 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3056 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
3057 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
3058 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
3059 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
3060 CPP_SPEC, CC1_SPEC): Remove.
3061 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
3062 (GNU_USER_DYNAMIC_LINKER): Define.
3063 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
3064 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
3065 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
3066 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
3067 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
3068 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
3069 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3070 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
3071 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
3072 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
3073 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
3074 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
3075 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
3076 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
3077 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
3078 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
3079 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3080 GNU_USER_DYNAMIC_LINKER.
3081 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3082 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3083 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3084 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3085 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
3086 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
3087 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
3088 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
3089 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
3090 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
3092 2011-04-11 Kai Tietz <ktietz@redhat.com>
3096 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
3097 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
3099 (ix86_is_msabi_thiscall): Removed.
3100 (ix86_is_type_thiscall): Likewise.
3101 (ix86_get_callcvt): New function.
3102 (ix86_comp_type_attributes): Simplify check.
3103 (ix86_function_regparm): Use ix86_get_callcvt for calling
3104 convention attribute checks.
3105 (ix86_return_pops_args): Likewise.
3106 (ix86_static_chain): Likewise.
3107 (x86_this_parameter): Likewise.
3108 (x86_output_mi_thunk): Likewise.
3109 (ix86_function_type_abi): Optimize check for types without attributes.
3110 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
3111 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
3112 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
3114 (IX86_BASE_CALLCVT): Helper macro.
3115 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3116 Use ix86_get_callcvt for calling convention attribute checks and avoid
3117 symbol-decoration for stdcall in TARGET_RTD case.
3118 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
3120 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
3123 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
3125 * config/i386/sse.md (VI_128): New mode iterator.
3126 (VI12_128): Rename from SSEMODE12.
3127 (VI14_128): Rename from SSEMODE14.
3128 (VI124_128): New mode iterator.
3129 (VI24_128): Rename from SSEMODE248.
3130 (VI248_128): Rename from SSEMODE248.
3131 (SSEMODE124C8): Remove.
3132 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3133 (*sse2_<plusminus_insn><mode>3): Merge with
3134 *avx_<plusminus_insn><mode>3.
3135 (*mulv8hi3): Merge with *avx_mulv8hi3.
3136 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
3137 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
3138 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
3139 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
3140 (ashr<mode>3): Merge with *avx_ashr<mode>3.
3141 (lshr<mode>3): Merge with *avx_lshr<mode>3.
3142 (ashl<mode>3): Merge with *avx_ashl<mode>3.
3143 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
3144 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
3145 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3146 (*<smaxmin:code>v8hi3): Ditto.
3147 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
3148 (*<smaxmin:code>v16qi3): Ditto.
3149 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
3150 (*sse2_eq<mode>3): Ditto.
3151 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
3152 (*sse2_gt<mode>3): Ditto.
3153 (vcondv2di): Split out of vcond<mode>.
3154 (vconduv2di): Split out of vcondu<mode>.
3156 2011-04-11 Richard Guenther <rguenther@suse.de>
3158 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
3159 before calling tree_low_cst.
3161 2011-04-11 Richard Guenther <rguenther@suse.de>
3163 * stor-layout.c (layout_type): Compute all array index size operations
3164 in the original type.
3165 (initialize_sizetypes): Add comment.
3166 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
3168 2011-04-11 Joseph Myers <joseph@codesourcery.com>
3170 * common.opt (Tbss=, Tdata=, Ttext=): New options.
3172 2011-04-11 Martin Jambor <mjambor@suse.cz>
3174 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
3175 of cgraph_node, handle NULL return value.
3176 (cgraph_global_info): Likewise.
3177 (cgraph_rtl_info): Likewise.
3178 * tree-inline.c (estimate_num_insns): Likewise.
3179 * gimplify.c (unshare_body): Likewise.
3180 (unvisit_body): Likewise.
3181 (gimplify_body): Likewise.
3182 * predict.c (optimize_function_for_size_p): Likewise.
3183 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
3184 (call_may_clobber_ref_p_1): Likewise.
3185 * varasm.c (function_section_1): Likewise.
3186 (assemble_start_function): Likewise.
3188 2011-04-11 Martin Jambor <mjambor@suse.cz>
3190 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
3192 * final.c (rest_of_clean_state): Likewise.
3193 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
3194 * passes.c (pass_init_dump_file): Likewise.
3195 (execute_all_ipa_transforms): Likewise.
3196 (function_called_by_processed_nodes_p): Likewise.
3197 * predict.c (maybe_hot_frequency_p): Likewise.
3198 (probably_never_executed_bb_p): Likewise.
3199 (compute_function_frequency): Likewise.
3200 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
3201 (unnest_nesting_tree_1): Likewise.
3202 (lower_nested_functions): Likewise.
3203 * tree-optimize.c (execute_fixup_cfg): Likewise.
3204 (tree_rest_of_compilation): Likewise.
3205 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
3206 * tree-sra.c (ipa_early_sra): Likewise.
3207 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
3208 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
3209 * ipa.c (record_cdtor_fn): Likewise.
3210 * ipa-inline.c (cgraph_early_inlining): Likewise.
3211 (compute_inline_parameters_for_current): Likewise.
3212 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3213 * ipa-pure-const.c (local_pure_const): Likewise.
3214 * ipa-split.c (split_function): Likewise.
3215 (execute_split_functions): Likewise.
3216 * cgraphbuild.c (build_cgraph_edges): Likewise.
3217 (rebuild_cgraph_edges): Likewise.
3218 (cgraph_rebuild_references): Likewise.
3219 (remove_cgraph_callee_edges): Likewise.
3220 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
3221 (verify_cgraph_node): Likewise.
3222 (cgraph_analyze_functions): Likewise.
3223 (cgraph_preserve_function_body_p): Likewise.
3224 (save_inline_function_body): Likewise.
3225 (save_inline_function_body): Likewise.
3226 * tree-inline.c (copy_bb): Likewise.
3227 (optimize_inline_calls): Likewise.
3229 2011-04-11 Martin Jambor <mjambor@suse.cz>
3231 PR tree-optimization/48195
3232 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
3233 ipa_check_create_edge_args.
3234 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
3235 ipa_check_create_edge_args.
3236 * ipa-inline.c (inline_generate_summary): Do not call
3237 ipa_check_create_node_params and ipa_check_create_edge_args.
3238 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
3239 ipa_check_create_edge_args.
3241 2011-04-09 Anatoly Sokolov <aesok@post.ru>
3243 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
3245 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3246 * function.c (record_hard_reg_sets): Likewise.
3247 * ira.c (compute_regs_asm_clobbered): Likewise.
3248 * sched-deps.c (sched_analyze_1): Likewise.
3249 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
3251 2011-04-09 Xinliang David Li <davidxl@google.com>
3253 PR tree-optimization/PR48484
3254 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
3255 has_valid_pred lazily
3257 2011-04-09 Duncan Sands <baldrick@free.fr>
3259 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
3261 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
3263 * combine.c (combine_validate_cost): Adjust comments. Set registered
3264 cost of I0 to zero at the end, if any.
3266 2011-04-08 Xinliang David Li <davidxl@google.com>
3268 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
3269 to insane profile data.
3271 2011-04-08 Xinliang David Li <davidxl@google.com>
3273 * ipa-cp.c (ipcp_update_profiling): Correct
3274 negative scale factor due to insane profile data.
3276 2011-04-08 Xinliang David Li <davidxl@google.com>
3278 * final.c (dump_basic_block_info): New function.
3279 (final): Dump basic block.
3280 (final_scan_insn): Remove old dump.
3282 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
3285 * config.gcc (i386-*-freebsd): Disable unwind table generation for
3288 2011-04-08 Michael Matz <matz@suse.de>
3291 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
3293 (rebuild_jump_labels): Call rebuild_jump_labels_1.
3294 * rtl.h (rebuild_jump_labels_chain): Declare.
3295 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
3296 insns inserted on edges.
3298 2011-04-08 Joseph Myers <joseph@codesourcery.com>
3300 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
3301 * config/arm/arm-arches.def: New.
3302 * config/arm/arm-opts.h: New.
3303 * config/arm/genopt.sh: New.
3304 * config/arm/arm-tables.opt: New (generated).
3305 * config/arm/arm.c (arm_handle_option, arm_target_help,
3306 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
3307 (all_architectures): Get most table contents from arm-arches.def.
3308 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
3309 arm_selected_tune here.
3310 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
3311 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
3312 (march=, mcpu=, mtune=): Use Enum and Var.
3313 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
3314 (arm.o): Update dependencies.
3316 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
3318 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
3320 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
3321 (write_typed_alloc_defns): Likewise.
3322 (main): Calls write_typed_alloc_defns with output_header.
3324 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
3327 * ira-color.c (setup_profitable_hard_regs): Add comments.
3328 Don't take prohibited hard regs into account.
3329 (setup_conflict_profitable_regs): Rename to
3330 get_conflict_profitable_regs.
3331 (check_hard_reg_p): Check prohibited hard regs.
3333 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3335 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
3336 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
3337 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
3339 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3342 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
3343 move from floating point to shift amount register.
3344 (emit_move_sequence): Remove secondary reload support for floating
3345 point to shift amount amount register copies.
3346 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
3347 amount register copies.
3348 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
3349 register, return false if mode isn't a scalar integer mode.
3350 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
3352 2011-04-08 Richard Guenther <rguenther@suse.de>
3354 * gimple.c (gimple_call_flags): Remove kludge.
3356 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3358 * sel-sched.c (sel_region_init): Move call to
3359 sel_setup_region_sched_flags after setup_current_loop_nest.
3361 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
3363 PR rtl-optimization/48272
3364 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
3365 init_insn_reg_pressure_info. Adjust a caller.
3366 * sched-int.h (init_insn_reg_pressure_info): Declare.
3367 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
3368 when sched-pressure is enabled.
3370 2011-04-08 Richard Guenther <rguenther@suse.de>
3372 * gimple.c (gimple_set_modified): Do not queue calls to
3373 MODIFIED_NORETURN_CALLS here ...
3374 * tree-ssa-operands.c (update_stmt_operands): ... but here.
3376 2011-04-08 Richard Guenther <rguenther@suse.de>
3379 * toplev.c (lang_dependent_init): Do not open asm_out_file
3380 in WPA mode, nor perform debug machinery initialization.
3381 (finalize): Do not unlink asm_out_file in WPA mode.
3383 2011-04-08 Richard Guenther <rguenther@suse.de>
3385 * gimple.h (gimple_call_fntype): New function.
3386 (gimple_call_return_type): Use it.
3387 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
3388 * gimple-low.c (gimple_check_call_args): Likewise.
3389 * gimple.c (gimple_call_flags): Likewise.
3390 (gimple_call_arg_flags): Likewise.
3391 (gimple_call_return_flags): Likewise.
3392 * tree-cfg.c (verify_gimple_call): Likewise.
3393 (do_warn_unused_result): Likewise.
3394 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
3395 * value-prof.c (gimple_ic_transform): Fix fndecl check.
3397 2011-04-08 Dmitry Melnik <dm@ispras.ru>
3399 PR rtl-optimization/48235
3400 * sel-sched.c (code_motion_process_successors): Recompute the last
3401 insn in basic block if control flow changed.
3402 (code_motion_path_driver): Ditto. Recompute the first insn as well.
3403 Update condition for ilist_remove.
3405 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3407 PR rtl-optimization/48302
3408 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
3409 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
3410 it to record added preheader blocks.
3411 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
3412 on to sel_add_loop_preheaders.
3413 (sel_region_init): Move call to setup_current_loop_nest after
3416 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3419 * cfgloop.h (loop_has_exit_edges): New helper.
3420 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
3422 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
3423 that have no exit edges.
3425 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
3427 PR rtl-optimization/48442
3428 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
3429 all callers. Adjust assert.
3431 2011-04-08 Jakub Jelinek <jakub@redhat.com>
3433 PR tree-optimization/48377
3434 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
3435 is_packed to true even for types with smaller TYPE_ALIGN than
3438 2011-04-08 Richard Guenther <rguenther@suse.de>
3441 * doc/tm.texi: Re-generate.
3443 2011-04-08 Wei Guozhi <carrot@google.com>
3446 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
3447 * config/arm/arm.c (arm_attr_length_push_multi): New function.
3448 * config/arm/arm.md (*push_multi): Change the length computation to
3451 2011-04-08 Anatoly Sokolov <aesok@post.ru>
3453 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
3454 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
3455 * doc/tm.texi: Regenerate.
3456 * system.h (ASM_OUTPUT_BSS): Poison.
3457 * varasm.c (asm_output_bss): Remove function.
3458 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
3460 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
3461 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
3462 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
3463 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3465 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3467 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
3469 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3471 2011-04-07 Joseph Myers <joseph@codesourcery.com>
3473 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
3476 2011-04-07 Joseph Myers <joseph@codesourcery.com>
3478 * config/m68k/m68k.c (m68k_handle_option): Don't handle
3479 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
3480 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
3482 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3483 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
3484 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
3485 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
3486 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
3487 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
3488 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3489 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
3490 options. Don't map other m68k options manually. Don't handle
3491 old-style options as canonical.
3492 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
3493 * doc/install.texi (m68k-*-*): Document binutils version requirement.
3495 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
3497 * basic-block.h (force_nonfallthru): Move to...
3498 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
3499 (force_nonfallthru): ...here.
3500 * cfghooks.c (force_nonfallthru): New function.
3501 * cfgrtl.c (force_nonfallthru): Rename into...
3502 (rtl_force_nonfallthru): ...this.
3503 (commit_one_edge_insertion): Do not set AUX field.
3504 (commit_edge_insertions): Do not discover new basic blocks.
3505 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
3506 (cfg_layout_rtl_cfg_hooks): Likewise.
3507 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
3508 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
3509 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
3511 2011-04-07 Anatoly Sokolov <aesok@post.ru>
3513 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
3516 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
3518 * config/i386/sse.md: Update copyright year.
3519 (avxcvtvecmode): Remove.
3520 (sse_movhlps): Merge with *avx_movhlps.
3521 (sse_movlhps): Merge with *avx_movlhps.
3522 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
3523 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
3524 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
3525 (sse_loadhps): Merge with *avx_loadhps.
3526 (sse_storelps): Merge with *avx_storelps.
3527 (sse_loadlps): Merge with *avx_loadlps.
3528 (sse_movss): Merge with *avx_movss.
3529 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
3530 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
3531 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
3532 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
3533 (vec_set<mode>_0): Ditto.
3534 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
3535 (sse4_1_insertps): Merge with *avx_insertps.
3536 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
3537 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
3538 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
3539 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
3540 (sse2_storehpd): Merge with *avx_storehpd.
3541 (sse2_loadhpd): Merge with *avx_loadhpd.
3542 (sse2_loadlpd): Merge with *avx_loadlpd.
3543 (sse2_movsd): Merge with *avx_movsd.
3544 (*vec_concatv2df): Merge with *vec_concatv2df.
3546 2011-04-07 Jakub Jelinek <jakub@redhat.com>
3549 * combine.c (combine_instructions): Add last_combined_insn,
3550 update it if insn is after it, pass it to all try_combine calls.
3551 (try_combine): Add last_combined_insn parameter, pass it instead of
3552 i3 to propagate_for_debug.
3554 2011-04-07 Nick Clifton <nickc@redhat.com>
3556 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
3557 to handle MDR <-> data register transfers.
3558 (movhi_internal): Likewise.
3560 2011-04-07 Alan Modra <amodra@gmail.com>
3562 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
3563 previous stack info.
3565 2011-04-07 Tom de Vries <tom@codesourcery.com>
3568 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
3569 flow_find_cross_jump. Swap variables to implement backward replacement.
3570 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
3572 2011-04-07 Tom de Vries <tom@codesourcery.com>
3575 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3576 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
3578 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
3579 src1 or src2. Redirect edges to the last basic block. Update
3580 frequency and count on multiple basic blocks in case of fallthru.
3582 2011-04-07 Tom de Vries <tom@codesourcery.com>
3585 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
3587 (old_insns_match_p): Change return type. Replace return false/true
3588 with return dir_none/dir_both. Use can_replace_by.
3589 (flow_find_cross_jump): Add dir_p parameter. Init replacement
3590 direction from dir_p. Register replacement direction in dir, last_dir
3591 and afterlast_dir. Handle new return type of old_insns_match_p using
3592 merge_dir. Return replacement direction in dir_p.
3593 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
3594 return type of old_insns_match_p.
3595 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
3596 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
3597 flow_find_cross_jump.
3598 * basic-block.h (enum replace_direction): New type.
3599 (flow_find_cross_jump): Add parameter to declaration.
3601 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
3603 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
3604 (AVXMODEDCVTPS2DQ): Ditto.
3605 (VEC_FLOAT_MODE): Ditto.
3606 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
3607 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
3608 (<any_logic:code><mode>3): Use VF mode iterator.
3609 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
3610 Use VF mode iterator.
3611 (copysign<mode>3): Use VF mode iterator.
3612 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
3613 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
3614 (*<any_logic:code><MODEF:mode>3): Merge with
3615 *avx_<any_logic:code><MODEF:mode>3.
3616 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
3617 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
3618 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
3619 (avx_cvtdq2ps<avxmodesuffix>): Remove.
3620 (sse2_cvtdq2ps): Use %v modifier.
3621 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
3622 (avx_cvtps2dq<avxmodesuffix>): Remove.
3623 (sse2_cvtps2dq): Use %v modifier.
3624 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
3625 (avx_cvttps2dq<avxmodesuffix>): Remove.
3626 (sse2_cvttps2dq): Use %v modifier.
3627 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
3628 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
3629 (sse2_cvtsd2siq): Fix insn template.
3630 (sse2_cvtsd2siq_2): Ditto.
3631 (sse2_cvttsd2siq): Ditto.
3632 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
3633 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
3635 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3637 * gcov-io.c: Use GCC Runtime Library Exception.
3639 2011-04-06 Jakub Jelinek <jakub@redhat.com>
3642 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
3643 as base_reg whatever register reg has been eliminated to, instead
3644 of hardcoding STACK_POINTER_REGNUM.
3646 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3648 * doc/tm.texi.in: Document C target hooks as separate from general
3650 * doc/tm.texi: Regenerate.
3651 * genhooks.c (struct hook_desc): Add docname field.
3652 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
3654 (hook_array): Include c-target.def.
3655 (emit_documentation): Use docname field in output.
3656 (emit_init_macros): Take docname argument. Only emit definitions
3657 for hooks matching docname.
3658 (main): Expect additional arguments in all cases. Pass argument
3659 to emit_init_macros.
3660 * target.def: Move initial macro definitions and comments to
3661 target-hooks-macros.h.
3662 (gcc_targetcm): Move to c-family/c-target.def.
3663 * target.h (targetcm): Move declaration to c-family/c-target.h.
3664 * targhooks.c (default_handle_c_option): Move to
3666 * targhooks.h (default_handle_c_option): Move declaration to
3667 c-family/c-common.h.
3668 * target-hooks-macros.h: New file.
3669 * config.gcc (target_has_targetcm): Define and use to add to
3670 c_target_objs and cxx_target_objs.
3671 * config/default-c.c: New file.
3672 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
3673 of target.h and target-def.h.
3674 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
3675 (darwin_objc_construct_string, darwin_cfstring_ref_p,
3676 darwin_check_cfstring_format_arg): Make static.
3677 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3678 TARGET_STRING_OBJECT_REF_TYPE_P,
3679 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
3680 * config/darwin-protos.h (darwin_objc_construct_string,
3681 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
3683 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3684 TARGET_STRING_OBJECT_REF_TYPE_P,
3685 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
3686 * config/t-darwin (darwin-c.o): Update dependencies.
3687 * system.h (TARGET_HAS_TARGETCM): Poison.
3688 * Makefile.in (TARGET_H): Update.
3689 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
3690 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
3691 (default-c.o): New target.
3692 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
3693 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
3694 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
3696 (build/genhooks.o): Update dependencies.
3698 2011-04-06 Richard Guenther <rguenther@suse.de>
3700 * ipa-inline.c (enum inlining_mode): Remove.
3701 (cgraph_flatten): Use some other token.
3702 (cgraph_edge_early_inlinable_p): New function, split out from ...
3703 (cgraph_perform_always_inlining): New function, split out from ...
3704 (cgraph_decide_inlining_incrementally): ... here.
3705 (cgraph_mark_inline_edge): Adjust.
3706 (cgraph_early_inlining): Re-structure.
3707 (pass_early_inline): Require SSA form.
3709 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
3710 Julian Brown <julian@codesourcery.com>
3711 Mark Shinwell <shinwell@codesourcery.com>
3713 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
3714 LO_REGS only for Thumb-1.
3715 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
3716 be used in short instructions when optimising for size on Thumb-2.
3718 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
3720 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
3721 associated with user returns to be preserved.
3723 2011-04-06 Tristan Gingold <gingold@adacore.com>
3725 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
3726 symbol_queue_size, DBXOUT_DECR_NESTING,
3727 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
3728 if XCOFF_DEBUGGING_INFO.
3730 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
3732 * config/i386/i386.md (attribute isa): New.
3733 (attribute enabled): New.
3734 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
3735 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
3736 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
3737 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
3738 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
3739 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3740 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
3741 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
3743 * config/i386/sse.md (VF): New mode iterator.
3747 (SSEMODEF4): Remove.
3748 (attribute sse): Handle V8SF and V4DF modes.
3749 (<absneg:code><mode>2): Use VF mode iterator.
3750 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
3752 (<plusminus_insn><mode>3): Use VF mode iterator.
3753 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3754 Use VF mode iterator.
3755 (<sse>_vm<plusminus_insn><mode>3): Merge with
3756 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
3757 (mul<mode>3): Use VF mode iterator.
3758 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
3759 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
3761 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
3762 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
3763 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
3764 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
3766 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
3767 Use VF1 mode iterator.
3768 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
3769 (sqrt<VF2:mode>2): New expander.
3770 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
3771 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
3772 and sqrtv2df2. Use VF mode iterator.
3773 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
3775 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
3776 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
3777 Use VF1 mode iterator.
3778 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
3779 (<smaxmin:code><mode>3): Use VF mode iterator.
3780 (*<smaxmin:code><mode>3_finite): Merge with
3781 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
3782 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3783 (<sse>_vm<smaxmin:code><mode>2): Merge with
3784 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
3785 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
3787 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
3789 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
3790 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
3791 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
3792 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
3793 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
3795 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
3796 Use VF_128 mode iterator.
3797 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
3799 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
3800 VF_128 mode iterator.
3801 (vcond<mode>): Use VF mode iterator.
3802 * config/i386/predicates.md (sse_comparison_operator): Merge with
3803 avx_comparison_float_operator. Do not declare as special_predicate.
3804 * config/i386/i386.c (struct builtin_description): Update for renamed
3806 (ix86_expand_args_builtin): Ditto.
3807 (ix86_expand_sse_compare_mask): Ditto.
3809 2011-04-06 Richard Guenther <rguenther@suse.de>
3811 * tree-inline.c (estimate_num_insns): For calls simply account
3812 for all passed arguments and a used return value.
3814 2011-04-06 Richard Guenther <rguenther@suse.de>
3816 PR tree-optimization/47663
3817 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
3818 call_stmt_time fields.
3819 (cgraph_edge_inlinable_p): Declare.
3820 (cgraph_edge_recursive_p): New inline function.
3821 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
3822 (cgraph_clone_edge): Copy it.
3823 * ipa-inline.c (cgraph_estimate_edge_time): New function.
3824 Account for call stmt time.
3825 (cgraph_estimate_time_after_inlining): Take edge argument.
3826 (cgraph_estimate_edge_growth): Account call stmt size.
3827 (cgraph_estimate_size_after_inlining): Take edge argument.
3828 (cgraph_mark_inline_edge): Adjust.
3829 (cgraph_check_inline_limits): Likewise.
3830 (cgraph_recursive_inlining_p): Remove.
3831 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
3832 (cgraph_decide_recursive_inlining): Take edge argument and
3834 (cgraph_decide_inlining_of_small_functions): Do not avoid
3835 diags for recursive inlining here.
3836 (cgraph_flatten): Adjust.
3837 (cgraph_decide_inlining_incrementally): Likewise.
3838 (estimate_function_body_sizes): Remove call cost handling.
3839 (compute_inline_parameters): Initialize caller edge call costs.
3840 (cgraph_estimate_edge_growth): New function.
3841 (cgraph_estimate_growth): Use it.
3842 (cgraph_edge_badness): Likewise.
3843 (cgraph_check_inline_limits): Take an edge argument.
3844 (cgraph_decide_inlining_of_small_functions): Adjust.
3845 (cgraph_decide_inlining): Likewise.
3846 * tree-inline.c (estimate_num_insns): Only account for call
3847 return value if it is used.
3848 (expand_call_inline): Avoid diagnostics on recursive inline
3850 * lto-cgraph.c (lto_output_edge): Output edge call costs.
3851 (input_edge): Input edge call costs.
3853 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3855 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
3857 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
3859 * doc/invoke.texi (Spec Files): Fix typo.
3861 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
3863 * profile.c (branch_prob): Move declaration of local variable. Remove
3864 obsolete ??? comment. Expand the location explicitly instead of using
3865 the LOCATION_FILE and LOCATION_LINE macros.
3867 2011-04-06 Wei Guozhi <carrot@google.com>
3870 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
3871 (arm_cond_branch): Likewise.
3872 (arm_cond_branch_reversed): Likewise.
3873 (arm_jump): Likewise.
3874 (push_multi): Likewise.
3875 * config/arm/constraints.md (Py): New constraint.
3877 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3880 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3882 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3883 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3884 #ifdef DBX_DEBUGGING_INFO.
3886 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
3889 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3890 if old and new states differ.
3892 2011-04-05 Joseph Myers <joseph@codesourcery.com>
3894 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3895 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3896 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3897 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3898 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3900 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3901 ColdFire options to -mcpu= options.
3903 2011-04-05 Jeff Law <law@redhat.com>
3905 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3906 check if BB is a successor of LOOP->header and return
3907 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3909 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
3911 * cprop.c (struct reg_use): Remove.
3912 (reg_use_table): Make an array of RTX.
3913 (find_used_regs, constprop_register, local_cprop_pass,
3914 bypass_block): Simplify users of reg_use_table.
3915 (cprop_insn): Likewise. Iterate if copy propagation succeeded
3916 on one of the uses found by find_used_regs.
3918 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3921 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3924 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3926 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3928 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3930 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
3933 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3935 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3937 * combine.c: Include obstack.h.
3938 (struct insn_link): Define.
3939 (uid_log_links): Adjust type.
3940 (FOR_EACH_LOG_LINK): New macro.
3941 (insn_link_obstack): Declare.
3942 (alloc_insn_link): Define.
3943 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
3944 type of link variables.
3945 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3946 (try_combine, record_promoted_values, distribute_notes): Likewise.
3947 (distribute_links): Likewise. Tweak prototype.
3948 (clear_log_links): Delete.
3949 (adjust_for_new_dest): Call alloc_insn_link.
3950 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3952 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3954 * gcse.c (modify_mem_list): Convert to an array of VECs.
3955 (canon_modify_mem_list, compute_transp): Tweak formatting.
3956 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
3957 (load_killed_in_block_p): Likewise.
3958 (record_last_mem_set_info): Likewise.
3959 (clear_modify_mem_tables): Likewise.
3961 2011-04-05 Tom de Vries <tom@codesourcery.com>
3964 * function.c (emit_use_return_register_into_block): Only define if
3967 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
3969 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3971 2011-04-05 Joseph Myers <joseph@codesourcery.com>
3973 * config/rx/rx-opts.h: New.
3974 * config/rx/rx.c (rx_cpu_type): Remove.
3975 (rx_handle_option): Don't assert that global structures are in
3976 use. Access variables via opts pointer. Defer most handling of
3977 OPT_mint_register_. Use error_at.
3978 (rx_option_override): Handle deferred OPT_mint_register_ here.
3979 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3980 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3981 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3982 (rx_cpu_types): New Enum and EnumValue entries.
3983 (mint-register=): Use Defer and use Var accordingly.
3985 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3987 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3988 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3989 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3991 (debug_free_queue, debug_nesting, symbol_queue_index):
3993 * dbxout.c: ...to here. Make static.
3995 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3997 * gcse.c (modify_pair): Define. Define a VEC of it.
3998 (canon_modify_mem_list): Convert to an array of VECs.
3999 (free_insn_expr_list_list): Delete.
4000 (clear_modify_mem_tables): Call VEC_free instead.
4001 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
4002 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
4003 (canon_list_insert, compute_transp): Likewise.
4005 2011-04-05 Tom de Vries <tom@codesourcery.com>
4008 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
4011 2011-04-05 Tom de Vries <tom@codesourcery.com>
4014 * function.c (emit_use_return_register_into_block): New function.
4015 (thread_prologue_and_epilogue_insns): Use
4016 emit_use_return_register_into_block.
4018 2011-04-05 Tom de Vries <tom@codesourcery.com>
4021 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
4024 2011-04-05 Tom de Vries <tom@codesourcery.com>
4026 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
4028 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
4030 * config/arm/arm.md (define_constants for unspec): Replace with
4032 (define_constants for unspecv): Replace with define_c_enum.
4033 * config/arm/neon.md (define_constants for unspec): Replace with
4036 2011-04-04 Richard Henderson <rth@redhat.com>
4039 * dwarf2out.c (output_line_info): Always emit line info from
4040 at least one section.
4041 (dwarf2out_init): Create text_section_line_info here ...
4042 (set_cur_line_info_table): ... not here.
4044 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
4047 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
4050 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
4052 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
4054 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
4055 (expr_equiv_p): Remove.
4056 (insert_set_in_table): Look at <dest, src> pair instead of expr.
4057 (hash_scan_set): Update call to insert_set_in_table.
4058 (dump_hash_table): Dump <dest, src> pair.
4059 (lookup_set): Simplify. Lookup <dest, src> pair.
4060 (compute_transp): Remove, fold heavily simplified code into...
4061 (compute_local_properties): ...here. Expect COMP and TRANSP
4063 (find_avail_set): Take set directly from struct expr.
4064 (find_bypass-set): Likewise.
4065 (bypass_block): Likewise.
4066 (cprop_insn): Likewise. Remove redundant INSN_P test.
4068 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
4069 checks on form of COND from find_implicit_sets to here.
4070 (find_implicit_sets): Cleanup control flow. Split critical edges
4071 if it exposes implicit sets. Allocate/resize implicit_sets as
4073 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
4074 changed something. Run df_analyze after find_implicit_sets if any
4075 edges were split. Do not allocate implicit_sets here.
4077 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
4078 (gcse_obstack): Renamed to cprop_obstack.
4079 (GNEW, GNEWVEC, GNEWVAR): Remove.
4081 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
4082 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
4083 (gcse_alloc): Likewise, and rename to cprop_alloc.
4084 (alloc_gcse_men, free_gcse_mem): Remove.
4085 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
4086 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
4087 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
4089 * cprop.c (oprs_not_set_p): Remove.
4090 (mark_set, mark_clobber): Remove.
4091 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
4092 (reg_not_set_p): New function.
4093 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
4094 (cprop_insn): Likewise.
4095 (cprop_jump): Use FOR_EACH_EDGE.
4097 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
4100 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
4101 (rank_for_schedule): Use scheduled_insns vector instead of
4102 last_scheduled_insn.
4103 (ok_for_early_queue_removal): Likewise.
4104 (queue_to_ready): Search forward in nonscheduled_insns_begin if
4106 (choose_ready): Likewise.
4107 (commit_schedule): Use VEC_iterate.
4108 (schedule_block): Initialize nonscheduled_insns_begin. If we have
4109 a dbg_cnt, use it and ensure the first insn is in the ready list.
4110 (haifa_sched_init): Allocate scheduled_insns.
4111 (sched_extend_ready_list): Don't allocate it; reserve space.
4112 (haifa_sched_finish): Free it.
4114 2011-04-04 Joseph Myers <joseph@codesourcery.com>
4116 * optc-gen.awk: Always remove type from Variable entry before
4117 recording in var_seen.
4119 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
4121 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
4122 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
4123 call to tidy_fallthru_edges.
4125 2011-04-04 Joseph Myers <joseph@codesourcery.com>
4127 * doc/options.texi (ToLower): Document.
4128 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
4129 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
4130 * opts.h (cl_option): Add cl_tolower field.
4131 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
4132 arguments with lowercase strings.
4133 * config/rx/rx.opt (mcpu=): Add ToLower.
4134 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
4137 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
4139 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
4141 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
4143 * config/vax/vax.c: Include reload.h.
4145 2011-04-04 Anatoly Sokolov <aesok@post.ru>
4147 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
4148 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4149 (sparc_preferred_reload_class): New function.
4151 2011-04-04 Jakub Jelinek <jakub@redhat.com>
4154 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
4155 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
4157 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
4159 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
4160 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
4162 2011-04-03 Anatoly Sokolov <aesok@post.ru>
4164 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
4165 (ASM_OUTPUT_ALIGNED_BSS): Define.
4167 2011-04-03 Michael Matz <matz@suse.de>
4169 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
4170 and next_slot members.
4171 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
4172 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
4173 (lto_streamer_cache_append): Declare.
4174 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
4175 unsigned index, remove offset parameter, ensure that we append
4176 or update existing entries.
4177 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
4178 parameter, update next_slot for append.
4179 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
4181 (lto_streamer_cache_insert_at): Likewise.
4182 (lto_streamer_cache_append): New function.
4183 (lto_streamer_cache_lookup): Use unsigned index.
4184 (lto_streamer_cache_get): Likewise.
4185 (lto_record_common_node): Don't test tree_node_can_be_shared.
4186 (preload_common_node): Adjust call to lto_streamer_cache_insert.
4187 (lto_streamer_cache_delete): Don't free offsets member.
4188 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
4189 (lto_output_string_with_length): Use lto_output_data_stream.
4190 (lto_output_tree_header): Remove ix parameter, don't write it.
4191 (lto_output_builtin_tree): Likewise.
4192 (lto_write_tree): Adjust callers to above, don't track and write
4193 offset, write unsigned index.
4194 (output_unreferenced_globals): Don't emit all global vars.
4195 (write_global_references): Use unsigned indices.
4196 (lto_output_decl_state_refs): Likewise.
4197 (write_symbol): Likewise.
4198 * lto-streamer-in.c (lto_input_chain): Move earlier.
4199 (input_function): Use unsigned index.
4200 (input_alias_pairs): Don't read and then ignore all global vars.
4201 (lto_materialize_tree): Remove ix_p parameter, don't read index,
4202 don't pass it back, use lto_streamer_cache_append.
4203 (lto_register_var_decl_in_symtab): Use unsigned index.
4204 (lto_register_function_decl_in_symtab): Likewise.
4205 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
4207 (lto_get_builtin_tree): Don't read index, use
4208 lto_streamer_cache_append.
4209 (lto_read_tree): Adjust call to lto_materialize_tree.
4211 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
4212 don't use function calls in arguments to MIN.
4214 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
4217 * gimple.c (gimple_type_leader_entry): Mark deletable.
4219 2011-04-03 Alan Modra <amodra@gmail.com>
4221 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
4223 2011-04-03 Michael Matz <matz@suse.de>
4225 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
4227 * tree.h (tree_decl_non_common.vindex): Adjust comment.
4229 2011-04-03 Michael Matz <matz@suse.de>
4231 * cgraphbuild.c (record_reference): Canonicalize constructor values.
4232 * gimple-fold.c (canonicalize_constructor_val): Accept being called
4233 without function context.
4234 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
4235 current_function_decl and cfun.
4237 2011-04-03 Michael Matz <matz@suse.de>
4239 * tree.c (decl_init_priority_insert): Don't create entry for
4241 (decl_fini_priority_insert): Ditto.
4242 (fields_compatible_p, find_compatible_field): Remove.
4243 * tree.h (fields_compatible_p, find_compatible_field): Remove.
4244 * gimple.c (gimple_compare_field_offset): Adjust block comment.
4246 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
4248 * combine.c (try_combine): Remove useless local variable.
4250 2011-04-03 Richard Guenther <rguenther@suse.de>
4251 Ira Rosen <ira.rosen@linaro.org>
4253 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
4254 non-variable offsets and compare the remaining bases of the two
4255 accesses instead of looking for exact same data-ref.
4257 2011-04-02 Kai Tietz <ktietz@redhat.com>
4260 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
4262 * i386.c (ix86_is_msabi_thiscall): New helper function.
4263 (ix86_is_type_thiscall): New helper function.
4264 (ix86_comp_type_attributes): Handle thiscall for method-functions
4266 (init_cumulative_args): Likewise.
4267 (find_drap_reg): Likewise.
4268 (ix86_static_chain): Likewise.
4269 (x86_this_parameter): Likewise.
4270 (x86_output_mi_thunk): Likewise.
4272 2011-04-01 Olivier Hainque <hainque@adacore.com>
4273 Nicolas Setton <setton@adacore.com>
4274 Eric Botcazou <ebotcazou@adacore.com>
4276 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
4277 (add_gnat_descriptive_type_attribute): New function.
4278 (gen_array_type_die): Call it.
4279 (gen_enumeration_type_die): Likewise.
4280 (gen_struct_or_union_type_die): Likewise.
4281 (modified_type_die): Likewise.
4282 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
4283 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
4284 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
4286 2011-04-01 Jakub Jelinek <jakub@redhat.com>
4289 * dwarf2out.c (resolve_addr): Don't call force_decl_die
4290 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
4293 2011-03-17 Richard Guenther <rguenther@suse.de>
4296 * lto-cgraph.c (input_overwrite_node): Clear the abstract
4297 origin for decls in other ltrans units.
4298 (input_varpool_node): Likewise.
4300 2011-04-01 Jakub Jelinek <jakub@redhat.com>
4303 * expr.c (expand_assignment): Handle all possibilities
4304 if TO_RTX is CONCAT.
4305 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
4306 (store_split_bit_field): If SUBREG_REG (op0) or
4307 op0 itself has smaller mode than word, return it
4308 for offset 0 and const0_rtx for out-of-bounds stores.
4309 If word is const0_rtx, skip it.
4311 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
4313 * config/h8300/h8300.c (print_operand_address): Rename to...
4314 (h8300_print_operand_address): ...this. Make static. Adjust comments.
4315 Call h8300_print_operand and h8300_print_operand_address instead of
4316 print_operand and print_operand_address. Declare.
4317 (print_operand): Renake to...
4318 (h8300_print_operand): ...this. Make static. Adjust comments.
4319 Call h8300_print_operand instead of print_operand. Declare.
4320 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
4321 (h8300_register_move_cost): Likewise.
4322 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
4323 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
4324 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
4325 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
4326 * config/h8300/h8300-protos.h (print_operand): Delete.
4327 (print_operand_address): Delete.
4329 2011-04-01 Richard Henderson <rth@redhat.com>
4332 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
4333 in strict mode before dwarf4. Re-order tests to early out
4334 before switching sections.
4336 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
4338 * config/h8300/constraints.md: New file.
4339 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
4340 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
4341 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
4342 * config/h8300/predicates.md (bit_operand): Likewise.
4343 (incdec_operand): Use satisfies_constraint_M and
4344 satisfies_constraint_O. Don't use C code block.
4345 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
4346 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
4347 (compute_mov_length): Use satisfies_constraint_G.
4348 (fix_bit_operand): Use satisfies_constraint_U.
4349 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
4350 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
4351 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
4352 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
4353 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
4354 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
4355 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4356 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
4357 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
4358 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
4359 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
4360 (EXTRA_MEMORY_CONSTRAINT): Delete.
4362 2011-04-01 Andrew Pinski <pinskia@gmail.com>
4363 Michael Meissner <meissner@linux.vnet.ibm.com>
4366 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
4367 operands, as per the specifications.
4369 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
4370 (vec_extract_evenv4sf): Ditto.
4371 (vec_extract_evenv8hi): Ditto.
4372 (vec_extract_evenv16qi): Ditto.
4373 (vec_extract_oddv4si): Ditto.
4375 2011-03-31 Mark Wielaard <mjw@redhat.com>
4377 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
4378 high_pc attribute if the CU has no associated code. Only output
4379 DW_AT_entry_pc for CU if not generating strict dwarf and
4382 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
4384 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
4385 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
4387 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
4388 * final.c (final_start_function): Call the new function rather
4389 than using a NULL argument for dwarf2out_frame_debug.
4391 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
4392 that contains the prologue.
4394 * haifa-sched.c (queue_insn): New arg REASON. All callers
4395 changed. Print it in debugging output.
4397 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
4399 * sched-ebb.c (begin_schedule_ready): Remove second argument.
4400 Split most of the code into...
4401 (begin_move_insn): ... here. New function.
4402 (ebb_sched_info): Add a pointer to it.
4403 * haifa-sched.c (scheduled_insns): New static variable.
4404 (sched_extend_ready_list): Allocate it.
4405 (schedule_block): Use it to record the order of scheduled insns.
4406 Perform RTL changes to move insns only after all scheduling
4407 decisions have been made.
4408 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
4409 begin_move_insn field.
4410 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
4411 * sched-int.h (struct haifa_sched_info): Remove second argument
4412 from begin_schedule_ready hook. Add new member begin_move_insn.
4413 * sched-rgn.c (begin_schedule_ready): Remove second argument.
4414 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
4416 * haifa-sched.c (prune_ready_list): New function, broken out of
4418 (schedule_block): Use it.
4420 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4422 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
4424 2011-04-01 Kai Tietz <ktietz@redhat.com>
4426 * config.gcc (*-*-mingw*): Allow as option the
4427 posix threading model.
4428 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
4429 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
4431 (CPP_SPEC): Add pthread/no-pthread handling.
4432 (LIB_SPEC): Likewise.
4433 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
4434 (LIB_SPEC): Likewise.
4435 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
4436 flag to pass -pthread option for shared libgcc build.
4437 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
4438 for shared libgcc build.
4439 * config/i386/t-mingw-pthread: New file.
4440 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
4441 New define to enable use of library pthread by default.
4442 * config/i386/mingw.opt (pthread): New driver option.
4443 (no-pthread): New driver option.
4444 * config/i386/cygming.opt: Make sure trailing empty line is retained.
4445 * config/i386/mingw-w64.opt: Likewise.
4447 2011-04-01 Gary Funck <gary@intrepid.com>
4449 * c-decl.c (grokdeclarator): Fix formatting.
4451 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4453 * expr.c (emit_block_move_via_movmem): Use n_generator_args
4454 instead of n_operands.
4455 (set_storage_via_setmem): Likewise.
4456 * optabs.c (maybe_gen_insn): Likewise.
4457 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
4458 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
4459 (mips_expand_builtin_direct): Likewise.
4460 * config/spu/spu.c (expand_builtin_args): Likewise.
4462 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4464 * recog.h (insn_data_d): Add n_generator_args.
4465 * genoutput.c (data): Likewise.
4466 (output_insn_data): Print it.
4467 (max_opno, num_dups): Delete.
4468 (scan_operands): Just fill in "d->operand[...]".
4469 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
4471 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
4473 * gensupport.h (pattern_stats): New structure.
4474 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
4475 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
4476 (max_operand_1, max_operand_vec): Delete.
4477 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
4479 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
4481 * emit-rtl.c (emit_pattern_after_setloc): New function.
4482 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
4483 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
4484 (emit_pattern_after): New function.
4485 (emit_insn_after, emit_jump_insn_after): Call it.
4486 (emit_call_insn_after, emit_debug_insn_after): Likewise.
4487 (emit_pattern_before_setloc): New function.
4488 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
4489 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
4491 (emit_pattern_before): New function.
4492 (emit_insn_before, emit_jump_insn_before): Call it.
4493 (emit_call_insn_before, emit_debug_insn_before): Likewise.
4495 2011-03-31 Richard Henderson <rth@redhat.com>
4497 * dwarf2out.c (dw_separate_line_info_ref): Remove.
4498 (dw_separate_line_info_entry): Remove.
4499 (enum dw_line_info_opcode): New.
4500 (dw_line_info_entry): Use it.
4501 (dw_line_info_table, dw_line_info_table_p): New.
4502 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
4503 (line_info_table, line_info_label_num): Remove.
4504 (line_info_table_in_use): Remove.
4505 (separate_line_info_table): Remove.
4506 (separate_line_info_table_allocated): Remove.
4507 (separate_line_info_table_in_use): Remove.
4508 (LINE_INFO_TABLE_INCREMENT): Remove.
4509 (line_info_label_num): New.
4510 (cur_line_info_table): New.
4511 (text_section_line_info, cold_text_section_line_info): New.
4512 (separate_line_info): New.
4513 (SEPARATE_LINE_CODE_LABEL): Remove.
4514 (print_dwarf_line_table): Remove.
4515 (debug_dwarf): Don't dump it.
4516 (output_one_line_info_table): New.
4517 (output_line_info): Use it.
4518 (new_line_info_table): New.
4519 (set_cur_line_info_table): New.
4520 (dwarf2out_switch_text_section): Use it.
4521 (dwarf2out_begin_function): Likewise.
4522 (push_dw_line_info_entry): New.
4523 (dwarf2out_source_line): Rewrite for new line info tables.
4524 (dwarf2out_init): Remove dead initailizations.
4526 2011-03-31 Joseph Myers <joseph@codesourcery.com>
4528 * opts.h (cl_option): Add comments to fields. Add bit-fields for
4530 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
4531 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
4532 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
4533 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
4534 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
4535 * opt-functions.awk (flag_init, switch_bit_fields): New.
4536 (switch_flags): Don't handle flags moved to bit-fields. Don't
4537 generate CL_MISSING_OK or CL_SAVE.
4538 * optc-gen.awk: Update to generate bit-field output as well as
4540 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
4541 bit-field instead of CL_REJECT_DRIVER flag.
4542 * opts-common.c (generate_canonical_option,
4543 decode_cmdline_option): Use bit-fields instead of CL_* flags.
4544 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
4545 instead of CL_REJECT_NEGATIVE flag.
4546 * toplev.c (print_switch_values): Use cl_report bit-field instead
4549 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
4551 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
4552 a zero minimum index only if it is redundant.
4554 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
4556 PR rtl-optimization/48381
4557 * ira-color.c (assign_hard_reg): Use hard reg set intersection
4558 instead of ira_class_hard_reg_index for calculating conflicting
4561 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
4563 * cprop.c: Clean up hash table building.
4564 (reg_avail_info): Remove.
4565 (oprs_available_p): Remove.
4566 (record_last_reg_set_info): Remove.
4567 (record_last_set_info): Remove.
4568 (reg_available_p): New function.
4569 (gcse_constant_p): Do not treat unfolded conditions as constants.
4570 (make_set_regs_unavailable): New function.
4571 (hash_scan_set): Simplify with new reg_available_p.
4572 (compute_hash_table_work): Traverse insns stream only once.
4573 Do not compute reg_avail_info. Traverse insns in reverse order.
4574 Record implicit sets after recording explicit sets from the block.
4576 2011-03-31 Michael Matz <matz@suse.de>
4578 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
4580 2011-03-31 Anatoly Sokolov <aesok@post.ru>
4582 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
4583 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
4584 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4585 (h8300_mode_dependent_address_p): New function.
4586 (h8300_get_index): Make static.
4588 2011-03-31 Jeff Law <law@redhat.com>
4590 * reload1.c (elimination_effects): Fix typo in recent change.
4592 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
4593 typo potentially leading to null pointer dereference.
4595 * caller-save.c (new_saved_hard_reg): Eliminate return value.
4596 (setup_save_areas): Corresponding changes to avoid useless
4599 * jump.c (reversed_comparison_code_parts): Avoid successive return
4600 statements when REVERSE_CONDITION is defined.
4602 * expr.c (expand_assignment): Avoid useless assignments.
4603 (expand_expr_real_1): Likewise.
4604 (expand_expr_real_2): Avoid useless statements.
4606 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
4608 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
4610 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
4613 * stmt.c (expand_expr_stmt): Avoid useless assignment.
4615 2011-03-31 Joseph Myers <joseph@codesourcery.com>
4618 * doc/tm.texi.in (TARGET_VERSION): Remove.
4619 * doc/tm.texi: Regenerate.
4620 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
4621 * collect2.c (main): Don't use TARGET_VERSION.
4622 * mips-tdump.c (main): Don't use TARGET_VERSION.
4623 * mips-tfile.c (main): Don't use TARGET_VERSION.
4624 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
4625 * config/rs6000/vxworksae.h: Remove.
4626 * config/alpha/alpha.h (TARGET_VERSION): Remove.
4627 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
4628 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
4629 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
4630 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4631 * config/arm/arm.h (TARGET_VERSION): Remove.
4632 * config/arm/coff.h (TARGET_VERSION): Remove.
4633 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
4634 * config/arm/elf.h (TARGET_VERSION): Remove.
4635 * config/arm/freebsd.h (TARGET_VERSION): Remove.
4636 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
4637 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
4638 * config/arm/pe.h (TARGET_VERSION): Remove.
4639 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
4640 * config/arm/semi.h (TARGET_VERSION): Remove.
4641 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
4642 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
4643 * config/arm/vxworks.h (TARGET_VERSION): Remove.
4644 * config/avr/avr.h (TARGET_VERSION): Remove.
4645 * config/bfin/bfin.h (TARGET_VERSION): Remove.
4646 * config/fr30/fr30.h (TARGET_VERSION): Remove.
4647 * config/frv/frv.h (TARGET_VERSION): Remove.
4648 * config/h8300/h8300.h (TARGET_VERSION): Remove.
4649 * config/i386/cygwin.h (TARGET_VERSION): Remove.
4650 * config/i386/darwin.h (TARGET_VERSION): Remove.
4651 * config/i386/darwin64.h (TARGET_VERSION): Remove.
4652 * config/i386/djgpp.h (TARGET_VERSION): Remove.
4653 * config/i386/freebsd.h (TARGET_VERSION): Remove.
4654 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
4655 * config/i386/gnu.h (TARGET_VERSION): Remove.
4656 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
4657 * config/i386/i386elf.h (TARGET_VERSION): Remove.
4658 * config/i386/linux.h (TARGET_VERSION): Remove.
4659 * config/i386/linux64.h (TARGET_VERSION): Remove.
4660 * config/i386/lynx.h (TARGET_VERSION): Remove.
4661 * config/i386/mingw32.h (TARGET_VERSION): Remove.
4662 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
4663 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
4664 * config/i386/netware.h (TARGET_VERSION): Remove.
4665 * config/i386/nto.h (TARGET_VERSION): Remove.
4666 * config/i386/openbsd.h (TARGET_VERSION): Remove.
4667 * config/i386/vxworks.h (TARGET_VERSION): Remove.
4668 * config/ia64/elf.h (TARGET_VERSION): Remove.
4669 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
4670 * config/ia64/hpux.h (TARGET_VERSION): Remove.
4671 * config/ia64/linux.h (TARGET_VERSION): Remove.
4672 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4673 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
4674 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4675 * config/lm32/lm32.h (TARGET_VERSION): Remove.
4676 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
4677 * config/m32c/m32c.h (TARGET_VERSION): Remove.
4678 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
4679 * config/m32r/m32r.h (TARGET_VERSION): Remove.
4680 * config/m68k/linux.h (TARGET_VERSION): Remove.
4681 * config/m68k/m68k.h (TARGET_VERSION): Remove.
4682 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
4683 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
4684 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
4685 * config/mep/mep.h (TARGET_VERSION): Remove.
4686 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
4687 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4688 * config/mips/iris6.h (MACHINE_TYPE): Remove.
4689 * config/mips/linux.h (TARGET_VERSION): Remove.
4690 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
4691 * config/mips/vxworks.h (TARGET_VERSION): Remove.
4692 * config/mmix/mmix.h (TARGET_VERSION): Remove.
4693 * config/mn10300/linux.h (TARGET_VERSION): Remove.
4694 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
4695 * config/pa/pa.h (TARGET_VERSION): Remove.
4696 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
4697 * config/picochip/picochip.h (TARGET_VERSION): Remove.
4698 * config/rs6000/aix.h (TARGET_VERSION): Remove.
4699 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
4700 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
4701 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
4702 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
4703 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
4704 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
4705 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
4706 * config/rs6000/linux.h (TARGET_VERSION): Remove.
4707 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
4708 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
4709 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
4710 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
4711 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
4712 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
4713 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
4714 * config/s390/linux.h (TARGET_VERSION): Remove.
4715 * config/s390/s390.h (TARGET_VERSION): Remove.
4716 * config/s390/tpf.h (TARGET_VERSION): Remove.
4717 * config/score/score.h (TARGET_VERSION): Remove.
4718 * config/sh/linux.h (TARGET_VERSION): Remove.
4719 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
4720 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
4721 * config/sh/sh.h (TARGET_VERSION): Remove.
4722 * config/sh/sh64.h (TARGET_VERSION): Remove.
4723 * config/sh/superh.h (TARGET_VERSION): Remove.
4724 * config/sh/vxworks.h (TARGET_VERSION): Remove.
4725 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
4726 * config/sparc/linux.h (TARGET_VERSION): Remove.
4727 * config/sparc/linux64.h (TARGET_VERSION): Remove.
4728 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
4729 TARGET_NAME32, TARGET_NAME): Remove.
4730 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
4731 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
4732 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
4733 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
4734 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
4735 * config/spu/spu.h (TARGET_VERSION): Remove.
4736 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
4737 * config/v850/v850.h (TARGET_VERSION): Remove.
4738 * config/vax/linux.h (TARGET_VERSION): Remove.
4739 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
4740 * config/xtensa/elf.h (TARGET_VERSION): Remove.
4741 * config/xtensa/linux.h (TARGET_VERSION): Remove.
4743 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
4746 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
4747 frame-related from frame-unrelated adjustments to the stack pointer.
4749 2011-03-31 Jakub Jelinek <jakub@redhat.com>
4751 * common.opt (fdebug-types-section): Move earlier.
4752 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
4754 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
4756 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
4759 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
4761 * tree.h (CASE_CHAIN): Define.
4762 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
4763 (gimple_redirect_edge_and_branch): Likewise.
4765 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
4768 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
4771 2011-03-30 Jeff Law <law@redhat.com>
4773 * PR bootstrap/48371
4774 * reload1.c (reload): Fix botch in last change.
4776 * reload.h (struct reload): Fix typo introduced in last change.
4778 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4780 * config/arm/arm.opt (mhard-float, msoft-float): Mark
4781 Undocumented. Remove help text.
4782 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
4785 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4787 * doc/options.texi (NegativeAlias): Document.
4788 (Alias): Mention NegativeAlias.
4789 * opt-functions.awk: Handle NegativeAlias.
4790 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
4791 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
4792 * opts.h (CL_NEGATIVE_ALIAS): Define.
4793 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
4794 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
4796 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
4798 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4799 mno-spe and mno-isel instead of mspe=no and -misel=no.
4801 2011-03-29 Mark Wielaard <mjw@redhat.com>
4803 * common.opt (fdebug-types-section): New flag.
4804 * doc/invoke.texi: Document new -fno-debug-types-section flag.
4805 * dwarf2out.c (use_debug_types): New define.
4806 (struct die_struct): Mark die_id with GTY desc use_debug_types.
4807 (print_die): Guard output of type unit signatures using
4809 (build_abbrev_table): Replace assert of dwarf_version >= 4
4810 with assert on use_debug_types.
4811 (size_of_die): Likewise.
4812 (unmark_dies): Likewise.
4813 (value_format): Decide AT_ref_external form on use_debug_types.
4814 (output_die): Replace dwarf_version version check guard with
4815 use_debug_types where appropriate.
4816 (modified_type_die): Likewise.
4817 (gen_reference_type_die): Likewise.
4818 (dwarf2out_start_source_file): Likewise.
4819 (dwarf2out_end_source_file): Likewise.
4820 (prune_unused_types_walk_attribs): Likewise.
4821 (dwarf2out_finish): Likewise.
4823 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
4825 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
4827 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4829 PR rtl-optimization/48332
4830 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
4831 mode of input operand N and modeN to its actual mode.
4833 2011-03-30 Jeff Law <law@redhat.com>
4835 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
4836 define accessor macro.
4837 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
4838 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
4839 (reg_equiv_init): Likewise.
4840 (reg_equivs_size): New variable.
4841 (reg_equiv_init_size): Remove.
4842 (allocate_initial_values): Move prototype to here from....
4843 * integrate.h (allocate_initial_values): Remove prototype.
4844 * integrate.c: Include reload.h.
4845 (allocate_initial_values): Corresponding changes.
4846 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
4847 (fix_reg_equiv_init, no_equiv): Corresponding changes.
4848 (update_equiv_regs): Corresponding changes.
4849 (ira): Corresponding changes.
4850 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
4851 (push_secondary_reload): Corresponding changes.
4852 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
4853 (make_memloc, find_reloads_address): Corresponding changes.
4854 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
4855 (find_reloads_address_1): Corresponding changes.
4856 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
4857 (refers_to_regno_for_reload_p): Corresponding changes.
4858 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
4859 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
4860 * reload1.c: Include ggc.h.
4861 (grow_reg_equivs): New function.
4862 (replace_pseudos_in, reload): Corresponding changes.
4863 (calculate_needs_all_insns, alter_regs): Corresponding changes.
4864 (eliminate_regs_1, elimination_effects): Corresponding changes.
4865 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
4866 (delete_output_reload): Likewise.
4867 * caller-save.c (mark_referenced_regs): Corresponding changes.
4868 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
4869 * frv/predicates.md (frv_load_operand): Corresponding changes.
4870 * microblaze/microblaze.c (double_memory_operand): Corresponding
4872 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
4873 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
4874 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
4875 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
4876 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
4878 * pa/pa.c (emit_move_sequence): Corresponding changes.
4879 * vax/vax.c (nonindexed_address_p): Corresponding changes.
4881 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4884 * config/arm/arm.c (coproc_secondary_reload_class): Handle
4885 structure modes. Don't check neon_vector_mem_operand for
4886 vector or structure modes.
4888 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4889 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4892 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4893 operand 1 and reshuffle the operands to match.
4894 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4896 2011-03-30 Christian Schüler <cschueler@gmx.de>
4899 * config/c.opt (F): Added 'Driver' to -F option.
4902 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4904 * config/darwin.opt: Added '-arch' option.
4906 2011-03-30 Nick Clifton <nickc@redhat.com>
4908 * config/rx/rx.md: Add peepholes and patterns to combine
4909 extending loads and simple arithmetic instructions.
4910 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4911 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4912 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4913 modes to use pre-decrement and post-increment addressing.
4914 (rx_is_restricted_memory_address): Add range checking of REG+INT
4916 (rx_print_operand): Add support for %Q. Fix handling of %Q.
4917 (rx_memory_move_cost): Adjust cost of stores.
4918 (rx_adjust_insn_length): New function.
4920 2011-03-30 Jakub Jelinek <jakub@redhat.com>
4923 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4924 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4925 matching arg00/arg01 types.
4927 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
4929 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4930 last_location to UNKNOWN_LOCATION.
4932 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
4935 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4938 2011-03-30 Joseph Myers <joseph@codesourcery.com>
4939 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4942 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4944 (sparc_cpu): Likewise.
4945 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4948 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4952 PR rtl-optimization/48345
4953 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4954 hard regs for given mode from profitable regs when doing secondary
4957 2011-03-29 Jeff Law <law@redhat.com>
4960 * tree-ssa-threadupdate.c (struct redirection_data): Remove
4961 do_not_duplicate field.
4962 (lookup_redirection_data): Corresponding changes.
4963 (create_duplicates): Always create a template block.
4964 (redirect_edges): Remove code which reused the original block
4965 when it was going to become unreachable code.
4966 (thread_block): Don't set do_not_duplicate field.
4968 2011-03-29 Joseph Myers <joseph@codesourcery.com>
4970 * lto-opts.c (register_user_option_p, lto_register_user_option):
4971 Make type argument unsigned.
4972 * lto-streamer.h (lto_register_user_option): Make type argument
4974 * opth-gen.awk: Make CL_* macros unsigned.
4975 * opts-common.c (find_opt): Make lang_mask argument unsigned.
4976 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4977 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4978 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4979 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4980 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4981 (find_opt): Make lang_mask argument unsigned.
4983 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4985 PR rtl-optimization/48331
4986 PR rtl-optimization/48334
4987 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4988 for any used algorithm.
4990 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4992 * ira-conflicts.c (build_object_conflicts): Add unused attribute
4995 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
4997 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4998 (alpha_option_override): Don't set alpha_sr_alias_set.
4999 (emit_frame_store_1): Use gen_frame_mem rather than calling
5001 (alpha_expand_epilogue): Ditto.
5003 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
5005 PR tree-optimization/48290
5006 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
5007 vectorization, check that relevant phis in the basic block after
5008 the inner loop are really inner loop's exit phis.
5010 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
5013 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
5014 (cached_dw_loc_list_def): New structure.
5015 (cached_dw_loc_list): New typedef.
5016 (cached_dw_loc_list_table): New variable.
5017 (cached_dw_loc_list_table_hash): New function.
5018 (cached_dw_loc_list_table_eq): Likewise.
5019 (add_location_or_const_value_attribute): Take a bool cache_p.
5020 Cache the list when the parameter is true.
5021 (gen_formal_parameter_die): Update caller.
5022 (gen_variable_die): Likewise.
5023 (dwarf2out_finish): Likewise.
5024 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
5025 while generating debug info for the decl.
5026 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
5027 (dwarf2out_init): Initialize cached_dw_loc_list_table.
5028 (resolve_addr): Cache the result of resolving a chain of
5031 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
5033 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
5034 conflict object hard regset nodes have intersecting hard reg sets.
5036 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
5037 after regstat_init_n_sets_and_refs.
5039 * ira.c: Add more comments at the top.
5040 (setup_stack_reg_pressure_class, setup_pressure_classes):
5041 Add comments how we compute the register pressure classes.
5042 (setup_allocno_and_important_classes): Add more comments.
5043 (setup_class_translate_array, reorder_important_classes)
5044 (setup_reg_class_relations): Add comments.
5046 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
5049 * ira-color.c: Add 2011 to the Copyright line.
5050 (assign_hard_reg): Add more comments.
5051 (improve_allocation): Ditto.
5053 * ira-costs.c: Add 2011 to the Copyright line.
5054 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
5056 (setup_regno_cost_classes_by_mode): Ditto.
5058 Initial patches from ira-improv branch:
5060 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5062 * ira-build.c (ira_create_object): Remove initialization of
5063 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
5064 (ira_create_allocno): Remove initialization of
5065 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
5066 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
5067 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5068 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
5069 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
5070 Initialize ALLOCNO_ADD_DATA.
5071 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
5072 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
5074 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
5075 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
5077 * ira.c (ira_reallocate): Remove.
5078 (setup_pressure_classes): Call
5079 ira_init_register_move_cost_if_necessary. Use
5080 ira_register_move_cost instead of ira_get_register_move_cost.
5081 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
5082 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
5084 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
5085 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
5086 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
5087 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
5088 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
5089 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
5091 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
5092 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5093 (struct allocno_color_data): New.
5094 (allocno_color_data_t): New typedef.
5095 (allocno_color_data): New definition.
5096 (ALLOCNO_COLOR_DATA): New macro.
5097 (struct object_color_data): New.
5098 (object_color_data_t): New typedef.
5099 (object_color_data): New definition.
5100 (OBJECT_COLOR_DATA): New macro.
5101 (update_copy_costs, calculate_allocno_spill_cost): Call
5102 ira_init_register_move_cost_if_necessary. Use
5103 ira_register_move_cost instead of ira_get_register_move_cost.
5104 (move_spill_restore, update_curr_costs): Ditto.
5105 (allocno_spill_priority): Make it inline.
5106 (color_pass): Allocate and free allocno_color_dat and object_color_data.
5107 (struct coalesce_data, coalesce_data_t): New.
5108 (allocno_coalesce_data): New definition.
5109 (ALLOCNO_COALESCE_DATA): New macro.
5110 (merge_allocnos, coalesced_allocno_conflict_p): Use
5111 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
5112 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
5113 (coalesce_allocnos): Ditto.
5114 (setup_coalesced_allocno_costs_and_nums): Ditto.
5115 (collect_spilled_coalesced_allocnos): Ditto.
5116 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
5117 (setup_slot_coalesced_allocno_live_ranges): Ditto.
5118 (coalesce_spill_slots): Ditto.
5119 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
5120 free allocno_coalesce_data.
5122 * ira-conflicts.c: Fix formatting.
5123 (process_regs_for_copy): Call
5124 ira_init_register_move_cost_if_necessary. Use
5125 ira_register_move_cost instead of ira_get_register_move_cost.
5126 (build_object_conflicts): Optimize.
5128 * ira-costs.c (record_reg_classes): Optimize. Call
5129 ira_init_register_move_cost_if_necessary. Use
5130 ira_register_move_cost, ira_may_move_in_cost, and
5131 ira_may_move_out_cost instead of ira_get_register_move_cost and
5132 ira_get_may_move_cost.
5133 (record_address_regs): Ditto.
5134 (scan_one_insn): Optimize.
5135 (find_costs_and_classes): Optimize.
5136 (process_bb_node_for_hard_reg_moves): Call
5137 ira_init_register_move_cost_if_necessary. Use
5138 ira_register_move_cost instead of ira_get_register_move_cost.
5140 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
5141 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
5142 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
5143 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
5145 (ira_initiate_emit_data, ira_finish_emit_data)
5146 (create_new_allocno): New functions.
5147 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
5148 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
5149 Use ira_register_move_cost instead of ira_get_register_move_cost.
5151 * ira-int.h: Fix some comments.
5152 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
5153 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
5154 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
5155 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
5157 (struct ira_allocno): Make mode and aclass a bitfield. Move other
5158 bitfield after mode. Make hard_regno a short int. Make
5159 hard_regno short. Remove first_coalesced_allocno and
5160 next_coalesced_allocno. Move mem_optimized_dest_p,
5161 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
5162 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
5163 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
5164 temp, colorable_p. Add new member add_data.
5165 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
5166 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
5167 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
5168 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
5169 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
5170 (ALLOCNO_ADD_DATA): New macro.
5171 (ira_emit_data_t): New typedef.
5172 (struct ira_emit_data): New. Move mem_optimized_dest_p,
5173 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
5174 from struct ira_allocno.
5175 (ALLOCNO_EMIT_DATA): New macro.
5176 (ira_allocno_emit_data, allocno_emit_reg): New.
5177 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
5178 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
5179 (OBJECT_ADD_DATA): New macro.
5180 (ira_reallocate): Remove.
5181 (ira_initiate_emit_data, ira_finish_emit_data): New.
5182 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
5183 (ira_init_register_move_cost_if_necessary): New.
5184 (ira_object_conflict_iter_next): Merge into
5185 ira_object_conflict_iter_cond.
5186 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
5188 * ira-live.c (process_single_reg_class_operands): Call
5189 ira_init_register_move_cost_if_necessary. Use
5190 ira_register_move_cost instead of ira_get_register_move_cost.
5192 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
5194 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
5196 * ira-costs.c: Fix formatting.
5197 (cost_classes, cost_classes_num): Remove.
5198 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
5199 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
5200 (cost_classes_del, cost_classes_htab): New.
5201 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
5202 (initiate_regno_cost_classes, setup_cost_classes): New.
5203 (setup_regno_cost_classes_by_aclass): New.
5204 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
5205 (record_reg_classes): Use regno_cost_classes instead of
5206 cost_classes. Move checking opposite operand up.
5207 (record_address_regs): Use regno_cost_classes
5208 instead of cost_classes.
5209 (scan_one_insn): Ditto. Use always general register.
5210 (print_allocno_costs): Use regno_cost_classes instead of
5212 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
5213 (find_costs_and_classes): Set up cost classes for each registers.
5214 Use also their mode for this. Use regno_cost_classes instead of
5216 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
5218 (free_ira_costs, ira_init_costs): Don't use cost_classes.
5219 (ira_costs, ira_set_pseudo_classes): Call
5220 initiate_regno_cost_classes and finish_regno_cost_classes.
5222 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
5224 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
5226 * target.def (ira_cover_classes): Remove.
5228 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
5230 * doc/tm.texi.in: Ditto.
5232 * ira-conflicts.c: Remove mentioning cover classes from the file.
5233 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
5234 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
5236 * targhooks.c (default_ira_cover_classes): Remove.
5238 * targhooks.h (default_ira_cover_classes): Ditto.
5240 * haifa-sched.c: Remove mentioning cover classes from the file.
5241 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
5242 ira_pressure_classes and ira_pressure_classes_num instead of
5243 ira_reg_class_cover_size and ira_reg_class_cover. Use
5244 sched_regno_pressure_class instead of sched_regno_cover_class.
5245 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
5246 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5248 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
5249 classes from the file.
5250 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
5251 (struct object_hard_regs, struct object_hard_regs_node): New.
5252 (struct ira_object): New members profitable_hard_regs,
5253 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
5254 (struct ira_allocno): Rename cover_class to aclass. Rename
5255 cover_class_cost and updated_cover_class_cost to class_cost and
5256 updated_class_cost. Remove splay_removed_p and
5257 left_conflict_size. Add new members colorable_p.
5258 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
5259 (ALLOCNO_COLORABLE_P): New macro.
5260 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
5261 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
5262 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
5263 (OBJECT_...): Rename parameter C to O.
5264 (OBJECT_PROFITABLE_HARD_REGS): New macro.
5265 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
5266 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
5267 (struct target_ira_int): New members x_ira_max_memory_move_cost,
5268 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
5269 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
5270 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
5271 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
5272 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
5273 x_ira_reg_class_subunion.
5274 (ira_max_memory_move_cost, ira_max_register_move_cost)
5275 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
5276 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
5277 (ira_important_class_nums, ira_reg_class_superunion): New macros.
5278 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
5279 (ira_reg_class_union): Rename to ira_reg_class_subunion.
5280 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
5281 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
5282 (ira_tune_allocno_costs_and_cover_classes): Rename to
5283 ira_tune_allocno_costs.
5284 (ira_debug_hard_regs_forest): New.
5285 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
5286 (ira_object_conflict_iter_next): Fix comments.
5287 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
5288 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
5289 cover_class to aclass.
5290 (ira_allocate_and_accumulate_costs): Ditto.
5291 (ira_allocate_and_set_or_copy_costs): Ditto.
5293 * opts.c (decode_options): Remove ira_cover_class check.
5295 * ira-color.c: Remove mentioning cover classes from the file. Use
5296 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
5297 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
5298 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
5299 (splay-tree.h): Remove include.
5300 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
5301 before copy_freq_compare_func.
5302 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
5303 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
5305 (hard_regs_roots, hard_regs_node_vec): Ditto.
5306 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
5307 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
5308 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
5309 (create_new_object_hard_regs_node): Ditto.
5310 (add_new_object_hard_regs_node_to_forest): Ditto.
5311 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
5312 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
5314 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
5315 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
5316 (remove_unused_object_hard_regs_nodes): Ditto.
5317 (enumerate_object_hard_regs_nodes): Ditto.
5318 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
5319 (object_hard_regs_subnode_t): Ditto.
5320 (struct object_hard_regs_subnode): Ditto.
5321 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
5322 (setup_object_hard_regs_subnode_index): Ditto.
5323 (get_object_hard_regs_subnodes_num): Ditto.
5324 (form_object_hard_regs_nodes_forest): Ditto.
5325 (finish_object_hard_regs_nodes_tree): Ditto.
5326 (finish_object_hard_regs_nodes_forest): Ditto.
5327 (allocnos_have_intersected_live_ranges_p): Rename to
5328 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
5329 (pseudos_have_intersected_live_ranges_p): Rename to
5330 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
5331 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
5332 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
5333 (update_copy_costs): Remove assert. Skip cost update if the hard
5334 reg does not belong the class.
5335 (assign_hard_reg): Process only profitable hard regs.
5336 (uncolorable_allocnos_num): Make it scalar.
5337 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
5338 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
5339 and ira_reg_class_max_nregs.
5340 (bucket_allocno_compare_func): Check frequency first.
5341 (sort_bucket): Add compare function as a parameter.
5342 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
5343 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
5344 (push_allocno_to_stack): Rewrite for checking new allocno
5346 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
5347 (push_only_colorable): Pass new parameter to sort_bucket.
5348 (push_allocno_to_spill): Remove.
5349 (allocno_spill_priority_compare): Make it inline and rewrite.
5350 (splay_tree_allocate, splay_tree_free): Remove.
5351 (allocno_spill_sort_compare): New function.
5352 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
5353 build and use splay tree. Choose first allocno in uncolorable
5354 allocno bucket to spill. Remove setting spill cost.
5355 (all_conflicting_hard_regs): Remove.
5356 (setup_allocno_available_regs_num): Check only profitable hard
5357 regs. Print info about hard regs nodes.
5358 (setup_allocno_left_conflicts_size): Remove.
5359 (put_allocno_into_bucket): Don't call
5360 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
5361 (improve_allocation): New.
5362 (color_allocnos): Call setup_profitable_hard_regs,
5363 form_object_hard_regs_nodes_forest, improve_allocation,
5364 finish_object_hard_regs_nodes_forest. Setup spill cost.
5365 (print_loop_title): Use pressure classes.
5366 (color_allocnso): Ditto.
5367 (do_coloring): Remove allocation and freeing splay_tree_node_pool
5368 and allocnos_for_spilling.
5369 (ira_sort_regnos_for_alter_reg): Don't setup members
5370 {first,next}_coalesced_allocno.
5371 (color): Remove allocating and freeing removed_splay_allocno_vec.
5372 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
5373 prohibited_class_mode_regs.
5375 * ira-lives.c: Remove mentioning cover classes from the file. Fix
5377 (update_allocno_pressure_excess_length): Use pressure classes.
5378 (inc_register_pressure, dec_register_pressure): Check for pressure
5380 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
5381 pressure class. Use ira_reg_class_nregs instead of
5382 ira_reg_class_max_nregs.
5383 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
5384 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
5385 (single_reg_class): Use ira_reg_class_nregs instead of
5386 ira_reg_class_max_nregs.
5387 (process_bb_node_lives): Use pressure classes.
5389 * ira-emit.c: Remove mentioning cover classes from the file. Use
5390 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
5391 (change_loop): Use pressure classes.
5392 (modify_move_list): Call ira_set_allocno_class instead of
5393 ira_set_allocno_cover_class.
5395 * ira-build.c: Remove mentioning cover classes from the file. Use
5396 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
5397 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
5398 ALLOCNO_UPDATED_CLASS_COST instead of
5399 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
5400 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
5401 (ira_create_allocno): Remove initialization of
5402 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
5403 ALLOCNO_COLORABLE_P.
5404 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
5405 Update conflict regs for the objects.
5406 (create_cap_allocno): Remove assert. Don't propagate
5407 ALLOCNO_AVAILABLE_REGS_NUM.
5408 (ira_free_allocno_costs): New function.
5409 (finish_allocno): Change a part of code into call of
5410 ira_free_allocno_costs.
5411 (low_pressure_loop_node_p): Use pressure classes.
5412 (object_range_compare_func): Don't compare classes.
5413 (setup_min_max_conflict_allocno_ids): Ditto.
5415 * loop-invariant.c: Remove mentioning cover classes from the file.
5416 Use ira_pressure_classes and ira_pressure_classes_num instead of
5417 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
5418 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
5419 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5420 Use reg_allocno_class instead of reg_cover_class.
5421 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
5422 STACK_REG_COVER_CLASS.
5423 (get_regno_cover_class): Rename to get_regno_pressure_class.
5424 (move_loop_invariants): Initialize and finalize regstat.
5426 * ira.c: Remove mentioning cover classes from the file. Add
5427 comments about coloring without cover classes. Use ALLOCNO_CLASS
5428 instead of ALLOCNO_COVER_CLASS. Fix formatting.
5429 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
5430 setup_class_subset_and_memory_move_costs.
5431 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
5432 (setup_cover_and_important_classes): Rename to
5433 setup_allocno_and_important_classes.
5434 (setup_class_translate_array): New.
5435 (setup_class_translate): Call it for allocno and pressure classes.
5436 (cover_class_order): Rename to allocno_class_order.
5437 (comp_reg_classes_func): Use ira_allocno_class_translate instead
5438 of ira_class_translate.
5439 (reorder_important_classes): Set up ira_important_class_nums.
5440 (setup_reg_class_relations): Set up ira_reg_class_superunion.
5441 (print_class_cover): Rename to print_classes. Add parameter.
5442 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
5443 Print pressure classes too.
5444 (find_reg_class_closure): Rename to find_reg_classes. Don't call
5445 setup_reg_subclasses.
5446 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5447 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5448 (setup_prohibited_class_mode_regs): Use
5449 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
5450 (clarify_prohibited_class_mode_regs): New function.
5451 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
5452 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
5453 (ira_init_once): Initialize them.
5454 (free_register_move_costs): Process them.
5455 (ira_init): Move calls of find_reg_classes and
5456 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
5457 Call clarify_prohibited_class_mode_regs.
5458 (ira_no_alloc_reg): Remove.
5459 (too_high_register_pressure_p): Use pressure classes.
5461 * sched-deps.c: Remove mentioning cover classes from the file.
5462 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
5463 ira_pressure_classes and ira_pressure_classes_num instead of
5464 ira_reg_class_cover_size and ira_reg_class_cover.
5465 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
5466 sched_regno_pressure_class instead of sched_regno_cover_class.
5467 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
5468 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
5470 * ira.h: Add 2010 to Copyright.
5471 (ira_no_alloc_reg): Remove external.
5472 (struct target_ira): Rename x_ira_hard_regno_cover_class,
5473 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
5474 x_ira_class_translate to x_ira_hard_regno_allocno_class,
5475 x_ira_allocno_classes_num, x_ira_allocno_classes, and
5476 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
5477 x_ira_pressure_classes, x_ira_pressure_class_translate, and
5478 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
5479 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
5480 x_ira_no_alloc_regs.
5481 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
5482 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
5483 ira_allocno_classes_num and ira_allocno_classes.
5484 (ira_class_translate): Rename to ira_allocno_class_translate.
5485 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
5486 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
5487 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
5488 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
5489 (ira_no_alloc_regs): New.
5491 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
5492 classes from the file. Use ALLOCNO_CLASS instead of
5493 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
5494 ALLOCNO_COVER_CLASS_COST.
5495 (regno_cover_class): Rename to regno_aclass.
5496 (record_reg_classes): Use ira_reg_class_subunion instead of
5497 ira_reg_class_union.
5498 (record_address_regs): Check overflow.
5499 (scan_one_insn): Ditto.
5500 (print_allocno_costs): Print total mem cost fore regional allocation.
5501 (print_pseudo_costs): Use REG_N_REFS.
5502 (find_costs_and_classes): Use classes intersected with them on the
5503 1st pass. Check overflow. Use ira_reg_class_subunion instead of
5504 ira_reg_class_union. Use ira_allocno_class_translate and
5505 regno_aclass instead of ira_class_translate and regno_cover_class.
5506 Modify code for finding regno_aclass. Setup preferred classes for
5508 (setup_allocno_cover_class_and_costs): Rename to
5509 setup_allocno_class_and_costs. Use regno_aclass instead of
5510 regno_cover_class. Use ira_set_allocno_class instead of
5511 ira_set_allocno_cover_class.
5512 (init_costs, finish_costs): Use regno_aclass instead of
5514 (ira_costs): Use setup_allocno_class_and_costs instead of
5515 setup_allocno_cover_class_and_costs.
5516 (ira_tune_allocno_costs_and_cover_classes): Rename to
5517 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
5518 by processing objects. Use ira_reg_class_max_nregs instead of
5519 ira_reg_class_nregs.
5521 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
5523 * sched-int.h: Remove mentioning cover classes from the file.
5524 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
5526 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
5527 classes from the file.
5528 (struct reg_pref): Rename coverclass into allocnoclass.
5529 (reg_cover_class): Rename to reg_allocno_class.
5531 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
5533 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
5535 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
5537 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
5539 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
5541 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
5543 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
5545 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
5547 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
5549 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
5551 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
5552 (i386_ira_cover_classes): Ditto.
5554 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5556 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
5558 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
5560 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
5562 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
5564 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
5566 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
5567 (mips_ira_cover_classes): Ditto.
5569 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
5571 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
5573 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
5575 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
5577 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
5579 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
5580 (IRA_COVER_CLASSES_VSX): Ditto.
5582 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
5583 (rs6000_ira_cover_classes): Ditto.
5585 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
5587 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
5589 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
5591 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
5593 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
5595 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
5597 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
5599 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
5601 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
5603 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
5605 2011-03-29 Jakub Jelinek <jakub@redhat.com>
5608 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
5609 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
5610 dw_fde_unlikely_section_end_label, cold_in_std_section,
5611 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
5612 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
5614 (output_fde): Use dw_fde_second_{begin,end} if second is
5615 true, otherwise dw_fde_{begin,end}.
5616 (output_call_frame_info): Test dw_fde_second_begin != NULL
5617 instead of dw_fde_switched_sections.
5618 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
5619 fields, initialize new fields. Initialize in_std_section
5620 unconditionally from the first partition.
5621 (dwarf2out_end_epilogue): Don't override dw_fde_end when
5622 dw_fde_second_begin is non-NULL.
5623 (dwarf2out_switch_text_section): Stop initializing removed
5624 dw_fde_struct fields, initialize new fields, initialize
5625 also dw_fde_end here. Set dw_fde_switch_cfi even when
5626 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
5627 (struct var_loc_list_def): Add last_before_switch field.
5628 (arange_table, arange_table_allocated, arange_table_in_use,
5629 ARANGE_TABLE_INCREMENT, add_arange): Removed.
5630 (size_of_aranges): Count !in_std_section and !second_in_std_section
5631 hunks in fdes, instead of looking at arange_table_in_use.
5632 (output_aranges): Add aranges_length argument, don't call
5633 size_of_aranges here. Instead of using aranges_table*
5634 emit ranges for fdes when !in_std_section resp.
5635 !second_in_std_section.
5636 (dw_loc_list): Break ranges crossing section switch.
5637 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
5638 use dw_fde_second_end instead of dw_fde_end as end of last range.
5639 (gen_subprogram_die): Don't call add_arange. Use
5640 dw_fde_{begin,end} for first partition and if switched
5641 section dw_fde_second_{begin,end} for the second.
5642 (var_location_switch_text_section_1,
5643 var_location_switch_text_section): New functions.
5644 (dwarf2out_begin_function): Initialize cold_text_section even
5645 when function_section () isn't text_section.
5646 (prune_unused_types): Don't walk arange_table.
5647 (dwarf2out_finish): Don't needlessly test
5648 flag_reorder_blocks_and_partition when testing cold_text_section_used.
5649 If info_section_emitted, call size_of_aranges and if it indicates
5650 non-empty .debug_aranges, call output_aranges with the computed
5651 size. Stop using removed dw_fde_struct fields, use
5652 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
5656 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
5657 create ENTRY_VALUE if incoming or address of incoming's MEM
5659 * dwarf2out.c (mem_loc_descriptor): Don't emit
5660 DW_OP_GNU_entry_value of DW_OP_fbreg.
5661 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
5662 on ENTRY_VALUE is able to find the canonical parameter VALUE.
5663 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
5664 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
5666 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
5667 is a REG_P or MEM_P with REG_P address, compute hash directly
5668 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
5669 (preserve_only_constants): Don't clear VALUES forwaring
5670 ENTRY_VALUE to some other VALUE.
5672 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
5674 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
5677 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
5679 * cfgexpand.c (expand_gimple_cond): Always set the source location and
5680 block before expanding the statement.
5681 (expand_gimple_stmt_1): Likewise. Set them here...
5682 (expand_gimple_stmt): ...and not here. Tidy.
5683 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
5686 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
5688 * Makefile.in: New rule for cprop.o.
5689 * gcse.c: Move constant/copy propagation to cprop.c.
5690 (compute_local_properties): Only handle expression tables.
5691 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
5692 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
5693 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
5694 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
5695 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
5696 compute_cprop_data, find_used_regs, try_replace_reg,
5697 find_avail_set, cprop_jump, constprop_register, cprop_insn,
5698 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
5699 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
5700 find_bypass_set, reg_killed_on_edge, bypass_block,
5701 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
5702 execute_rtl_cprop, pass_rtl_cprop): Move to...
5703 * cprop.c: ...here. New file, constant/copy propagation for RTL
5704 moved from gcse.c to here with minor cleanups in duplicated code.
5706 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
5708 * config/i386/i386.c (flag_opts): Fix a typo in
5709 -mavx256-split-unaligned-store.
5711 2011-03-28 Anatoly Sokolov <aesok@post.ru>
5713 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5714 LIBCALL_VALUE): Remove macros.
5715 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5716 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5717 (h8300_function_value, h8300_libcall_value,
5718 h8300_function_value_regno_p): New functions.
5720 2011-03-28 Anatoly Sokolov <aesok@post.ru>
5722 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
5724 2011-03-28 Jeff Law <law@redhat.com>
5726 * tree-ssa-threadupdate.c (redirect_edges): Call
5727 create_edge_and_update_destination_phis as needed.
5728 (create_edge_and_update_destination_phis): Accept new BB argument.
5729 All callers updated.
5730 (thread_block): Do not update the profile when threading around
5731 intermediate blocks.
5732 (thread_single_edge): Likewise.
5733 (determine_bb_domination_status): If BB is not a successor of the
5734 loop header, return NONDOMINATING.
5735 (register_jump_thread): Note when we register a jump thread around
5736 an intermediate block.
5737 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
5738 (thread_across_edge): Use it.
5740 2011-03-28 Tristan Gingold <gingold@adacore.com>
5742 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
5743 when for_return is 2.
5745 2011-03-28 Jeff Law <law@redhat.com>
5747 * var-tracking.c (canonicalize_values_mark): Delete unused
5749 (canonicalize_values_star, set_variable_part): Likewise.
5750 (clobber_variable_part, delete_variable_part): Likewise.
5752 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
5754 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
5756 2011-03-28 Martin Jambor <mjambor@suse.cz>
5758 * tree-inline.c (expand_call_inline): Do not check that destination
5760 (optimize_inline_calls): Assert that destination node is analyzed.
5761 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
5762 not call tree_lowering_passes.
5763 * cgraph.h (cgraph_analyze_function): Declare.
5764 * cgraphunit.c (cgraph_analyze_function): Make public.
5766 2011-03-28 Joseph Myers <joseph@codesourcery.com>
5768 * config/sparc/sparc-opts.h: New.
5769 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
5770 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
5771 (sparc_option_override): Store processor_type enumeration rather
5772 than string in cpu_default. Remove name and enumeration from
5773 cpu_table. Directly default -mcpu then default -mtune from -mcpu
5774 without using sparc_select. Use target_flags_explicit instead of
5776 * config/sparc/sparc.h (enum processor_type): Move to
5778 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
5779 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
5780 HeaderInclude entry.
5781 (mcpu=, mtune=): Use Var and Enum.
5782 (sparc_processor_type): New Enum and EnumValue entries.
5784 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5785 Iain Sandoe <iains@gcc.gnu.org>
5788 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
5790 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
5792 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
5793 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
5794 Insert new statements at it in lieu of STMT.
5795 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
5796 * tree-vect-stmts.c (vectorizable_store): Likewise.
5797 (vectorizable_load): Likewise.
5799 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
5801 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
5806 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
5808 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
5809 unaligned 256bit load/store.
5810 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
5811 (*avx_movdqu<avxmodesuffix>): Likewise.
5813 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5816 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5817 * config/pa/pa.md (iordi3): Use new predicate in expander.
5820 2011-03-27 Anatoly Sokolov <aesok@post.ru>
5822 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
5823 FUNCTION_VALUE_REGNO_P): Remove macros.
5824 * config/mips/mips-protos.h (mips_function_value): Remove.
5825 * config/mips/mips.c (mips_function_value): Rename to...
5826 (mips_function_value_1): ... this. Make static. Handle receiving
5827 the function type in 'fn_decl_or_type' argument.
5828 (mips_function_value, mips_libcall_value,
5829 mips_function_value_regno_p): New function.
5830 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5831 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5833 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
5835 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
5836 and -mavx256-split-unaligned-store.
5837 (ix86_option_override_internal): Split 32-byte AVX unaligned
5838 load/store by default.
5839 (ix86_avx256_split_vector_move_misalign): New.
5840 (ix86_expand_vector_move_misalign): Use it.
5842 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
5843 -mavx256-split-unaligned-store.
5845 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
5846 256bit load/store. Generate unaligned store on misaligned memory
5848 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
5850 (*avx_movdqu<avxmodesuffix>): Likewise.
5852 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
5853 -mavx256-split-unaligned-store.
5855 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
5858 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
5861 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
5863 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
5864 opno arguments with an expand_operand. Use create_input_operand.
5865 (mips_prepare_builtin_target): Delete.
5866 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
5868 (mips_expand_builtin_direct): Use create_output_operand and
5869 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
5870 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
5871 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
5873 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
5875 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
5877 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5879 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
5881 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5882 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
5883 basic blocks and call commit_edge_insertions directly.
5884 (fixup_abnormal_edges): Move from here to...
5885 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
5886 on the edges and return whether some have actually been inserted.
5887 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5890 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
5892 PR rtl-optimization/48144
5893 * sel-sched-ir.c (merge_history_vect): Factor out from ...
5894 (merge_expr_data): ... here.
5895 (av_set_intersect): Rename to av_set_code_motion_filter.
5896 Update all callers. Call merge_history_vect when an expression
5897 is found in both sets.
5898 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5900 2011-03-26 Alan Modra <amodra@gmail.com>
5902 * config/rs6000/predicates.md (word_offset_memref_op): Handle
5903 cmodel medium addresses.
5904 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5905 64-bit gpr loads and stores.
5906 (rs6000_secondary_reload_ppc64): New function.
5907 * config/rs6000/rs6000-protos.h: Declare it.
5908 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5910 2011-03-26 Alan Modra <amodra@gmail.com>
5913 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5914 GNU Go in traceback table.
5916 2011-03-25 Richard Henderson <rth@redhat.com>
5918 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5919 if there are exactly 6 operands.
5920 (set_storage_via_setmem): Similarly.
5922 2011-03-25 Kai Tietz <ktietz@redhat.com>
5924 * collect2.c (write_c_file_stat): Handle backslash
5925 as right-hand directory separator.
5926 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5927 checking just for slash.
5928 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5929 instead of checking for trailing slash.
5930 * gcc.c (record_temp_file): Use filename_cmp instead
5932 (do_spec_1): Likewise.
5933 (replace_outfile_spec_function): Likewise.
5934 (is_directory): Use filename_ncmp instead of strncmp.
5935 (print_multilib_info): Likewise.
5936 * gcov.c (find_source): Use filename_cmp instead
5938 (make_gcov_file_name): Fix order of slash/backslash
5940 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5941 (add_standard_paths): Likewise.
5942 * mips-tfile.c (saber_stop): Handle backslash.
5943 * prefix.c (update_path): Use filename_ncmp instead of
5945 * profile.c (output_location): Use filename_cmp instead
5947 * read-md.c (handle_toplevel_file): Handle backslash.
5948 * tlink.c (frob_extension): Likewise.
5949 * tree-cfg.c (same_line_p): Use filename_cmp instead of
5951 * tree-dump.c (dequeue_and_dump): Handle backslash.
5952 * tree.c (get_file_function_name): Likewise.
5953 * gengtype.c (read_input_list): Likewise.
5954 (get_file_realbasename): Likewise.
5955 (get_output_file_with_visibility): Use filename_cmp
5958 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
5960 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5963 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5965 * fold-const.c (expr_location_or): New function.
5966 (fold_truth_not_expr): Call it.
5968 2011-03-25 Jeff Law <law@redhat.com>
5970 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5972 * c-family/c-common.c (def_fn_type): Likewise.
5973 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5974 * emit-rtl.c (gen_rtvec): Likewise.
5975 * lto/lto-lang.c (def_fn_type): Likewise.
5977 2011-03-25 Richard Guenther <rguenther@suse.de>
5979 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5980 also generate copies.
5981 (fini_copy_prop): Handle constant values properly.
5983 2011-03-25 Jakub Jelinek <jakub@redhat.com>
5985 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5986 mode size instead of bitsize with DWARF2_ADDR_SIZE.
5987 (hash_loc_operands, compare_loc_operands): Handle
5988 DW_OP_GNU_entry_value.
5990 2011-03-25 Kai Tietz <ktietz@redhat.com>
5992 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5993 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5994 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5995 comment and use macro TARGET_64BIT_MS_ABI instead.
5996 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5997 and change default behavior for 32-bit MS_ABI.
5998 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5999 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
6001 (ix86_cfun_abi): Likewise.
6002 (ix86_maybe_switch_abi): Adjust comment.
6003 (init_cumulative_args): Check for bit-ness in MS_ABI case.
6004 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
6005 instead of checking for SYSV_ABI.
6006 (ix86_nsaved_sseregs): Likewise.
6007 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
6009 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
6010 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
6011 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
6012 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
6013 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
6015 2011-03-25 Richard Guenther <rguenther@suse.de>
6017 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
6018 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6019 (verify_gimple): Remove.
6020 * tree-cfg.c (verify_gimple_call): Merge verification
6022 (verify_gimple_phi): Merge verification from verify_stmts.
6023 (verify_gimple_label): New function.
6024 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
6025 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
6026 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
6027 (verify_stmts): Rename to verify_gimple_in_cfg.
6028 (verify_gimple_in_cfg): New function.
6029 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
6030 * tree-ssa.c (verify_ssa): Likewise.
6031 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
6033 2011-03-25 Richard Guenther <rguenther@suse.de>
6035 * passes.c (init_optimization_passes): Add FRE pass after
6038 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
6039 Andrew Stubbs <ams@codesourcery.com>
6041 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
6043 (arm_movdi_vfp_cortexa8): New pattern.
6044 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
6045 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
6046 instructions when tuning for Cortex-A8. Set attribute "arch".
6047 * config/arm/arm.md: Move include arm-tune.md up a bit.
6048 (define_attr "arch"): Add "onlya8" and "nota8" values.
6049 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
6051 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
6055 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6057 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6058 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6059 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6060 * passes.c (init_optimization_passes): Move
6061 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6063 2011-03-25 Kai Tietz <ktietz@redhat.com>
6065 * c-typeck.c (comptypes_internal): Replace target
6066 hook call of comp_type_attributes by version in tree.c file.
6067 * gimple.c (gimple_types_compatible_p_1): Likewise.
6068 * tree-ssa.c (useless_type_conversion_p): Likewise.
6069 * tree.c (build_type_attribute_qual_variant): Likewise.
6070 (attribute_value_equal): New static helper function.
6071 (comp_type_attributes): New function.
6072 (merge_attributes): Use attribute_value_equal for comparison.
6073 (attribute_list_contained): Likewise.
6074 * tree.h (comp_type_attributes): New prototype.
6076 2011-03-25 Richard Guenther <rguenther@suse.de>
6078 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
6079 of complex types at -O0.
6080 (verify_gimple_assign_binary): Likewise.
6081 (verify_gimple_assign_ternary): Likewise.
6083 2011-03-24 Mark Wielaard <mjw@redhat.com>
6085 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
6086 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6088 2011-03-24 Mark Wielaard <mjw@redhat.com>
6091 * dwarf2out.c (output_abbrev_section): Only write table when
6092 abbrev_die_table_in_use > 1.
6094 2011-02-24 Richard Henderson <rth@redhat.com>
6096 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
6097 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
6098 (alpha_expand_unaligned_load_words): Use extql.
6099 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
6100 (emit_insxl): Handle all modes for consistency.
6102 2011-02-24 Richard Henderson <rth@redhat.com>
6104 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
6105 (alpha_expand_unaligned_load): Likewise.
6106 (alpha_expand_unaligned_store): Likewise.
6107 (alpha_expand_unaligned_load_words): Likewise.
6108 (alpha_expand_unaligned_store_words): Likewise.
6109 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
6110 (alpha_split_lock_test_and_set_12): Likewise.
6111 (print_operand, alpha_fold_builtin_extxx): Likewise.
6112 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
6113 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
6114 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
6115 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
6116 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
6117 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
6118 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
6119 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
6120 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
6121 (extwl, extll, extql): Similarly.
6122 (inswh, inslh, insqh): Similarly.
6123 (mskbl, mskwl, mskll, mskql): Similarly.
6124 (mskwh, msklh, mskqh): Similarly.
6126 2011-02-24 Richard Henderson <rth@redhat.com>
6128 * config/alpha/alpha.md (attribute isa): Add er, ner.
6129 (attribute enabled): Handle them.
6130 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
6132 2011-02-24 Richard Henderson <rth@redhat.com>
6134 * config/alpha/alpha.md (attribute isa): Add vms.
6135 (attribute enabled): Handle it.
6136 (*movsf): Merge *movsf_{nofix,fix,nofp}.
6137 (*movdf): Merge *movdf_{nofix,fix,nofp}.
6138 (*movtf): Rename from *movtf_internal for consistency.
6139 (*movsi): Merge with *movsi_nt_vms.
6140 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
6141 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
6142 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
6143 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
6145 2011-02-24 Richard Henderson <rth@redhat.com>
6147 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
6148 (extendqisi2, extendhisi2): Likewise.
6149 (extendqidi2): Simplify BWX/non-BWX expansions.
6150 (extendhidi2): Similarly.
6152 2011-02-24 Richard Henderson <rth@redhat.com>
6154 * config/alpha/alpha.md (attribute isa): New.
6155 (attribute enabled): New.
6156 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
6157 (zero_extendqisi2, zero_extendqidi2): Similarly.
6158 (zero_extendhisi2, zero_extendhidi2): Similarly.
6159 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
6161 2011-02-24 Richard Henderson <rth@redhat.com>
6163 * config/alpha/predicates.md (input_operand): Revert last change;
6164 update comment to mention 32-bit VMS rather than Windows.
6166 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6168 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
6169 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
6170 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
6171 * passes.c (init_optimization_passes): Move
6172 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
6174 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6176 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
6178 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
6180 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
6183 2011-03-24 Jakub Jelinek <jakub@redhat.com>
6186 * simplify-rtx.c (simplify_const_unary_operation): Call
6187 real_convert when changing mode class with FLOAT_EXTEND.
6189 2011-03-24 Nick Clifton <nickc@redhat.com>
6191 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
6192 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6193 * config/rx/rx.c (rx_option_override): Set align_jumps,
6194 align_loops and align_labels if not set by the user.
6195 (rx_align_for_label): New function.
6196 (rx_max_skip_for_label): New function.
6197 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
6198 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
6199 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
6200 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
6201 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
6203 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6205 PR rtl-optimization/48263
6206 * optabs.c (expand_binop_directly): Reinstate convert_modes code
6207 and original commutative_p handling. Use maybe_gen_insn.
6209 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6211 * reload.c (find_reloads_subreg_address): Add address_reloaded
6212 parameter and return true there if the full address has been
6214 (find_reloads_toplev): Pass address_reloaded flag.
6215 (find_reloads_address_1): Don't use address_reloaded parameter.
6217 2011-03-24 Jeff Law <law@redhat.com>
6219 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
6220 unused variable "ann".
6221 (remove_unused_locals): Likewise.
6223 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
6226 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
6229 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6231 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
6232 for invalid symbolic addresses.
6233 (s390_secondary_reload): Don't use s390_check_symref_alignment for
6236 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6238 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
6239 the argument in calls to fold_truth_not_expr.
6241 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6243 * tree.c (record_node_allocation_statistics): New function.
6244 (make_node_stat, copy_node_stat, build_string): Call it.
6245 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
6246 (build1_stat, build_omp_clause): Likewise.
6248 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6250 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
6253 2011-03-24 Richard Guenther <rguenther@suse.de>
6255 PR tree-optimization/48271
6256 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
6257 blocks that still exist.
6259 2011-03-24 Richard Guenther <rguenther@suse.de>
6261 PR tree-optimization/48270
6262 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
6263 not free datarefs before ddrs.
6265 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
6267 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
6268 from the address built for a reference with variable offset.
6270 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
6273 * config/i386/i386.md (*movdf_internal_rex64): Do not split
6274 alternatives that can be handled with movq or movabsq insn.
6275 (*movdf_internal): Disable for !TARGET_64BIT.
6276 (*movdf_internal_nointeger): Ditto.
6277 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
6279 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
6281 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6282 (FUNCTION_ARG_ADVANCE): Likewise.
6283 * tm.texi.in: Change references to them to hook references.
6284 * tm.texi: Regenerate.
6285 * targhooks.c (default_function_arg): Eliminate check for target macro.
6286 (default_function_incoming_arg): Likewise.
6287 (default_function_arg_advance): Likewise.
6288 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6289 (function_arg_advance): Likewise.
6290 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6292 2011-03-24 Richard Guenther <rguenther@suse.de>
6295 * tree-object-size.c (addr_object_size): Do not double-account
6296 for MEM_REF offsets.
6298 2011-03-24 Diego Novillo <dnovillo@google.com>
6300 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
6301 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
6302 (lto_input_data_block): Move from lto-opts.c. Make extern.
6304 (lto_input_string): Rename from input_string. Make extern.
6306 * lto-streamer-out.c (lto_output_string_with_length): Rename from
6307 output_string_with_length.
6308 Output 0 to indicate a non-NULL string. Update all callers to
6310 (lto_output_string): Rename from output_string. Make extern.
6312 (lto_output_decl_state_streams): Make extern.
6313 (lto_output_decl_state_refs): Make extern.
6314 * lto-streamer.h (lto_input_string): Declare.
6315 (lto_input_data_block): Declare.
6316 (lto_output_string): Declare.
6317 (lto_output_string_with_length): Declare.
6318 (lto_output_decl_state_streams): Declare.
6319 (lto_output_decl_state_refs): Declare.
6321 2011-03-24 Richard Guenther <rguenther@suse.de>
6323 PR tree-optimization/46562
6324 * tree.c (build_invariant_address): New function.
6325 * tree.h (build_invariant_address): Declare.
6326 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
6327 a renamed function moved ...
6328 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
6329 Take valueization callback parameter.
6330 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
6331 * gimple-fold.h: New file.
6332 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
6333 (ccp_fold, fold_const_aggregate_ref,
6334 fold_ctor_reference, fold_nonarray_ctor_reference,
6335 fold_array_ctor_reference, fold_string_cst_ctor_reference,
6336 get_base_constructor): Move ...
6337 * gimple-fold.c: ... here.
6338 (gimple_fold_stmt_to_constant_1): New function
6339 split out from ccp_fold. Take a valueization callback parameter.
6340 Valueize all operands.
6341 (gimple_fold_stmt_to_constant): New wrapper function.
6342 (fold_const_aggregate_ref_1): New function split out from
6343 fold_const_aggregate_ref. Take a valueization callback parameter.
6344 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
6345 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
6346 invariant POINTER_PLUS_EXPRs to invariant form.
6347 (vn_valueize): New function.
6348 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
6349 * tree-vrp.c (vrp_valueize): New function.
6350 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
6351 to fold statements to constants.
6352 * tree-ssa-pre.c (eliminate): Properly guard propagation of
6353 function declarations.
6354 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
6355 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
6357 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
6359 * config/h8300/predicates.md (jump_address_operand): Fix register
6362 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
6364 * doc/invoke.texi (max-stores-to-sink): Document.
6365 * params.h (MAX_STORES_TO_SINK): Define.
6366 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
6367 if either vectorization or if-conversion is disabled.
6368 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
6369 tree-vect-data-refs.c vect_equal_offsets.
6370 (dr_equal_offsets_p): New function.
6371 (find_data_references_in_bb): Remove static.
6372 * tree-data-ref.h (find_data_references_in_bb): Declare.
6373 (dr_equal_offsets_p): Likewise.
6374 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
6375 (vect_drs_dependent_in_basic_block): Update calls to
6377 (vect_check_interleaving): Likewise.
6378 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
6379 (cond_if_else_store_replacement): Rename to...
6380 (cond_if_else_store_replacement_1): ... this. Change arguments and
6382 (cond_if_else_store_replacement): New function.
6383 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
6384 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
6386 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
6389 * config/arm/arm.md (casesi): Use the gen_int_mode() function
6390 to subtract lower bound instead of GEN_INT().
6392 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
6397 * doc/extend.texi (Alignment): Move section to match order in TOC.
6398 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
6399 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
6401 2011-03-23 Jeff Law <law@redhat.com>
6403 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
6404 before removing the edge.
6406 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
6407 it may have been freed by redirect_branch_edge or
6408 redirect_edge_succ_nodup.
6410 2011-03-23 Richard Guenther <rguenther@suse.de>
6412 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
6413 (check_va_list_escapes): Likewise.
6414 (check_all_va_list_escapes): Likewise.
6416 2011-03-23 Richard Guenther <rguenther@suse.de>
6418 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
6419 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
6420 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
6421 (alias.o): Likewise.
6422 (ipa-type-escape.o): Remove.
6423 (ipa-struct-reorg.o): Likewise.
6424 (GTFILES): Remove ipa-struct-reorg.c.
6425 * alias.c: Do not include ipa-type-escape.h.
6426 * tree-ssa-alias.c: Likewise.
6427 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
6428 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
6429 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
6430 and ipa-type-escape passes.
6431 * tree-pass.h (pass_ipa_type_escape): Remove.
6432 (pass_ipa_struct_reorg): Likewise.
6433 * ipa-struct-reorg.h: Remove.
6434 * ipa-struct-reorg.c: Likewise.
6435 * ipa-type-escape.h: Likewise.
6436 * ipa-type-escape.c: Likewise.
6437 * doc/invoke.texi (-fipa-struct-reorg): Remove.
6438 (--param struct-reorg-cold-struct-ratio): Likewise.
6439 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6440 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
6441 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
6443 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6445 * config/s390/2084.md: Enable all insn reservations also for z9_ec
6446 cpu attribute value.
6447 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
6448 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
6449 * config/s390/s390.c (processor_flags_table): New constant array.
6450 (s390_handle_arch_option): Remove.
6451 (s390_handle_option): Remove s390_handle_arch_option invocations
6452 and OPT_mwarn_framesize_ handling.
6453 (s390_option_override): Remove s390_handle_arch_option invocation.
6454 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
6456 * config/s390/s390.md (cpu attribute): Add z9_ec value.
6457 * config/s390/s390.opt (s390_tune, s390_arch)
6458 (march=): Replace s390_arch_option enum and values with
6459 processor_type. Set variable name to s390_arch. Set
6460 initialization value.
6461 (mtune=): Replace s390_arch_option with processor_type. Set
6462 variable name to s390_tune. Set initialization value.
6464 2011-03-23 Julian Brown <julian@codesourcery.com>
6466 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
6467 accesses which are not naturally aligned.
6469 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
6472 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
6474 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
6476 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
6477 parameter from "int" to "enum insn_code".
6478 (expand_operand_type): New enum.
6479 (expand_operand): New structure.
6480 (create_expand_operand): New function.
6481 (create_fixed_operand, create_output_operand): Likewise
6482 (create_input_operand, create_convert_operand_to): Likewise.
6483 (create_convert_operand_from, create_address_operand): Likewise.
6484 (create_integer_operand): Likewise.
6485 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
6486 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
6487 (expand_insn, expand_jump_insn): Likewise.
6488 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
6489 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
6490 (expand_movstr, expand_builtin___clear_cache): Likewise.
6491 (expand_builtin_lock_release): Likewise.
6492 * explow.c (allocate_dynamic_stack_space): Likewise.
6493 (probe_stack_range): Likewise. Allow check_stack to FAIL,
6494 and use the default handling in that case.
6495 * expmed.c (check_predicate_volatile_ok): Delete.
6496 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
6497 (emit_cstore): Likewise.
6498 * expr.c (emit_block_move_via_movmem): Likewise.
6499 (set_storage_via_setmem, expand_assignment): Likewise.
6500 (emit_storent_insn, try_casesi): Likewise.
6501 (emit_single_push_insn): Likewise. Allow the expansion to fail.
6502 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
6503 (expand_vec_shift_expr, expand_binop_directly): Likewise.
6504 (expand_twoval_unop, expand_twoval_binop): Likewise.
6505 (expand_unop_direct, emit_indirect_jump): Likewise.
6506 (emit_conditional_move, vector_compare_rtx): Likewise.
6507 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
6508 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
6509 (expand_sync_lock_test_and_set): Likewise.
6510 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
6511 (emit_unop_insn): Likewise.
6512 (expand_copysign_absneg): Change icode to an insn_code.
6513 (create_convert_operand_from_type): New function.
6514 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
6515 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
6516 (expand_insn, expand_jump_insn): Likewise.
6517 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
6518 than const_int_operand for operand 2.
6520 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6522 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
6525 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6527 * emit-rtl.c (emit_pattern_before_noloc): New function.
6528 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
6529 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
6530 (emit_pattern_after_noloc): New function.
6531 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
6532 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
6534 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6536 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
6537 (__ffsDI2): Likewise.
6539 2011-03-22 Richard Henderson <rth@redhat.com>
6541 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
6542 of !TARGET_ABI_OPEN_VMS.
6543 (alpha_trampoline_init, alpha_start_function): Likewise.
6544 (alpha_expand_epilogue, alpha_file_start): Likewise.
6545 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
6546 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
6547 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
6548 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
6549 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
6551 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6553 * config/s390/s390-opts.h: New.
6554 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
6555 s390_arch_flags, s390_warn_framesize, s390_stack_size,
6556 s390_stack_guard): Remove.
6557 (s390_handle_arch_option): Return void. Take enum
6558 s390_arch_option value instead of string and searching array.
6559 (s390_handle_option): Don't assert that global structures are in
6560 use. Access variables via opts pointer. Use error_at. Don't use
6561 sscanf for -mstack-guard= or -mstack-size=. Update call to
6562 s390_handle_arch_option.
6563 (s390_option_override): Update call to s390_handle_arch_option.
6564 (s390_emit_prologue): Use %d format for s390_stack_size in
6565 diagnostic. Use %wd for HOST_WIDE_INT.
6566 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
6567 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
6568 * config/s390/s390.opt (config/s390/s390-opts.h): New
6569 HeaderInclude entry.
6570 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
6571 s390_arch_flags, s390_warn_framesize): New Variable entries.
6572 (s390_arch_option): New Enum and EnumValue entries.
6573 (march=): Use Enum instead of Var.
6574 (mstack-guard=, mstack-size=): Use UInteger and Var.
6577 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6579 * config/score/score.c (score_handle_option): Don't assert that
6580 global structures are in use. Access target_flags via opts
6581 pointer. Use value of -march= option to determine target_flags
6583 * config/score/score.opt (march=): Use Enum.
6584 (score_arch): New Enum and EnumValue entries.
6586 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6588 * config/mep/mep.c (option_mtiny_specified): Remove.
6589 (mep_option_override): Move register handling for -mivc2 from
6590 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
6591 instead of option_mtiny_specified.
6592 (mep_handle_option): Access target_flags via opts pointer. Don't
6593 assert that global structures are in use. Defer part of -mivc2
6594 handling and move it to mep_option_override.
6595 * config/mep/mep.opt (IVC2): New Mask entry.
6596 (mivc2): Use Var and Defer instead of Mask.
6598 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6600 * config/v850/v850-opts.h: New.
6601 * config/v850/v850.c (small_memory): Replace with
6602 small_memory_physical_max array. Make that array static const.
6603 (v850_handle_memory_option): Take integer value of argument. Take
6604 gcc_options pointer, option text and location. Return void.
6605 Update for changes to small memory structures.
6606 (v850_handle_option): Access target_flags via opts pointer. Don't
6607 assert that global structures are in use. Update calls to
6608 v850_handle_memory_option.
6609 (v850_encode_data_area): Update references to small memory settings.
6610 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
6611 (enum small_memory_type): Move to v850-opts.h.
6612 * config/v850/v850.opt (config/v850/v850-opts.h): New
6613 HeaderInclude entry.
6614 (small_memory_max): New Variable entry.
6615 (msda): Replace by pair of options msda= and msda-. Use UInteger.
6616 (mtda, mzda): Likewise.
6618 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6620 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
6621 pointer. Don't assert that global structures are in use.
6623 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6625 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
6626 via opts pointer. Don't assert that global structures are in use.
6628 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6630 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
6631 (munix=93): Use Var.
6632 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
6633 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
6634 * config/pa/pa-opts.h: New.
6635 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
6636 (pa_handle_option): Don't assert that global structures are in
6637 use. Access target_flags via opts pointer. Don't handle
6638 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
6640 (pa_option_override): Handle deferred OPT_mfixed_range_.
6642 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6644 * config/mn10300/mn10300-opts.h: New.
6645 * config/mn10300/mn10300.c (mn10300_processor,
6646 mn10300_tune_string): Remove.
6647 (mn10300_handle_option): Don't assert that global structures are
6648 in use. Access mn10300_processor via opts pointer. Don't handle
6650 * config/mn10300/mn10300.h (enum processor_type): Move to
6652 (mn10300_processor): Remove.
6653 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
6654 HeaderInclude entry.
6655 (mn10300_processor): New Variable entry.
6658 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6660 * config/microblaze/microblaze.c: Don't include opts.h.
6661 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
6662 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
6663 (mno-clearbss): Use Var and Warn.
6665 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6667 * config/m32r/m32r-opts.h: New.
6668 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
6669 (m32r_handle_option): Don't assert that global structures are in
6670 use. Access target_flags and m32r_cache_flush_func via opts
6671 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
6672 OPT_mno_flush_trap here.
6673 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
6674 include of m32r-opts.h.
6675 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
6676 HeaderInclude entry.
6677 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
6678 (mmodel=): Use Enum and Var.
6679 (m32r_model): New Enum and EnumValue entries.
6680 (mno-flush-trap): Use Var.
6681 (msdata=): Use Enum and Var.
6682 (m32r_sdata): New Enum and EnumValue entries.
6684 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6686 * config/m32c/m32c.c: Don't include opts.h.
6687 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
6688 m32c_handle_option): Remove.
6689 (m32c_option_override): Check global_options_set.x_target_memregs
6690 instead of target_memregs_set.
6691 * config/m32c/m32c.h (target_memregs): Remove.
6692 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
6695 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6697 * config/iq2000/iq2000-opts.h: New.
6698 * config/iq2000/iq2000.c: Don't include opts.h.
6699 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
6700 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
6701 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
6702 HeaderInclude entry.
6703 (iq2000_tune): New Variable entry.
6704 (march=): Add comment. Use Enum.
6705 (iq2000_arch): New Enum and EnumValue entries.
6706 (mcpu=): Use Enum and Var.
6707 (iq2000_tune): New Enum and EnumValue entries.
6709 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6711 * config/ia64/ia64-opts.h: New.
6712 * config/ia64/ia64.c (ia64_tune): Remove.
6713 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
6715 (ia64_option_override): Handle deferred OPT_mfixed_range_.
6716 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
6717 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
6718 HeaderInclude entry.
6719 (ia64_tune): New Variable entry.
6720 (mfixed-range=): Use Defer and Var.
6721 (mtune=): Use Enum and Var.
6722 (ia64_tune): New Enum and EnumValue entries.
6724 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6726 * config/frv/frv-opts.h: New.
6727 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
6729 (frv_cpu_type): Remove.
6730 * config/frv/frv.c: Don't include opts.h.
6731 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
6732 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
6733 (frv_cpu_type): New Variable entry.
6734 (frv_cpu): New Enum and EnumValue entries.
6736 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6738 * config/cris/cris.c (cris_handle_option): Access target_flags via
6739 opts pointer. Don't assert that global structures are in use.
6740 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
6741 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
6743 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6745 * config/bfin/bfin-opts.h: New.
6746 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
6747 bfin_si_revision, bfin_workarounds): Remove.
6748 (bfin_cpus): Make static const.
6749 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
6750 not bfin_lib_id_given.
6751 (bfin_handle_option): Don't set bfin_lib_id_given. Access
6752 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
6753 pointer. Use error_at. Don't assert that global structures are in use.
6754 * config/bfin/bfin.h: Include bfin-opts.h.
6755 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
6756 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
6757 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
6758 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
6761 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6763 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
6764 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
6765 or -msoft-float here.
6766 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
6767 -msoft-float and -mhard-float.
6768 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
6769 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6771 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
6773 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
6774 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
6776 (LIBGCC_SPEC): Don't handle -msoft-float.
6777 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
6779 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6781 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
6782 -mfloat-abi=*, not -msoft-float and -mhard-float.
6783 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
6785 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
6786 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
6787 mhard-float and msoft-float.
6788 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
6789 mfloat-abi=soft in comments, not mhard-float and msoft-float.
6790 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6791 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
6793 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
6794 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
6796 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
6798 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
6801 2011-03-22 Richard Henderson <rth@redhat.com>
6803 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
6804 TARGET_ABI_WINDOWS_NT.
6805 (alpha_output_function_end_prologue): Likewise.
6806 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
6807 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6808 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
6809 (trap, *movsi_nt_vms): Likewise.
6810 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
6811 (*tablejump_osf_nt_internal): Remove.
6812 * config/alpha/predicates.md (input_operand): Only test Pmode.
6814 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6816 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
6817 via opts pointer. Use error_at. Don't assert that global
6818 structures are in use.
6820 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6822 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
6823 (ix86_handle_option): Access ix86_isa_flags and
6824 ix86_isa_flags_explicit via opts pointer. Don't assert that
6825 global structures are in use.
6826 (ix86_function_specific_save, ix86_function_specific_restore):
6827 Update ix86_isa_flags_explicit field name.
6828 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
6829 (ix86_isa_flags_explicit): Rename TargetSave entry to
6830 x_ix86_isa_flags_explicit.
6832 2011-03-22 Richard Henderson <rth@redhat.com>
6834 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
6835 (alpha_option_override, direct_return): Likewise.
6836 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
6837 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
6838 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
6839 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6840 (alpha_expand_epilogue, alpha_end_function): Likewise.
6841 (alpha_init_libfuncs): Likewise.
6842 (struct machine_function): Remove unicosmk members.
6843 (print_operand) ['t']: Remove.
6844 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
6845 unicosmk_output_module_name, unicosmk_output_common,
6846 current_section_align, unicosmk_output_text_section_asm_op,
6847 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
6848 unicosmk_section_type_flags, unicosmk_unique_section,
6849 unicosmk_asm_named_section, unicosmk_insert_attributes,
6850 unicosmk_output_align, unicosmk_defer_case_vector,
6851 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
6852 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
6853 unicosmk_output_ssib, unicosmk_add_call_info_word,
6854 unicosmk_extern_head, unicosmk_output_default_externs,
6855 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
6856 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
6857 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
6858 * config/alpha/alpha-protos.h: Update.
6859 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
6860 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
6861 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
6862 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
6863 (*mulsi_se, mulvsi3): Likewise.
6864 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
6865 (*divmodsi_internal, call, call_value, realign): Likewise.
6866 (moddi3, umoddi3): Likewise; remove duplicate expander.
6867 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
6868 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
6869 (*movdi_nofix): Remove r/U alternative.
6870 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
6871 * config/alpha/constraints.md ("U"): Remove.
6872 * config/alpha/predicates.md (call_operand"): Don't test
6873 TARGET_ABI_UNICOSMK.
6875 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6877 * target.def (handle_option): Take gcc_options and
6878 cl_decoded_option pointers and location_t.
6879 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6880 * doc/tm.texi: Regenerate.
6881 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6882 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6883 * lto-opts.c (lto_reissue_options): Generate option structure for
6884 targetm.handle_option call.
6885 * opts.c (target_handle_option): Update call to
6886 targetm.handle_option. Remove assertions about values now passed
6888 * targhooks.c (default_target_handle_option): New.
6889 * targhooks.h (default_target_handle_option): Declare.
6890 * config/alpha/alpha.c: Include opts.h.
6891 (alpha_handle_option): Update to new hook interface.
6892 * config/arm/arm.c: Include opts.h.
6893 (arm_handle_option): Update to new hook interface.
6894 * config/arm/t-arm (arm.o): Update dependencies.
6895 * config/bfin/bfin.c: Include opts.h.
6896 (bfin_handle_option): Update to new hook interface.
6897 * config/cris/cris.c: Include opts.h.
6898 (cris_handle_option): Update to new hook interface.
6899 * config/frv/frv.c: Include opts.h.
6900 (frv_handle_option): Update to new hook interface.
6901 * config/i386/i386.c: Include opts.h.
6902 (ix86_handle_option): Update to new hook interface.
6903 (ix86_valid_target_attribute_inner_p): Generate option structure
6904 for call to ix86_handle_option.
6905 * config/i386/t-i386 (i386.o): Update dependencies.
6906 * config/ia64/ia64.c: Include opts.h.
6907 (ia64_handle_option): Update to new hook interface.
6908 * config/ia64/t-ia64 (ia64.o): Update dependencies.
6909 * config/iq2000/iq2000.c: Include opts.h.
6910 (iq2000_handle_option): Update to new hook interface.
6911 * config/m32c/m32c.c: Include opts.h.
6912 (m32c_handle_option): Update to new hook interface.
6913 * config/m32r/m32r.c: Include opts.h.
6914 (m32r_handle_option): Update to new hook interface.
6915 * config/m68k/m68k.c: Include opts.h.
6916 (m68k_handle_option): Update to new hook interface.
6917 * config/mep/mep.c: Include opts.h.
6918 (mep_handle_option): Update to new hook interface.
6919 * config/microblaze/microblaze.c: Include opts.h.
6920 (microblaze_handle_option): Update to new hook interface.
6921 * config/mips/mips.c: Include opts.h.
6922 (mips_handle_option): Update to new hook interface.
6923 * config/mn10300/mn10300.c: Include opts.h.
6924 (mn10300_handle_option): Update to new hook interface.
6925 * config/pa/pa.c: Include opts.h.
6926 (pa_handle_option): Update to new hook interface.
6927 * config/pdp11/pdp11.c: Include opts.h.
6928 (pdp11_handle_option): Update to new hook interface.
6929 * config/rs6000/rs6000.c: Include opts.h.
6930 (rs6000_handle_option): Update to new hook interface.
6931 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6932 * config/rx/rx.c: Include opts.h.
6933 (rx_handle_option): Update to new hook interface.
6934 * config/s390/s390.c: Include opts.h.
6935 (s390_handle_option): Update to new hook interface.
6936 * config/score/score.c: Include opts.h.
6937 (score_handle_option): Update to new hook interface.
6938 * config/sh/sh.c: Include opts.h.
6939 (sh_handle_option): Update to new hook interface.
6940 * config/sparc/sparc.c: Include opts.h.
6941 (sparc_handle_option): Update to new hook interface.
6942 * config/v850/v850.c: Include opts.h.
6943 (v850_handle_option): Update to new hook interface.
6945 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6947 * gcc.c (driver_unknown_option_callback): Only permit and save
6948 unknown -Wno- options.
6949 (driver_wrong_lang_callback): Save options directly instead of via
6950 driver_unknown_option_callback.
6952 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6954 * combine.c (simplify_set): Try harder to find the best CC mode when
6955 simplifying a nested COMPARE on the RHS.
6957 2011-03-22 Joseph Myers <joseph@codesourcery.com>
6959 * config/alpha/gnu.h: Remove.
6960 * config/arc: Remove directory.
6961 * config/arm/netbsd.h: Remove.
6962 * config/arm/t-pe: Remove.
6963 * config/crx: Remove directory.
6964 * config/i386/netbsd.h: Remove.
6965 * config/m68hc11: Remove directory.
6966 * config/m68k/uclinux-oldabi.h: Remove.
6967 * config/mcore/mcore-pe.h: Remove.
6968 * config/mcore/t-mcore-pe: Remove.
6969 * config/netbsd-aout.h: Remove.
6970 * config/rs6000/gnu.h: Remove.
6971 * config/sh/sh-symbian.h: Remove.
6972 * config/sh/symbian-base.c: Remove.
6973 * config/sh/symbian-c.c: Remove.
6974 * config/sh/symbian-cxx.c: Remove.
6975 * config/sh/symbian-post.h: Remove.
6976 * config/sh/symbian-pre.h: Remove.
6977 * config/sh/t-symbian: Remove.
6978 * config/svr3.h: Remove.
6979 * config/vax/netbsd.h: Remove.
6980 * config.build: Don't handle i[34567]86-*-pe.
6981 * config.gcc: Remove handling of deprecations for most deprecated
6983 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6984 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6985 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6986 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6987 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6988 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6990 * config.host: Don't handle i[34567]86-*-pe.
6991 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6992 (ASM_SPEC32): Don't handle -mcall-gnu.
6993 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6995 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6996 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6997 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6998 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6999 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
7000 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
7001 conditional on SYMBIAN.
7002 * configure.ac: Don't handle powerpc*-*-gnu*.
7003 * configure: Regenerate.
7004 * doc/extend.texi (interrupt attribute): Don't mention CRX.
7005 * doc/install-old.texi (m6811, m6812): Don't mention.
7006 * doc/install.texi (arc-*-elf*): Don't document multilib option.
7007 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
7008 (m68k-uclinuxoldabi): Don't mention.
7009 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
7011 (-mcall-gnu): Remove.
7012 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
7013 families): Remove constraint documentation.
7015 2011-03-22 Marius Strobl <marius@FreeBSD.org>
7017 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
7018 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
7019 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7021 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7024 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
7025 vector when peeking at the next token for vector, don't expand the
7028 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
7030 * config/avr/avr-protos.h (expand_epilogue): Change prototype
7031 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
7032 * config/avr/avr.c (init_cumulative_args)
7033 (avr_function_arg_advance): Use it.
7034 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
7036 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
7037 (avr_function_ok_for_sibcall): ...this new function.
7038 (avr_lookup_function_attribute1): New static Function.
7039 (avr_naked_function_p, interrupt_function_p)
7040 (signal_function_p, avr_OS_task_function_p)
7041 (avr_OS_main_function_p): Use it.
7042 * config/avr/avr.md ("sibcall", "sibcall_value")
7043 ("sibcall_epilogue"): New expander.
7044 ("*call_insn", "*call_value_insn"): New insn.
7045 ("call_insn", "call_value_insn"): Remove
7046 ("call", "call_value", "epilogue"): Change expander to handle
7049 2011-03-21 Nick Clifton <nickc@redhat.com>
7051 * doc/invoke.texi (Overall Options): Move closing brace to end of
7053 (Optimization Options): Add missing @gol.
7054 (Directory Options): Likewise.
7055 (i386 and x86-64 Options): Likewise.
7056 (RS6000 and PowerPC Options): Likewise.
7057 (i386 and x86-64 Windows Options): Likewise.
7058 (V850 Options): Add text missing from descriptions.
7060 2011-03-22 Richard Henderson <rth@redhat.com>
7062 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
7063 (avr_incoming_return_addr_rtx): New.
7064 (emit_push_byte): New.
7065 (expand_prologue): Use it. Remove incorrect dwarf annotation for
7066 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
7067 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
7068 (emit_pop_byte): New.
7069 (expand_epilogue): Use it. Pop frame pointer by bytes.
7070 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
7071 (INCOMING_RETURN_ADDR_RTX): New.
7072 (INCOMING_FRAME_SP_OFFSET): New.
7073 (ARG_POINTER_CFA_OFFSET): New.
7074 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
7075 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
7078 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
7080 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7082 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7083 (FUNCTION_ARG_ADVANCE): Likewise.
7084 * tm.texi.in: Change references to them to hook references.
7085 * tm.texi: Regenerate.
7086 * targhooks.c (default_function_arg): Eliminate check for target
7088 (default_function_incoming_arg): Likewise.
7089 (default_function_arg_advance): Likewise.
7090 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7091 (function_arg_advance): Likewise.
7092 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7094 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7096 * tree.c (build_call_1): New function.
7097 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
7099 2011-03-22 Richard Guenther <rguenther@suse.de>
7101 PR tree-optimization/48228
7102 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
7103 for single-arg PHIs.
7105 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
7107 PR rtl-optimization/48143
7108 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
7109 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
7110 sse2_cvtps2pd): Likewise.
7112 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7114 * recog.c (canonicalize_change_group): Use validate_unshare_change.
7116 2011-03-22 Richard Guenther <rguenther@suse.de>
7118 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
7119 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
7120 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
7121 and REALIGN_LOAD_EXPR.
7122 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
7123 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
7124 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
7125 DOT_PROD_EXPR case ...
7126 (expand_expr_real_2): ... here.
7127 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
7128 and REALIGN_LOAD_EXPR.
7129 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
7130 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
7131 (vect_create_epilog_for_reduction): Likewise.
7132 (vectorizable_reduction): Likewise.
7133 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
7134 * tree-vect-stmts.c (vectorizable_load): Likewise.
7136 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
7138 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
7140 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7142 * config/s390/s390.c (s390_delegitimize_address): Fix offset
7143 handling for PLTOFF/GOTOFF.
7145 2011-03-22 Nick Clifton <nickc@redhat.com>
7147 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
7148 trailing backslash from the end of the macro definition.
7150 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7152 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
7155 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
7157 * expr.h (prepare_operand): Move to...
7158 * optabs.h (prepare_operand): ...here and change the insn code
7159 parameter from "int" to "enum insn_code".
7160 (insn_operand_matches): Declare.
7161 * expr.c (init_expr_target): Use insn_operand_matches.
7162 (compress_float_constant): Likewise.
7163 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
7164 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
7165 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
7166 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
7168 (gen_cond_trap): Likewise.
7169 (prepare_operand): Likewise. Change icode to an insn_code.
7170 (insn_operand_matches): New function.
7171 * reload.c (find_reloads_address_1): Use insn_operand_matches.
7172 * reload1.c (gen_reload): Likewise.
7173 * targhooks.c (default_secondary_reload): Likewise.
7175 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
7177 * config/alpha/alpha.md (unspec): New define_c_enum.
7180 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
7183 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
7184 between a call and its CALL_ARG_LOCATION note.
7186 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
7188 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
7190 2011-03-21 Jakub Jelinek <jakub@redhat.com>
7194 * c-common.c (shorten_compare): If primopN is first sign-extended
7195 to opN and then zero-extended to result type, set primopN to opN.
7197 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7199 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
7200 for barrier handlers.
7202 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7204 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
7205 UNSPEC constants to be in the unspec enumeration, and redefine
7206 all UNSPECV constants to be in the unspecv enumeration, so that
7207 dumps print which unspec/unspec_volatile this is.
7208 * config/rs6000/vector.md (UNSPEC_*): Ditto.
7209 * config/rs6000/paired.md (UNSPEC_*): Ditto.
7210 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
7211 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
7212 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
7214 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
7215 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
7216 UNSPECV_LWSYNC, since these are used as unspec_volatile.
7217 * config/rs6000/sync.md (isync, lwsync): Ditto.
7219 2011-03-21 Richard Guenther <rguenther@suse.de>
7221 * params.def (lto-min-partition): Fix typo.
7223 2011-03-21 Richard Guenther <rguenther@suse.de>
7226 * c-decl.c (grokdeclarator): Drop to the main variant only
7227 for array types. Drop flag_gen_aux_info check.
7229 2011-03-21 Richard Guenther <rguenther@suse.de>
7231 PR translation/47911
7232 * params.def (lto-partitions): Fix typo.
7233 (lto-min-partition): Fix wording.
7235 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
7237 * config/rs6000/t-freebsd: Remove duplication from file.
7239 2011-03-21 Richard Guenther <rguenther@suse.de>
7242 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
7244 2011-03-21 Richard Guenther <rguenther@suse.de>
7247 * params.def (lto-partitions): Require at least 1 partition.
7249 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7251 * gthr-solaris.h: Remove.
7252 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
7253 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
7254 (LIB_SPEC): Likewise.
7255 * config/sol2.opt (threads): Remove.
7256 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
7257 (sparc*-*-solaris2*): Likewise.
7258 * configure.ac (enable_threads): Enable solaris support.
7259 * configure: Regenerate.
7260 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
7261 * doc/install.texi (Configuration, --enable-threads=lib): Remove
7264 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7266 * config.gcc: Obsolete *-*-solaris2.8*.
7267 * doc/install.texi (Specific, *-*-solaris2*): Document it.
7269 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7272 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
7273 reference. Solaris 8 perl works.
7275 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7278 * doc/install.texi (Prerequisites): Move jar etc. up.
7279 Explain support library version requirements.
7281 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7284 * doc/install.texi (Prerequisites): Move Perl to build
7285 requirements. Always necessary on Solaris 2 with Sun ld.
7287 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7289 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
7291 (Specific, i?86-*-solaris2.[89]): Likewise.
7292 (Specific, i?86-*-solaris2.10): Likewise.
7293 (Specific, mips-sgi-irix6): Likewise.
7294 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
7295 Update for binutils 2.21.
7297 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7299 * configure.ac (gcc_cv_lto_plugin): Fix typo.
7300 Allow -fuse-linker-plugin for non-default plugin linker.
7301 * configure: Regenerate.
7303 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
7306 * gengtype.c (files_rules): Added rule for cp/parser.h.
7308 2011-03-21 Jakub Jelinek <jakub@redhat.com>
7311 * config/s390/s390.c (s390_delegitimize_address): Don't call
7312 lowpart_subreg if orig_x has BLKmode.
7314 2011-03-21 Kai Tietz <ktietz@redhat.com>
7317 * doc/plugins.texi: Adjust documentation for plugin register_callback.
7318 * tree.h (attribute_spec): Add new member affects_type_identity.
7319 * attribs.c (empty_attribute_table): Adjust attribute_spec
7321 * config/alpha/alpha.c: Likewise.
7322 * config/arc/arc.c: Likewise.
7323 * config/arm/arm.c: Likewise.
7324 * config/avr/avr.c: Likewise.
7325 * config/bfin/bfin.c: Likewise.
7326 * config/crx/crx.c: Likewise.
7327 * config/darwin.h: Likewise.
7328 * config/h8300/h8300.c: Likewise.
7329 * config/i386/cygming.h: Likewise.
7330 * config/i386/i386.c: Likewise.
7331 * config/ia64/ia64.c: Likewise.
7332 * config/m32c/m32c.c: Likewise.
7333 * config/m32r/m32r.c: Likewise.
7334 * config/m68hc11/m68hc11.c: Likewise.
7335 * config/m68k/m68k.c: Likewise.
7336 * config/mcore/mcore.c: Likewise.
7337 * config/mep/mep.c: Likewise.
7338 * config/microblaze/microblaze.c: Likewise.
7339 * config/mips/mips.c: Likewise.
7340 * config/rs6000/rs6000.c: Likewise.
7341 * config/rx/rx.c: Likewise.
7342 * config/sh/sh.c: Likewise.
7343 * config/sol2.h: Likewise.
7344 * config/sparc/sparc.c: Likewise.
7345 * config/spu/spu.c: Likewise.
7346 * config/stormy16/stormy16.c: Likewise.
7347 * config/v850/v850.c: Likewise.
7349 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
7351 * simplify-rtx.c (simplify_binary_operation_1): Handle
7352 (xor (and A B) C) case when B and C are both constants.
7354 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
7356 * tree-dfa.c (add_referenced_var): Fix typo in comment.
7358 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
7361 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
7363 2011-03-20 Jakub Jelinek <jakub@redhat.com>
7365 PR rtl-optimization/48156
7366 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
7367 assume df and df_lr are not NULL.
7369 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7372 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
7373 between a call and its CALL_ARG_LOCATION note.
7375 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
7378 * config/sh/sh.c (find_barrier): Don't emit a constant pool
7379 between a call and its corresponding CALL_ARG_LOCATION note.
7381 2011-03-19 Anatoly Sokolov <aesok@post.ru>
7383 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
7384 instead of loop. Use HARD_REGISTER_NUM_P predicate.
7385 * haifa-sched.c (setup_ref_regs): Ditto.
7386 * caller-save.c (add_used_regs_1): Ditto.
7387 * dse.c (look_for_hardregs): Ditto.
7388 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
7389 * sched-rgn.c (check_live_1): Ditto.
7391 2011-03-18 Joseph Myers <joseph@codesourcery.com>
7393 * c-decl.c (diagnose_mismatched_decls): Give an error for
7394 redefining a typedef with variably modified type.
7396 2011-03-18 Joseph Myers <joseph@codesourcery.com>
7398 * c-decl.c (grokfield): Don't allow typedefs for structures or
7399 unions with no tag by default.
7400 * doc/extend.texi (Unnamed Fields): Update.
7402 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
7404 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
7405 Rewrite using indirect functions.
7406 (lwp_slwpcb): Ditto.
7407 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
7408 (avx_vinsertf128<mode>): Ditto.
7410 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7412 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
7415 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7417 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
7418 splitting between a call and its corresponding CALL_ARG_LOCATION note.
7420 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
7422 PR rtl-optimization/48170
7423 * gcse.c (hoist_code): Remove bogus asserts.
7425 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
7427 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
7428 computation for prologue/epilogue.
7430 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7432 * Makefile.in (check-consistency): Remove.
7434 2011-03-18 Jakub Jelinek <jakub@redhat.com>
7437 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
7438 arange_table_in_use is 0, but either text_section_used or
7439 cold_text_section_used is true. Don't call it if
7440 !info_section_emitted.
7442 2011-03-18 Anatoly Sokolov <aesok@post.ru>
7444 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
7445 FUNCTION_VALUE_REGNO_P): Remove.
7446 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
7448 * config/avr/avr.c (avr_ret_register): Make static inline.
7449 (avr_function_value_regno_p): New function.
7450 (avr_libcall_value): Make static. Add 'func' argument.
7451 (avr_function_value): Make static. Rename 'func' argument to
7452 'fn_decl_or_type', forward it to avr_libcall_value. Call
7453 avr_ret_register function instead of RET_REGISTER macro.
7454 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7456 2011-03-18 Jason Merrill <jason@redhat.com>
7459 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
7461 2011-03-18 Richard Guenther <rguenther@suse.de>
7463 * doc/install.texi (--enable-gold): Remove.
7464 (--with-plugin-ld): Document.
7465 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
7467 2011-03-18 Andrew Pinski <pinskia@gmail.com>
7470 * expr.c (optimize_bitfield_assignment_op): Revamp to work
7471 again after expansion changes.
7473 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
7475 * combine.c (try_combine): Do simplification only call of
7476 subst() on i2 even when i1 is present. Update comments.
7478 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
7480 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
7481 and UNSPEC_PCREL_SYMOFF.
7483 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7485 * config/s390/s390.md: Use define_c_enum for the unspec constant
7488 2011-03-18 Richard Henderson <rth@redhat.com>
7489 Jakub Jelinek <jakub@redhat.com>
7492 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
7493 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
7495 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7498 * combine.c (cant_combine_insn_p): Don't check zero/sign
7499 extended hard registers.
7501 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7504 * combine.c (cant_combine_insn_p): Check zero/sign extended
7507 2011-03-17 Anatoly Sokolov <aesok@post.ru>
7509 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7510 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
7511 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
7512 Change return type to bool.
7513 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7515 2011-03-17 Jakub Jelinek <jakub@redhat.com>
7518 * var-tracking.c (prepare_call_arguments): If CALL target
7519 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
7520 pc instead of looking it up using cselib_lookup and use
7521 Pmode for it if x has VOIDmode.
7522 * dwarf2out.c (gen_subprogram_die): If also both first and
7523 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
7526 * function.c (assign_parms): For data.passed_pointer parms
7527 use MEM of data.entry_parm instead of data.entry_parm itself
7528 as DECL_INCOMING_RTL.
7529 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
7530 also when passed and declared mode is the same, DECL_RTL
7531 is a MEM with pseudo as address and DECL_INCOMING_RTL is
7534 2011-03-16 Jeff Law <law@redhat.com>
7536 PR rtl-optimization/37273
7537 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7538 handle them like argument loads from stack slots. Do not double
7539 count memory for memory constants and argument loads from stack slots.
7541 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7544 * var-tracking.c (prepare_call_arguments): Check SUBREG.
7546 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
7549 * config/i386/i386.opt: Add Save to -mavx and -mfma.
7551 2011-03-17 Jakub Jelinek <jakub@redhat.com>
7554 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
7556 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
7557 Clear call_arg_locations and call_arg_loc_last always.
7560 * var-tracking.c (prepare_call_arguments): If argument needs to be
7561 passed by reference, adjust argtype and mode.
7563 2011-03-17 Richard Guenther <rguenther@suse.de>
7566 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
7567 a value make sure to fold the statement.
7569 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
7572 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
7573 return condition with !cfun->calls_alloca.
7575 2011-03-17 Richard Guenther <rguenther@suse.de>
7578 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7579 origin for decls in other ltrans units.
7580 (input_varpool_node): Likewise.
7582 2011-03-17 Richard Guenther <rguenther@suse.de>
7585 * tree-object-size.c (compute_object_offset): Properly return
7586 the offset operand of MEM_REFs as sizetype.
7588 2011-03-17 Jakub Jelinek <jakub@redhat.com>
7590 PR rtl-optimization/48141
7591 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
7592 * dse.c: Include params.h.
7593 (active_local_stores_len): New variable.
7594 (add_wild_read, dse_step1): Clear it when setting active_local_stores
7596 (record_store, check_mem_read_rtx): Decrease it when removing
7598 (scan_insn): Likewise. Increase it when adding to chain, if it
7599 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
7600 set active_local_stores to NULL before the addition.
7601 * Makefile.in (dse.o): Depend on $(PARAMS_H).
7603 PR rtl-optimization/48141
7604 * dse.c (record_store): If no positions are needed in an insn
7605 that cannot be deleted, at least unchain it from active_local_stores.
7607 2011-03-16 Dodji Seketeli <dodji@redhat.com>
7610 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
7611 (lookup_type_die_strip_naming_typedef): ... here.
7612 (get_context_die): Use it.
7613 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
7614 the anonymous struct named by the naming typedef.
7616 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
7619 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
7620 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7622 2011-03-16 Jeff Law <law@redhat.com>
7624 * tree-vrp.c (identify_jump_threads): Slightly simplify type
7625 check for operands of conditional. Allow type to be a pointer.
7627 2011-03-16 Richard Guenther <rguenther@suse.de>
7629 PR tree-optimization/48149
7630 * fold-const.c (fold_binary_loc): Fold
7631 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
7633 2011-03-16 Richard Guenther <rguenther@suse.de>
7635 PR tree-optimization/26134
7636 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
7637 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
7638 (non_rewritable_mem_ref_base): Handle complex type component
7639 accesses, constrain offsets for vector and complex extracts
7642 2011-03-16 Richard Guenther <rguenther@suse.de>
7644 PR tree-optimization/48146
7645 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
7646 operands avoiding the need for renaming.
7648 2011-03-16 Richard Guenther <rguenther@suse.de>
7650 * gimple-fold.c (maybe_fold_reference): Open-code relevant
7651 constant folding. Move MEM_REF canonicalization first.
7652 Rely on fold_const_aggregate_ref for initializer folding.
7653 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
7655 2011-03-16 Jakub Jelinek <jakub@redhat.com>
7658 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7659 arg0/arg1 or their arguments are always fold converted to matching
7662 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
7665 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7668 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
7669 Handle in-tree gold.
7670 (ld_vers): Extract binutils version for gold.
7671 (gcc_cv_ld_hidden): Handle gold here.
7672 (gcc_cv_lto_plugin): Determine level of linker plugin support.
7673 * configure: Regenerate.
7674 * config.in: Regenerate.
7675 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
7676 -fuse-linker-plugin otherwise.
7677 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
7678 (LINK_COMMAND_SPEC): Use it.
7679 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
7681 2011-03-16 Jakub Jelinek <jakub@redhat.com>
7683 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
7684 * calls.c: Remove debug.h include.
7685 (emit_call_1): Don't call virtual_call_token debug hook.
7686 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
7687 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
7688 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
7689 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
7690 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
7691 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
7692 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
7693 dwarf2out_virtual_call): Remove.
7694 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
7695 copy_call_info and virtual_call hooks.
7696 (dwarf2out_init): Don't initialize vcall_insn_table,
7697 debug_dcall_section and debug_vcall_section.
7698 (prune_unused_types): Don't mark nodes from dcall_table.
7699 (dwarf2out_finish): Don't output dcall or vcall tables.
7700 * final.c (final_scan_insn): Don't call direct_call or
7701 virtual_call debug hooks.
7702 * debug.h (struct gcc_debug_hooks): Remove direct_call,
7703 virtual_call_token, copy_call_info and virtual_call hooks.
7704 (debug_nothing_uid): Remove prototype.
7705 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
7706 copy_call_info and virtual_call hooks.
7707 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7708 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
7709 * debug.c (do_nothing_debug_hooks): Likewise.
7710 (debug_nothing_uid): Remove.
7711 * doc/invoke.texi (-fenable-icf-debug): Remove.
7712 * common.opt (-fenable-icf-debug): Likewise.
7714 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
7715 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
7716 call's MEM. Handle functions returning aggregate through a hidden
7717 first pointer. For virtual calls add clobbered pc to call arguments
7719 * dwarf2out.c (gen_subprogram_die): Emit
7720 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
7724 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
7725 * rtl.h (ENTRY_VALUE_EXP): Define.
7726 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
7727 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7728 * print-rtl.c (print_rtx): Likewise.
7729 * gengtype.c (adjust_field_rtx_def): Likewise.
7730 * var-tracking.c (vt_add_function_parameter): Adjust
7731 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
7732 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
7733 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
7734 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
7735 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
7737 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
7738 Call var_location debug hook even on CALL_INSNs.
7739 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
7740 * rtl.def (ENTRY_VALUE): New.
7741 * dwarf2out.c: Include cfglayout.h.
7742 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7743 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
7744 (struct call_arg_loc_node): New type.
7745 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
7746 tail_call_site_count): New variables.
7747 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
7748 DW_TAG_GNU_call_site_parameter.
7749 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
7750 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
7751 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
7752 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
7753 and DW_AT_GNU_all_source_call_sites.
7754 (mem_loc_descriptor): Handle ENTRY_VALUE.
7755 (add_src_coords_attributes): Don't add enything if
7756 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
7757 (dwarf2out_abstract_function): Save and clear call_arg_location,
7758 call_site_count and tail_call_site_count around dwarf2out_decl call.
7759 (gen_call_site_die): New function.
7760 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
7761 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
7762 (dwarf2out_function_decl): Clear call_arg_locations,
7763 call_arg_loc_last, set call_site_count and tail_call_site_count
7764 to -1 and free block_map.
7765 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
7766 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
7767 followed by any real instructions.
7768 (dwarf2out_begin_function): Set call_site_count and
7769 tail_call_site_count to 0.
7770 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
7771 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
7772 attempt to force a DIE for it and worst case remove the attribute.
7773 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
7774 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
7776 * var-tracking.c: Include tm_p.h.
7777 (vt_stack_adjustments): For calls call note_register_arguments.
7778 (argument_reg_set): New variable.
7779 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
7780 ensure the VALUE is resolved.
7781 (call_arguments): New variable.
7782 (prepare_call_arguments): New function.
7783 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
7784 (struct expand_loc_callback_data): Add ignore_cur_loc field.
7785 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
7786 always use the best expression.
7787 (vt_expand_loc): Add ignore_cur_loc argument.
7788 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
7789 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
7790 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
7792 (vt_add_function_parameter): Use cselib_lookup_from_insn.
7793 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
7794 argument. Don't call cselib_preserve_only_values and
7796 (note_register_arguments): New function.
7797 (vt_initialize): Compute argument_reg_set. Call
7798 vt_add_function_parameters before processing basic blocks instead of
7799 afterwards. For calls call prepare_call_arguments before calling
7800 cselib_process_insn.
7801 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
7802 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
7803 (var-tracking.o): Depend on $(TM_P_H).
7804 * cfglayout.h (insn_scope): New prototype.
7805 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
7806 * cfglayout.c (insn_scope): No longer static.
7807 * insn-notes.def (CALL_ARG_LOCATION): New.
7808 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
7809 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
7810 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
7811 nothing for DECL_EXTERNAL BLOCK_VARS.
7813 2011-03-16 Alan Modra <amodra@gmail.com>
7816 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
7817 create invalid offset address for vsx splat insn.
7818 * config/rs6000/predicates.md (splat_input_operand): New.
7819 * config/rs6000/vsx.md (vsx_splat_*): Use it.
7821 2011-03-15 Xinliang David Li <davidxl@google.com>
7824 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
7825 (normalize_preds): New function.
7826 (is_use_properly_guarded): Normalize def predicates.
7828 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7831 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
7832 in the output template.
7834 2011-03-15 Richard Guenther <rguenther@suse.de>
7837 * tree-pretty-print.c (dump_function_declaration): Properly
7838 dump unprototyped and varargs function types.
7840 2011-03-15 Richard Guenther <rguenther@suse.de>
7842 PR tree-optimization/13954
7843 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
7846 2011-03-15 Richard Guenther <rguenther@suse.de>
7848 PR tree-optimization/48037
7849 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
7850 selects into BIT_FIELD_REFs.
7851 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
7854 2011-03-15 Jakub Jelinek <jakub@redhat.com>
7856 PR tree-optimization/48129
7857 * builtins.c (fold_builtin_snprintf): Convert to type of
7858 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
7859 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
7861 2011-03-15 Richard Guenther <rguenther@suse.de>
7863 PR tree-optimization/41490
7864 * tree-ssa-dce.c (propagate_necessity): Handle returns without
7865 value but with VUSE.
7866 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
7868 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
7869 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
7870 * tree-tailcall.c (find_tail_calls): Ignore returns.
7872 2011-03-15 Richard Guenther <rguenther@suse.de>
7875 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
7876 or variable-indexed array accesses when in gimple form.
7878 2011-03-15 Richard Guenther <rguenther@suse.de>
7880 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
7882 2011-03-15 Alan Modra <amodra@gmail.com>
7885 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7886 presume symbol_refs without a symbol_ref_decl are suitably
7887 aligned, nor other trees we may see here. Handle anchor symbols.
7888 (legitimate_constant_pool_address_p): Comment. Add mode param.
7889 Check cmodel=medium addresses. Adjust all calls.
7890 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7891 creating cmodel=medium optimized access to locals.
7892 * config/rs6000/constraints.md (R): Pass QImode to
7893 legitimate_constant_pool_address_p.
7894 * config/rs6000/predicates.md (input_operand): Pass mode to
7895 legitimate_constant_pool_address_p.
7896 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7899 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7902 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7903 64-bit constants being loaded into registers other than GPRs such
7904 as loading 0 into a VSX register.
7906 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7908 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
7910 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7913 * builtins.c (fold_builtin_snprintf): New function.
7914 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7915 (fold_builtin_4): Likewise.
7918 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7919 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
7920 and C - X == X also strip nops from +/-/p+ operand.
7921 When optimizing -X == C, fold C to arg0's type.
7924 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7925 emit it as add_AT_int instead of add_AT_unsigned.
7927 2011-03-14 Tom Tromey <tromey@redhat.com>
7929 * unwind-dw2.c: Include sys/sdt.h if it exists.
7930 (_Unwind_DebugHook): Use STAP_PROBE2.
7931 * config.in, configure: Rebuild.
7932 * configure.ac: Check for sys/sdt.h.
7934 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
7936 * config/i386/i386.md (ROUND_FLOOR): New constant.
7937 (ROUND_CEIL): Ditto.
7938 (ROUND_TRUNC): Ditto.
7939 (ROUND_MXCSR): Ditto.
7940 (ROUND_NO_EXC): Ditto.
7941 (rint<mode>2): Use new defines instead of numerical constants.
7942 (floor<mode>2): Ditto.
7943 (ceil<mode>2): Ditto.
7944 (btrunc<mode>2): Ditto.
7945 * config/i386/i386-builtin-types.def: Define ROUND function type
7947 * config/i386/i386.c (enum ix86_builtins): Add
7948 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7949 (struct builtin_description): Add
7950 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7951 (ix86_expand_sse_round): New static function.
7952 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7954 (ix86_builtin_vectorized_function): Handle
7955 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7957 2011-03-14 Tom Tromey <tromey@redhat.com>
7959 * c-parser.c (c_parser_asm_string_literal): Clear
7960 warn_overlength_strings.
7962 2011-03-14 Tom Tromey <tromey@redhat.com>
7964 * c-parser.c (disable_extension_diagnostics): Save
7965 warn_overlength_strings.
7966 (restore_extension_diagnostics): Restore warn_overlength_strings.
7968 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7970 * BASE-VER: Change to 4.7.0.
7972 2011-03-14 Richard Guenther <rguenther@suse.de>
7975 * tree.c (build_vector_from_val): Adjust assert to requirements
7978 2011-03-14 Jakub Jelinek <jakub@redhat.com>
7981 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7983 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
7985 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7986 terms of target_flags_explicit. Adjust copyright year.
7988 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7989 * config/rs6000/t-freebsd: New file. Add override for
7992 2011-03-13 Chris Demetriou <cgd@google.com>
7994 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7995 (-fno-diagnostics-show-option): this, to reflect current default.
7996 (-Werror=): Update text about -fno-diagnostics-show-option.
7998 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
8001 * config/rs6000/predicates.md (easy_vector_constant_add_self,
8002 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
8003 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
8004 mode is not V2DImode or V2DFmode.
8005 (vspltis_constant): Do not handle V2DImode and V2DFmode.
8006 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
8007 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
8009 (movdi_internal64): Likewise.
8011 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
8013 PR tree-optimization/47127
8014 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
8016 (set_cloog_options): Same.
8017 (scop_to_clast): Same.
8018 (print_clast_stmt): Do not call cloog_state_malloc and
8020 (print_generated_program): Same.
8022 * graphite-clast-to-gimple.h (cloog_state): Declared.
8023 (scop_to_clast): Adjust declaration.
8024 * graphite.c (cloog_state): Defined here.
8025 (graphite_initialize): Call cloog_state_malloc.
8026 (graphite_finalize): Call cloog_state_free.
8028 2011-03-11 Jason Merrill <jason@redhat.com>
8030 * attribs.c (lookup_attribute_spec): Take const_tree.
8033 2011-03-11 Joseph Myers <joseph@codesourcery.com>
8035 * config/sparc/sparc.c (sparc_option_override): Use
8036 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
8038 2011-03-11 Richard Guenther <rguenther@suse.de>
8040 PR tree-optimization/48067
8041 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
8042 multiplication result will be only used once on the target
8045 2011-03-11 Richard Guenther <rguenther@suse.de>
8047 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
8049 2011-03-11 Richard Guenther <rguenther@suse.de>
8052 * tree.c (find_decls_types_r): Do not walk types only reachable
8053 from IDENTIFIER_NODEs.
8055 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8058 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
8059 all vnode->force_output nodes as needed.
8061 2011-03-11 Jason Merrill <jason@redhat.com>
8064 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
8065 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
8067 2011-03-11 Martin Jambor <mjambor@suse.cz>
8069 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
8072 2011-03-11 Jakub Jelinek <jakub@redhat.com>
8074 PR tree-optimization/48063
8075 * ipa-inline.c (cgraph_decide_inlining): Don't try to
8076 inline functions called once if !tree_can_inline_p (node->callers).
8078 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
8080 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
8082 * config/score/score3.c: Delete.
8083 * config/score/score3.h: Delete.
8084 * config/score/mul-div.S: Delete.
8085 * config/score/sfp-machine.h: Add new file.
8086 * config/score/constraints.md: Add new file.
8087 * config/score/t-score-softfp: Add new file.
8088 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
8089 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
8090 (score7_extra_constraint): Delete.
8091 (score7_option_override): Remove unused code.
8092 * config/score/score.c: Remove score3 and score5 define and code.
8093 * config/score/score.h: Remove score3 and score5 define and code.
8094 * config/score/score.md: Remove score3 template and unusual insn.
8095 * config/score/score.opt: Remove score3 and score5 options.
8097 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8099 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
8100 when _HPUX_SOURCE is defined.
8101 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
8103 2011-03-10 Jason Merrill <jason@redhat.com>
8106 * stor-layout.c (layout_type): Don't set structural equality
8107 on arrays of incomplete type.
8108 * tree.c (type_hash_eq): Handle comparing them properly.
8110 2011-03-10 Jakub Jelinek <jakub@redhat.com>
8113 * config/s390/s390.c (s390_delegitimize_address): Make sure the
8114 result mode matches original rtl mode.
8116 2011-03-10 Nick Clifton <nickc@redhat.com>
8118 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
8119 (andsi3, andsi3_flags): Fix timings for three operand alternative.
8121 2011-03-09 Jakub Jelinek <jakub@redhat.com>
8123 PR rtl-optimization/47866
8124 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
8125 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
8126 if target wasn't scalar.
8127 * function.c (assign_stack_temp_for_type): Assert that neither
8128 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
8129 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
8131 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
8133 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8135 * config/s390/s390-protos.h (s390_label_align): New prototype.
8136 * config/s390/s390.c (s390_label_align): New function.
8137 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
8139 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8142 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
8143 V2DI/V2DF constants. Only all 0's or all 1's are easy.
8144 (output_vec_const_move): Ditto.
8146 2011-03-08 Anatoly Sokolov <aesok@post.ru>
8148 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
8149 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
8150 * config/mips/mips.c (mips_preferred_reload_class): Make static.
8151 Change 'rclass' argument and result type to reg_class_t.
8152 (TARGET_PREFERRED_RELOAD_CLASS): Define.
8154 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
8156 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8157 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
8158 (TARGET_MEMORY_MOVE_COST): Define.
8159 (avr_register_move_cost, avr_memory_move_cost): New Functions.
8161 2011-03-08 Jakub Jelinek <jakub@redhat.com>
8164 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
8167 PR tree-optimization/48022
8168 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
8171 2011-03-07 Jakub Jelinek <jakub@redhat.com>
8174 * var-tracking.c (find_use_val): Return NULL for
8175 cui->sets && cui->store_p BLKmode MEMs.
8177 2011-03-07 Anatoly Sokolov <aesok@post.ru>
8179 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
8181 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
8182 xstormy16_print_operand_address): Remove.
8183 * config/stormy16/stormy16.c (xstormy16_print_operand,
8184 xstormy16_print_operand_address): Make static.
8185 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8187 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
8190 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8191 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
8194 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
8197 * cfgloopmanip.c (fix_bb_placements): Return immediately
8198 if FROM is BASE_LOOP's header.
8200 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
8202 * gimplify.c (gimplify_function_tree): Fix building calls
8203 to __builtin_return_address.
8205 2011-03-07 Alan Modra <amodra@gmail.com>
8207 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
8208 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
8209 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
8210 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
8212 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
8213 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
8214 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
8215 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
8216 * config/rs6000/rs6000.c
8217 (rs6000_elf_end_indicate_exec_stack): Rename to..
8218 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
8219 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
8220 (rs6000_file_start): ..here.
8221 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
8222 file scope variables.
8223 (call_ABI_of_interest): New function.
8224 (init_cumulative_args): Set above vars when function return value
8225 is a float, vector, or small struct.
8226 (rs6000_function_arg_advance_1): Likewise for function args.
8227 (rs6000_va_start): Set rs6000_passes_float if variable arg function
8228 references float args.
8230 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
8232 * doc/cfg.texi: Remove "See" before @ref.
8233 * doc/invoke.texi: Likewise.
8235 2011-03-05 Jason Merrill <jason@redhat.com>
8237 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
8239 2011-03-05 Anthony Green <green@moxielogic.com>
8241 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
8243 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
8245 PR rtl-optimization/47899
8246 * cfgloopmanip.c (fix_bb_placements): Fix first argument
8247 to flow_loop_nested_p when moving the loop upward.
8249 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
8252 * arm.md (movhi_insn_arch4): Accept any immediate constant.
8254 2011-03-05 Jakub Jelinek <jakub@redhat.com>
8256 PR tree-optimization/47967
8257 * ipa-cp.c (build_const_val): Return NULL instead of creating
8258 VIEW_CONVERT_EXPR for mismatching sizes.
8259 (ipcp_create_replace_map): Return NULL if build_const_val failed.
8260 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
8261 give up on versioning.
8263 2011-03-05 Alan Modra <amodra@gmail.com>
8266 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8267 full cmodel medium/large lo_sum + high addresses.
8269 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8271 * config/s390/s390.c (s390_decompose_address): Reject non-literal
8272 pool references in UNSPEC_LTREL_OFFSET.
8274 2011-03-04 Jan Hubicka <jh@suse.cz>
8277 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
8278 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
8279 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
8281 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
8282 cgraph_add_thunk): Add node pointers.
8283 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
8284 associated to right node.
8285 (input_node): Update use of cgraph_same_body_alias
8286 and cgraph_add_thunk.
8288 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
8290 * config/i386/i386.opt (mprefer-avx128): New flag.
8291 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
8292 modes when the flag -mprefer-avx128 is on.
8294 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
8296 * dwarf2out.c (compare_loc_operands): Fix address handling.
8298 2011-03-04 Alan Modra <amodra@gmail.com>
8300 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
8302 2011-03-04 Richard Guenther <rguenther@suse.de>
8305 * expmed.c (extract_bit_field_1): Prefer vector modes that
8306 vec_extract patterns can handle.
8308 2011-03-04 Richard Guenther <rguenther@suse.de>
8311 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
8313 2011-03-04 Richard Henderson <rth@redhat.com>
8315 * explow.c (emit_stack_save): Remove 'after' parameter.
8316 (emit_stack_restore): Likewise.
8317 * expr.h: Update to match.
8318 * builtins.c, calls.c, stmt.c: Likewise.
8319 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
8320 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
8321 * function.c (expand_function_end): Insert the emit_stack_save
8322 sequence before parm_birth_insn instead of after.
8324 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
8326 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
8327 (ssse3_pmaddubsw128): Ditto.
8328 (ssse3_pmaddubsw): Ditto.
8330 2011-03-03 Steve Ellcey <sje@cup.hp.com>
8332 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
8334 2011-03-03 Jakub Jelinek <jakub@redhat.com>
8337 * gimplify.c (omp_add_variable): Only call omp_notice_variable
8338 on TYPE_SIZE_UNIT if it is a DECL.
8341 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
8342 first operand is not is_gimple_mem_ref_addr, try to fold it.
8343 If the operand still isn't is_gimple_mem_ref_addr, clear
8346 2011-03-03 Richard Guenther <rguenther@suse.de>
8349 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
8351 (refs_may_alias_p_1): For release branches return true if
8352 we are confused by our input.
8354 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8356 * config/s390/s390.c (s390_function_value): Rename to ...
8357 (s390_function_and_libcall_value): ... this.
8358 (s390_function_value): New function.
8359 (s390_libcall_value): New function.
8360 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
8361 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
8362 target macro definitions.
8363 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
8365 2011-03-02 Joseph Myers <joseph@codesourcery.com>
8367 * config/i386/freebsd64.h (CC1_SPEC): Define.
8368 * config/i386/linux64.h (CC1_SPEC): Define.
8369 * config/i386/x86-64.h (CC1_SPEC): Don't define.
8371 2011-03-02 Anatoly Sokolov <aesok@post.ru>
8373 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8375 * config/stormy16/stormy16.c: Include reload.h.
8376 (xstormy16_memory_move_cost): New function.
8377 (TARGET_MEMORY_MOVE_COST): Define.
8379 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
8381 PR rtl-optimization/47925
8382 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
8383 with side effects. Remove the more-specific check for volatile asms.
8385 2011-03-02 Alan Modra <amodra@gmail.com>
8388 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
8389 toc relative addresses for valid offsets.
8391 2011-03-01 Richard Guenther <rguenther@suse.de>
8393 PR tree-optimization/47890
8394 * tree-vect-loop.c (get_initial_def_for_induction): Set
8395 related stmt properly.
8397 2011-03-01 Richard Guenther <rguenther@suse.de>
8400 * lto-streamer.c (lto_record_common_node): Also register
8403 2011-03-01 Richard Guenther <rguenther@suse.de>
8406 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8407 Do not stream DECL_ABSTRACT_ORIGIN.
8408 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8409 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8410 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8411 Do not stream DECL_ABSTRACT_ORIGIN.
8412 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
8413 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
8415 2011-02-28 Anatoly Sokolov <aesok@post.ru>
8417 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
8418 FUNCTION_VALUE_REGNO_P): Remove.
8419 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
8420 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
8421 Add 'outgoing' argument.
8422 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
8424 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8425 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8427 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
8430 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
8431 (lookup_filename): Likewise.
8432 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
8434 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
8435 Jakub Jelinek <jakub@redhat.com>
8438 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
8439 (assign_stack_local_1): Change last argument type to int.
8440 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
8441 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
8442 don't record padding space into frame_space_list nor use those areas.
8443 (assign_stack_local): Adjust caller.
8444 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
8445 of assign_stack_local, pass 0 as last argument.
8446 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
8449 2011-02-28 Jakub Jelinek <jakub@redhat.com>
8452 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
8453 Use target address_mode and pointer_mode hooks instead of hardcoded
8454 Pmode and ptr_mode. Handle some simple cases of extending if
8455 POINTERS_EXTEND_UNSIGNED < 0.
8456 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
8457 Call convert_debug_memory_address.
8458 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
8459 convert_debug_memory_address.
8462 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
8463 * configure: Regenerated.
8464 * config.in: Regenerated.
8465 * varasm.c (default_function_section): Return NULL
8466 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
8468 2011-02-28 Martin Jambor <mjambor@suse.cz>
8470 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
8471 the description to match the printed values.
8473 2011-02-28 Richard Guenther <rguenther@suse.de>
8475 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
8476 of the copied scope tree.
8478 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8480 * doc/extend.texi (Function Attributes): Avoid deeply (and
8481 wrongly) nested tables.
8483 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8486 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
8487 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
8488 r isn't op0 nor op1.
8490 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
8492 * config/avr/avr.md: Remove magic comment for emacs.
8494 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
8497 * config/avr/avr.c (avr_option_override): Use error on bad options.
8498 (avr_help): New function.
8499 (TARGET_HELP): Define.
8501 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
8504 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
8505 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
8507 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
8509 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
8510 (ARM Options): Ditto.
8511 (i386 and x86-64 Options): Ditto.
8512 (RX Options): Ditto.
8513 (SPARC Options): Ditto.
8515 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
8517 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
8518 FreeBSD 6 and later. Generally use cpu generic.
8520 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
8522 * doc/cpp.texi: Update copyright years.
8524 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
8527 * config/lm32/lm32.md (ashrsi3): Added needed variable.
8529 2011-02-25 Jon Beniston <jon@beniston.com>
8532 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
8533 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
8534 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
8535 (lm32_block_move_inline): Add type cast to remove warning.
8536 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
8537 (gen_int_relational): Move declarations to start of function.
8539 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
8541 PR tree-optimization/45470
8542 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
8543 can throw internally only.
8544 * tree-vect-stmts.c (vectorizable_call): Likewise.
8546 2011-02-24 Anatoly Sokolov <aesok@post.ru>
8548 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
8549 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8550 * config/stormy16/stormy16-protos.h
8551 (xstormy16_preferred_reload_class): Remove.
8552 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
8553 static. Change 'rclass' argument and return type to reg_class_t.
8554 (TARGET_PREFERRED_RELOAD_CLASS,
8555 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8557 2011-02-24 Richard Guenther <rguenther@suse.de>
8559 * lto-streamer-in.c (input_bb): Do not find referenced vars
8560 in debug statements.
8562 2011-02-23 Jason Merrill <jason@redhat.com>
8564 * common.opt (fabi-version): Document v5 and v6.
8566 2011-02-23 Richard Guenther <rguenther@suse.de>
8568 PR tree-optimization/47849
8569 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
8571 2011-02-23 Jie Zhang <jie@codesourcery.com>
8573 * opts-common.c (decode_cmdline_option): Print empty string
8574 argument as "" in decoded->orig_option_with_args_text.
8575 * gcc.c (execute): Print empty string argument as ""
8576 in the verbose output.
8577 (do_spec_1): Keep empty string argument.
8579 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
8581 * config.gcc: Declare score-* and crx-* obsolete.
8583 2011-02-23 Jie Zhang <jie@codesourcery.com>
8585 PR rtl-optimization/47763
8586 * web.c (web_main): Ignore naked clobber when replacing register.
8588 2011-02-22 Anatoly Sokolov <aesok@post.ru>
8590 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8593 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
8596 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
8598 2011-02-22 Mike Stump <mikestump@comcast.net>
8600 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
8602 * configure: Regenerate.
8604 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
8606 PR rtl-optimization/46002
8607 * ira-color.c (update_copy_costs): Change class intersection
8608 test to reg_class_contents[] test of 'hard_regno'.
8610 2011-02-21 Joseph Myers <joseph@codesourcery.com>
8612 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
8614 * config/hpux11.opt (mt): Likewise.
8615 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
8616 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
8617 * config/vax/elf.opt (mno-asm-pic): Likewise.
8618 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
8620 2011-02-21 Mike Stump <mikestump@comcast.net>
8623 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
8624 tree so we can get save the type.
8625 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
8626 for CFString instead of trying to use past the end of the builtins.
8627 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
8628 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
8629 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
8630 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
8631 Rename to darwin_builtin_cfstring.
8632 (darwin_init_cfstring_builtins): Return the built type.
8634 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
8637 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
8638 (_mm256_insert_epi64): Use _mm_insert_epi64.
8640 2011-02-21 Anatoly Sokolov <aesok@post.ru>
8642 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8643 * config/stormy16/stormy16-protos.h
8644 (xstormy16_mode_dependent_address_p): Remove.
8645 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
8646 Make static. Change return type to bool. Change argument type to
8647 const_rtx. Remove dead code.
8648 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8650 2011-02-21 Richard Guenther <rguenther@suse.de>
8653 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8654 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
8655 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
8657 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8658 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
8660 2011-02-20 Richard Guenther <rguenther@suse.de>
8663 * tree.c (free_lang_data_in_decl): Clean builtins from
8664 the TU decl BLOCK_VARS.
8666 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
8670 * haifa-sched.c (fix_tick_ready): Skip tick computation
8673 2011-02-19 Richard Guenther <rguenther@suse.de>
8676 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
8677 Remove lazy BLOCK_VARS streaming.
8678 (lto_input_ts_block_tree_pointers): Likewise.
8679 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
8681 2011-02-19 Joseph Myers <joseph@codesourcery.com>
8683 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
8685 2011-02-19 Joseph Myers <joseph@codesourcery.com>
8687 * config/i386/biarch32.h, config/i386/mach.h,
8688 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
8690 2011-02-19 Jakub Jelinek <jakub@redhat.com>
8693 * config/i386/i386.md (peephole2 for shift and plus): Use
8694 operands[1] original mode in the first insn.
8696 2011-02-18 Mike Stump <mikestump@comcast.net>
8698 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8700 2011-02-18 Jan Hubicka <jh@suse.cz>
8703 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
8704 to zero when the function is not inlinable at all.
8706 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8708 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
8709 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8710 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
8711 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
8712 * config/pa/t-pa64: Likewise.
8713 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8715 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8718 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
8720 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8723 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
8725 2011-02-18 Anatoly Sokolov <aesok@post.ru>
8727 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8728 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
8729 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
8730 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8731 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
8732 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
8733 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
8734 m32r_load_postinc_p, m32r_store_preinc_predec_p,
8735 m32r_legitimate_address_p): New functions.
8736 * config/m32r/constraints.md (constraint "S"): Don't use
8737 STORE_PREINC_PREDEC_P.
8738 (constraint "U"): Don't use LOAD_POSTINC_P.
8740 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
8742 PR rtl-optimization/46178
8743 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
8744 compute ira_hard_regno_cover_class[].
8746 2011-02-18 Richard Guenther <rguenther@suse.de>
8749 * lto-streamer.h (lto_global_var_decls): Declare.
8750 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
8751 statics for global var processing.
8753 2011-02-18 Richard Guenther <rguenther@suse.de>
8755 PR tree-optimization/47737
8756 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
8757 edge dominance check.
8759 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8762 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
8763 avoid invalid rtx sharing.
8765 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
8767 * doc/cpp.texi (Obsolete Features): Add background on the
8768 origin of assertions.
8770 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
8772 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
8774 * config/darwin.c (output_objc_section_asm_op): Added support for
8776 (is_objc_metadata): New.
8777 (darwin_objc2_section): New.
8778 (darwin_objc1_section): New.
8779 (machopic_select_section): Added support for ABI v1 and v2.
8780 (darwin_emit_objc_zeroed): New.
8781 (darwin_output_aligned_bss): Detect objc metadata and treat it
8783 (darwin_asm_output_aligned_decl_common): Same.
8784 (darwin_asm_output_aligned_decl_local): Same.
8785 * config/darwin-sections.def: Updated for ABI v1 and v2.
8786 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
8787 compiling Objective-C code for the NeXT runtime, default to using
8788 ABI version 0 for 32-bit, and version 2 for 64-bit.
8790 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8792 * common.opt (optimize_fast): New Variable.
8793 * opts.c (default_options_optimization): Use opts->x_optimize_fast
8794 instead of local variable ofast.
8796 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
8798 * doc/invoke.texi (fobjc-abi-version): Documented.
8799 (fobjc-nilcheck): Documented.
8800 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
8803 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8806 * common.opt (export-dynamic): New Driver option.
8807 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
8809 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8811 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
8813 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
8814 Jan Hubicka <jh@suse.cz>
8818 * cfgexpand.c (account_used_vars_for_block): Remove.
8819 (estimated_stack_frame_size): Use referenced vars.
8820 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
8821 that were referenced in the original function. Test src_fn
8822 rather than cfun. Drop redundant get_var_ann.
8823 (setup_one_parameter): Drop redundant get_var_ann.
8824 (declare_return_variable): Likewise.
8825 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
8826 (copy_arguments_for_versioning): Drop redundant get_var_ann.
8827 * ipa-inline.c (compute_inline_parameters): Do not compute
8828 disregard_inline_limits here.
8829 (compute_inlinable_for_current, pass_inlinable): New.
8830 (pass_inline_parameters): Require PROP_referenced_vars.
8831 * cgraphunit.c (cgraph_process_new_functions): Don't run
8832 compute_inline_parameters explicitly unless function is in SSA form.
8833 (cgraph_analyze_function): Set .disregard_inline_limits.
8834 * tree-sra.c (convert_callers): Compute inliner parameters
8835 only for functions already in SSA form.
8837 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8839 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
8840 -mlittle-endian-data.
8842 2011-02-17 Joseph Myers <joseph@codesourcery.com>
8844 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
8845 -mno-fpu, not -fpu and -no-fpu.
8846 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
8847 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
8849 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
8852 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
8853 input reload with PLUS RTX.
8855 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8857 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
8858 of InverseVar(MDMX).
8860 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8862 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
8865 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8867 * config/mn10300/mn10300.opt (mno-crt0): New.
8869 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8871 * config/m68k/uclinux.opt (static-libc): New Driver option.
8873 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8875 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
8877 2011-02-16 Joseph Myers <joseph@codesourcery.com>
8879 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
8880 %{muser-extend-enabled}.
8882 2011-02-16 Richard Guenther <rguenther@suse.de>
8884 PR tree-optimization/47738
8885 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8886 the TODO from tree_predictive_commoning.
8888 2011-02-15 Jeff Law <law@redhat.com>
8891 2011-01-25 Jeff Law <law@redhat.com>
8893 PR rtl-optimization/37273
8894 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8895 handle them like argument loads from stack slots. Do not double
8896 count memory for memory constants and argument loads from stack slots.
8898 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
8901 * combine.c (cant_combine_insn_p): Revert the last change.
8903 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
8906 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8907 mode for vector constants. Remove code that checks for TImode.
8909 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8913 * cgraph.h (compute_inline_parameters): Return void.
8914 * ipa-inline.c (compute_inline_parameters): Adjust.
8916 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8920 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8922 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8923 * ipa-inline.c (compute_inline_parameters): Adjust.
8925 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8929 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8930 Adjust all users. Pass FN to...
8931 * tree-flow-inline.h (first_referenced_var): ... this. Add
8933 * ipa-struct-reorg.c: Adjust.
8934 * tree-dfa.c: Adjust.
8935 * tree-into-ssa.c: Adjust.
8936 * tree-sra.c: Adjust.
8937 * tree-ssa-alias.c: Adjust.
8938 * tree-ssa-live.c: Adjust.
8939 * tree-ssa.c: Adjust.
8940 * tree-ssanames.c: Adjust.
8941 * tree-tailcall.c: Adjust.
8943 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
8947 * tree-flow.h (referenced_var_lookup): Add fn parameter.
8949 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8950 * tree-flow-inline.h: Adjust.
8951 * gimple-pretty-print.c: Adjust.
8952 * tree-into-ssa.c: Adjust.
8953 * tree-ssa.c: Adjust.
8954 * cfgexpand.c: Adjust.
8956 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8958 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8959 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8960 (EXTRA_CONSTRAINT): Delete.
8961 * config/iq2000/constraints.md: New file.
8962 * config/iq2000/iq2000.md: Include it.
8963 (define_insn ""): Delete.
8964 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8965 unsupported constraint letters from patterns.
8966 (call_value, call_value_internal1): Likewise.
8967 (call_value_multiple_internal1): Likewise.
8969 2011-02-15 Nick Clifton <nickc@redhat.com>
8971 * config/mn10300/mn10300.c: Include tm-constrs.h.
8972 (struct liw_data): New data structure describing an LIW candidate
8974 (extract_bundle): Use struct liw_data. Allow small integer
8975 operands for some instructions.
8976 (check_liw_constraints): Use struct liw_data. Remove swapped
8977 parameter. Add comments describing the checks. Fix bug when
8978 assigning the source of liw1 to the source of liw2.
8979 (liw_candidate): Delete. Code moved into extract_bundle.
8980 (mn10300_bundle_liw): Use struct liw_data. Check constraints
8982 * config/mn10300/predicates.md (liw_operand): New predicate.
8983 Allows registers and small integer constants.
8984 * config/mn10300/constraints.md (O): New constraint. Accetps
8985 integers in the range -8 to +7 inclusive.
8986 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8987 for moving a small integer into a register. Give this alternative
8989 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8990 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8991 using the J,K,L and M constraints,
8992 (liw): Remove SI mode on second operands to allow for HI and QI
8994 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
8997 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
9000 * combine.c (cant_combine_insn_p): Check zero/sign extended
9003 2011-02-15 Richard Guenther <rguenther@suse.de>
9005 PR tree-optimization/47743
9006 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
9007 for a non-type-compatible VN lookup bail out.
9009 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9011 * config/fr30/constraints.md: New file.
9012 * config/fr30/fr30.md: Include it.
9013 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
9014 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9015 (EXTRA_CONSTRAINT): Delete.
9017 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
9019 * config/frv/constraints.md: New file.
9020 * config/frv/predicates.md: Include it.
9021 * config/frv/frv.c (reg_class_from_letter): Delete.
9022 (frv_option_override): Don't initialize it.
9023 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
9024 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
9025 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
9026 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9027 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
9028 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9029 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
9030 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
9031 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
9032 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
9033 (REG_CLASS_FROM_CONSTRAINT): Delete.
9035 2011-02-15 Jakub Jelinek <jakub@redhat.com>
9038 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
9039 if frame size is 0 in a leaf function.
9041 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9044 * config/alpha/host-osf.c: New file.
9045 * config/alpha/x-osf: New file.
9046 * config.host (alpha*-dec-osf*): Use it.
9048 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9050 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9051 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
9052 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
9053 (rx_mode_dependent_address_p): ...this. Make static. Change argument
9055 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9057 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9059 * config/stormy16/constraints.md: New file.
9060 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
9061 Use satisfies_constraint_Q and satisfies_constraint_R.
9062 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
9064 (xstormy16_legitiamte_address_p): Declare.
9065 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
9066 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9067 (EXTRA_CONSTRAINT): Delete.
9068 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
9070 (xstormy16_extra_constraint_p): Delete.
9072 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
9074 PR tree-optimization/46494
9075 * loop-unroll.c (split_edge_and_insert): Adjust comment.
9076 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
9077 (pass_rtl_loop_done): Add TODO_verify_flow.
9078 * fwprop.c (pass_rtl_fwprop): Likewise.
9079 * modulo-sched.c (pass_sms): Likewise.
9080 * tree-ssa-dom.c (pass_dominator): Likewise.
9081 * tree-ssa-loop-ch.c (pass_ch): Likewise.
9082 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
9083 (pass_tree_loop_done): Likewise.
9084 * tree-ssa-pre.c (execute_pre): Likewise.
9085 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9086 * tree-ssa-sink.c (pass_sink_code): Likewise.
9087 * tree-vrp.c (pass_vrp): Likewise.
9089 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9091 * config/v850/constraints.md: New file.
9092 * config/v850/v850.md: Include it.
9093 * config/v850/predicates.md (reg_or_0_operand): Use
9094 satisfies_constraint_G.
9095 (special_symbolref_operand): Use satisfies_constraint_K.
9096 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
9097 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
9098 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
9099 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
9100 (EXTRA_CONSTRAINT): Delete.
9101 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
9102 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
9103 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
9105 2011-02-14 Anatoly Sokolov <aesok@post.ru>
9108 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
9111 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
9113 * config/mcore/constraints.md: New file.
9114 * config/mcore/mcore.md: Include it.
9115 * config/mcore/mcore.c (reg_class_from_letter): Delete.
9116 * config/mcore/mcore.h (reg_class_from_letter): Delete.
9117 (REG_CLASS_FROM_LETTER): Delete.
9118 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
9119 insn_const_int_ok_for_constraint.
9120 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
9121 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
9122 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9123 (EXTRA_CONSTRAINT): Delete.
9125 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9128 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
9129 (IS_SIGHANDLER): Define.
9130 (sparc64_is_sighandler): New function, split off from
9131 sparc64_fallback_frame_state.
9132 (sparc_is_sighandler): New function, split off from
9133 sparc_fallback_frame_state.
9134 (sparc64_fallback_frame_state): Merge with ...
9135 (sparc_fallback_frame_state): ... this into ...
9136 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
9137 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
9138 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
9139 stack instead of hardcoded offsets.
9141 2011-02-14 Andriy Gapon <avg@freebsd.org>
9144 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
9146 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9148 * configure: Regenerate.
9150 2011-02-12 Joseph Myers <joseph@codesourcery.com>
9153 * gcc.c (asm_options): Correct spec matching --target-help.
9155 2011-02-12 Martin Jambor <mjambor@suse.cz>
9157 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
9158 to gimple call error.
9160 2011-02-12 Mike Stump <mikestump@comcast.net>
9162 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
9163 comments in backslash regions.
9165 2011-02-12 Mike Stump <mikestump@comcast.net>
9166 Jakub Jelinek <jakub@redhat.com>
9167 Iain Sandoe <iains@gcc.gnu.org>
9170 * dwarf2out.c (output_cfa_loc): When required, apply the
9171 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
9172 (output_loc_sequence): Likewise.
9173 (output_loc_operands_raw): Likewise.
9174 (output_loc_sequence_raw): Likewise.
9175 (output_cfa_loc): Likewise.
9176 (output_loc_list): Suppress register number adjustment when
9177 calling output_loc_sequence()
9178 (output_die): Likewise.
9180 2011-02-12 Anatoly Sokolov <aesok@post.ru>
9182 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9184 * config/xtensa/xtensa.c (xtensa_register_move_cost,
9185 xtensa_memory_move_cost): New functions.
9186 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
9188 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
9191 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
9192 in the current directory.
9193 * configure: Rebuilt.
9195 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
9197 * config/darwin.c (darwin_override_options): Add a hunk missed
9198 from the commit of r168571. Trim comment line lengths and
9199 correct indents of the preceding block.
9201 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
9203 * gcc.c (driver_handle_option): Concatenate the argument to -F with
9206 2011-02-11 Joseph Myers <joseph@codesourcery.com>
9208 * common.opt (nostartfiles): New Driver option.
9210 2011-02-11 Xinliang David Li <davidxl@google.com>
9212 PR tree-optimization/47707
9213 * tree-chrec.c (convert_affine_scev): Keep type precision.
9215 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
9217 PR tree-optimization/47420
9218 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
9220 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
9222 PR rtl-optimization/47614
9223 * rtl.h (check_for_inc_dec): Declare.
9224 * dse.c (check_for_inc_dec): Externalize...
9225 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
9226 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
9228 2011-02-11 Joseph Myers <joseph@codesourcery.com>
9231 * gcc.c (main): Do not compile inputs if there were errors in
9233 * opts-common.c (read_cmdline_option): Check for wrong language
9234 after other error checks.
9236 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
9238 * cgraph.c: Fix comment typos.
9239 * cgraph.h: Likewise.
9240 * cgraphunit.c: Likewise.
9241 * ipa-cp.c: Likewise.
9242 * ipa-inline.c: Likewise.
9243 * ipa-prop.c: Likewise.
9244 * ipa-pure-const.c: Likewise.
9245 * ipa-ref.c: Likewise.
9246 * ipa-reference.c: Likewise.
9248 2011-02-11 Jakub Jelinek <jakub@redhat.com>
9251 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
9253 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9256 * doc/sourcebuild.texi (Require Support): Document
9257 dg-require-ascii-locale.
9259 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
9261 * doc/lto.texi (Write summary): Fix missing parentheses.
9263 2011-02-10 DJ Delorie <dj@redhat.com>
9265 * config/m32c/m32c.c (m32c_option_override): Disable
9266 -fcombine-stack-adjustments until flag value tracking and compare
9267 optimization can be rewritten.
9269 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
9271 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
9273 (PROCESSOR_DEFAULT64): Likewise.
9275 2011-02-10 Richard Henderson <rth@redhat.com>
9277 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
9278 change from 2011-02-03.
9279 * config/rx/rx.c (flags_from_code): Likewise.
9280 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
9281 is valid, n/pz otherwise.
9282 (rx_select_cc_mode): Return CCmode if Y is not zero.
9284 2011-02-10 Richard Guenther <rguenther@suse.de>
9286 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
9288 2011-02-10 Richard Guenther <rguenther@suse.de>
9290 PR tree-optimization/47677
9291 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
9293 2011-02-10 Jakub Jelinek <jakub@redhat.com>
9296 * combine.c (make_compound_operation): Only change shifts into
9297 multiplication for SCALAR_INT_MODE_P.
9299 2011-02-10 Jie Zhang <jie@codesourcery.com>
9303 2011-02-05 Jie Zhang <jie@codesourcery.com>
9305 * web.c (entry_register): Don't clobber the number of the
9306 first uninitialized reference in used[].
9308 2011-02-09 Richard Guenther <rguenther@suse.de>
9310 PR tree-optimization/47664
9311 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
9314 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
9318 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
9320 (PROCESSOR_DEFAULT64): Same.
9321 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
9323 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9325 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
9327 2011-02-09 Martin Jambor <mjambor@suse.cz>
9330 * tree-sra.c (struct access): New flags grp_scalar_read and
9331 grp_scalar_write. Changed description of assignment read and write
9333 (dump_access): Dump new flags, reorder all of them.
9334 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
9335 to detect multiple scalar reads.
9336 (analyze_access_subtree): Use the new scalar read write flags instead
9337 of the old flags. Adjusted comments.
9339 2011-02-08 DJ Delorie <dj@redhat.com>
9342 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
9345 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9347 * config/m68k/uclinux.opt: New.
9348 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
9350 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9352 * config/cris/elf.opt (sim): New Driver option.
9354 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9356 * config/xtensa/elf.opt: New.
9357 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
9359 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9361 * config/vax/elf.opt: New.
9362 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
9364 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9366 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
9368 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9370 * config/gnu-user.opt: New.
9371 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
9372 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
9373 *-*-uclinux*): Use gnu-user.opt.
9375 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
9377 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
9378 * config/i386/gnu.h (CPP_SPEC): Likewise.
9380 2011-02-08 Ian Lance Taylor <iant@google.com>
9382 * common.opt (fcx-limited-range): Add SetByCombined flag.
9383 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
9384 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
9385 (fassociative-math, freciprocal-math): Likewise.
9386 (funsafe-math-optimizations): Likewise.
9387 * opth-gen.awk: Handle SetByCombined.
9388 * optc-gen.awk: Likewise.
9389 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
9390 (set_unsafe_math_optimizations_flags): Likewise.
9391 * doc/options.texi (Option properties): Document SetByCombined.
9393 2011-02-08 Joseph Myers <joseph@codesourcery.com>
9395 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
9396 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
9397 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
9398 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
9399 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
9401 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
9403 PR tree-optimization/46834
9404 PR tree-optimization/46994
9405 PR tree-optimization/46995
9406 * graphite-sese-to-poly.c (used_outside_reduction): New.
9407 (detect_commutative_reduction): Call used_outside_reduction.
9408 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
9409 translate_scalar_reduction_to_array only when at least one
9410 loop-phi/close-phi tuple has been detected.
9412 2011-02-08 Richard Guenther <rguenther@suse.de>
9415 * tree-vect-generic.c (expand_vector_operations_1): Update
9417 (expand_vector_operations): ... not here. Cleanup EH info
9418 and the CFG if required.
9420 2011-02-08 Richard Guenther <rguenther@suse.de>
9422 PR tree-optimization/47641
9423 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
9424 require type compatibility.
9426 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9428 * gimple-low.c (lower_function_body): Don't remove the location of
9429 the return statement here.
9430 (lower_gimple_return): Do it here instead but only if the return
9431 statement is actually used twice.
9433 2011-02-08 Richard Guenther <rguenther@suse.de>
9435 PR tree-optimization/47632
9436 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
9437 unused up_to_stmt parameter, return whether cfg-cleanup is
9438 necessary, remove EH info properly.
9439 (forward_propagate_into_gimple_cond): Adjust caller.
9440 (forward_propagate_into_cond): Likewise.
9441 (forward_propagate_comparison): Likewise.
9442 (tree_ssa_forward_propagate_single_use_vars): Make
9443 forward_propagate_comparison case similar to the two others.
9445 2011-02-08 Nick Clifton <nickc@redhat.com>
9447 * config/mn10300/mn10300.opt (mliw): New command line option.
9448 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
9449 (liw_bundling): New automaton.
9450 (liw): New attribute.
9451 (liw_op): New attribute.
9452 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
9453 (movsi_internal): Add LIW attributes.
9457 (addsi3): Separate register and immediate alternatives.
9462 (lshrsi3): Likewise.
9463 (ashrsi3): Likewise.
9465 * config/mn10300/mn10300.c (liw_op_names): New
9466 (mn10300_print_operand): Handle 'W' operand descriptor.
9467 (extract_bundle): New function.
9468 (check_liw_constraints): New function.
9469 (liw_candidate): New function.
9470 (mn10300_bundle_liw): New function.
9471 (mn10300_reorg): New function.
9472 (TARGET_MACHINE_DEPENDENT_REORG): Define.
9473 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
9474 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
9475 __LIW__ or __NO_LIW__.
9476 * doc/invoke.texi: Describe the -mliw command line option.
9478 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9480 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
9481 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9482 pthread_mutex_unlock): Remove.
9483 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
9484 * config/pa/t-pa64: Likewise.
9485 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
9486 shared libc if not linking against libpthread.
9487 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9489 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
9492 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
9493 on 10.6 and later to ensure that we always use the unwinder from
9494 the system. Only add -no_compact_unwind when tarteting darwin
9497 2011-02-07 Steve Ellcey <sje@cup.hp.com>
9500 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
9501 (vec_interleave_lowv2sf): Ditto.
9502 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
9503 (vec_extract_oddv2sf): Ditto.
9505 2011-02-07 Mike Stump <mikestump@comcast.net>
9508 Add __ieee_divdc3 entry point.
9509 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
9511 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
9512 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
9513 * config/darwin.c (darwin_rename_builtins): Add.
9514 * config/darwin-protos.h (darwin_rename_builtins): Add.
9516 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
9519 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
9522 2011-02-07 Mike Stump <mikestump@comcast.net>
9524 * config/darwin.opt (mmacosx-version-min): Update default OS version.
9526 2011-02-07 Denis Chertykov <chertykov@gmail.com>
9529 * config/avr/libgcc.S (exit): Move .endfunc
9531 2011-02-07 Richard Guenther <rguenther@suse.de>
9533 PR tree-optimization/47615
9534 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
9535 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
9536 (run_scc_vn): Initialize it.
9537 (visit_reference_op_load): Use it.
9538 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
9540 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9542 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
9543 DImode trapping arithmetic libfuncs.
9545 2011-02-07 Richard Guenther <rguenther@suse.de>
9547 PR tree-optimization/47621
9548 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
9550 (execute_update_addresses_taken): ... here. Make it more
9551 conservative in what we accept.
9553 2011-02-06 Joseph Myers <joseph@codesourcery.com>
9555 * config/sparc/freebsd.h (ASM_SPEC): Define.
9556 * config/sparc/vxworks.h (ASM_SPEC): Define.
9558 2011-02-06 Joseph Myers <joseph@codesourcery.com>
9560 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9562 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
9564 * doc/invoke.texi: Remove reference to compiler internals from
9567 * reg-notes.def: Remove REG_VALUE_PROFILE.
9568 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
9570 2011-02-05 Jakub Jelinek <jakub@redhat.com>
9573 * varasm.c (default_section_type_flags): If decl is NULL,
9574 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
9576 2011-02-05 Jie Zhang <jie@codesourcery.com>
9579 * web.c (entry_register): Don't clobber the number of the
9580 first uninitialized reference in used[].
9582 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
9584 PR tree-optimization/46194
9585 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
9586 (build_classic_dist_vector_1): Do not represent classic distance
9587 vectors when the access functions are variating in different loops.
9589 2011-02-04 Joseph Myers <joseph@codesourcery.com>
9591 * config/mips/iris6.opt: New.
9592 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
9594 2011-02-04 Richard Henderson <rth@redhat.com>
9595 Steve Ellcey <sje@cup.hp.com>
9598 * config/ia64/predicates.md (mux1_brcst_element): New.
9599 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
9600 * config/ia64/ia64.c (ia64_unpack_assemble): New.
9601 (ia64_unpack_sign): New.
9602 (ia64_expand_unpack): Rewrite using new routines.
9603 (ia64_expand_widen_sum): Ditto.
9604 (ia64_expand_dot_prod_v8qi): Ditto.
9605 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
9606 routines, add endian check.
9607 (pmpy2_even): Rename from pmpy2_r, add endian check.
9608 (pmpy2_odd): Rename from pmpy2_l, add endian check.
9609 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
9610 (vec_widen_smult_hi_v4hi): Ditto.
9611 (vec_widen_umult_lo_v4hi): Ditto.
9612 (vec_widen_umult_hi_v4hi): Ditto.
9613 (mulv2si3): Change endian checks.
9614 (sdot_prodv4hi): Rewrite with new calls.
9615 (udot_prodv4hi): New.
9616 (vec_pack_ssat_v4hi): Add endian check.
9617 (vec_pack_usat_v4hi): Ditto.
9618 (vec_pack_ssat_v2si): Ditto.
9619 (max1_even): Rename from max1_r, add endian check.
9620 (max1_odd): Rename from max1_l, add endian check.
9621 (*mux1_rev): Format change.
9623 (*mux1_shuf): Ditto.
9625 (*mux1_brcst_v8qi): Use new predicate.
9626 (vec_extract_evenv8qi): Remove endian check.
9627 (vec_extract_oddv8qi): Ditto.
9628 (vec_interleave_lowv4hi): Format change.
9629 (vec_interleave_highv4hi): Ditto.
9630 (mix2_even): Rename from mix2_r, add endian check.
9631 (mix2_odd): Rename from mux2_l, add endian check.
9632 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
9633 (vec_extract_evenodd_helper): Format change.
9634 (vec_extract_evenv4hi): Remove endian check.
9635 (vec_extract_oddv4hi): Remove endian check.
9636 (vec_interleave_lowv2si): Format change.
9637 (vec_interleave_highv2si): Format change.
9638 (vec_initv2si): Remove endian check.
9639 (vecinit_v2si): Add endian check.
9640 (reduc_splus_v2sf): Add endian check.
9641 (reduc_smax_v2sf): Ditto.
9642 (reduc_smin_v2sf): Ditto.
9643 (vec_initv2sf): Remove endian check.
9644 (fpack): Add endian check.
9645 (fswap): Add endian check.
9646 (vec_interleave_highv2sf): Add endian check.
9647 (vec_interleave_lowv2sf): Add endian check.
9648 (fmix_lr): Add endian check.
9649 (vec_setv2sf): Format change.
9650 (*vec_extractv2sf_0_be): Use shift to extract operand.
9651 (*vec_extractv2sf_1_be): New.
9652 (vec_pack_trunc_v4hi): Add endian check.
9653 (vec_pack_trunc_v2si): Format change.
9655 2011-02-04 Jakub Jelinek <jakub@redhat.com>
9658 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
9659 do bb, locus and block comparison and disallow loads if it is not set.
9660 (stmt_is_replaceable_p): New function.
9661 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
9663 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
9664 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
9666 * tree-flow.h (stmt_is_replaceable_p): New prototype.
9668 2011-02-04 Joseph Myers <joseph@codesourcery.com>
9670 * config/rs6000/xilinx.opt: New.
9671 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
9673 2011-02-04 Joseph Myers <joseph@codesourcery.com>
9675 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
9677 2011-02-03 Anatoly Sokolov <aesok@post.ru>
9679 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
9680 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9681 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
9682 secondary_reload_info, xtensa_secondary_reload): Remove.
9683 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
9684 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9685 (xtensa_preferred_reload_class): Make static. Change return and
9686 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
9687 Use CONST_DOUBLE_P predicate.
9688 (xtensa_preferred_output_reload_class): New function.
9689 (xtensa_secondary_reload): Make static.
9691 2011-02-03 Joseph Myers <joseph@codesourcery.com>
9693 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
9694 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
9695 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
9697 2011-02-03 Jakub Jelinek <jakub@redhat.com>
9700 * output.h (SECTION_RELRO): Define.
9701 (SECTION_MACH_DEP): Adjust.
9702 (get_variable_section): New prototype.
9703 * varpool.c (varpool_finalize_named_section_flags): New function.
9704 (varpool_assemble_pending_decls): Call it.
9705 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
9706 * cgraphunit.c (cgraph_output_in_order): Call
9707 varpool_finalize_named_section_flags.
9708 * varasm.c (get_section): Allow section flags conflicts between
9709 relro and read-only sections if the section hasn't been declared yet.
9710 Set SECTION_OVERRIDE after diagnosing section type conflict.
9711 (get_variable_section): No longer static.
9712 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
9713 readonly sections that need relocations.
9714 (decl_readonly_section_1): New function.
9715 (decl_readonly_section): Use it.
9718 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
9719 Steve Ellcey <sje@cup.hp.com>
9722 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
9723 if section attribute used.
9725 2011-02-03 Jakub Jelinek <jakub@redhat.com>
9727 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
9728 * config/darwin.c (SECTION_NO_ANCHOR): Define.
9729 (darwin_init_sections): Remove assertion.
9731 2011-02-03 Nick Clifton <nickc@redhat.com>
9733 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
9735 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
9736 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
9737 instead of "n" and "pz".
9738 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
9741 2011-02-03 Jakub Jelinek <jakub@redhat.com>
9744 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
9745 fma, expand FMA_EXPR as fma{,f,l} call.
9748 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
9749 copy them into a unsigned char variable and pass address of it to
9750 lto_output_data_stream.
9753 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
9754 around backend_init_target and lang_dependent_init_target calls.
9755 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
9756 (verify_cgraph_node): Don't call set_cfun here. Use
9757 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
9758 Set error_found for incorrectly represented calls to thunks.
9760 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
9763 PR rtl-optimization/43494
9764 * rtl.h (for_each_inc_dec_fn): New type.
9765 (for_each_inc_dec): Declare.
9766 * rtlanal.c (struct for_each_inc_dec_ops): New type.
9767 (for_each_inc_dec_find_inc_dec): New fn.
9768 (for_each_inc_dec_find_mem): New fn.
9769 (for_each_inc_dec): New fn.
9770 * dse.c (struct insn_size): Remove.
9771 (replace_inc_dec, replace_inc_dec_mem): Remove.
9772 (emit_inc_dec_insn_before): New fn.
9773 (check_for_inc_dec): Use it, along with for_each_inc_dec.
9774 (canon_address): Pass mem modes to cselib_lookup.
9775 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
9776 (cselib_lookup_from_insn): Likewise.
9777 (cselib_subst_to_values): Likewise.
9778 * cselib.c (find_slot_memmode): New var.
9779 (cselib_find_slot): New fn. Use it instead of
9780 htab_find_slot_with_hash everywhere.
9781 (entry_and_rtx_equal_p): Use find_slot_memmode.
9782 (autoinc_split): New fn.
9783 (rtx_equal_for_cselib_p): Rename and implement in terms of...
9784 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
9785 Deal with autoinc. Special-case recursion into MEMs.
9786 (cselib_hash_rtx): Likewise.
9787 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
9788 address and MEM modes.
9789 (cselib_subst_to_values): Add memmode, pass it on.
9791 (cselib_lookup): Add memmode argument, pass it on.
9792 (cselib_lookup_from_insn): Add memmode.
9793 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
9794 (struct cselib_record_autoinc_data): New.
9795 (cselib_record_autoinc_cb): New fn.
9796 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
9797 mode to cselib_lookup. Reset autoinced REGs here instead of...
9798 (cselib_process_insn): ... here.
9799 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
9801 (add_uses): Likewise, also to cselib_subst_to_values.
9802 (add_stores): Likewise.
9803 * sched-deps.c (add_insn_mem_dependence): Pass mode to
9804 cselib_subst_to_values.
9805 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
9806 * gcse.c (do_local_cprop): Adjusted.
9807 * postreload.c (reload_cse_simplify_set): Adjusted.
9808 (reload_cse_simplify_operands): Adjusted.
9809 * sel-sched-dump (debug_mem_addr_value): Pass mode.
9811 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
9813 PR tree-optimization/45122
9814 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
9815 unsafe assumptions when there's more than one loop exit.
9817 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9820 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9821 Document using vector double with the load/store builtins, and
9822 that the load/store builtins always use Altivec instructions.
9824 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
9825 to use altivec memory instructions, even on VSX.
9826 (vector_altivec_store_<mode>): Ditto.
9828 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
9831 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9832 V2DF, V2DI support to load/store overloaded builtins.
9834 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
9835 altivec load/store builtins for V2DF/V2DI types.
9837 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9838 set avoid indexed addresses on power6 if -maltivec.
9839 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
9840 vector_altivec_load/vector_altivec_store builtins.
9841 (altivec_expand_st_builtin): Ditto.
9842 (altivec_expand_builtin): Add VSX memory builtins.
9843 (rs6000_init_builtins): Add V2DI types to internal types.
9844 (altivec_init_builtins): Add support for V2DF/V2DI altivec
9845 load/store builtins.
9846 (rs6000_address_for_altivec): Insure memory address is appropriate
9849 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
9850 vec_vsx_ld and vec_vsx_st.
9851 (vsx_store_<mode>): Ditto.
9853 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
9854 variables to hold long long types for VSX vector memory builtins.
9855 (RS6000_BTI_unsigned_long_long): Ditto.
9856 (long_long_integer_type_internal_node): Ditti.
9857 (long_long_unsigned_type_internal_node): Ditti.
9859 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
9860 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
9861 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
9863 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
9865 (vec_vsx_st): Ditto.
9867 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9869 * config/pa/pa-hpux10.opt: New.
9870 * config/hpux11.opt (pthread): New Driver option.
9871 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
9872 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
9874 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9876 * config/ia64/vms.opt: New.
9877 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
9879 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9882 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
9883 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
9884 generator functions.
9885 (vsx_floatuns<VSi><mode>2): Ditto.
9886 (vsx_fix_trunc<mode><VSi>2): Ditto.
9887 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9889 2011-02-02 Joseph Myers <joseph@codesourcery.com>
9891 * config/i386/djgpp.opt (posix): New Driver option.
9893 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
9895 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9896 Move to the unsupported targets list.
9898 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
9900 PR rtl-optimization/47525
9901 * df-scan.c: Update copyright years.
9902 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9903 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9905 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9907 * config/i386/sysv4.h (TARGET_VERSION): Remove.
9908 (SUBTARGET_RETURN_IN_MEMORY): Remove.
9909 (ASM_OUTPUT_ASCII): Remove.
9910 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9912 2011-02-02 Jeff Law <law@redhat.com>
9915 * reload.c (find_reloads_address): Handle reg+d address where both
9916 components are invalid by reloading the entire address.
9918 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
9919 Richard Guenther <rguenther@suse.de>
9921 PR tree-optimization/40979
9923 * passes.c (init_optimization_passes): After LIM call copy_prop
9924 and DCE to clean up.
9925 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9927 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
9929 PR tree-optimization/47576
9930 PR tree-optimization/47555
9931 * doc/invoke.texi (scev-max-expr-complexity): Documented.
9932 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9933 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9934 * tree-scalar-evolution.c (follow_ssa_edge): Use
9935 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9937 2011-02-02 Richard Guenther <rguenther@suse.de>
9939 PR tree-optimization/47566
9940 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9942 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
9946 * tree-inline.c (declare_return_variable): Remove unused caller
9951 * tree-flow-inline.h (clear_is_used, is_used_p): New.
9952 * cfgexpand.c (account_used_vars_for_block): Use them.
9953 * tree-nrv.c (tree_nrv): Likewise.
9954 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9955 (dump_scope_block): Likewise.
9956 (remove_unused_locals): Likewise.
9960 * tree-inline.c (declare_return_variable): Add result decl to
9961 local decls only once.
9962 * gimple-low.c (record_vars_into): Mark newly-created variables
9965 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
9971 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9973 (no_real_insns_p, schedule_block, set_priorities): Drop special
9974 treatment of boundary debug insns.
9975 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9976 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9977 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9978 (BOUNDARY_DEBUG_INSN_P): Likewise.
9979 (SCHEDULE_DEBUG_INSN_P): Likewise.
9980 * sched-rgn.c (init_ready_list): Drop special treatment of
9981 boundary debug insns.
9982 * final.c (rest_of_clean_state): Clear notes' BB.
9984 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9986 * config/openbsd.opt (assert=): New Driver option.
9988 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9990 * config/i386/nto.opt: New.
9991 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9993 2011-02-01 Joseph Myers <joseph@codesourcery.com>
9995 * config/i386/netware.opt: New.
9996 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9998 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10000 * config/interix.opt (posix): New Driver option.
10002 2011-02-01 DJ Delorie <dj@redhat.com>
10004 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
10006 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
10009 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
10011 PR tree-optimization/47561
10012 * toplev.c (process_options): Print the Graphite flags. Add
10013 flag_loop_flatten to the list of options requiring Graphite.
10015 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10017 * config/i386/cygming.opt (posix): New Driver option.
10019 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10021 * config/arm/vxworks.opt: New.
10022 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
10024 2011-02-01 Joseph Myers <joseph@codesourcery.com>
10026 * config/alpha/elf.opt: New.
10027 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
10028 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
10030 2011-02-01 Richard Guenther <rguenther@suse.de>
10032 PR tree-optimization/47559
10033 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
10034 store-motion on references that can throw.
10036 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
10038 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
10039 * tree-pass.h (TDF_CSELIB): New macro.
10040 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
10041 cselib_lookup): Check for it rather than for TDF_DETAILS.
10043 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
10046 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
10047 is HOST_BIT_BUCKET.
10049 * opts.c (finish_options): Don't add x_aux_base_name if it is
10052 2011-02-01 Richard Guenther <rguenther@suse.de>
10054 PR tree-optimization/47555
10056 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
10058 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10060 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
10063 * config/lm32/t-lm32: Add multilib for all CPU options.
10065 2011-02-01 Richard Guenther <rguenther@suse.de>
10067 PR tree-optimization/47541
10068 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
10069 sure to have a field at offset zero.
10071 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10073 * config/arc/arc.opt (EB, EL): New Driver options.
10075 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10077 * config/alpha/osf5.opt: New.
10078 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
10080 2011-01-31 Joseph Myers <joseph@codesourcery.com>
10082 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
10084 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
10086 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
10087 -floop-interchange.
10088 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
10089 is an alias of -floop-interchange and that it requires the
10090 Graphite infrastructure.
10091 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
10092 flag_loop_interchange based on the value of flag_tree_loop_linear.
10094 2011-01-31 Jakub Jelinek <jakub@redhat.com>
10095 Richard Guenther <rguenther@suse.de>
10097 PR tree-optimization/47538
10098 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
10099 type instead of r1type, except for comparisons. For right
10100 shifts and comparisons punt if there are mismatches in
10101 sizetype vs. non-sizetype types.
10103 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10105 * doc/sourcebuild.texi (Effective-Target Keywords): Document
10108 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10110 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
10112 * configure: Regenerate.
10114 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10116 * configure.ac (gcc_cv_ld_static_option): Define.
10117 (gcc_cv_ld_dynamic_option): Define.
10118 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
10120 (HAVE_LD_STATIC_DYNAMIC): Update message.
10121 (LD_STATIC_OPTION): Define.
10122 (LD_DYNAMIC_OPTION): Define.
10123 * configure: Regenerate.
10124 * config.in: Regenerate.
10125 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
10126 HAVE_LD_STATIC_DYNAMIC]: Use them.
10128 2011-01-31 Nick Clifton <nickc@redhat.com>
10130 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
10131 registers inside interrupt handlers if the handler is not a leaf
10134 2011-01-31 Nick Clifton <nickc@redhat.com>
10136 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
10137 reg_renumber returning an INVALID_REGNUM.
10139 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
10142 * doc/install.texi: Document host options discarded when cross
10143 configuring target libraries.
10145 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
10148 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
10151 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10153 (no_real_insns_p, schedule_block, set_priorities): Drop special
10154 treatment of boundary debug insns.
10155 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10156 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10157 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10158 (BOUNDARY_DEBUG_INSN_P): Likewise.
10159 (SCHEDULE_DEBUG_INSN_P): Likewise.
10160 * sched-rgn.c (init_ready_list): Drop special treatment of
10161 boundary debug insns.
10162 * final.c (rest_of_clean-state): Clear notes' BB.
10164 2011-01-31 Alan Modra <amodra@gmail.com>
10166 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
10167 toc relative expressions as we do in print_operand_address.
10169 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
10171 * doc/extend.texi: Follow spelling conventions.
10172 * doc/invoke.texi: Fix a typo.
10174 2011-01-30 Joseph Myers <joseph@codesourcery.com>
10176 * config/hpux11.opt: New.
10177 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
10178 ia64*-*-hpux*): Use hpux11.opt.
10180 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
10182 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
10185 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10187 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
10190 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10192 * doc/install.texi (Binaries): Remove outdated reference for
10193 Motorola 68HC11/68HC12 downloads.
10195 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
10197 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
10200 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
10203 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
10206 2011-01-28 Ahmad Sharif <asharif@google.com>
10208 * value-prof.c (check_counter): Corrected error message.
10210 2011-01-29 Jie Zhang <jie@codesourcery.com>
10212 * config/arm/arm.c (arm_legitimize_reload_address): New.
10213 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10214 arm_legitimize_reload_address.
10215 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
10217 2011-01-28 Ian Lance Taylor <iant@google.com>
10219 * godump.c (go_define): Ignore macros whose definitions include
10220 two adjacent operands.
10222 2011-01-28 Jakub Jelinek <jakub@redhat.com>
10225 * varasm.c (force_const_mem): Store copy of x in desc->constant
10226 instead of x itself.
10227 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
10228 itself into REG_EQUAL note.
10230 2011-01-28 Joseph Myers <joseph@codesourcery.com>
10232 * config/freebsd.opt (posix, rdynamic): New Driver options.
10234 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10236 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
10237 -Bstatic/-Bdynamic.
10238 * configure: Regenerate.
10240 2011-01-27 Joseph Myers <joseph@codesourcery.com>
10242 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
10243 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
10245 2011-01-27 Anatoly Sokolov <aesok@post.ru>
10247 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
10248 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
10249 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10250 (s390_preferred_reload_class): Make static. Change return and
10251 'rclass' argument type to reg_class_t.
10253 2011-01-27 Jan Hubicka <jh@suse.cz>
10255 PR middle-end/46949
10256 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
10257 (process_function_and_variable_attributes): Check defined weakrefs.
10259 2011-01-27 Martin Jambor <mjambor@suse.cz>
10261 PR tree-optimization/47228
10262 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
10263 build_ref_for_offset.
10265 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10267 * config/spu/spu-elf.h (ASM_SPEC): Remove.
10269 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
10271 PR rtl-optimization/46856
10272 * postreload.c (reload_combine_recognize_const_pattern): Do not
10273 separate cc0 setter and user on cc0 targets.
10275 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
10278 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
10279 passed a VOID_TYPE expression, immediately emit an error and
10280 return error_mark_node.
10282 2011-01-26 Jeff Law <law@redhat.com>
10284 PR rtl-optimization/47464
10285 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
10286 rather than may_trap_p as needed.
10288 2011-01-26 DJ Delorie <dj@redhat.com>
10290 PR rtl-optimization/46878
10291 * combine.c (insn_a_feeds_b): Check for the implicit cc0
10292 setter/user dependency as well.
10294 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
10296 PR rtl-optimization/44469
10297 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
10298 after removing trivially dead basic blocks.
10300 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10302 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
10303 * config/frv/frv.h (LINK_SPEC): Likewise.
10304 * config/i386/netware.h (LINK_SPEC): Likewise.
10305 * config/m68k/linux.h (ASM_SPEC): Likewise.
10306 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
10307 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10308 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10309 * config/sparc/linux.h (ASM_SPEC): Likewise.
10310 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10311 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10313 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10315 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
10316 * config/frv/frv.h (ASM_SPEC): Likewise.
10317 * config/m68k/linux.h (ASM_SPEC): Likewise.
10318 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
10319 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
10320 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10321 * config/sparc/linux.h (ASM_SPEC): Likewise.
10322 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10323 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10325 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10327 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
10328 * config/frv/frv.h (LINK_SPEC): Likewise.
10329 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10331 2011-01-26 Joseph Myers <joseph@codesourcery.com>
10333 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
10334 * config/frv/frv.h (ASM_SPEC): Likewise.
10335 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
10336 * config/m68k/linux.h (ASM_SPEC): Likewise.
10337 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
10338 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
10339 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10340 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
10341 * config/sparc/linux.h (ASM_SPEC): Likewise.
10342 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10343 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10344 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
10346 2011-01-26 Steve Ellcey <sje@cup.hp.com>
10349 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
10351 (vec_extract_evenodd_help): Ditto.
10352 (vec_extract_evenv4hi): Ditto.
10353 (vec_extract_oddv4hi): Ditto.
10354 (vec_interleave_lowv2si): Ditto.
10355 (vec_interleave_highv2si): Ditto.
10356 (vec_extract_evenv2si): Ditto.
10357 (vec_extract_oddv2si: Ditto.
10358 (vec_pack_trunc_v2si): Ditto.
10360 2011-01-22 Jan Hubicka <jh@suse.cz>
10363 * cgraph.h (cgraph_local_info): New field can_change_signature.
10364 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
10365 signature can change.
10366 (ipcp_estimate_growth): Call sequence simplify only if calle signature
10368 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
10369 (cgraph_function_versioning): We can not change signature of functions
10370 that don't allow that.
10371 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
10372 (lto_input_node): Likewise.
10373 * ipa-inline.c (compute_inline_parameters): Compute
10374 local.can_change_signature.
10375 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
10376 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
10377 functions that can not change signature.
10378 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
10379 init_cumulative_args): Do not use local calling conventions
10380 for functions that can not change signature.
10382 2011-01-22 Jan Hubicka <jh@suse.cz>
10384 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
10386 2011-01-26 Richard Guenther <rguenther@suse.de>
10388 PR tree-optimization/47190
10389 * cgraphunit.c (process_common_attributes): New function.
10390 (process_function_and_variable_attributes): Use it.
10392 2011-01-26 Richard Guenther <rguenther@suse.de>
10395 * cgraphbuild.c (record_eh_tables): Record reference to personality
10398 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
10401 * sel-sched.c (moveup_expr): Don't let debug insns prevent
10402 non-debug insns from moving up.
10404 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
10407 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
10408 t-dlldir{,-x} fragment for build and add it to tmake_file.
10409 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
10410 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
10411 * config/i386/t-dlldir: New file.
10412 (SHLIB_DLLDIR): Define.
10413 * config/i386/t-dlldir-x: New file.
10414 (SHLIB_DLLDIR): Define.
10415 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
10416 (SHLIB_INSTALL): Use it.
10418 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
10421 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
10422 lower bound of the allowed Thumb-2 coprocessor load/store
10423 index range to -256. Add explaining comment.
10425 2011-01-25 Ian Lance Taylor <iant@google.com>
10427 * godump.c (go_define): Improve lexing of macro expansion to only
10428 accept expressions which match Go spec.
10430 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
10433 * tree.c (handle_dll_attribute): Handle it.
10434 * doc/extend.texi (@item dllexport): Mention it.
10435 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
10437 2011-01-25 Ian Lance Taylor <iant@google.com>
10439 PR tree-optimization/26854
10440 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
10441 (decl_jump_unsafe): Move higher in file, with no other change.
10442 (bind): Set has_jump_unsafe_decl if appropriate.
10443 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
10444 (check_earlier_gotos): Likewise.
10445 (c_check_switch_jump_warnings): Likewise.
10447 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
10449 * doc/invoke.texi (Warning Options): Add missing hyphen.
10450 (-fprofile-dir): Minor grammatical fixes.
10451 (-fbranch-probabilities): Likewise.
10453 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
10457 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
10459 (no_real_insns_p, schedule_block, set_priorities): Drop special
10460 treatment of boundary debug insns.
10461 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
10462 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
10463 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
10464 (BOUNDARY_DEBUG_INSN_P): Likewise.
10465 (SCHEDULE_DEBUG_INSN_P): Likewise.
10466 * sched-rgn.c (init_ready_list): Drop special treatment of
10467 boundary debug insns.
10468 * final.c (rest_of_clean-state): Clear notes' BB.
10470 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10472 * Makefile.in (LAMBDA_H): Removed.
10473 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
10474 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
10475 lambda-trans.o, and tree-loop-linear.o.
10476 (lto-symtab.o): Remove dependence on LAMBDA_H.
10477 (tree-loop-linear.o): Remove rule.
10478 (lambda-mat.o): Same.
10479 (lambda-trans.o): Same.
10480 (lambda-code.o): Same.
10481 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
10482 (tree-vect-slp.o): Same.
10483 * hwint.h (gcd): Moved here.
10484 (least_common_multiple): Same.
10485 * lambda-code.c: Removed.
10486 * lambda-mat.c: Removed.
10487 * lambda-trans.c: Removed.
10488 * lambda.h: Removed.
10489 * tree-loop-linear.c: Removed.
10490 * lto-symtab.c: Do not include lambda.h.
10491 * omega.c (gcd): Removed.
10492 * passes.c (init_optimization_passes): Remove pass_linear_transform.
10493 * tree-data-ref.c (print_lambda_vector): Moved here.
10494 (lambda_vector_copy): Same.
10495 (lambda_matrix_copy): Same.
10496 (lambda_matrix_id): Same.
10497 (lambda_vector_first_nz): Same.
10498 (lambda_matrix_row_add): Same.
10499 (lambda_matrix_row_exchange): Same.
10500 (lambda_vector_mult_const): Same.
10501 (lambda_vector_negate): Same.
10502 (lambda_matrix_row_negate): Same.
10503 (lambda_vector_equal): Same.
10504 (lambda_matrix_right_hermite): Same.
10505 * tree-data-ref.h: Do not include lambda.h.
10506 (lambda_vector): Moved here.
10507 (lambda_matrix): Same.
10508 (dependence_level): Same.
10509 (lambda_transform_legal_p): Removed declaration.
10510 (lambda_collect_parameters): Same.
10511 (lambda_compute_access_matrices): Same.
10512 (lambda_vector_gcd): Same.
10513 (lambda_vector_new): Same.
10514 (lambda_vector_clear): Same.
10515 (lambda_vector_lexico_pos): Same.
10516 (lambda_vector_zerop): Same.
10517 (lambda_matrix_new): Same.
10518 * tree-flow.h (least_common_multiple): Removed declaration.
10519 * tree-parloops.c (lambda_trans_matrix): Moved here.
10520 (LTM_MATRIX): Same.
10521 (LTM_ROWSIZE): Same.
10522 (LTM_COLSIZE): Same.
10523 (LTM_DENOMINATOR): Same.
10524 (lambda_trans_matrix_new): Same.
10525 (lambda_matrix_vector_mult): Same.
10526 (lambda_transform_legal_p): Same.
10527 * tree-pass.h (pass_linear_transform): Removed declaration.
10528 * tree-ssa-loop.c (tree_linear_transform): Removed.
10529 (gate_tree_linear_transform): Removed.
10530 (pass_linear_transform): Removed.
10531 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
10532 flag_loop_interchange.
10534 2011-01-25 Jakub Jelinek <jakub@redhat.com>
10536 PR tree-optimization/47265
10537 PR tree-optimization/47443
10538 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
10539 if name still has some uses.
10541 2011-01-25 Martin Jambor <mjambor@suse.cz>
10543 PR tree-optimization/47382
10544 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
10545 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
10547 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
10549 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
10550 sjlj_except_unwind_info.
10552 2011-01-25 Richard Guenther <rguenther@suse.de>
10554 PR tree-optimization/47426
10555 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
10556 visible functions results escape.
10558 2011-01-25 Jakub Jelinek <jakub@redhat.com>
10561 * config/arm/arm.c (any_sibcall_uses_r3): New function.
10562 (arm_get_frame_offsets): Use it.
10564 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10565 Jakub Jelinek <jakub@redhat.com>
10567 PR tree-optimization/47271
10568 * tree-if-conv.c (bb_postdominates_preds): New.
10569 (if_convertible_bb_p): Call bb_postdominates_preds.
10570 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
10571 (predicate_scalar_phi): Call bb_postdominates_preds.
10573 2011-01-25 Nick Clifton <nickc@redhat.com>
10575 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
10576 * config/rx/rx.c (rx_function_value): Likewise.
10577 (rx_promote_function_mode): Likewise.
10578 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
10579 in order to make it legitimate.
10580 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
10581 make sure that the first operand is the same as the result register.
10582 (addsi3_unspec): Delete.
10583 (subdi3): Do not accept immediate operands.
10584 (subdi3_internal): Likewise.
10586 2011-01-25 Jeff Law <law@redhat.com>
10588 PR rtl-optimization/37273
10589 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10590 handle them like argument loads from stack slots. Do not double
10591 count memory for memory constants and argument loads from stack slots.
10593 2011-01-25 Jakub Jelinek <jakub@redhat.com>
10595 PR tree-optimization/47427
10596 PR tree-optimization/47428
10597 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
10598 coalesce if the new root var would be TREE_READONLY.
10600 2011-01-25 Richard Guenther <rguenther@suse.de>
10602 PR middle-end/47414
10603 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
10604 correct type for TBAA.
10606 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10608 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
10609 (close_phi_written_to_memory): Call for_each_index with
10610 dr_indices_valid_in_loop.
10612 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10614 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
10615 when it is initialized.
10617 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10619 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
10620 call to graphite_find_data_references_in_stmt.
10621 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
10622 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
10623 call to graphite_find_data_references_in_stmt.
10624 (analyze_drs_in_stmts): Same.
10625 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
10626 in which the scalar analysis of indices is performed.
10627 (create_data_ref): Same. Update call to dr_analyze_indices.
10628 (find_data_references_in_stmt): Update call to create_data_ref.
10629 (graphite_find_data_references_in_stmt): Same.
10630 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
10632 (create_data_ref): Same.
10633 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
10634 call to create_data_ref.
10636 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10638 * graphite-sese-to-poly.c (build_poly_scop): Move
10639 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
10641 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10643 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
10644 VAR_DECL, PARM_DECL, and RESULT_DECL.
10646 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10648 * graphite-dependences.c (reduction_dr_1): Allow several reductions
10649 in a reduction PBB.
10650 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
10651 that have already been marked as PBB_IS_REDUCTION.
10653 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10655 * graphite-scop-detection.c (same_close_phi_node): New.
10656 (remove_duplicate_close_phi): New.
10657 (make_close_phi_nodes_unique): New.
10658 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
10660 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10662 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
10663 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
10664 of both data references to be the same.
10666 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10668 * graphite-dependences.c (build_lexicographical_constraint): Remove
10669 the gdim parameter.
10670 (build_lexicographical_constraint): Adjust call to
10671 ppl_powerset_is_empty.
10672 (dependence_polyhedron): Same.
10673 (graphite_legal_transform_dr): Same.
10674 (graphite_carried_dependence_level_k): Same.
10675 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
10677 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
10679 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10681 * graphite-sese-to-poly.c
10682 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
10683 (close_phi_written_to_memory): New.
10684 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
10687 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10689 * doc/install.texi: Update the expected version number of PPL to 0.11.
10690 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
10691 #if PPL_VERSION_MINOR < 11.
10693 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10695 * graphite-dependences.c: Include graphite-cloog-util.h.
10696 (new_poly_ddr): Inlined into dependence_polyhedron.
10697 (free_poly_ddr): Moved close by new_poly_ddr.
10698 (dependence_polyhedron_1): Renamed dependence_polyhedron.
10699 Early return NULL when ppl_powerset_is_empty returns true.
10700 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
10701 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
10702 (graphite_legal_transform_dr): Call new_poly_ddr.
10703 (graphite_carried_dependence_level_k): Same.
10704 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
10705 (dot_transformed_deps_stmt_1): Removed.
10706 (dot_deps_stmt_1): Call dot_deps_stmt_2.
10707 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
10708 (dot_deps_1): Call dot_deps_2.
10709 * Makefile.in (graphite-dependences.o): Add missing dependence on
10710 graphite-cloog-util.h.
10712 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10714 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
10715 (build_lexicographical_constraint): Same.
10716 (dependence_polyhedron_1): Same.
10717 (graphite_legal_transform_dr): Same.
10718 (graphite_carried_dependence_level_k): Same.
10719 * graphite-ppl.c (ppl_powerset_is_empty): New.
10720 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
10721 * tree-data-ref.c (dump_data_reference): Print the basic block index.
10723 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10725 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
10726 the "a followed by b" relation and document it.
10728 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10730 * graphite-dependences.c (build_lexicographical_constraint): Stop the
10731 iteration when the bag of constraints is empty.
10733 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10735 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
10737 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10739 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
10740 nest and two loop depths as parameters.
10741 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
10742 lst_perfect_nestify.
10744 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10746 * graphite-dependences.c (print_pddr): Call
10747 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
10749 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10751 * graphite-ppl.c (debug_gmp_value): New.
10752 * graphite-ppl.h (debug_gmp_value): Declared.
10754 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
10756 * doc/install.texi: Document availability of cloog-0.16.
10758 2011-01-25 Vladimir Kargov <kargov@gmail.com>
10760 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
10761 invalid postdominance info.
10763 2011-01-24 Jan Hubicka <jh@suse.cz>
10766 * doc/extend.texi (weak pragma): Drop claim that it must
10767 appear before definition.
10768 * varasm.c (merge_weak, declare_weak): Only sanity check
10769 that DECL is not output at a time it is declared weak.
10771 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
10773 * machmode.def: Fixed comments.
10775 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
10777 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
10779 2011-01-24 Paul Koning <ni1d@arrl.net>
10781 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
10784 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
10787 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
10788 (block_info): Add scanned and prev.
10789 (move_or_delete_vzeroupper_2): Return if the basic block
10790 has been scanned and the upper 128bit state is unchanged
10791 from the last scan.
10792 (move_or_delete_vzeroupper_1): Return true if the exit
10794 (move_or_delete_vzeroupper): Visit basic blocks using the
10795 work-list based algorithm based on vt_find_locations in
10798 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
10800 2011-01-24 Nick Clifton <nickc@redhat.com>
10802 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
10803 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
10804 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
10805 then define __v850e1__.
10806 * doc/invoke.texi: Document -mv850es.
10808 2011-01-24 Richard Henderson <rth@redhat.com>
10810 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
10811 compound unordered comparisons.
10812 * config/rx/rx.c (rx_split_fp_compare): Remove.
10813 * config/rx/rx-protos.h: Update.
10814 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
10815 (cbranchsf4): Don't call rx_split_fp_compare.
10816 (*cbranchsf4): Use rx_split_cbranch.
10817 (*cmpsf): Don't accept "i" constraint.
10818 (*conditional_branch): Only valid after reload.
10819 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
10821 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
10824 * config/rs6000/altivec.md (vector constant splitters): Add
10825 support for creating vector single precision constants if -mvsx is
10826 used and we would create the constant using Altivec primitives.
10828 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
10829 Richard Sandiford <rdsandiford@googlemail.com>
10831 PR rtl-optimization/47166
10832 * reload1.c (emit_reload_insns): Disable the spill_reg_store
10833 mechanism for PRE_MODIFY and POST_MODIFY.
10834 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
10837 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
10839 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
10841 2011-01-22 Jan Hubicka <jh@suse.cz>
10844 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
10846 2011-01-22 Jan Hubicka <jh@suse.cz>
10848 PR tree-optimization/43884
10850 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
10851 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
10853 2011-01-22 Anatoly Sokolov <aesok@post.ru>
10855 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10856 * config/s390/s390.c (s390_register_move_cost,
10857 s390_memory_move_cost): New.
10858 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10860 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10862 PR middle-end/47401
10863 * except.c (sjlj_assign_call_site_values): Move setting the
10864 crtl->uses_eh_lsda flag to ...
10865 (sjlj_mark_call_sites): ... here.
10866 (sjlj_emit_function_enter): Support NULL dispatch label.
10867 (sjlj_build_landing_pads): In a function with no landing pads
10868 that still has must-not-throw regions, generate code to register
10869 a personality function with empty LSDA.
10871 2011-01-21 Richard Henderson <rth@redhat.com>
10873 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
10875 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
10877 * compare-elim.c: New file.
10878 * Makefile.in (OBJS-common): Add it.
10879 (compare-elim.o): New.
10880 * common.opt (fcompare-elim): New.
10881 * opts.c (default_options_table): Add OPT_fcompare_elim.
10882 * tree-pass.h (pass_compare_elim_after_reload): New.
10883 * passes.c (init_optimization_passes): Add it.
10884 * recog.h: Protect against re-inclusion.
10885 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10886 * doc/invoke.texi (-fcompare-elim): Document it.
10887 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10888 * doc/tm.texi: Rebuild.
10890 2011-01-22 Nick Clifton <nickc@redhat.com>
10892 * config/rx/rx.md (cstoresf4): Pass comparison operator to
10893 rx_split_fp_compare.
10895 2011-01-22 Nick Clifton <nickc@redhat.com>
10897 * config/rx/rx.md (UNSPEC_CONST): New.
10898 (deallocate_and_return): Wrap the amount popped off the stack in
10899 an UNSPEC_CONST in order to stop it being rejected by
10900 -mmax-constant-size.
10901 (pop_and_return): Add a "(return)" rtx.
10902 (call): Drop the immediate operand.
10903 (call_internal): Likewise.
10904 (call_value): Likewise.
10905 (call_value_internal): Likewise.
10906 (sibcall_internal): Likewise.
10907 (sibcall_value_internal): Likewise.
10908 (sibcall): Likewise. Generate an explicit call using
10910 (sibcall_value): Likewise.
10911 (mov<>): FAIL if a constant operand is not legitimate.
10912 (addsi3_unpsec): New pattern.
10914 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
10915 (ok_for_max_constant): New function.
10916 (gen_safe_add): New function.
10917 (rx_expand_prologue): Use gen_safe_add.
10918 (rx_expand_epilogue): Likewise.
10919 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
10922 2011-01-21 Jeff Law <law@redhat.com>
10924 PR tree-optimization/47053
10925 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10926 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10927 statements are deleted.
10928 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
10929 is nonempty, then purge dead edges and cleanup the CFG.
10931 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10934 Temporarily revert:
10935 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10937 * tree-dfa.c (create_var_ann): Mark variable as used.
10939 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10941 PR middle-end/45566
10942 * except.c (convert_to_eh_region_ranges): Emit queued no-region
10943 notes from other section in hot/cold partitioning even if
10944 last_action is -3. Increment call_site_base.
10946 PR rtl-optimization/47366
10947 * fwprop.c (forward_propagate_into): Return bool. If
10948 any changes are made, -fnon-call-exceptions is used and
10949 REG_EH_REGION note is present, call purge_dead_edges
10950 and return true if it purged anything.
10951 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10952 any EH edges were purged.
10954 2011-01-21 Jeff Law <law@redhat.com>
10956 PR rtl-optimization/41619
10957 * caller-save.c (setup_save_areas): Break out code to determine
10958 which hard regs are live across calls by examining the reload chains
10959 so that it is always used.
10960 Eliminate code which checked REG_N_CALLS_CROSSED.
10962 2011-01-21 Jakub Jelinek <jakub@redhat.com>
10964 PR tree-optimization/47355
10965 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10966 NOP has non-debug uses beyond PHIs in new_bb.
10968 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10971 * cfgexpand.c (account_used_vars_for_block): Only account vars
10972 that are annotated as used.
10973 (estimated_stack_frame_size): Don't set TREE_USED.
10974 * tree-dfa.c (create_var_ann): Mark variable as used.
10976 2011-01-21 Richard Guenther <rguenther@suse.de>
10978 PR middle-end/47395
10979 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10981 2011-01-21 Richard Guenther <rguenther@suse.de>
10983 PR tree-optimization/47365
10984 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10985 (vn_reference_lookup_pieces): Adjust.
10986 (vn_reference_lookup): Likewise.
10987 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10988 (vn_reference_lookup_3): Only look through kills if in
10989 VN_WALKREWRITE mode.
10990 (vn_reference_lookup_pieces): Adjust.
10991 (vn_reference_lookup): Likewise.
10992 (visit_reference_op_load): Likewise.
10993 (visit_reference_op_store): Likewise.
10994 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10995 (compute_avail): Likewise.
10996 (eliminate): Likewise.
10998 2011-01-21 Jakub Jelinek <jakub@redhat.com>
11000 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
11001 DECL_IGNORED_P non-reg vars if they are used.
11003 PR tree-optimization/47391
11004 * varpool.c (const_value_known_p): Return false if
11007 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
11010 * config/i386/i386.c (ix86_local_alignment): Handle
11011 case for va_list_type_node is nil.
11012 (ix86_canonical_va_list_type): Likewise.
11014 2011-01-21 Alan Modra <amodra@gmail.com>
11016 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
11017 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
11019 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11021 * config/arm/arm.md (define_attr type): Rename f_load
11022 and f_store to f_fpa_load and f_fpa_store. Update.
11023 (write_conflict): Deal with rename fallout.
11024 (*push_fp_multi): Likewise.
11025 * config/arm/fpa.md (f_load): Use f_fpa_load.
11026 (f_store): Use f_fpa_store.
11027 (*movsf_fpa): Likewise.
11028 (*movdf_fpa): Likewise.
11029 (*movxf_fpa): Likewise.
11030 (*thumb2_movsf_fpa): Likewise.
11031 (*thumb2_movdf_fpa): Likewise.
11032 (*thumb2_movxf_fpa): Likewise.
11033 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
11034 f_loadd and f_stored.
11035 (*thumb2_movdi_vfp): Likewise.
11036 (*thumb2_movsf_vfp): Fix attribute to f_loads.
11037 (*thumb2_movsi_vfp): Likewise.
11038 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
11039 Use f_loads instead of f_load.
11040 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
11042 2011-01-20 Anatoly Sokolov <aesok@post.ru>
11044 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11045 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
11046 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11047 (xtensa_mode_dependent_address_p): New function.
11048 (constantpool_address_p): Make static. Change return type to bool.
11049 Change argument type to const_rtx. Use CONST_INT_P predicate.
11051 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
11054 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
11056 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11059 * cfgexpand.c (expand_debug_expr): Instead of generating
11060 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
11063 2011-01-20 Richard Guenther <rguenther@suse.de>
11065 PR middle-end/47370
11066 * tree-inline.c (remap_gimple_op_r): Recurse manually for
11067 the pointer operand of MEM_REFs.
11069 2011-01-20 Jakub Jelinek <jakub@redhat.com>
11071 PR tree-optimization/46130
11072 * ipa-split.c (consider_split): If return_bb contains non-virtual
11073 PHIs other than for retval or if split_function would not adjust it,
11076 2011-01-20 Richard Guenther <rguenther@suse.de>
11078 PR tree-optimization/47167
11079 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
11080 Revert previous change, only avoid enumeral type changes.
11082 2011-01-19 Mike Stump <mikestump@comcast.net>
11084 * doc/tm.texi.in (BRANCH_COST): Englishify.
11085 * doc/tm.texi (BRANCH_COST): Likewise.
11087 2011-01-19 Dodji Seketeli <dodji@redhat.com>
11090 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
11091 (gen_scheduled_generic_parms_dies): New functions.
11092 (gen_struct_or_union_type_die): Schedule template parameters DIEs
11093 generation for the end of CU compilation.
11094 (dwarf2out_finish): Generate template parameters DIEs here.
11096 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11099 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
11100 debug bind stmt on merge edges.
11102 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11106 * function.c (instantiate_expr): Instantiate incoming rtl of
11107 implicit arguments, and recurse on VALUE_EXPRs.
11108 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
11109 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
11111 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
11113 * c-parser.c (c_parser_for_statement): Initialize
11114 collection_expression.
11116 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11118 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
11120 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11122 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
11123 (LINK_SHLIB_SPEC): Don't use %(link_path).
11124 (SUBTARGET_EXTRA_SPECS): Remove link_path.
11126 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11128 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
11129 (NO_SHARED_LIB_SUPPORT): Remove.
11130 (LINK_SHLIB_SPEC): Remove one conditional definition.
11132 2011-01-19 Joseph Myers <joseph@codesourcery.com>
11134 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
11136 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
11137 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
11138 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
11139 %{call_shared} and conditionals on these options not being passed.
11140 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
11143 2011-01-19 Jakub Jelinek <jakub@redhat.com>
11145 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
11148 * ipa-split.c: Spelling fixes.
11150 2011-01-19 Richard Henderson <rth@redhat.com>
11152 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
11153 (*mulsi3): Likewise.
11155 * longlong.h [__mn10300__] (count_leading_zeros): New.
11156 [__mn10300__] (umul_ppmm, smul_ppmm): New.
11157 [__mn10300__] (add_ssaaaa, subddmmss): New.
11158 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
11159 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
11161 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11163 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
11165 2011-01-19 Richard Henderson <rth@redhat.com>
11167 * config/mn10300/mn10300.md (addsi3_flags): New.
11168 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
11169 (subsi3_flags, subc_internal, subdi3): New.
11170 (subdi3_internal, *subdi3_degenerate): New.
11171 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
11173 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
11174 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
11175 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
11176 * config/mn10300/mn10300-protos.h: Update.
11177 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
11178 (return_ret): Likewise. Rename from return_internal_regs.
11179 (return_internal): Remove.
11181 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
11182 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
11183 (mn10300_legitimate_constant_p): Likewise.
11184 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
11185 (mn10300_frame_size): New.
11186 (mn10300_expand_prologue): Use it.
11187 (mn10300_expand_epilogue): Likewise.
11188 (mn10300_initial_offset): Likewise.
11189 * config/mn10300/mn10300-protos.h: Update.
11190 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
11191 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
11192 (prologue, epilogue, return_internal): Tidy output code.
11193 (mn10300_store_multiple_operation, return): Likewise.
11194 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
11195 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
11196 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
11197 (load_pic, am33_load_pic): New.
11198 (mn10300_load_pic0, mn10300_load_pic1): New.
11200 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
11201 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
11202 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
11203 (cc_flags_for_mode, cc_flags_for_code): New.
11204 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
11205 overflow flag is not valid. Validate that the flags we need
11206 for the comparison are valid.
11207 (mn10300_output_cmp): Remove.
11208 (mn10300_output_add): New.
11209 (mn10300_select_cc_mode): Use cc_flags_for_code.
11210 (mn10300_split_cbranch): New.
11211 (mn10300_match_ccmode): New.
11212 (mn10300_split_and_operand_count): New.
11213 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
11215 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
11216 (addsi3): ... here. Use mn10300_output_add.
11217 (*addsi3_flags): New.
11218 (*am33_subsi3, *mn10300_subsi3): Merge...
11219 (subsi3): ... here. Use attribute isa.
11220 (*subsi3_flags): New.
11221 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
11223 (*am33_andsi3, *mn10300_andsi3): Merge...
11224 (andsi3): ... here.
11225 (*andsi3_flags): New.
11226 (andsi3 splitters): New.
11227 (*am33_iorsi3, *mn10300_iorsi3): Merge...
11228 (iorsi3): ... here.
11229 (*iorsi3_flags): New.
11230 (*am33_xorsi3, *mn10300_xorsi3): Merge...
11231 (xorsi3): ... here.
11232 (*xorsi3_flags): New.
11233 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
11234 (one_cmplsi2): ... here.
11235 (*one_cmplsi2_flags): New.
11236 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
11237 instead of "dax" in constraints. Use mn10300_split_cbranch.
11238 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
11239 use matching constraints to eliminate a self-comparison.
11240 (*integer_conditional_branch): Rename from integer_conditional_branch.
11241 Use int_mode_flags to match CC_REG.
11242 (*cbranchsi4_btst, *btstsi): New.
11243 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
11244 mn10300_split_cbranch.
11245 (*am33_cmpsf): Rename from am33_cmpsf.
11246 (*float_conditional_branch): Rename from float_conditional_branch.
11247 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
11248 (zero_extendqisi2): ... here.
11249 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
11250 (zero_extendhisi2): ... here.
11251 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
11252 (extendqisi2): ... here.
11253 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
11254 (extendhisi2): ... here.
11255 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
11256 (ashlsi3): ... here.
11257 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
11258 (lshrsi3): ... here.
11259 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
11260 (ashrsi3): ... here.
11261 (consecutive add peephole): Remove.
11262 * config/mn10300/predicates.md (label_ref_operand): New.
11263 (int_mode_flags): New.
11264 (CCZN_comparison_operator): New.
11266 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
11267 (throughput_42_latency_43): New reservation.
11268 (mulsidi3, umulsidi3): New expanders.
11269 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
11270 the MDR register to allocation; separately allocate the low and
11271 high parts of the DImode result.
11272 (umulsidi3_internal): Similarly.
11273 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
11274 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
11275 (udivsi3, umodsi3): Remove.
11276 (udivmodsi4, divmodsi4): New expanders.
11277 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
11278 (*divmodsi4): Simiarly.
11279 (ext_internal): New.
11281 * config/mn10300/constraints.md ("z"): New constraint.
11282 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
11283 (FIXED_REGISTERS): Don't fix MDR.
11284 (CALL_USED_REGSITERS): Reformat nicely.
11285 (REG_ALLOC_ORDER): Add MDR.
11286 (enum regclass): Add MDR_REGS.
11287 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
11288 (IRA_COVER_CLASSES): Add MDR_REGS.
11289 (REGNO_REG_CLASS): Handle MDR_REG.
11290 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
11291 (mn10300_register_move_cost): Likewise.
11292 * config/mn10300/mn10300.md (MDR_REG): New.
11293 (*movsi_internal): Handle moves to/from MDR_REGS.
11295 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
11297 (mn10300_secondary_reload): Tidy combination reload classes.
11298 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
11299 addresses for AM33. Allow symbolic offsets for reg+imm.
11300 (mn10300_regno_in_class_p): New.
11301 (mn10300_legitimize_reload_address): New.
11302 * config/mn10300/mn10300.h (enum reg_class): Remove
11303 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
11304 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
11305 SP_OR_GENERAL_REGS.
11306 (REG_CLASS_NAMES): Update to match.
11307 (REG_CLASS_CONTENTS): Likewise.
11308 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
11309 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
11310 (REGNO_IN_RANGE_P): Remove.
11311 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
11312 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
11313 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
11314 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
11315 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
11316 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
11317 (REGNO_GENERAL_P): New.
11318 (HAVE_POST_MODIFY_DISP): New.
11319 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
11320 (LEGITIMIZE_RELOAD_ADDRESS): New.
11321 * config/mn10300/mn10300-protos.h: Update.
11323 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
11324 DATA_REGS for AM33 stack-pointer destination.
11325 (mn10300_preferred_output_reload_class): Likewise.
11326 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
11327 into a form appropriate for ...
11328 (TARGET_SECONDARY_RELOAD): New.
11329 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
11330 * config/mn10300/mn10300-protos.h: Update.
11331 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
11332 reload_insi; use the "A" constraint for the scratch; handle AM33
11333 moves of sp to non-address registers.
11335 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
11336 (*movqi_internal): ... here.
11337 (*am33_movhi, *mn10300_movhi): Merge into...
11338 (*movhi_internal): ... here.
11339 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
11340 as the source/destination of moves from/to SP.
11341 (movsf): Only allow for AM33-2.
11342 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
11343 any integer constant constraint. Only allow for AM33-2. Tidy
11344 all of the alternative outputs.
11345 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
11346 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
11348 (udivsi3, umodsi3): New patterns for MN103 only.
11350 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
11352 * doc/tm.texi.in: Spell out that a lack of register class unions
11354 * doc/tm.texi: Regenerate.
11356 2011-01-19 Jakub Jelinek <jakub@redhat.com>
11358 PR rtl-optimization/47337
11359 * dce.c (check_argument_store): New function.
11360 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
11362 PR tree-optimization/47290
11363 * tree-eh.c (infinite_empty_loop_p): New function.
11364 (cleanup_empty_eh): Use it.
11366 2011-01-18 Steve Ellcey <sje@cup.hp.com>
11369 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
11370 (a64_expand_widen_sum): Ditto.
11371 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
11372 (vec_extract_evenodd_help): Ditto.
11373 (vec_extract_evenv4hi): Ditto.
11374 (vec_extract_oddv4hi): Ditto.
11375 (vec_extract_evenv2si): Ditto.
11376 (vec_extract_oddv2si): Ditto.
11377 (vec_extract_evenv2sf): Ditto.
11378 (vec_extract_oddv2sf): Ditto.
11379 (vec_pack_trunc_v4hi: Ditto.
11380 (vec_pack_trunc_v2si): Ditto.
11381 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
11382 (vec_interleave_highv8qi): Ditto.
11384 (vec_extract_oddv8qi): Ditto.
11385 (vec_interleave_lowv4hi): Ditto.
11386 (vec_interleave_highv4hi): Ditto.
11387 (vec_interleave_lowv2si): Ditto.
11388 (vec_interleave_highv2si): Ditto.
11390 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11392 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
11393 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
11394 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
11395 (pa_c_mode_for_suffix): New.
11396 (TARGET_EXPAND_BUILTIN): Define.
11397 (TARGET_C_MODE_FOR_SUFFIX): Define.
11398 (pa_builtins): Define.
11399 (pa_init_builtins): Register __float128 type and init new support
11401 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
11402 * config/pa/quadlib.c (_U_Qfcopysign): New.
11404 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
11406 PR middle-end/46894
11407 * explow.c (allocate_dynamic_stack_space): Do not assume more than
11408 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
11411 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11413 PR tree-optimization/47179
11414 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
11415 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
11417 2011-01-18 Richard Guenther <rguenther@suse.de>
11419 PR rtl-optimization/47216
11420 * emit-rtl.c: Include tree-flow.h.
11421 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
11422 of replicating it with different semantics.
11423 * Makefile.in (emit-rtl.o): Adjust.
11425 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11427 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
11428 (cortex_a9_dp): Handle neon types correctly.
11430 2011-01-18 Jakub Jelinek <jakub@redhat.com>
11432 PR rtl-optimization/47299
11433 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
11434 subtarget. Use normal multiplication if both operands are constants.
11435 * expmed.c (expand_widening_mult): Don't try to optimize constant
11436 multiplication if op0 has VOIDmode. Convert op1 constant to mode
11439 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11441 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
11442 spacing after 'e.g.', typos, comma, hyphenation.
11444 2011-01-17 Richard Henderson <rth@redhat.com>
11446 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
11447 (rx_restricted_mem_operand): New.
11448 (rx_shift_operand): Use register_operand.
11449 (rx_source_operand, rx_compare_operand): Likewise.
11450 * config/rx/rx.md (addsi3_flags): New expander.
11451 (adddi3): Rewrite as expander.
11452 (adc_internal, *adc_flags, adddi3_internal): New patterns.
11453 (subsi3_flags): New expander.
11454 (subdi3): Rewrite as expander.
11455 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
11457 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
11458 (rx_init_builtins): Remove sat builtin.
11459 (rx_expand_builtin): Likewise.
11460 * config/rx/rx.md (ssaddsi3): New.
11461 (*sat): Rename from sat. Represent the CC_REG input.
11463 * config/rx/predicates.md (rshift_operator): New.
11464 * config/rx/rx.c (rx_expand_insv): Remove.
11465 * config/rx/rx-protos.h: Update.
11466 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
11467 operand to the canonical position.
11468 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
11469 (*bitclr, *bitclr_in_memory): Similarly.
11470 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
11471 (insv): Retain the zero_extract in the expansion.
11473 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
11474 (bswaphi2, bitinvert, revw): Likewise.
11476 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
11477 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
11478 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
11479 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
11480 (bitset, bitset_in_memory): Likewise.
11481 (bitinvert, bitinvert_in_memory): Likewise.
11482 (bitclr, bitclr_in_memory): Likewise.
11483 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
11484 (rx_strend, rx_cmpstrn): Likewise.
11485 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
11486 (bitop peep2 patterns): Remove.
11488 * config/rx/rx.c (rx_match_ccmode): New.
11489 * config/rx/rx-protos.h: Update.
11490 * config/rx/rx.md (abssi2): Clobber, don't set flags.
11491 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
11492 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
11493 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
11494 (fix_truncsfsi2, floatsisf2): Likewise.
11495 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
11496 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
11497 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
11498 (*subsi3_flags, *xorsi3_flags): New.
11500 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
11502 * config/rx/rx.c (rx_print_operand): Remove workaround for
11503 unsplit comparison operations.
11505 * config/rx/rx.md (movsicc): Split after reload.
11506 (*movsicc): Merge *movsieq and *movsine via match_operator.
11507 (*stcc): New pattern.
11509 * config/rx/rx.c (rx_float_compare_mode): Remove.
11510 * config/rx/rx.h (rx_float_compare_mode): Remove.
11511 * config/rx/rx.md (cstoresi4): Split after reload.
11512 (*sccc): New pattern.
11514 * config/rx/predicates.md (label_ref_operand): New.
11515 (rx_z_comparison_operator): New.
11516 (rx_zs_comparison_operator): New.
11517 (rx_fp_comparison_operator): New.
11518 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
11519 Validate that the flags are set properly for the comparison.
11520 (rx_gen_cond_branch_template): Remove.
11521 (rx_cc_modes_compatible): Remove.
11522 (mode_from_flags): New.
11523 (flags_from_code): Rename from flags_needed_for_conditional.
11524 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
11525 (rx_select_cc_mode): Likewise.
11526 (rx_split_fp_compare): New.
11527 (rx_split_cbranch): New.
11528 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
11529 (*cbranchsi4): Use match_operator and rx_split_cbranch.
11530 (*cbranchsf4): Similarly.
11531 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
11532 match_operator and rx_split_cbranch.
11533 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
11534 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
11535 (*cmpsi): Rename from cmpsi.
11536 (*tstsi): Rename from tstsi.
11537 (*cmpsf): Rename from cmpsf; use CC_Fmode.
11538 (*conditional_branch): Rename from conditional_branch.
11539 (*reveresed_conditional_branch): Remove.
11540 (b<code>): Remove expander.
11541 * config/rx/rx-protos.h: Update.
11543 * config/rx/rx.c (rx_compare_redundant): Remove.
11544 * config/rx/rx.md (cmpsi): Don't use it.
11545 * config/rx/rx-protos.h: Update.
11547 * config/rx/rx-modes.def (CC_F): New mode.
11548 * config/rx/rx.c (rx_select_cc_mode): New.
11549 * config/rx/rx.h (SELECT_CC_MODE): Use it.
11550 * config/rx/rx-protos.h: Update.
11552 2011-01-17 Richard Henderson <rth@redhat.com>
11554 * except.c (dump_eh_tree): Fix stray ; after for statement.
11556 2011-01-17 Richard Guenther <rguenther@suse.de>
11558 PR tree-optimization/47313
11559 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
11560 handling before copying the body. Properly deal with
11561 by-reference result in SSA form.
11563 2011-01-17 Ian Lance Taylor <iant@google.com>
11566 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
11567 (struct_value_alias_set): Don't define.
11568 (sparc_option_override): Don't set sparc_sr_alias_set and
11569 struct_value_alias_set.
11570 (save_or_restore_regs): Use gen_frame_mem rather than calling
11572 (sparc_struct_value_rtx): Likewise.
11574 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
11577 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
11578 (_mm_maskstore_pd): Likewise.
11579 (_mm_maskload_ps): Likewise.
11580 (_mm_maskstore_ps): Likewise.
11581 (_mm256_maskload_pd): Change mask to __m256i.
11582 (_mm256_maskstore_pd): Likewise.
11583 (_mm256_maskload_ps): Likewise.
11584 (_mm256_maskstore_ps): Likewise.
11586 * config/i386/i386-builtin-types.def: Updated.
11587 (ix86_expand_special_args_builtin): Likewise.
11589 * config/i386/i386.c (bdesc_special_args): Update
11590 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
11591 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
11592 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
11593 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
11595 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
11596 Use <avxpermvecmode> on mask register.
11597 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
11599 2011-01-17 Olivier Hainque <hainque@adacore.com>
11600 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11601 Eric Botcazou <ebotcazou@adacore.com>
11604 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
11605 if <= USHRT_MAX in 32-bit mode.
11607 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11609 * doc/install.texi (Configuration, Specific): Wrap long
11610 lines in examples. Allow line wrapping in long options
11611 and URLs where beneficial for PDF output.
11613 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
11615 * config/mips/mips.c (mips_classify_symbol): Don't return
11616 SYMBOL_PC_RELATIVE for nonlocal labels.
11618 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
11620 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
11622 2011-01-15 Jan Hubicka <jh@suse.cz>
11624 PR tree-optimization/47276
11625 * ipa.c (function_and_variable_visibility): Do not try to mark alias
11626 declarations as needed.
11628 2011-01-15 Martin Jambor <mjambor@suse.cz>
11630 * common.opt (fdevirtualize): New flag.
11631 * doc/invoke.texi (Option Summary): Document it.
11632 * opts.c (default_options_table): Add devirtualize flag.
11633 * ipa-prop.c (detect_type_change): Return immediately if
11634 devirtualize flag is not set.
11635 (detect_type_change_ssa): Likewise.
11636 (compute_known_type_jump_func): Likewise.
11637 (ipa_analyze_virtual_call_uses): Likewise.
11639 2011-01-14 Martin Jambor <mjambor@suse.cz>
11641 PR tree-optimization/45934
11642 PR tree-optimization/46302
11643 * ipa-prop.c (type_change_info): New type.
11644 (stmt_may_be_vtbl_ptr_store): New function.
11645 (check_stmt_for_type_change): Likewise.
11646 (detect_type_change): Likewise.
11647 (detect_type_change_ssa): Likewise.
11648 (compute_complex_assign_jump_func): Check for dynamic type change.
11649 (compute_complex_ancestor_jump_func): Likewise.
11650 (compute_known_type_jump_func): Likewise.
11651 (compute_scalar_jump_functions): Likewise.
11652 (ipa_analyze_virtual_call_uses): Likewise.
11653 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
11655 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11657 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
11658 * config/i386/i386.opt (msse5): New Alias.
11660 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11662 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11663 * config/sparc/linux64.h (CC1_SPEC): Likewise.
11664 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11665 * config/sparc/sparc.h (CC1_SPEC): Likewise.
11667 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11669 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
11671 * config/sparc/linux64.h (CC1_SPEC): Likewise.
11672 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11673 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
11674 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
11676 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
11678 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11680 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
11682 2011-01-14 Mike Stump <mikestump@comcast.net>
11684 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
11685 * config/fr30/fr30.md: Likweise
11686 (movsi_push): Likewise.
11687 (movsi_pop): Likewise.
11688 (enter_func): Likewise.
11689 * config/moxie/moxie.md (movsi_push): Likewise.
11690 (movsi_pop): Likewise.
11692 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11694 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
11695 %{no_archive} %{exact_version}.
11696 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
11697 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
11698 %{no_archive} %{exact_version}.
11699 * config/mips/openbsd.h (LINK_SPEC): Likewise.
11700 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
11701 * config/mips/vxworks.h: Likewise.
11703 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11705 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
11707 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11709 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
11710 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
11712 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11714 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
11717 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11719 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
11721 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
11722 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
11724 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
11725 Don't handle -shlib.
11727 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11729 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
11730 (CC1_SPEC): Don't handle -profile.
11732 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11734 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
11735 * config/mips/mips.h (CC1_SPEC): Likewise.
11737 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11739 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
11740 * config/mips/mips.h (CC1_SPEC): Likewise.
11742 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11744 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
11745 * config/m32r/linux.h (LINK_SPEC): Likewise.
11746 * config/mips/linux.h (LINK_SPEC): Likewise.
11747 * config/mips/linux64.h (LINK_SPEC): Likewise.
11748 * config/sparc/linux.h (LINK_SPEC): Likewise.
11749 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11750 LINK_SPEC): Likewise.
11751 * config/xtensa/linux.h (LINK_SPEC): Likewise.
11753 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11755 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
11757 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
11759 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11761 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
11762 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11764 2011-01-14 Joseph Myers <joseph@codesourcery.com>
11766 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
11768 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11770 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
11771 supports -Bstatic/-Bdynamic.
11772 * configure: Regenerate.
11774 2011-01-14 Jan Hubicka <jh@suse.cz>
11775 Jack Howarth <howarth@bromo.med.uc.edu>
11778 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
11779 when checking debug_info_level. Test write_symbols instead of
11780 debug_hooks->var_location when setting flag_var_tracking_uninit.
11782 2011-01-14 Richard Guenther <rguenther@suse.de>
11784 PR tree-optimization/47179
11785 * target.def (ref_may_alias_errno): New target hook.
11786 * targhooks.h (default_ref_may_alias_errno): Declare.
11787 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
11788 (default_ref_may_alias_errno): New function.
11789 * target.h (struct ao_ref_s): Declare.
11790 * tree-ssa-alias.c: Include target.h.
11791 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
11792 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
11793 (targhooks.o): Likewise.
11794 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
11795 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
11797 2011-01-14 Richard Guenther <rguenther@suse.de>
11799 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
11801 2011-01-14 Richard Guenther <rguenther@suse.de>
11803 PR tree-optimization/47280
11804 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
11805 return CFG changes.
11806 (tree_ssa_forward_propagate_single_use_vars): Deal with
11807 CFG changes from associate_plusminus.
11809 2011-01-14 Richard Guenther <rguenther@suse.de>
11811 PR middle-end/47281
11813 2011-01-11 Richard Guenther <rguenther@suse.de>
11815 PR tree-optimization/46076
11816 * tree-ssa.c (useless_type_conversion_p): Conversions from
11817 unprototyped to empty argument list function types are useless.
11819 2011-01-14 Richard Guenther <rguenther@suse.de>
11821 PR tree-optimization/47286
11822 * tree-ssa-structalias.c (new_var_info): Register variables are global.
11824 2011-01-14 Martin Jambor <mjambor@suse.cz>
11826 PR middle-end/46823
11827 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
11829 2011-01-13 Anatoly Sokolov <aesok@post.ru>
11831 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
11832 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11833 * config/xtensa/xtensa.c (xtensa_libcall_value,
11834 xtensa_function_value_regno_p): New functions.
11835 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11837 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
11840 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
11842 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
11843 New function prototype.
11844 * config/i386/winnt.c (i386_pe_assemble_visibility):
11845 Warn only if attribute was specified by user.
11847 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
11850 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
11852 (floatunsdidf2_fcfidu): Ditto.
11854 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11856 * config/s390/s390.c (print_operand_address): Replace 'error' with
11857 'output_operand_lossage'.
11858 (print_operand): Likewise.
11860 2011-01-13 Jeff Law <law@redhat.com>
11862 PR rtl-optimization/39077
11863 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
11864 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
11865 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
11866 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
11867 * gcse.c (prune_insertions_deletions): New function.
11868 (compute_pre_data): Use it.
11870 2011-01-13 Dodji Seketeli <dodji@redhat.com>
11873 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
11875 (prune_unused_types_mark): Use it.
11877 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
11879 PR rtl-optimization/45352
11880 * sel-sched.c: Update copyright years.
11881 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
11882 in the advancing loop when we have issued issue_rate insns.
11884 2011-01-12 Richard Henderson <rth@redhat.com>
11886 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11887 (TARGET_MD_ASM_CLOBBERS): New.
11889 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11890 (TARGET_DELEGITIMIZE_ADDRESS): New.
11892 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11893 (clzsi2, *bsch): New patterns.
11895 * config/mn10300/mn10300.md (INT): New mode iterator.
11896 (*mov<INT>_clr): New pattern, and peep2 to generate it.
11898 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11899 flag_split_wide_types.
11901 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11902 (mn10300_trampoline_init): Rewrite without a template, an immediate
11903 load and a direct branch.
11904 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11906 2011-01-12 Anatoly Sokolov <aesok@post.ru>
11908 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11909 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11910 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11911 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11913 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
11916 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11919 2011-01-12 Jan Hubicka <jh@suse.cz>
11922 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11923 (PLUGIN_COND_CLOSE): New macro.
11924 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11926 2011-01-12 Richard Guenther <rguenther@suse.de>
11929 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11930 register variables in a MEM_REF.
11932 2011-01-12 Joseph Myers <joseph@codesourcery.com>
11934 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11935 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11936 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11937 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11938 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11939 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11940 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11941 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11942 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11943 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11944 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11945 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11946 * config/gnu-user.h: New. Copied from linux.h.
11947 (LINUX_TARGET_STARTFILE_SPEC): Rename to
11948 GNU_USER_TARGET_STARTFILE_SPEC.
11949 (LINUX_TARGET_ENDFILE_SPEC): Rename to
11950 GNU_USER_TARGET_ENDFILE_SPEC.
11951 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11952 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11953 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11954 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11955 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11956 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11957 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11958 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11959 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11960 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11961 * config/arm/linux-eabi.h (CC1_SPEC): Use
11962 GNU_USER_TARGET_CC1_SPEC.
11963 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11964 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11965 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11966 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11967 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11968 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11969 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11970 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11972 2011-01-12 Richard Guenther <rguenther@suse.de>
11975 * doc/invoke.texi (ffast-math): Document it is turned on
11978 2011-01-12 Jan Hubicka <jh@suse.cz>
11980 PR tree-optimization/47233
11981 * opts.c (common_handle_option): Disable ipa-reference with profile
11984 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11986 * c-parser.c (c_parser_objc_at_property_declaration): Improved
11989 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11991 * c-parser.c (c_lex_one_token): Updated and reindented some
11992 comments. No changes in code.
11994 2011-01-11 Ian Lance Taylor <iant@google.com>
11996 * godump.c (go_output_var): Don't output the variable if there is
11997 already a type with the same name.
11999 2011-01-11 Ian Lance Taylor <iant@google.com>
12001 * godump.c (go_format_type): Don't generate float80.
12003 2011-01-11 Richard Henderson <rth@redhat.com>
12005 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
12006 declaration. Rewrite for both speed and size.
12007 (mn10300_address_cost_1): Remove.
12008 (mn10300_register_move_cost): New.
12009 (mn10300_memory_move_cost): New.
12010 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
12011 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
12012 extensions, shifts, BSWAP, CLZ.
12013 (mn10300_wide_const_load_uses_clr): Remove.
12014 (TARGET_REGISTER_MOVE_COST): New.
12015 (TARGET_MEMORY_MOVE_COST): New.
12016 * config/mn10300/mn10300-protos.h: Update.
12017 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
12019 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
12020 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
12021 * config/mn10300/mn10300-protos.h: Update.
12022 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
12023 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
12024 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
12025 (*test_int_bitfield, *test_byte_bitfield): Remove.
12026 (*bit_test, *subreg_bit_test): Remove.
12027 * config/mn10300/predicates.md (const_8bit_operand): Remove.
12029 * config/mn10300/constraints.md ("c"): Rename from "A".
12030 ("A", "D"): New constraint letters.
12031 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
12032 (fmssf4, fnmasf4, fnmssf4): Likewise.
12034 * config/mn10300/mn10300.md (isa): New attribute.
12035 (enabled): New attribute.
12037 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
12038 (abssf2, negsf2): Define only for hardware fp.
12039 (sqrtsf2): Reformat.
12040 (addsf3, subsf3, mulsf3): Merge expander and insn.
12042 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
12043 (DEBUGGER_AUTO_OFFSET): Remove.
12044 (DEBUGGER_ARG_OFFSET): Remove.
12046 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
12047 Emit register stores with the same offsets as the hardware.
12048 (mn10300_store_multiple_operation): Don't check that the register
12049 save offsets are monotonic.
12050 * config/mn10300/mn10300-protos.h: Update.
12052 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
12054 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
12055 in terms of the value on the stack, not the MDR register.
12057 2011-01-11 Jan Hubicka <jh@suse.cz>
12061 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
12062 (symbol_alias_set_destroy, symbol_alias_set_contains,
12063 propagate_aliases_backward): Declare.
12064 * lto-streamer-out.c (struct sets): New sturcture.
12065 (trivally_defined_alias): New function.
12066 (output_alias_pair_p): Rewrite.
12067 (output_unreferenced_globals): Fix output of alias pairs.
12068 (produce_symtab): Likewise.
12069 * ipa.c (function_and_variable_visibility): Set weak alias destination
12071 * varasm.c (symbol_alias_set_t): Remove.
12072 (symbol_alias_set_destroy): Export.
12073 (propagate_aliases_forward, propagate_aliases_backward): New functions
12075 (compute_visible_aliases): ... this one; remove.
12076 (trivially_visible_alias): New
12077 (trivially_defined_alias): New.
12078 (remove_unreachable_alias_pairs): Rewrite.
12079 (finish_aliases_1): Reorganize code checking if alias is defined.
12080 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
12083 2011-01-11 Richard Guenther <rguenther@suse.de>
12085 PR tree-optimization/46076
12086 * tree-ssa.c (useless_type_conversion_p): Conversions from
12087 unprototyped to empty argument list function types are useless.
12089 2011-01-11 Richard Guenther <rguenther@suse.de>
12091 PR middle-end/45235
12092 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
12093 volatile MEMs as MEM_READONLY_P.
12095 2011-01-11 Richard Guenther <rguenther@suse.de>
12097 PR tree-optimization/47239
12098 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
12100 2011-01-11 Jeff Law <law@redhat.com>
12102 PR tree-optimization/47086
12103 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
12104 IVs from statements that might throw.
12106 2011-01-10 Jan Hubicka <jh@suse.cz>
12109 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
12111 2011-01-10 Jan Hubicka <jh@suse.cz>
12114 * profile.c (read_profile_edge_counts): Ignore profile inconistency
12115 when correcting profile.
12117 2011-01-10 Jan Hubicka <jh@suse.cz>
12120 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
12121 DECL_FINI_PRIORITY.
12122 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
12123 Restore DECL_FINI_PRIORITY.
12125 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12127 * doc/gimple.texi: Fix quoting of multi-word return values in
12128 @deftypefn statements. Ensure presence of return value. Wrap
12129 overlong @deftypefn lines.
12130 (is_gimple_operand, is_gimple_min_invariant_address): Remove
12131 descriptions of removed functions.
12132 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
12133 of multi-word return value in @deftypefn statement.
12135 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12137 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
12138 (Conditional Expressions, Logical Operators)
12139 (Statement and operand traversals): Do not indent smallexample
12140 code. Fix duplicate function argument in example.
12142 2011-01-10 Jeff Law <law@redhat.com>
12144 PR tree-optimization/47141
12145 * ipa-split.c (split_function): Handle case where we are
12146 returning a value and the return block has a virtual operand phi.
12148 2011-01-10 Jan Hubicka <jh@suse.cz>
12150 PR tree-optimization/47234
12151 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
12152 (pass_feedback_split_functions): Declare.
12153 * passes.c (init_optimization_passes): Add ipa-split as subpass of
12155 * ipa-split.c (gate_split_functions): Update comments; disable
12156 split-functions for profile_arc_flag and branch_probabilities.
12157 (gate_feedback_split_functions): New function.
12158 (execute_feedback_split_functions): New function.
12159 (pass_feedback_split_functions): New global var.
12161 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
12164 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
12165 calling gimple_call_set_cannot_inline.
12167 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
12169 * config/darwin-sections.def: Remove unused section.
12171 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
12174 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
12176 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
12179 * c-parser.c (c_parser_declaration_or_fndef): Improved
12182 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
12184 * config/i386/winnt.c (i386_pe_start_function): Make sure
12185 to switch back to function's section.
12187 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
12191 * plugin.c: Move include of dlfcn.h from here...
12192 * system.h: ... to here.
12194 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12196 * doc/cpp.texi (C++ Named Operators): Fix markup for header
12198 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
12199 two extra empty pages in PDF output.
12201 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
12204 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
12205 for error recovery purposes behave as if it was not specified so
12206 that the default type is usd.
12208 2011-01-07 Jan Hubicka <jh@suse.cz>
12210 PR tree-optmization/46469
12211 * ipa.c (function_and_variable_visibility): Clear needed flags on
12212 nodes with external decls; handle weakrefs merging correctly.
12214 2011-01-07 Joseph Myers <joseph@codesourcery.com>
12216 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
12219 2011-01-07 Jan Hubicka <jh@suse.cz>
12221 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
12222 and no longer claim that gold is required for linker plugin.
12223 * configure: Regenerate.
12224 * gcc.c (PLUGIN_COND): New macro.
12225 (LINK_COMMAND_SPEC): Use it.
12226 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
12227 * config.in (HAVE_LTO_PLUGIN): New.
12228 * configure.ac (--with-lto-plugin): New parameter; autodetect
12231 2011-01-07 Jan Hubicka <jh@suse.cz>
12233 PR tree-optimization/46367
12234 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
12235 when we can update original.
12236 (cgraph_mark_inline_edge): Sanity check.
12237 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
12239 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12241 * config/spu/spu.h (ASM_COMMENT_START): Define.
12243 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
12246 * gcc.c (%>S): New.
12247 (SWITCH_KEEP_FOR_GCC): Likewise.
12248 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
12249 (do_spec_1): Handle "%>".
12251 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
12253 2011-01-07 Jakub Jelinek <jakub@redhat.com>
12256 * config/i386/i386.c (ix86_delegitimize_address): If
12257 simplify_gen_subreg fails, return orig_x.
12260 * value-prof.c (gimple_stringop_fixed_value): Handle
12261 lhs of the call properly.
12263 2011-01-07 Jan Hubicka <jh@suse.cz>
12266 * lto-opt.c (lto_reissue_options): Set flag_shlib.
12268 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
12270 * target.def (function_switched_text_sections): New hook.
12271 * doc/tm.texi: Regenerated.
12272 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
12273 * final.c (default_function_switched_text_sections): New.
12274 (final_scan_insn): Call function_switched_text_sections when a
12275 mid-function section change occurs.
12276 * output.h (default_function_switched_text_sections): Declare.
12277 * config/darwin-protos.h (darwin_function_switched_text_sections):
12279 * config/darwin.c (darwin_function_switched_text_sections): New.
12280 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
12282 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
12284 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
12285 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
12286 the secondary code fragment when outputting for DWARF == 2.
12288 2011-01-07 Anatoly Sokolov <aesok@post.ru>
12290 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12291 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
12293 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
12294 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12296 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
12299 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
12300 when it is not empty.
12302 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
12305 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
12306 (case ${target}): Add btver1.
12307 * config/i386/driver-i386.c (host_detect_local_cpu): Let
12308 -march=native recognize btver1 processors.
12309 * config/i386/i386-c.c (ix86_target_macros_internal): Add
12310 btver1 def_and_undef
12311 * config/i386/i386.c (struct processor_costs btver1_cost): New
12313 (m_BTVER1): New definition.
12314 (m_AMD_MULTIPLE): Includes m_BTVER1.
12315 (initial_ix86_tune_features): Add btver1 tune.
12316 (processor_target_table): Add btver1 entry.
12317 (static const char *const cpu_names): Add btver1 entry.
12318 (software_prefetching_beneficial_p): Add btver1.
12319 (ix86_option_override_internal): Add btver1 instruction sets.
12320 (ix86_issue_rate): Add btver1.
12321 (ix86_adjust_cost): Add btver1.
12322 * config/i386/i386.h (TARGET_BTVER1): New definition.
12323 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
12324 (enum processor_type): Add PROCESSOR_BTVER1.
12325 * config/i386/i386.md (define_attr "cpu"): Add btver1.
12327 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12330 * config/i386/i386.c (legitimize_tls_address)
12331 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
12332 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
12333 (tls_initial_exec_64_sun): New pattern.
12335 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
12337 * doc/invoke.texi (Overall Options): Improve wording and markup
12338 of the description of -wrapper.
12340 2011-01-06 Joseph Myers <joseph@codesourcery.com>
12342 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
12343 rdynamic, threads): New Driver options.
12345 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12348 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
12349 if coming from .tdata.
12350 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
12352 2011-01-06 Jan Hubicka <jh@suse.cz>
12355 * collect2.c (main): Do not enable LTOmode when plugin is active.
12357 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12360 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
12361 --version output if supported.
12362 * configure: Regenerate.
12364 2011-01-06 Joseph Myers <joseph@codesourcery.com>
12366 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
12369 2011-01-06 Jakub Jelinek <jakub@redhat.com>
12372 * c-convert.c (convert): When converting a complex expression
12373 other than COMPLEX_EXPR to a different complex type, ensure
12374 c_save_expr is called instead of save_expr, unless in_late_binary_op.
12375 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
12376 when converting COMPLEX_TYPE.
12378 2011-01-06 Ira Rosen <irar@il.ibm.com>
12380 PR tree-optimization/47139
12381 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
12382 only the last reduction value is used outside the loop. Update
12385 2011-01-05 Joseph Myers <joseph@codesourcery.com>
12387 * config/rtems.opt: New.
12388 * config.gcc (*-*-rtems*): Use rtems.opt.
12390 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
12392 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
12393 processors do not support 3DNow instructions.
12395 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12397 * config/spu/spu.c (spu_option_override): Set parameter
12398 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
12400 2011-01-05 Jan Hubicka <jh@suse.cz>
12402 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
12403 at the command line.
12405 2011-01-05 Martin Jambor <mjambor@suse.cz>
12408 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
12409 deltas on streamed outgoing edges.
12410 (output_node_opt_summary): Output info for outgoing edges only when
12411 the node is in new parameter set.
12412 (output_cgraph_opt_summary): New parameter set, passed to the two
12413 aforementioned functions. Update its forward declaration and its
12416 2011-01-05 Tom Tromey <tromey@redhat.com>
12418 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
12419 operator to c_finish_omp_atomic.
12420 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
12421 (build_unary_op): Update.
12422 (build_modify_expr): Update.
12423 (build_asm_expr): Update.
12425 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12427 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
12428 newly inserted insns.
12429 (pad_bb): Likewise.
12430 (spu_emit_branch_hint): Likewise.
12431 (insert_hbrp_for_ilb_runout): Likewise.
12432 (spu_machine_dependent_reorg): Call df_finish_pass after
12433 schedule_insns returns.
12435 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12437 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
12439 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
12441 PR tree-optimization/47005
12442 * tree-sra.c (struct access): Add 'non_addressable' bit.
12443 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
12444 (decide_one_param_reduction): Return 0 if the parameter is passed by
12445 reference and one of the accesses in the group is non_addressable.
12447 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
12449 PR tree-optimization/47056
12450 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
12451 (mark_load): Likewise. Handle FUNCTION_DECL specially.
12452 (mark_store): Likewise. Pass STMT to ipa_record_reference.
12454 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
12456 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
12457 initializer. Skip view conversions from aggregate types.
12459 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
12462 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
12464 2011-01-04 Philipp Thomas <pth@suse.de>
12466 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
12469 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12471 * function.c (thread_prologue_and_epilogue_insns): Do not crash
12472 on empty epilogue sequences.
12474 2011-01-04 Joseph Myers <joseph@codesourcery.com>
12476 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
12477 non-static): New Driver options.
12479 2011-01-04 Jie Zhang <jie@codesourcery.com>
12482 * gcc.c (default_compilers[]): Set combinable field to 0
12483 for all assembly languages.
12485 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
12487 * config/mips/loongson3a.md: New file.
12488 * config/mips/mips.md: Include loongson3a.md.
12489 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
12492 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
12494 PR middle-end/47017
12495 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
12496 instead of convert_memory_address_addr_space on the base expression.
12498 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12500 * config/spu/spu.c (spu_option_override): Update error text
12501 for bad -march= / -mtune= values.
12503 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12505 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
12506 if branch-hint optimization will be performed.
12508 2011-01-03 Jakub Jelinek <jakub@redhat.com>
12510 PR tree-optimization/47148
12511 * ipa-split.c (split_function): Convert arguments to
12512 DECL_ARG_TYPE if possible.
12514 PR tree-optimization/47155
12515 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
12516 when computing uns.
12518 PR rtl-optimization/47157
12519 * combine.c (try_combine): If undobuf.other_insn becomes
12520 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
12521 and set *new_direct_jump_p too.
12523 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
12525 PR tree-optimization/47021
12526 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
12528 2011-01-03 Jakub Jelinek <jakub@redhat.com>
12530 * gcc.c (process_command): Update copyright notice dates.
12531 * gcov.c (print_version): Likewise.
12532 * gcov-dump.c (print_version): Likewise.
12533 * mips-tfile.c (main): Likewise.
12534 * mips-tdump.c (main): Likewise.
12536 2011-01-03 Martin Jambor <mjambor@suse.cz>
12538 PR tree-optimization/46801
12539 * tree-sra.c (type_internals_preclude_sra_p): Check whether
12540 aggregate fields start at byte boundary instead of the bit-field flag.
12542 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
12545 * gcc.c (main): Revert revision 168407.
12547 2011-01-03 Martin Jambor <mjambor@suse.cz>
12549 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
12551 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12553 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
12554 vector optab to expand vector/scalar shift, update gimple to vector.
12556 2011-01-03 Martin Jambor <mjambor@suse.cz>
12558 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
12561 2011-01-03 Martin Jambor <mjambor@suse.cz>
12563 PR tree-optimization/46984
12564 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
12566 (cgraph_create_indirect_edge): Fixed line length.
12567 (cgraph_indirect_call_info): Declare.
12568 (cgraph_make_edge_direct) Update declaration.
12569 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
12570 (cgraph_create_indirect_edge): Use it.
12571 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
12573 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
12574 the new thunk_delta representation.
12575 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
12577 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
12578 (ipa_read_indirect_edge_info): Likewise.
12579 * lto-cgraph.c (output_edge_opt_summary): New function.
12580 (output_node_opt_summary): Call it on all outgoing edges.
12581 (input_edge_opt_summary): New function.
12582 (input_node_opt_summary): Call it on all outgoing edges.
12584 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
12587 * gcc.c (main): Don't check have_o when settting combine_inputs.
12589 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
12591 * regrename.c: Add general comment describing the pass.
12592 (struct du_head): Remove 'length' field.
12593 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
12594 (regrename_optimize): Do not sort chains. Rework comments, add others.
12595 Force renaming to the preferred class (if any) in the first pass and do
12596 not consider registers that belong to it in the second pass.
12597 (create_new_chain): Do not set 'length' field.
12598 (scan_rtx_reg): Likewise.
12600 2011-01-02 Jakub Jelinek <jakub@redhat.com>
12602 PR tree-optimization/47140
12603 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
12604 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
12605 to bit_value_binop.
12607 PR rtl-optimization/47028
12608 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
12609 parm_birth_insn instead of at the beginning of first bb.
12611 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
12613 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
12614 Remove the word "see" before "@pxref".
12615 * doc/rtl.texi: Remove the word "see" before "@pxref".
12617 2011-01-01 Jan Hubicka <jh@suse.cz>
12619 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
12622 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
12625 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
12628 Copyright (C) 2011 Free Software Foundation, Inc.
12630 Copying and distribution of this file, with or without modification,
12631 are permitted in any medium without royalty provided the copyright
12632 notice and this notice are preserved.