1 2011-01-25 Ian Lance Taylor <iant@google.com>
3 PR tree-optimization/26854
4 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
5 (decl_jump_unsafe): Move higher in file, with no other change.
6 (bind): Set has_jump_unsafe_decl if appropriate.
7 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8 (check_earlier_gotos): Likewise.
9 (c_check_switch_jump_warnings): Likewise.
11 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13 * doc/invoke.texi (Warning Options): Add missing hyphen.
14 (-fprofile-dir): Minor grammatical fixes.
15 (-fbranch-probabilities): Likewise.
17 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
21 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23 (no_real_insns_p, schedule_block, set_priorities): Drop special
24 treatment of boundary debug insns.
25 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
27 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29 (BOUNDARY_DEBUG_INSN_P): Likewise.
30 (SCHEDULE_DEBUG_INSN_P): Likewise.
31 * sched-rgn.c (init_ready_list): Drop special treatment of
33 * final.c (rest_of_clean-state): Clear notes' BB.
35 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37 * Makefile.in (LAMBDA_H): Removed.
38 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
39 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
40 lambda-trans.o, and tree-loop-linear.o.
41 (lto-symtab.o): Remove dependence on LAMBDA_H.
42 (tree-loop-linear.o): Remove rule.
44 (lambda-trans.o): Same.
45 (lambda-code.o): Same.
46 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
47 (tree-vect-slp.o): Same.
48 * hwint.h (gcd): Moved here.
49 (least_common_multiple): Same.
50 * lambda-code.c: Removed.
51 * lambda-mat.c: Removed.
52 * lambda-trans.c: Removed.
54 * tree-loop-linear.c: Removed.
55 * lto-symtab.c: Do not include lambda.h.
56 * omega.c (gcd): Removed.
57 * passes.c (init_optimization_passes): Remove pass_linear_transform.
58 * tree-data-ref.c (print_lambda_vector): Moved here.
59 (lambda_vector_copy): Same.
60 (lambda_matrix_copy): Same.
61 (lambda_matrix_id): Same.
62 (lambda_vector_first_nz): Same.
63 (lambda_matrix_row_add): Same.
64 (lambda_matrix_row_exchange): Same.
65 (lambda_vector_mult_const): Same.
66 (lambda_vector_negate): Same.
67 (lambda_matrix_row_negate): Same.
68 (lambda_vector_equal): Same.
69 (lambda_matrix_right_hermite): Same.
70 * tree-data-ref.h: Do not include lambda.h.
71 (lambda_vector): Moved here.
72 (lambda_matrix): Same.
73 (dependence_level): Same.
74 (lambda_transform_legal_p): Removed declaration.
75 (lambda_collect_parameters): Same.
76 (lambda_compute_access_matrices): Same.
77 (lambda_vector_gcd): Same.
78 (lambda_vector_new): Same.
79 (lambda_vector_clear): Same.
80 (lambda_vector_lexico_pos): Same.
81 (lambda_vector_zerop): Same.
82 (lambda_matrix_new): Same.
83 * tree-flow.h (least_common_multiple): Removed declaration.
84 * tree-parloops.c (lambda_trans_matrix): Moved here.
88 (LTM_DENOMINATOR): Same.
89 (lambda_trans_matrix_new): Same.
90 (lambda_matrix_vector_mult): Same.
91 (lambda_transform_legal_p): Same.
92 * tree-pass.h (pass_linear_transform): Removed declaration.
93 * tree-ssa-loop.c (tree_linear_transform): Removed.
94 (gate_tree_linear_transform): Removed.
95 (pass_linear_transform): Removed.
96 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
97 flag_loop_interchange.
99 2011-01-25 Jakub Jelinek <jakub@redhat.com>
101 PR tree-optimization/47265
102 PR tree-optimization/47443
103 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
104 if name still has some uses.
106 2011-01-25 Martin Jambor <mjambor@suse.cz>
108 PR tree-optimization/47382
109 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
110 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
112 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
114 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
115 sjlj_except_unwind_info.
117 2011-01-25 Richard Guenther <rguenther@suse.de>
119 PR tree-optimization/47426
120 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
121 visible functions results escape.
123 2011-01-25 Jakub Jelinek <jakub@redhat.com>
126 * config/arm/arm.c (any_sibcall_uses_r3): New function.
127 (arm_get_frame_offsets): Use it.
129 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
130 Jakub Jelinek <jakub@redhat.com>
132 PR tree-optimization/47271
133 * tree-if-conv.c (bb_postdominates_preds): New.
134 (if_convertible_bb_p): Call bb_postdominates_preds.
135 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
136 (predicate_scalar_phi): Call bb_postdominates_preds.
138 2011-01-25 Nick Clifton <nickc@redhat.com>
140 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
141 * config/rx/rx.c (rx_function_value): Likewise.
142 (rx_promote_function_mode): Likewise.
143 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
144 in order to make it legitimate.
145 * config/rx/rx.md (adddi3_internal): If the second operand is a
146 MEM make sure that the first operand is the same as the result
148 (addsi3_unspec): Delete.
149 (subdi3): Do not accept immediate operands.
150 (subdi3_internal): Likewise.
152 2011-01-25 Jeff Law <law@redhat.com>
154 PR rtl-optimization/37273
155 * ira-costs.c (scan_one_insn): Detect constants living in memory and
156 handle them like argument loads from stack slots. Do not double
157 count memory for memory constants and argument loads from stack slots.
159 2011-01-25 Jakub Jelinek <jakub@redhat.com>
161 PR tree-optimization/47427
162 PR tree-optimization/47428
163 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
164 coalesce if the new root var would be TREE_READONLY.
166 2011-01-25 Richard Guenther <rguenther@suse.de>
169 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
170 correct type for TBAA.
172 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
174 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
175 (close_phi_written_to_memory): Call for_each_index with
176 dr_indices_valid_in_loop.
178 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
180 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
181 when it is initialized.
183 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
185 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
186 call to graphite_find_data_references_in_stmt.
187 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
188 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
189 call to graphite_find_data_references_in_stmt.
190 (analyze_drs_in_stmts): Same.
191 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
192 in which the scalar analysis of indices is performed.
193 (create_data_ref): Same. Update call to dr_analyze_indices.
194 (find_data_references_in_stmt): Update call to create_data_ref.
195 (graphite_find_data_references_in_stmt): Same.
196 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
198 (create_data_ref): Same.
199 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
200 call to create_data_ref.
202 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
204 * graphite-sese-to-poly.c (build_poly_scop): Move
205 rewrite_commutative_reductions_out_of_ssa before
206 find_scop_parameters.
208 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
210 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
211 VAR_DECL, PARM_DECL, and RESULT_DECL.
213 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
215 * graphite-dependences.c (reduction_dr_1): Allow several reductions
217 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
218 that have already been marked as PBB_IS_REDUCTION.
220 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
222 * graphite-scop-detection.c (same_close_phi_node): New.
223 (remove_duplicate_close_phi): New.
224 (make_close_phi_nodes_unique): New.
225 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
227 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
229 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
230 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
231 of both data references to be the same.
233 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
235 * graphite-dependences.c (build_lexicographical_constraint): Remove the
237 (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
238 (dependence_polyhedron): Same.
239 (graphite_legal_transform_dr): Same.
240 (graphite_carried_dependence_level_k): Same.
241 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
242 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
244 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
246 * graphite-sese-to-poly.c
247 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
248 (close_phi_written_to_memory): New.
249 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
252 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
254 * doc/install.texi: Update the expected version number of PPL to 0.11.
255 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
256 #if PPL_VERSION_MINOR < 11.
258 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
260 * graphite-dependences.c: Include graphite-cloog-util.h.
261 (new_poly_ddr): Inlined into dependence_polyhedron.
262 (free_poly_ddr): Moved close by new_poly_ddr.
263 (dependence_polyhedron_1): Renamed dependence_polyhedron.
264 Early return NULL when ppl_powerset_is_empty returns true.
265 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
266 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
267 (graphite_legal_transform_dr): Call new_poly_ddr.
268 (graphite_carried_dependence_level_k): Same.
269 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
270 (dot_transformed_deps_stmt_1): Removed.
271 (dot_deps_stmt_1): Call dot_deps_stmt_2.
272 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
273 (dot_deps_1): Call dot_deps_2.
274 * Makefile.in (graphite-dependences.o): Add missing dependence on
275 graphite-cloog-util.h.
277 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
279 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
280 (build_lexicographical_constraint): Same.
281 (dependence_polyhedron_1): Same.
282 (graphite_legal_transform_dr): Same.
283 (graphite_carried_dependence_level_k): Same.
284 * graphite-ppl.c (ppl_powerset_is_empty): New.
285 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
286 * tree-data-ref.c (dump_data_reference): Print the basic block index.
288 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
290 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
291 the "a followed by b" relation and document it.
293 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
295 * graphite-dependences.c (build_lexicographical_constraint): Stop the
296 iteration when the bag of constraints is empty.
298 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
300 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
302 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
304 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
305 nest and two loop depths as parameters.
306 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
309 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
311 * graphite-dependences.c (print_pddr): Call
312 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
314 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
316 * graphite-ppl.c (debug_gmp_value): New.
317 * graphite-ppl.h (debug_gmp_value): Declared.
319 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
321 * doc/install.texi: Document availability of cloog-0.16.
323 2011-01-25 Vladimir Kargov <kargov@gmail.com>
325 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
326 invalid postdominance info.
328 2011-01-24 Jan Hubicka <jh@suse.cz>
331 * doc/extend.texi (weak pragma): Drop claim that it must
332 appear before definition.
333 * varasm.c (merge_weak, declare_weak): Only sanity check
334 that DECL is not output at a time it is declared weak.
336 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
338 * machmode.def: Fixed comments.
340 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
342 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
344 2011-01-24 Paul Koning <ni1d@arrl.net>
346 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
349 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
352 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
353 (block_info): Add scanned and prev.
354 (move_or_delete_vzeroupper_2): Return if the basic block
355 has been scanned and the upper 128bit state is unchanged
357 (move_or_delete_vzeroupper_1): Return true if the exit
359 (move_or_delete_vzeroupper): Visit basic blocks using the
360 work-list based algorithm based on vt_find_locations in
363 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
365 2011-01-24 Nick Clifton <nickc@redhat.com>
367 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
368 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
369 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
370 then define __v850e1__.
371 * doc/invoke.texi: Document -mv850es.
373 2011-01-24 Richard Henderson <rth@redhat.com>
375 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
376 compound unordered comparisons.
377 * config/rx/rx.c (rx_split_fp_compare): Remove.
378 * config/rx/rx-protos.h: Update.
379 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
380 (cbranchsf4): Don't call rx_split_fp_compare.
381 (*cbranchsf4): Use rx_split_cbranch.
382 (*cmpsf): Don't accept "i" constraint.
383 (*conditional_branch): Only valid after reload.
384 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
386 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
389 * config/rs6000/altivec.md (vector constant splitters): Add
390 support for creating vector single precision constants if -mvsx is
391 used and we would create the constant using Altivec primitives.
393 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
394 Richard Sandiford <rdsandiford@googlemail.com>
396 PR rtl-optimization/47166
397 * reload1.c (emit_reload_insns): Disable the spill_reg_store
398 mechanism for PRE_MODIFY and POST_MODIFY.
399 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
402 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
404 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
406 2011-01-22 Jan Hubicka <jh@suse.cz>
409 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
411 2011-01-22 Jan Hubicka <jh@suse.cz>
413 PR tree-optimization/43884
415 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
416 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
418 2011-01-22 Anatoly Sokolov <aesok@post.ru>
420 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
421 * config/s390/s390.c (s390_register_move_cost,
422 s390_memory_move_cost): New.
423 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
425 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
428 * except.c (sjlj_assign_call_site_values): Move setting the
429 crtl->uses_eh_lsda flag to ...
430 (sjlj_mark_call_sites): ... here.
431 (sjlj_emit_function_enter): Support NULL dispatch label.
432 (sjlj_build_landing_pads): In a function with no landing pads
433 that still has must-not-throw regions, generate code to register
434 a personality function with empty LSDA.
436 2011-01-21 Richard Henderson <rth@redhat.com>
438 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
440 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
442 * compare-elim.c: New file.
443 * Makefile.in (OBJS-common): Add it.
444 (compare-elim.o): New.
445 * common.opt (fcompare-elim): New.
446 * opts.c (default_options_table): Add OPT_fcompare_elim.
447 * tree-pass.h (pass_compare_elim_after_reload): New.
448 * passes.c (init_optimization_passes): Add it.
449 * recog.h: Protect against re-inclusion.
450 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
451 * doc/invoke.texi (-fcompare-elim): Document it.
452 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
453 * doc/tm.texi: Rebuild.
455 2011-01-22 Nick Clifton <nickc@redhat.com>
457 * config/rx/rx.md (cstoresf4): Pass comparison operator to
460 2011-01-22 Nick Clifton <nickc@redhat.com>
462 * config/rx/rx.md (UNSPEC_CONST): New.
463 (deallocate_and_return): Wrap the amount popped off the stack in
464 an UNSPEC_CONST in order to stop it being rejected by
466 (pop_and_return): Add a "(return)" rtx.
467 (call): Drop the immediate operand.
468 (call_internal): Likewise.
469 (call_value): Likewise.
470 (call_value_internal): Likewise.
471 (sibcall_internal): Likewise.
472 (sibcall_value_internal): Likewise.
473 (sibcall): Likewise. Generate an explicit call using
475 (sibcall_value): Likewise.
476 (mov<>): FAIL if a constant operand is not legitimate.
477 (addsi3_unpsec): New pattern.
479 * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
481 (ok_for_max_constant): New function.
482 (gen_safe_add): New function.
483 (rx_expand_prologue): Use gen_safe_add.
484 (rx_expand_epilogue): Likewise.
485 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
488 2011-01-21 Jeff Law <law@redhat.com>
490 PR tree-optimization/47053
491 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
492 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
493 statements are deleted.
494 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
495 is nonempty, then purge dead edges and cleanup the CFG.
497 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
501 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
503 * tree-dfa.c (create_var_ann): Mark variable as used.
505 2011-01-21 Jakub Jelinek <jakub@redhat.com>
508 * except.c (convert_to_eh_region_ranges): Emit queued no-region
509 notes from other section in hot/cold partitioning even if
510 last_action is -3. Increment call_site_base.
512 PR rtl-optimization/47366
513 * fwprop.c (forward_propagate_into): Return bool. If
514 any changes are made, -fnon-call-exceptions is used and
515 REG_EH_REGION note is present, call purge_dead_edges
516 and return true if it purged anything.
517 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
518 any EH edges were purged.
520 2011-01-21 Jeff Law <law@redhat.com>
522 PR rtl-optimization/41619
523 * caller-save.c (setup_save_areas): Break out code to determine
524 which hard regs are live across calls by examining the reload chains
525 so that it is always used.
526 Eliminate code which checked REG_N_CALLS_CROSSED.
528 2011-01-21 Jakub Jelinek <jakub@redhat.com>
530 PR tree-optimization/47355
531 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
532 NOP has non-debug uses beyond PHIs in new_bb.
534 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
537 * cfgexpand.c (account_used_vars_for_block): Only account vars
538 that are annotated as used.
539 (estimated_stack_frame_size): Don't set TREE_USED.
540 * tree-dfa.c (create_var_ann): Mark variable as used.
542 2011-01-21 Richard Guenther <rguenther@suse.de>
545 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
547 2011-01-21 Richard Guenther <rguenther@suse.de>
549 PR tree-optimization/47365
550 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
551 (vn_reference_lookup_pieces): Adjust.
552 (vn_reference_lookup): Likewise.
553 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
554 (vn_reference_lookup_3): Only look through kills if in
556 (vn_reference_lookup_pieces): Adjust.
557 (vn_reference_lookup): Likewise.
558 (visit_reference_op_load): Likewise.
559 (visit_reference_op_store): Likewise.
560 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
561 (compute_avail): Likewise.
562 (eliminate): Likewise.
564 2011-01-21 Jakub Jelinek <jakub@redhat.com>
566 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
567 DECL_IGNORED_P non-reg vars if they are used.
569 PR tree-optimization/47391
570 * varpool.c (const_value_known_p): Return false if
573 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
576 * config/i386/i386.c (ix86_local_alignment): Handle
577 case for va_list_type_node is nil.
578 (ix86_canonical_va_list_type): Likewise.
580 2011-01-21 Alan Modra <amodra@gmail.com>
582 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
583 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
585 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
587 * config/arm/arm.md (define_attr type): Rename f_load
588 and f_store to f_fpa_load and f_fpa_store. Update.
589 (write_conflict): Deal with rename fallout.
590 (*push_fp_multi): Likewise.
591 * config/arm/fpa.md (f_load): Use f_fpa_load.
592 (f_store): Use f_fpa_store.
593 (*movsf_fpa): Likewise.
594 (*movdf_fpa): Likewise.
595 (*movxf_fpa): Likewise.
596 (*thumb2_movsf_fpa): Likewise.
597 (*thumb2_movdf_fpa): Likewise.
598 (*thumb2_movxf_fpa): Likewise.
599 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
600 f_loadd and f_stored.
601 (*thumb2_movdi_vfp): Likewise.
602 (*thumb2_movsf_vfp): Fix attribute to f_loads.
603 (*thumb2_movsi_vfp): Likewise.
604 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
605 Use f_loads instead of f_load.
606 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
608 2011-01-20 Anatoly Sokolov <aesok@post.ru>
610 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
611 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
612 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
613 (xtensa_mode_dependent_address_p): New function.
614 (constantpool_address_p): Make static. Change return type to bool.
615 Change argument type to const_rtx. Use CONST_INT_P predicate.
617 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
620 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
622 2011-01-20 Jakub Jelinek <jakub@redhat.com>
625 * cfgexpand.c (expand_debug_expr): Instead of generating
626 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
629 2011-01-20 Richard Guenther <rguenther@suse.de>
632 * tree-inline.c (remap_gimple_op_r): Recurse manually for
633 the pointer operand of MEM_REFs.
635 2011-01-20 Jakub Jelinek <jakub@redhat.com>
637 PR tree-optimization/46130
638 * ipa-split.c (consider_split): If return_bb contains non-virtual
639 PHIs other than for retval or if split_function would not adjust it,
642 2011-01-20 Richard Guenther <rguenther@suse.de>
644 PR tree-optimization/47167
645 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
646 Revert previous change, only avoid enumeral type changes.
648 2011-01-19 Dodji Seketeli <dodji@redhat.com>
651 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
652 (gen_scheduled_generic_parms_dies): New functions.
653 (gen_struct_or_union_type_die): Schedule template parameters DIEs
654 generation for the end of CU compilation.
655 (dwarf2out_finish): Generate template parameters DIEs here.
657 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
660 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
661 debug bind stmt on merge edges.
663 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
667 * function.c (instantiate_expr): Instantiate incoming rtl of
668 implicit arguments, and recurse on VALUE_EXPRs.
669 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
670 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
672 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
674 * c-parser.c (c_parser_for_statement): Initialize
675 collection_expression.
677 2011-01-19 Joseph Myers <joseph@codesourcery.com>
679 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
681 2011-01-19 Joseph Myers <joseph@codesourcery.com>
683 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
684 (LINK_SHLIB_SPEC): Don't use %(link_path).
685 (SUBTARGET_EXTRA_SPECS): Remove link_path.
687 2011-01-19 Joseph Myers <joseph@codesourcery.com>
689 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
690 (NO_SHARED_LIB_SUPPORT): Remove.
691 (LINK_SHLIB_SPEC): Remove one conditional definition.
693 2011-01-19 Joseph Myers <joseph@codesourcery.com>
695 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
697 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
698 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
699 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
700 %{call_shared} and conditionals on these options not being passed.
701 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
704 2011-01-19 Jakub Jelinek <jakub@redhat.com>
706 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
709 * ipa-split.c: Spelling fixes.
711 2011-01-19 Richard Henderson <rth@redhat.com>
713 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
716 * longlong.h [__mn10300__] (count_leading_zeros): New.
717 [__mn10300__] (umul_ppmm, smul_ppmm): New.
718 [__mn10300__] (add_ssaaaa, subddmmss): New.
719 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
720 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
722 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
724 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
726 2011-01-19 Richard Henderson <rth@redhat.com>
728 * config/mn10300/mn10300.md (addsi3_flags): New.
729 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
730 (subsi3_flags, subc_internal, subdi3): New.
731 (subdi3_internal, *subdi3_degenerate): New.
732 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
734 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
735 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
736 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
737 * config/mn10300/mn10300-protos.h: Update.
738 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
739 (return_ret): Likewise. Rename from return_internal_regs.
740 (return_internal): Remove.
742 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
743 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
744 (mn10300_legitimate_constant_p): Likewise.
745 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
746 (mn10300_frame_size): New.
747 (mn10300_expand_prologue): Use it.
748 (mn10300_expand_epilogue): Likewise.
749 (mn10300_initial_offset): Likewise.
750 * config/mn10300/mn10300-protos.h: Update.
751 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
752 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
753 (prologue, epilogue, return_internal): Tidy output code.
754 (mn10300_store_multiple_operation, return): Likewise.
755 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
756 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
757 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
758 (load_pic, am33_load_pic): New.
759 (mn10300_load_pic0, mn10300_load_pic1): New.
761 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
762 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
763 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
764 (cc_flags_for_mode, cc_flags_for_code): New.
765 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
766 overflow flag is not valid. Validate that the flags we need
767 for the comparison are valid.
768 (mn10300_output_cmp): Remove.
769 (mn10300_output_add): New.
770 (mn10300_select_cc_mode): Use cc_flags_for_code.
771 (mn10300_split_cbranch): New.
772 (mn10300_match_ccmode): New.
773 (mn10300_split_and_operand_count): New.
774 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
776 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
777 (addsi3): ... here. Use mn10300_output_add.
778 (*addsi3_flags): New.
779 (*am33_subsi3, *mn10300_subsi3): Merge...
780 (subsi3): ... here. Use attribute isa.
781 (*subsi3_flags): New.
782 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
784 (*am33_andsi3, *mn10300_andsi3): Merge...
786 (*andsi3_flags): New.
787 (andsi3 splitters): New.
788 (*am33_iorsi3, *mn10300_iorsi3): Merge...
790 (*iorsi3_flags): New.
791 (*am33_xorsi3, *mn10300_xorsi3): Merge...
793 (*xorsi3_flags): New.
794 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
795 (one_cmplsi2): ... here.
796 (*one_cmplsi2_flags): New.
797 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
798 instead of "dax" in constraints. Use mn10300_split_cbranch.
799 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
800 use matching constraints to eliminate a self-comparison.
801 (*integer_conditional_branch): Rename from integer_conditional_branch.
802 Use int_mode_flags to match CC_REG.
803 (*cbranchsi4_btst, *btstsi): New.
804 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
805 mn10300_split_cbranch.
806 (*am33_cmpsf): Rename from am33_cmpsf.
807 (*float_conditional_branch): Rename from float_conditional_branch.
808 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
809 (zero_extendqisi2): ... here.
810 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
811 (zero_extendhisi2): ... here.
812 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
813 (extendqisi2): ... here.
814 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
815 (extendhisi2): ... here.
816 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
818 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
820 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
822 (consecutive add peephole): Remove.
823 * config/mn10300/predicates.md (label_ref_operand): New.
824 (int_mode_flags): New.
825 (CCZN_comparison_operator): New.
827 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
828 (throughput_42_latency_43): New reservation.
829 (mulsidi3, umulsidi3): New expanders.
830 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
831 the MDR register to allocation; separately allocate the low and
832 high parts of the DImode result.
833 (umulsidi3_internal): Similarly.
834 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
835 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
836 (udivsi3, umodsi3): Remove.
837 (udivmodsi4, divmodsi4): New expanders.
838 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
839 (*divmodsi4): Simiarly.
842 * config/mn10300/constraints.md ("z"): New constraint.
843 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
844 (FIXED_REGISTERS): Don't fix MDR.
845 (CALL_USED_REGSITERS): Reformat nicely.
846 (REG_ALLOC_ORDER): Add MDR.
847 (enum regclass): Add MDR_REGS.
848 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
849 (IRA_COVER_CLASSES): Add MDR_REGS.
850 (REGNO_REG_CLASS): Handle MDR_REG.
851 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
852 (mn10300_register_move_cost): Likewise.
853 * config/mn10300/mn10300.md (MDR_REG): New.
854 (*movsi_internal): Handle moves to/from MDR_REGS.
856 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
858 (mn10300_secondary_reload): Tidy combination reload classes.
859 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
860 addresses for AM33. Allow symbolic offsets for reg+imm.
861 (mn10300_regno_in_class_p): New.
862 (mn10300_legitimize_reload_address): New.
863 * config/mn10300/mn10300.h (enum reg_class): Remove
864 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
865 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
867 (REG_CLASS_NAMES): Update to match.
868 (REG_CLASS_CONTENTS): Likewise.
869 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
870 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
871 (REGNO_IN_RANGE_P): Remove.
872 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
873 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
874 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
875 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
876 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
877 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
878 (REGNO_GENERAL_P): New.
879 (HAVE_POST_MODIFY_DISP): New.
880 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
881 (LEGITIMIZE_RELOAD_ADDRESS): New.
882 * config/mn10300/mn10300-protos.h: Update.
884 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
885 DATA_REGS for AM33 stack-pointer destination.
886 (mn10300_preferred_output_reload_class): Likewise.
887 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
888 into a form appropriate for ...
889 (TARGET_SECONDARY_RELOAD): New.
890 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
891 * config/mn10300/mn10300-protos.h: Update.
892 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
893 reload_insi; use the "A" constraint for the scratch; handle AM33
894 moves of sp to non-address registers.
896 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
897 (*movqi_internal): ... here.
898 (*am33_movhi, *mn10300_movhi): Merge into...
899 (*movhi_internal): ... here.
900 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
901 as the source/destination of moves from/to SP.
902 (movsf): Only allow for AM33-2.
903 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
904 any integer constant constraint. Only allow for AM33-2. Tidy
905 all of the alternative outputs.
906 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
907 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
909 (udivsi3, umodsi3): New patterns for MN103 only.
911 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
913 * doc/tm.texi.in: Spell out that a lack of register class unions
915 * doc/tm.texi: Regenerate.
917 2011-01-19 Jakub Jelinek <jakub@redhat.com>
919 PR rtl-optimization/47337
920 * dce.c (check_argument_store): New function.
921 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
923 PR tree-optimization/47290
924 * tree-eh.c (infinite_empty_loop_p): New function.
925 (cleanup_empty_eh): Use it.
927 2011-01-18 Steve Ellcey <sje@cup.hp.com>
930 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
931 (a64_expand_widen_sum): Ditto.
932 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
933 (vec_extract_evenodd_help): Ditto.
934 (vec_extract_evenv4hi): Ditto.
935 (vec_extract_oddv4hi): Ditto.
936 (vec_extract_evenv2si): Ditto.
937 (vec_extract_oddv2si): Ditto.
938 (vec_extract_evenv2sf): Ditto.
939 (vec_extract_oddv2sf): Ditto.
940 (vec_pack_trunc_v4hi: Ditto.
941 (vec_pack_trunc_v2si): Ditto.
942 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
943 (vec_interleave_highv8qi): Ditto.
945 (vec_extract_oddv8qi): Ditto.
946 (vec_interleave_lowv4hi): Ditto.
947 (vec_interleave_highv4hi): Ditto.
948 (vec_interleave_lowv2si): Ditto.
949 (vec_interleave_highv2si): Ditto.
951 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
953 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
954 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
955 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
956 (pa_c_mode_for_suffix): New.
957 (TARGET_EXPAND_BUILTIN): Define.
958 (TARGET_C_MODE_FOR_SUFFIX): Define.
959 (pa_builtins): Define.
960 (pa_init_builtins): Register __float128 type and init new support
962 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
963 * config/pa/quadlib.c (_U_Qfcopysign): New.
965 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
968 * explow.c (allocate_dynamic_stack_space): Do not assume more than
969 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
972 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
974 PR tree-optimization/47179
975 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
976 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
978 2011-01-18 Richard Guenther <rguenther@suse.de>
980 PR rtl-optimization/47216
981 * emit-rtl.c: Include tree-flow.h.
982 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
983 of replicating it with different semantics.
984 * Makefile.in (emit-rtl.o): Adjust.
986 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
988 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
990 (cortex_a9_dp): Handle neon types correctly.
992 2011-01-18 Jakub Jelinek <jakub@redhat.com>
994 PR rtl-optimization/47299
995 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
996 subtarget. Use normal multiplication if both operands are
998 * expmed.c (expand_widening_mult): Don't try to optimize constant
999 multiplication if op0 has VOIDmode. Convert op1 constant to mode
1002 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1004 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
1005 spacing after 'e.g.', typos, comma, hyphenation.
1007 2011-01-17 Richard Henderson <rth@redhat.com>
1009 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
1010 (rx_restricted_mem_operand): New.
1011 (rx_shift_operand): Use register_operand.
1012 (rx_source_operand, rx_compare_operand): Likewise.
1013 * config/rx/rx.md (addsi3_flags): New expander.
1014 (adddi3): Rewrite as expander.
1015 (adc_internal, *adc_flags, adddi3_internal): New patterns.
1016 (subsi3_flags): New expander.
1017 (subdi3): Rewrite as expander.
1018 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
1020 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
1021 (rx_init_builtins): Remove sat builtin.
1022 (rx_expand_builtin): Likewise.
1023 * config/rx/rx.md (ssaddsi3): New.
1024 (*sat): Rename from sat. Represent the CC_REG input.
1026 * config/rx/predicates.md (rshift_operator): New.
1027 * config/rx/rx.c (rx_expand_insv): Remove.
1028 * config/rx/rx-protos.h: Update.
1029 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
1030 operand to the canonical position.
1031 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
1032 (*bitclr, *bitclr_in_memory): Similarly.
1033 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
1034 (insv): Retain the zero_extract in the expansion.
1036 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
1037 (bswaphi2, bitinvert, revw): Likewise.
1039 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
1040 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
1041 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
1042 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
1043 (bitset, bitset_in_memory): Likewise.
1044 (bitinvert, bitinvert_in_memory): Likewise.
1045 (bitclr, bitclr_in_memory): Likewise.
1046 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
1047 (rx_strend, rx_cmpstrn): Likewise.
1048 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
1049 (bitop peep2 patterns): Remove.
1051 * config/rx/rx.c (rx_match_ccmode): New.
1052 * config/rx/rx-protos.h: Update.
1053 * config/rx/rx.md (abssi2): Clobber, don't set flags.
1054 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
1055 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
1056 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
1057 (fix_truncsfsi2, floatsisf2): Likewise.
1058 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
1059 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
1060 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
1061 (*subsi3_flags, *xorsi3_flags): New.
1063 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
1065 * config/rx/rx.c (rx_print_operand): Remove workaround for
1066 unsplit comparison operations.
1068 * config/rx/rx.md (movsicc): Split after reload.
1069 (*movsicc): Merge *movsieq and *movsine via match_operator.
1070 (*stcc): New pattern.
1072 * config/rx/rx.c (rx_float_compare_mode): Remove.
1073 * config/rx/rx.h (rx_float_compare_mode): Remove.
1074 * config/rx/rx.md (cstoresi4): Split after reload.
1075 (*sccc): New pattern.
1077 * config/rx/predicates.md (label_ref_operand): New.
1078 (rx_z_comparison_operator): New.
1079 (rx_zs_comparison_operator): New.
1080 (rx_fp_comparison_operator): New.
1081 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
1082 Validate that the flags are set properly for the comparison.
1083 (rx_gen_cond_branch_template): Remove.
1084 (rx_cc_modes_compatible): Remove.
1085 (mode_from_flags): New.
1086 (flags_from_code): Rename from flags_needed_for_conditional.
1087 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
1088 (rx_select_cc_mode): Likewise.
1089 (rx_split_fp_compare): New.
1090 (rx_split_cbranch): New.
1091 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
1092 (*cbranchsi4): Use match_operator and rx_split_cbranch.
1093 (*cbranchsf4): Similarly.
1094 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
1095 match_operator and rx_split_cbranch.
1096 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
1097 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
1098 (*cmpsi): Rename from cmpsi.
1099 (*tstsi): Rename from tstsi.
1100 (*cmpsf): Rename from cmpsf; use CC_Fmode.
1101 (*conditional_branch): Rename from conditional_branch.
1102 (*reveresed_conditional_branch): Remove.
1103 (b<code>): Remove expander.
1104 * config/rx/rx-protos.h: Update.
1106 * config/rx/rx.c (rx_compare_redundant): Remove.
1107 * config/rx/rx.md (cmpsi): Don't use it.
1108 * config/rx/rx-protos.h: Update.
1110 * config/rx/rx-modes.def (CC_F): New mode.
1111 * config/rx/rx.c (rx_select_cc_mode): New.
1112 * config/rx/rx.h (SELECT_CC_MODE): Use it.
1113 * config/rx/rx-protos.h: Update.
1115 2011-01-17 Richard Henderson <rth@redhat.com>
1117 * except.c (dump_eh_tree): Fix stray ; after for statement.
1119 2011-01-17 Richard Guenther <rguenther@suse.de>
1121 PR tree-optimization/47313
1122 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
1123 handling before copying the body. Properly deal with
1124 by-reference result in SSA form.
1126 2011-01-17 Ian Lance Taylor <iant@google.com>
1129 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
1130 (struct_value_alias_set): Don't define.
1131 (sparc_option_override): Don't set sparc_sr_alias_set and
1132 struct_value_alias_set.
1133 (save_or_restore_regs): Use gen_frame_mem rather than calling
1135 (sparc_struct_value_rtx): Likewise.
1137 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
1140 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
1142 (_mm_maskstore_pd): Likewise.
1143 (_mm_maskload_ps): Likewise.
1144 (_mm_maskstore_ps): Likewise.
1145 (_mm256_maskload_pd): Change mask to __m256i.
1146 (_mm256_maskstore_pd): Likewise.
1147 (_mm256_maskload_ps): Likewise.
1148 (_mm256_maskstore_ps): Likewise.
1150 * config/i386/i386-builtin-types.def: Updated.
1151 (ix86_expand_special_args_builtin): Likewise.
1153 * config/i386/i386.c (bdesc_special_args): Update
1154 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
1155 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
1156 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
1157 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
1159 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
1160 Use <avxpermvecmode> on mask register.
1161 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
1163 2011-01-17 Olivier Hainque <hainque@adacore.com>
1164 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1165 Eric Botcazou <ebotcazou@adacore.com>
1168 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
1169 if <= USHRT_MAX in 32-bit mode.
1171 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1173 * doc/install.texi (Configuration, Specific): Wrap long
1174 lines in examples. Allow line wrapping in long options
1175 and URLs where beneficial for PDF output.
1177 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
1179 * config/mips/mips.c (mips_classify_symbol): Don't return
1180 SYMBOL_PC_RELATIVE for nonlocal labels.
1182 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
1184 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
1186 2011-01-15 Jan Hubicka <jh@suse.cz>
1188 PR tree-optimization/47276
1189 * ipa.c (function_and_variable_visibility): Do not try to mark alias
1190 declarations as needed.
1192 2011-01-15 Martin Jambor <mjambor@suse.cz>
1194 * common.opt (fdevirtualize): New flag.
1195 * doc/invoke.texi (Option Summary): Document it.
1196 * opts.c (default_options_table): Add devirtualize flag.
1197 * ipa-prop.c (detect_type_change): Return immediately if
1198 devirtualize flag is not set.
1199 (detect_type_change_ssa): Likewise.
1200 (compute_known_type_jump_func): Likewise.
1201 (ipa_analyze_virtual_call_uses): Likewise.
1203 2011-01-14 Martin Jambor <mjambor@suse.cz>
1205 PR tree-optimization/45934
1206 PR tree-optimization/46302
1207 * ipa-prop.c (type_change_info): New type.
1208 (stmt_may_be_vtbl_ptr_store): New function.
1209 (check_stmt_for_type_change): Likewise.
1210 (detect_type_change): Likewise.
1211 (detect_type_change_ssa): Likewise.
1212 (compute_complex_assign_jump_func): Check for dynamic type change.
1213 (compute_complex_ancestor_jump_func): Likewise.
1214 (compute_known_type_jump_func): Likewise.
1215 (compute_scalar_jump_functions): Likewise.
1216 (ipa_analyze_virtual_call_uses): Likewise.
1217 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
1219 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1221 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
1222 * config/i386/i386.opt (msse5): New Alias.
1224 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1226 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
1227 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1228 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1229 * config/sparc/sparc.h (CC1_SPEC): Likewise.
1231 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1233 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
1235 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1236 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1237 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
1238 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
1240 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
1242 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1244 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
1247 2011-01-14 Mike Stump <mikestump@comcast.net>
1249 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
1250 * config/fr30/fr30.md: Likweise
1251 (movsi_push): Likewise.
1252 (movsi_pop): Likewise.
1253 (enter_func): Likewise.
1254 * config/moxie/moxie.md (movsi_push): Likewise.
1255 (movsi_pop): Likewise.
1257 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1259 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
1260 %{no_archive} %{exact_version}.
1261 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
1262 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
1263 %{no_archive} %{exact_version}.
1264 * config/mips/openbsd.h (LINK_SPEC): Likewise.
1265 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
1266 * config/mips/vxworks.h: Likewise.
1268 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1270 * config/microblaze/microblaze.h (ASM_SPEC): Remove
1273 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1275 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
1276 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
1278 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1280 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
1283 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1285 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
1287 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
1288 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
1290 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
1291 Don't handle -shlib.
1293 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1295 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
1296 (CC1_SPEC): Don't handle -profile.
1298 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1300 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
1301 * config/mips/mips.h (CC1_SPEC): Likewise.
1303 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1305 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
1306 * config/mips/mips.h (CC1_SPEC): Likewise.
1308 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1310 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
1311 * config/m32r/linux.h (LINK_SPEC): Likewise.
1312 * config/mips/linux.h (LINK_SPEC): Likewise.
1313 * config/mips/linux64.h (LINK_SPEC): Likewise.
1314 * config/sparc/linux.h (LINK_SPEC): Likewise.
1315 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1316 LINK_SPEC): Likewise.
1317 * config/xtensa/linux.h (LINK_SPEC): Likewise.
1319 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1321 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
1323 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1325 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1327 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
1328 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
1330 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1332 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
1334 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1336 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
1337 supports -Bstatic/-Bdynamic.
1338 * configure: Regenerate.
1340 2011-01-14 Jan Hubicka <jh@suse.cz>
1341 Jack Howarth <howarth@bromo.med.uc.edu>
1344 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
1345 when checking debug_info_level. Test write_symbols instead of
1346 debug_hooks->var_location when setting flag_var_tracking_uninit.
1348 2011-01-14 Richard Guenther <rguenther@suse.de>
1350 PR tree-optimization/47179
1351 * target.def (ref_may_alias_errno): New target hook.
1352 * targhooks.h (default_ref_may_alias_errno): Declare.
1353 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
1354 (default_ref_may_alias_errno): New function.
1355 * target.h (struct ao_ref_s): Declare.
1356 * tree-ssa-alias.c: Include target.h.
1357 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
1358 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
1359 (targhooks.o): Likewise.
1360 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
1361 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
1363 2011-01-14 Richard Guenther <rguenther@suse.de>
1365 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
1367 2011-01-14 Richard Guenther <rguenther@suse.de>
1369 PR tree-optimization/47280
1370 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
1372 (tree_ssa_forward_propagate_single_use_vars): Deal with
1373 CFG changes from associate_plusminus.
1375 2011-01-14 Richard Guenther <rguenther@suse.de>
1379 2011-01-11 Richard Guenther <rguenther@suse.de>
1381 PR tree-optimization/46076
1382 * tree-ssa.c (useless_type_conversion_p): Conversions from
1383 unprototyped to empty argument list function types are useless.
1385 2011-01-14 Richard Guenther <rguenther@suse.de>
1387 PR tree-optimization/47286
1388 * tree-ssa-structalias.c (new_var_info): Register variables are global.
1390 2011-01-14 Martin Jambor <mjambor@suse.cz>
1393 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
1395 2011-01-13 Anatoly Sokolov <aesok@post.ru>
1397 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
1398 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1399 * config/xtensa/xtensa.c (xtensa_libcall_value,
1400 xtensa_function_value_regno_p): New functions.
1401 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1403 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
1406 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
1408 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
1409 New function prototype.
1410 * config/i386/winnt.c (i386_pe_assemble_visibility):
1411 Warn only if attribute was specified by user.
1413 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1416 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
1418 (floatunsdidf2_fcfidu): Ditto.
1420 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1422 * config/s390/s390.c (print_operand_address): Replace 'error' with
1423 'output_operand_lossage'.
1424 (print_operand): Likewise.
1426 2011-01-13 Jeff Law <law@redhat.com>
1428 PR rtl-optimization/39077
1429 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
1430 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
1431 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
1432 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
1433 * gcse.c (prune_insertions_deletions): New function.
1434 (compute_pre_data): Use it.
1436 2011-01-13 Dodji Seketeli <dodji@redhat.com>
1439 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
1441 (prune_unused_types_mark): Use it.
1443 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
1445 PR rtl-optimization/45352
1446 * sel-sched.c: Update copyright years.
1447 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1448 in the advancing loop when we have issued issue_rate insns.
1450 2011-01-12 Richard Henderson <rth@redhat.com>
1452 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
1453 (TARGET_MD_ASM_CLOBBERS): New.
1455 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
1456 (TARGET_DELEGITIMIZE_ADDRESS): New.
1458 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
1459 (clzsi2, *bsch): New patterns.
1461 * config/mn10300/mn10300.md (INT): New mode iterator.
1462 (*mov<INT>_clr): New pattern, and peep2 to generate it.
1464 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
1465 flag_split_wide_types.
1467 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
1468 (mn10300_trampoline_init): Rewrite without a template, an immediate
1469 load and a direct branch.
1470 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
1472 2011-01-12 Anatoly Sokolov <aesok@post.ru>
1474 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1475 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
1476 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
1477 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1479 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
1482 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
1485 2011-01-12 Jan Hubicka <jh@suse.cz>
1488 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
1489 (PLUGIN_COND_CLOSE): New macro.
1490 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
1492 2011-01-12 Richard Guenther <rguenther@suse.de>
1495 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
1496 register variables in a MEM_REF.
1498 2011-01-12 Joseph Myers <joseph@codesourcery.com>
1500 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
1501 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
1502 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
1503 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1504 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1505 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
1506 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
1507 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
1508 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
1509 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
1510 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
1511 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
1512 * config/gnu-user.h: New. Copied from linux.h.
1513 (LINUX_TARGET_STARTFILE_SPEC): Rename to
1514 GNU_USER_TARGET_STARTFILE_SPEC.
1515 (LINUX_TARGET_ENDFILE_SPEC): Rename to
1516 GNU_USER_TARGET_ENDFILE_SPEC.
1517 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
1518 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
1519 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
1520 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
1521 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
1522 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
1523 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
1524 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
1525 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
1526 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
1527 * config/arm/linux-eabi.h (CC1_SPEC): Use
1528 GNU_USER_TARGET_CC1_SPEC.
1529 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
1530 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
1531 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
1532 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
1533 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
1534 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
1535 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
1536 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
1538 2011-01-12 Richard Guenther <rguenther@suse.de>
1541 * doc/invoke.texi (ffast-math): Document it is turned on
1544 2011-01-12 Jan Hubicka <jh@suse.cz>
1546 PR tree-optimization/47233
1547 * opts.c (common_handle_option): Disable ipa-reference with profile
1550 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1552 * c-parser.c (c_parser_objc_at_property_declaration): Improved
1555 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1557 * c-parser.c (c_lex_one_token): Updated and reindented some
1558 comments. No changes in code.
1560 2011-01-11 Ian Lance Taylor <iant@google.com>
1562 * godump.c (go_output_var): Don't output the variable if there is
1563 already a type with the same name.
1565 2011-01-11 Ian Lance Taylor <iant@google.com>
1567 * godump.c (go_format_type): Don't generate float80.
1569 2011-01-11 Richard Henderson <rth@redhat.com>
1571 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
1572 declaration. Rewrite for both speed and size.
1573 (mn10300_address_cost_1): Remove.
1574 (mn10300_register_move_cost): New.
1575 (mn10300_memory_move_cost): New.
1576 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
1577 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
1578 extensions, shifts, BSWAP, CLZ.
1579 (mn10300_wide_const_load_uses_clr): Remove.
1580 (TARGET_REGISTER_MOVE_COST): New.
1581 (TARGET_MEMORY_MOVE_COST): New.
1582 * config/mn10300/mn10300-protos.h: Update.
1583 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
1585 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
1586 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
1587 * config/mn10300/mn10300-protos.h: Update.
1588 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
1589 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
1590 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
1591 (*test_int_bitfield, *test_byte_bitfield): Remove.
1592 (*bit_test, *subreg_bit_test): Remove.
1593 * config/mn10300/predicates.md (const_8bit_operand): Remove.
1595 * config/mn10300/constraints.md ("c"): Rename from "A".
1596 ("A", "D"): New constraint letters.
1597 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
1598 (fmssf4, fnmasf4, fnmssf4): Likewise.
1600 * config/mn10300/mn10300.md (isa): New attribute.
1601 (enabled): New attribute.
1603 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
1604 (abssf2, negsf2): Define only for hardware fp.
1605 (sqrtsf2): Reformat.
1606 (addsf3, subsf3, mulsf3): Merge expander and insn.
1608 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
1609 (DEBUGGER_AUTO_OFFSET): Remove.
1610 (DEBUGGER_ARG_OFFSET): Remove.
1612 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
1613 Emit register stores with the same offsets as the hardware.
1614 (mn10300_store_multiple_operation): Don't check that the register
1615 save offsets are monotonic.
1616 * config/mn10300/mn10300-protos.h: Update.
1618 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
1620 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
1621 in terms of the value on the stack, not the MDR register.
1623 2011-01-11 Jan Hubicka <jh@suse.cz>
1627 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
1628 (symbol_alias_set_destroy, symbol_alias_set_contains,
1629 propagate_aliases_backward): Declare.
1630 * lto-streamer-out.c (struct sets): New sturcture.
1631 (trivally_defined_alias): New function.
1632 (output_alias_pair_p): Rewrite.
1633 (output_unreferenced_globals): Fix output of alias pairs.
1634 (produce_symtab): Likewise.
1635 * ipa.c (function_and_variable_visibility): Set weak alias destination
1637 * varasm.c (symbol_alias_set_t): Remove.
1638 (symbol_alias_set_destroy): Export.
1639 (propagate_aliases_forward, propagate_aliases_backward): New functions
1641 (compute_visible_aliases): ... this one; remove.
1642 (trivially_visible_alias): New
1643 (trivially_defined_alias): New.
1644 (remove_unreachable_alias_pairs): Rewrite.
1645 (finish_aliases_1): Reorganize code checking if alias is defined.
1646 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
1649 2011-01-11 Richard Guenther <rguenther@suse.de>
1651 PR tree-optimization/46076
1652 * tree-ssa.c (useless_type_conversion_p): Conversions from
1653 unprototyped to empty argument list function types are useless.
1655 2011-01-11 Richard Guenther <rguenther@suse.de>
1658 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
1659 volatile MEMs as MEM_READONLY_P.
1661 2011-01-11 Richard Guenther <rguenther@suse.de>
1663 PR tree-optimization/47239
1664 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
1666 2011-01-11 Jeff Law <law@redhat.com>
1668 PR tree-optimization/47086
1669 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
1670 IVs from statements that might throw.
1672 2011-01-10 Jan Hubicka <jh@suse.cz>
1675 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
1677 2011-01-10 Jan Hubicka <jh@suse.cz>
1680 * profile.c (read_profile_edge_counts): Ignore profile inconistency
1681 when correcting profile.
1683 2011-01-10 Jan Hubicka <jh@suse.cz>
1686 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
1688 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
1689 Restore DECL_FINI_PRIORITY.
1691 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1693 * doc/gimple.texi: Fix quoting of multi-word return values in
1694 @deftypefn statements. Ensure presence of return value. Wrap
1695 overlong @deftypefn lines.
1696 (is_gimple_operand, is_gimple_min_invariant_address): Remove
1697 descriptions of removed functions.
1698 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
1699 of multi-word return value in @deftypefn statement.
1701 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1703 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
1704 (Conditional Expressions, Logical Operators)
1705 (Statement and operand traversals): Do not indent smallexample
1706 code. Fix duplicate function argument in example.
1708 2011-01-10 Jeff Law <law@redhat.com>
1710 PR tree-optimization/47141
1711 * ipa-split.c (split_function): Handle case where we are
1712 returning a value and the return block has a virtual operand phi.
1714 2011-01-10 Jan Hubicka <jh@suse.cz>
1716 PR tree-optimization/47234
1717 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
1718 (pass_feedback_split_functions): Declare.
1719 * passes.c (init_optimization_passes): Add ipa-split as subpass of
1721 * ipa-split.c (gate_split_functions): Update comments; disable
1722 split-functions for profile_arc_flag and branch_probabilities.
1723 (gate_feedback_split_functions): New function.
1724 (execute_feedback_split_functions): New function.
1725 (pass_feedback_split_functions): New global var.
1727 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
1730 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
1731 calling gimple_call_set_cannot_inline.
1733 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
1735 * config/darwin-sections.def: Remove unused section.
1737 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
1740 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
1742 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
1745 * c-parser.c (c_parser_declaration_or_fndef): Improved
1748 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
1750 * config/i386/winnt.c (i386_pe_start_function): Make sure
1751 to switch back to function's section.
1753 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
1757 * plugin.c: Move include of dlfcn.h from here...
1758 * system.h: ... to here.
1760 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1762 * doc/cpp.texi (C++ Named Operators): Fix markup for header
1764 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
1765 two extra empty pages in PDF output.
1767 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
1770 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
1771 for error recovery purposes behave as if it was not specified so
1772 that the default type is usd.
1774 2011-01-07 Jan Hubicka <jh@suse.cz>
1776 PR tree-optmization/46469
1777 * ipa.c (function_and_variable_visibility): Clear needed flags on
1778 nodes with external decls; handle weakrefs merging correctly.
1780 2011-01-07 Joseph Myers <joseph@codesourcery.com>
1782 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
1785 2011-01-07 Jan Hubicka <jh@suse.cz>
1787 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
1788 and no longer claim that gold is required for linker plugin.
1789 * configure: Regenerate.
1790 * gcc.c (PLUGIN_COND): New macro.
1791 (LINK_COMMAND_SPEC): Use it.
1792 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
1793 * config.in (HAVE_LTO_PLUGIN): New.
1794 * configure.ac (--with-lto-plugin): New parameter; autodetect
1797 2011-01-07 Jan Hubicka <jh@suse.cz>
1799 PR tree-optimization/46367
1800 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
1801 when we can update original.
1802 (cgraph_mark_inline_edge): Sanity check.
1803 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
1805 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1807 * config/spu/spu.h (ASM_COMMENT_START): Define.
1809 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
1813 (SWITCH_KEEP_FOR_GCC): Likewise.
1814 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
1815 (do_spec_1): Handle "%>".
1817 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
1819 2011-01-07 Jakub Jelinek <jakub@redhat.com>
1822 * config/i386/i386.c (ix86_delegitimize_address): If
1823 simplify_gen_subreg fails, return orig_x.
1826 * value-prof.c (gimple_stringop_fixed_value): Handle
1827 lhs of the call properly.
1829 2011-01-07 Jan Hubicka <jh@suse.cz>
1832 * lto-opt.c (lto_reissue_options): Set flag_shlib.
1834 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1836 * target.def (function_switched_text_sections): New hook.
1837 * doc/tm.texi: Regenerated.
1838 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1839 * final.c (default_function_switched_text_sections): New.
1840 (final_scan_insn): Call function_switched_text_sections when a
1841 mid-function section change occurs.
1842 * output.h (default_function_switched_text_sections): Declare.
1843 * config/darwin-protos.h (darwin_function_switched_text_sections):
1845 * config/darwin.c (darwin_function_switched_text_sections): New.
1846 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1848 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1850 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
1851 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
1852 the secondary code fragment when outputting for DWARF == 2.
1854 2011-01-07 Anatoly Sokolov <aesok@post.ru>
1856 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1857 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
1859 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
1860 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1862 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
1865 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
1866 when it is not empty.
1868 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
1871 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1872 (case ${target}): Add btver1.
1873 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1874 -march=native recognize btver1 processors.
1875 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1876 btver1 def_and_undef
1877 * config/i386/i386.c (struct processor_costs btver1_cost): New
1879 (m_BTVER1): New definition.
1880 (m_AMD_MULTIPLE): Includes m_BTVER1.
1881 (initial_ix86_tune_features): Add btver1 tune.
1882 (processor_target_table): Add btver1 entry.
1883 (static const char *const cpu_names): Add btver1 entry.
1884 (software_prefetching_beneficial_p): Add btver1.
1885 (ix86_option_override_internal): Add btver1 instruction sets.
1886 (ix86_issue_rate): Add btver1.
1887 (ix86_adjust_cost): Add btver1.
1888 * config/i386/i386.h (TARGET_BTVER1): New definition.
1889 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
1890 (enum processor_type): Add PROCESSOR_BTVER1.
1891 * config/i386/i386.md (define_attr "cpu"): Add btver1.
1893 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1896 * config/i386/i386.c (legitimize_tls_address)
1897 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
1898 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
1899 (tls_initial_exec_64_sun): New pattern.
1901 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
1903 * doc/invoke.texi (Overall Options): Improve wording and markup
1904 of the description of -wrapper.
1906 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1908 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
1909 rdynamic, threads): New Driver options.
1911 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1914 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
1915 if coming from .tdata.
1916 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1918 2011-01-06 Jan Hubicka <jh@suse.cz>
1921 * collect2.c (main): Do not enable LTOmode when plugin is active.
1923 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1926 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
1927 --version output if supported.
1928 * configure: Regenerate.
1930 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1932 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
1935 2011-01-06 Jakub Jelinek <jakub@redhat.com>
1938 * c-convert.c (convert): When converting a complex expression
1939 other than COMPLEX_EXPR to a different complex type, ensure
1940 c_save_expr is called instead of save_expr, unless in_late_binary_op.
1941 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
1942 when converting COMPLEX_TYPE.
1944 2011-01-06 Ira Rosen <irar@il.ibm.com>
1946 PR tree-optimization/47139
1947 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
1948 only the last reduction value is used outside the loop. Update
1951 2011-01-05 Joseph Myers <joseph@codesourcery.com>
1953 * config/rtems.opt: New.
1954 * config.gcc (*-*-rtems*): Use rtems.opt.
1956 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
1958 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
1959 processors do not support 3DNow instructions.
1961 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1963 * config/spu/spu.c (spu_option_override): Set parameter
1964 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
1966 2011-01-05 Jan Hubicka <jh@suse.cz>
1968 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
1969 at the command line.
1971 2011-01-05 Martin Jambor <mjambor@suse.cz>
1974 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
1975 deltas on streamed outgoing edges.
1976 (output_node_opt_summary): Output info for outgoing edges only when
1977 the node is in new parameter set.
1978 (output_cgraph_opt_summary): New parameter set, passed to the two
1979 aforementioned functions. Update its forward declaration and its
1982 2011-01-05 Tom Tromey <tromey@redhat.com>
1984 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
1985 operator to c_finish_omp_atomic.
1986 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
1987 (build_unary_op): Update.
1988 (build_modify_expr): Update.
1989 (build_asm_expr): Update.
1991 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1993 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
1994 newly inserted insns.
1996 (spu_emit_branch_hint): Likewise.
1997 (insert_hbrp_for_ilb_runout): Likewise.
1998 (spu_machine_dependent_reorg): Call df_finish_pass after
1999 schedule_insns returns.
2001 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2003 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
2005 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
2007 PR tree-optimization/47005
2008 * tree-sra.c (struct access): Add 'non_addressable' bit.
2009 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
2010 (decide_one_param_reduction): Return 0 if the parameter is passed by
2011 reference and one of the accesses in the group is non_addressable.
2013 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2015 PR tree-optimization/47056
2016 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
2017 (mark_load): Likewise. Handle FUNCTION_DECL specially.
2018 (mark_store): Likewise. Pass STMT to ipa_record_reference.
2020 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2022 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
2023 initializer. Skip view conversions from aggregate types.
2025 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
2028 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
2030 2011-01-04 Philipp Thomas <pth@suse.de>
2032 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
2035 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2037 * function.c (thread_prologue_and_epilogue_insns): Do not crash
2038 on empty epilogue sequences.
2040 2011-01-04 Joseph Myers <joseph@codesourcery.com>
2042 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
2043 non-static): New Driver options.
2045 2011-01-04 Jie Zhang <jie@codesourcery.com>
2048 * gcc.c (default_compilers[]): Set combinable field to 0
2049 for all assembly languages.
2051 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
2053 * config/mips/loongson3a.md: New file.
2054 * config/mips/mips.md: Include loongson3a.md.
2055 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
2058 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
2061 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
2062 instead of convert_memory_address_addr_space on the base expression.
2064 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2066 * config/spu/spu.c (spu_option_override): Update error text
2067 for bad -march= / -mtune= values.
2069 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2071 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
2072 if branch-hint optimization will be performed.
2074 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2076 PR tree-optimization/47148
2077 * ipa-split.c (split_function): Convert arguments to
2078 DECL_ARG_TYPE if possible.
2080 PR tree-optimization/47155
2081 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
2084 PR rtl-optimization/47157
2085 * combine.c (try_combine): If undobuf.other_insn becomes
2086 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
2087 and set *new_direct_jump_p too.
2089 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
2091 PR tree-optimization/47021
2092 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
2094 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2096 * gcc.c (process_command): Update copyright notice dates.
2097 * gcov.c (print_version): Likewise.
2098 * gcov-dump.c (print_version): Likewise.
2099 * mips-tfile.c (main): Likewise.
2100 * mips-tdump.c (main): Likewise.
2102 2011-01-03 Martin Jambor <mjambor@suse.cz>
2104 PR tree-optimization/46801
2105 * tree-sra.c (type_internals_preclude_sra_p): Check whether
2106 aggregate fields start at byte boundary instead of the bit-field flag.
2108 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
2111 * gcc.c (main): Revert revision 168407.
2113 2011-01-03 Martin Jambor <mjambor@suse.cz>
2115 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
2117 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2119 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
2120 vector optab to expand vector/scalar shift, update gimple to vector.
2122 2011-01-03 Martin Jambor <mjambor@suse.cz>
2124 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
2127 2011-01-03 Martin Jambor <mjambor@suse.cz>
2129 PR tree-optimization/46984
2130 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
2132 (cgraph_create_indirect_edge): Fixed line length.
2133 (cgraph_indirect_call_info): Declare.
2134 (cgraph_make_edge_direct) Update declaration.
2135 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
2136 (cgraph_create_indirect_edge): Use it.
2137 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
2139 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
2140 the new thunk_delta representation.
2141 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
2143 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
2144 (ipa_read_indirect_edge_info): Likewise.
2145 * lto-cgraph.c (output_edge_opt_summary): New function.
2146 (output_node_opt_summary): Call it on all outgoing edges.
2147 (input_edge_opt_summary): New function.
2148 (input_node_opt_summary): Call it on all outgoing edges.
2150 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
2153 * gcc.c (main): Don't check have_o when settting combine_inputs.
2155 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
2157 * regrename.c: Add general comment describing the pass.
2158 (struct du_head): Remove 'length' field.
2159 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
2160 (regrename_optimize): Do not sort chains. Rework comments, add others.
2161 Force renaming to the preferred class (if any) in the first pass and do
2162 not consider registers that belong to it in the second pass.
2163 (create_new_chain): Do not set 'length' field.
2164 (scan_rtx_reg): Likewise.
2166 2011-01-02 Jakub Jelinek <jakub@redhat.com>
2168 PR tree-optimization/47140
2169 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
2170 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
2173 PR rtl-optimization/47028
2174 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
2175 parm_birth_insn instead of at the beginning of first bb.
2177 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
2179 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
2180 Remove the word "see" before "@pxref".
2181 * doc/rtl.texi: Remove the word "see" before "@pxref".
2183 2011-01-01 Jan Hubicka <jh@suse.cz>
2185 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
2188 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
2191 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
2194 Copyright (C) 2011 Free Software Foundation, Inc.
2196 Copying and distribution of this file, with or without modification,
2197 are permitted in any medium without royalty provided the copyright
2198 notice and this notice are preserved.