1 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
4 (close_phi_written_to_memory): Call for_each_index with
5 dr_indices_valid_in_loop.
7 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
10 when it is initialized.
12 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15 call to graphite_find_data_references_in_stmt.
16 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
18 call to graphite_find_data_references_in_stmt.
19 (analyze_drs_in_stmts): Same.
20 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
21 in which the scalar analysis of indices is performed.
22 (create_data_ref): Same. Update call to dr_analyze_indices.
23 (find_data_references_in_stmt): Update call to create_data_ref.
24 (graphite_find_data_references_in_stmt): Same.
25 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
27 (create_data_ref): Same.
28 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
29 call to create_data_ref.
31 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
33 * graphite-sese-to-poly.c (build_poly_scop): Move
34 rewrite_commutative_reductions_out_of_ssa before
37 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
39 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
40 VAR_DECL, PARM_DECL, and RESULT_DECL.
42 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
44 * graphite-dependences.c (reduction_dr_1): Allow several reductions
46 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
47 that have already been marked as PBB_IS_REDUCTION.
49 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
51 * graphite-scop-detection.c (same_close_phi_node): New.
52 (remove_duplicate_close_phi): New.
53 (make_close_phi_nodes_unique): New.
54 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
56 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
58 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
59 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
60 of both data references to be the same.
62 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
64 * graphite-dependences.c (build_lexicographical_constraint): Remove the
66 (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
67 (dependence_polyhedron): Same.
68 (graphite_legal_transform_dr): Same.
69 (graphite_carried_dependence_level_k): Same.
70 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
71 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
73 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
75 * graphite-sese-to-poly.c
76 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
77 (close_phi_written_to_memory): New.
78 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
81 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
83 * doc/install.texi: Update the expected version number of PPL to 0.11.
84 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
85 #if PPL_VERSION_MINOR < 11.
87 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
89 * graphite-dependences.c: Include graphite-cloog-util.h.
90 (new_poly_ddr): Inlined into dependence_polyhedron.
91 (free_poly_ddr): Moved close by new_poly_ddr.
92 (dependence_polyhedron_1): Renamed dependence_polyhedron.
93 Early return NULL when ppl_powerset_is_empty returns true.
94 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
95 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
96 (graphite_legal_transform_dr): Call new_poly_ddr.
97 (graphite_carried_dependence_level_k): Same.
98 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
99 (dot_transformed_deps_stmt_1): Removed.
100 (dot_deps_stmt_1): Call dot_deps_stmt_2.
101 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
102 (dot_deps_1): Call dot_deps_2.
103 * Makefile.in (graphite-dependences.o): Add missing dependence on
104 graphite-cloog-util.h.
106 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
108 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
109 (build_lexicographical_constraint): Same.
110 (dependence_polyhedron_1): Same.
111 (graphite_legal_transform_dr): Same.
112 (graphite_carried_dependence_level_k): Same.
113 * graphite-ppl.c (ppl_powerset_is_empty): New.
114 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
115 * tree-data-ref.c (dump_data_reference): Print the basic block index.
117 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
119 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
120 the "a followed by b" relation and document it.
122 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
124 * graphite-dependences.c (build_lexicographical_constraint): Stop the
125 iteration when the bag of constraints is empty.
127 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
129 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
131 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
133 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
134 nest and two loop depths as parameters.
135 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
138 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
140 * graphite-dependences.c (print_pddr): Call
141 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
143 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
145 * graphite-ppl.c (debug_gmp_value): New.
146 * graphite-ppl.h (debug_gmp_value): Declared.
148 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
150 * doc/install.texi: Document availability of cloog-0.16.
152 2011-01-25 Vladimir Kargov <kargov@gmail.com>
154 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
155 invalid postdominance info.
157 2011-01-24 Jan Hubicka <jh@suse.cz>
160 * doc/extend.texi (weak pragma): Drop claim that it must
161 appear before definition.
162 * varasm.c (merge_weak, declare_weak): Only sanity check
163 that DECL is not output at a time it is declared weak.
165 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
167 * machmode.def: Fixed comments.
169 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
171 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
173 2011-01-24 Paul Koning <ni1d@arrl.net>
175 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
178 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
181 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
182 (block_info): Add scanned and prev.
183 (move_or_delete_vzeroupper_2): Return if the basic block
184 has been scanned and the upper 128bit state is unchanged
186 (move_or_delete_vzeroupper_1): Return true if the exit
188 (move_or_delete_vzeroupper): Visit basic blocks using the
189 work-list based algorithm based on vt_find_locations in
192 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
194 2011-01-24 Nick Clifton <nickc@redhat.com>
196 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
197 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
198 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
199 then define __v850e1__.
200 * doc/invoke.texi: Document -mv850es.
202 2011-01-24 Richard Henderson <rth@redhat.com>
204 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
205 compound unordered comparisons.
206 * config/rx/rx.c (rx_split_fp_compare): Remove.
207 * config/rx/rx-protos.h: Update.
208 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
209 (cbranchsf4): Don't call rx_split_fp_compare.
210 (*cbranchsf4): Use rx_split_cbranch.
211 (*cmpsf): Don't accept "i" constraint.
212 (*conditional_branch): Only valid after reload.
213 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
215 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
218 * config/rs6000/altivec.md (vector constant splitters): Add
219 support for creating vector single precision constants if -mvsx is
220 used and we would create the constant using Altivec primitives.
222 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
223 Richard Sandiford <rdsandiford@googlemail.com>
225 PR rtl-optimization/47166
226 * reload1.c (emit_reload_insns): Disable the spill_reg_store
227 mechanism for PRE_MODIFY and POST_MODIFY.
228 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
231 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
233 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
235 2011-01-22 Jan Hubicka <jh@suse.cz>
238 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
240 2011-01-22 Jan Hubicka <jh@suse.cz>
242 PR tree-optimization/43884
244 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
245 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
247 2011-01-22 Anatoly Sokolov <aesok@post.ru>
249 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
250 * config/s390/s390.c (s390_register_move_cost,
251 s390_memory_move_cost): New.
252 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
254 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
257 * except.c (sjlj_assign_call_site_values): Move setting the
258 crtl->uses_eh_lsda flag to ...
259 (sjlj_mark_call_sites): ... here.
260 (sjlj_emit_function_enter): Support NULL dispatch label.
261 (sjlj_build_landing_pads): In a function with no landing pads
262 that still has must-not-throw regions, generate code to register
263 a personality function with empty LSDA.
265 2011-01-21 Richard Henderson <rth@redhat.com>
267 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
269 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
271 * compare-elim.c: New file.
272 * Makefile.in (OBJS-common): Add it.
273 (compare-elim.o): New.
274 * common.opt (fcompare-elim): New.
275 * opts.c (default_options_table): Add OPT_fcompare_elim.
276 * tree-pass.h (pass_compare_elim_after_reload): New.
277 * passes.c (init_optimization_passes): Add it.
278 * recog.h: Protect against re-inclusion.
279 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
280 * doc/invoke.texi (-fcompare-elim): Document it.
281 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
282 * doc/tm.texi: Rebuild.
284 2011-01-22 Nick Clifton <nickc@redhat.com>
286 * config/rx/rx.md (cstoresf4): Pass comparison operator to
289 2011-01-22 Nick Clifton <nickc@redhat.com>
291 * config/rx/rx.md (UNSPEC_CONST): New.
292 (deallocate_and_return): Wrap the amount popped off the stack in
293 an UNSPEC_CONST in order to stop it being rejected by
295 (pop_and_return): Add a "(return)" rtx.
296 (call): Drop the immediate operand.
297 (call_internal): Likewise.
298 (call_value): Likewise.
299 (call_value_internal): Likewise.
300 (sibcall_internal): Likewise.
301 (sibcall_value_internal): Likewise.
302 (sibcall): Likewise. Generate an explicit call using
304 (sibcall_value): Likewise.
305 (mov<>): FAIL if a constant operand is not legitimate.
306 (addsi3_unpsec): New pattern.
308 * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
310 (ok_for_max_constant): New function.
311 (gen_safe_add): New function.
312 (rx_expand_prologue): Use gen_safe_add.
313 (rx_expand_epilogue): Likewise.
314 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
317 2011-01-21 Jeff Law <law@redhat.com>
319 PR tree-optimization/47053
320 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
321 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
322 statements are deleted.
323 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
324 is nonempty, then purge dead edges and cleanup the CFG.
326 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
330 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
332 * tree-dfa.c (create_var_ann): Mark variable as used.
334 2011-01-21 Jakub Jelinek <jakub@redhat.com>
337 * except.c (convert_to_eh_region_ranges): Emit queued no-region
338 notes from other section in hot/cold partitioning even if
339 last_action is -3. Increment call_site_base.
341 PR rtl-optimization/47366
342 * fwprop.c (forward_propagate_into): Return bool. If
343 any changes are made, -fnon-call-exceptions is used and
344 REG_EH_REGION note is present, call purge_dead_edges
345 and return true if it purged anything.
346 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
347 any EH edges were purged.
349 2011-01-21 Jeff Law <law@redhat.com>
351 PR rtl-optimization/41619
352 * caller-save.c (setup_save_areas): Break out code to determine
353 which hard regs are live across calls by examining the reload chains
354 so that it is always used.
355 Eliminate code which checked REG_N_CALLS_CROSSED.
357 2011-01-21 Jakub Jelinek <jakub@redhat.com>
359 PR tree-optimization/47355
360 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
361 NOP has non-debug uses beyond PHIs in new_bb.
363 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
366 * cfgexpand.c (account_used_vars_for_block): Only account vars
367 that are annotated as used.
368 (estimated_stack_frame_size): Don't set TREE_USED.
369 * tree-dfa.c (create_var_ann): Mark variable as used.
371 2011-01-21 Richard Guenther <rguenther@suse.de>
374 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
376 2011-01-21 Richard Guenther <rguenther@suse.de>
378 PR tree-optimization/47365
379 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
380 (vn_reference_lookup_pieces): Adjust.
381 (vn_reference_lookup): Likewise.
382 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
383 (vn_reference_lookup_3): Only look through kills if in
385 (vn_reference_lookup_pieces): Adjust.
386 (vn_reference_lookup): Likewise.
387 (visit_reference_op_load): Likewise.
388 (visit_reference_op_store): Likewise.
389 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
390 (compute_avail): Likewise.
391 (eliminate): Likewise.
393 2011-01-21 Jakub Jelinek <jakub@redhat.com>
395 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
396 DECL_IGNORED_P non-reg vars if they are used.
398 PR tree-optimization/47391
399 * varpool.c (const_value_known_p): Return false if
402 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
405 * config/i386/i386.c (ix86_local_alignment): Handle
406 case for va_list_type_node is nil.
407 (ix86_canonical_va_list_type): Likewise.
409 2011-01-21 Alan Modra <amodra@gmail.com>
411 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
412 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
414 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
416 * config/arm/arm.md (define_attr type): Rename f_load
417 and f_store to f_fpa_load and f_fpa_store. Update.
418 (write_conflict): Deal with rename fallout.
419 (*push_fp_multi): Likewise.
420 * config/arm/fpa.md (f_load): Use f_fpa_load.
421 (f_store): Use f_fpa_store.
422 (*movsf_fpa): Likewise.
423 (*movdf_fpa): Likewise.
424 (*movxf_fpa): Likewise.
425 (*thumb2_movsf_fpa): Likewise.
426 (*thumb2_movdf_fpa): Likewise.
427 (*thumb2_movxf_fpa): Likewise.
428 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
429 f_loadd and f_stored.
430 (*thumb2_movdi_vfp): Likewise.
431 (*thumb2_movsf_vfp): Fix attribute to f_loads.
432 (*thumb2_movsi_vfp): Likewise.
433 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
434 Use f_loads instead of f_load.
435 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
437 2011-01-20 Anatoly Sokolov <aesok@post.ru>
439 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
440 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
441 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
442 (xtensa_mode_dependent_address_p): New function.
443 (constantpool_address_p): Make static. Change return type to bool.
444 Change argument type to const_rtx. Use CONST_INT_P predicate.
446 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
449 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
451 2011-01-20 Jakub Jelinek <jakub@redhat.com>
454 * cfgexpand.c (expand_debug_expr): Instead of generating
455 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
458 2011-01-20 Richard Guenther <rguenther@suse.de>
461 * tree-inline.c (remap_gimple_op_r): Recurse manually for
462 the pointer operand of MEM_REFs.
464 2011-01-20 Jakub Jelinek <jakub@redhat.com>
466 PR tree-optimization/46130
467 * ipa-split.c (consider_split): If return_bb contains non-virtual
468 PHIs other than for retval or if split_function would not adjust it,
471 2011-01-20 Richard Guenther <rguenther@suse.de>
473 PR tree-optimization/47167
474 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
475 Revert previous change, only avoid enumeral type changes.
477 2011-01-19 Dodji Seketeli <dodji@redhat.com>
480 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
481 (gen_scheduled_generic_parms_dies): New functions.
482 (gen_struct_or_union_type_die): Schedule template parameters DIEs
483 generation for the end of CU compilation.
484 (dwarf2out_finish): Generate template parameters DIEs here.
486 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
489 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
490 debug bind stmt on merge edges.
492 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
496 * function.c (instantiate_expr): Instantiate incoming rtl of
497 implicit arguments, and recurse on VALUE_EXPRs.
498 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
499 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
501 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
503 * c-parser.c (c_parser_for_statement): Initialize
504 collection_expression.
506 2011-01-19 Joseph Myers <joseph@codesourcery.com>
508 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
510 2011-01-19 Joseph Myers <joseph@codesourcery.com>
512 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
513 (LINK_SHLIB_SPEC): Don't use %(link_path).
514 (SUBTARGET_EXTRA_SPECS): Remove link_path.
516 2011-01-19 Joseph Myers <joseph@codesourcery.com>
518 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
519 (NO_SHARED_LIB_SUPPORT): Remove.
520 (LINK_SHLIB_SPEC): Remove one conditional definition.
522 2011-01-19 Joseph Myers <joseph@codesourcery.com>
524 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
526 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
527 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
528 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
529 %{call_shared} and conditionals on these options not being passed.
530 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
533 2011-01-19 Jakub Jelinek <jakub@redhat.com>
535 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
538 * ipa-split.c: Spelling fixes.
540 2011-01-19 Richard Henderson <rth@redhat.com>
542 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
545 * longlong.h [__mn10300__] (count_leading_zeros): New.
546 [__mn10300__] (umul_ppmm, smul_ppmm): New.
547 [__mn10300__] (add_ssaaaa, subddmmss): New.
548 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
549 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
551 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
553 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
555 2011-01-19 Richard Henderson <rth@redhat.com>
557 * config/mn10300/mn10300.md (addsi3_flags): New.
558 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
559 (subsi3_flags, subc_internal, subdi3): New.
560 (subdi3_internal, *subdi3_degenerate): New.
561 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
563 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
564 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
565 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
566 * config/mn10300/mn10300-protos.h: Update.
567 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
568 (return_ret): Likewise. Rename from return_internal_regs.
569 (return_internal): Remove.
571 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
572 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
573 (mn10300_legitimate_constant_p): Likewise.
574 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
575 (mn10300_frame_size): New.
576 (mn10300_expand_prologue): Use it.
577 (mn10300_expand_epilogue): Likewise.
578 (mn10300_initial_offset): Likewise.
579 * config/mn10300/mn10300-protos.h: Update.
580 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
581 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
582 (prologue, epilogue, return_internal): Tidy output code.
583 (mn10300_store_multiple_operation, return): Likewise.
584 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
585 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
586 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
587 (load_pic, am33_load_pic): New.
588 (mn10300_load_pic0, mn10300_load_pic1): New.
590 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
591 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
592 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
593 (cc_flags_for_mode, cc_flags_for_code): New.
594 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
595 overflow flag is not valid. Validate that the flags we need
596 for the comparison are valid.
597 (mn10300_output_cmp): Remove.
598 (mn10300_output_add): New.
599 (mn10300_select_cc_mode): Use cc_flags_for_code.
600 (mn10300_split_cbranch): New.
601 (mn10300_match_ccmode): New.
602 (mn10300_split_and_operand_count): New.
603 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
605 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
606 (addsi3): ... here. Use mn10300_output_add.
607 (*addsi3_flags): New.
608 (*am33_subsi3, *mn10300_subsi3): Merge...
609 (subsi3): ... here. Use attribute isa.
610 (*subsi3_flags): New.
611 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
613 (*am33_andsi3, *mn10300_andsi3): Merge...
615 (*andsi3_flags): New.
616 (andsi3 splitters): New.
617 (*am33_iorsi3, *mn10300_iorsi3): Merge...
619 (*iorsi3_flags): New.
620 (*am33_xorsi3, *mn10300_xorsi3): Merge...
622 (*xorsi3_flags): New.
623 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
624 (one_cmplsi2): ... here.
625 (*one_cmplsi2_flags): New.
626 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
627 instead of "dax" in constraints. Use mn10300_split_cbranch.
628 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
629 use matching constraints to eliminate a self-comparison.
630 (*integer_conditional_branch): Rename from integer_conditional_branch.
631 Use int_mode_flags to match CC_REG.
632 (*cbranchsi4_btst, *btstsi): New.
633 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
634 mn10300_split_cbranch.
635 (*am33_cmpsf): Rename from am33_cmpsf.
636 (*float_conditional_branch): Rename from float_conditional_branch.
637 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
638 (zero_extendqisi2): ... here.
639 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
640 (zero_extendhisi2): ... here.
641 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
642 (extendqisi2): ... here.
643 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
644 (extendhisi2): ... here.
645 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
647 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
649 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
651 (consecutive add peephole): Remove.
652 * config/mn10300/predicates.md (label_ref_operand): New.
653 (int_mode_flags): New.
654 (CCZN_comparison_operator): New.
656 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
657 (throughput_42_latency_43): New reservation.
658 (mulsidi3, umulsidi3): New expanders.
659 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
660 the MDR register to allocation; separately allocate the low and
661 high parts of the DImode result.
662 (umulsidi3_internal): Similarly.
663 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
664 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
665 (udivsi3, umodsi3): Remove.
666 (udivmodsi4, divmodsi4): New expanders.
667 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
668 (*divmodsi4): Simiarly.
671 * config/mn10300/constraints.md ("z"): New constraint.
672 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
673 (FIXED_REGISTERS): Don't fix MDR.
674 (CALL_USED_REGSITERS): Reformat nicely.
675 (REG_ALLOC_ORDER): Add MDR.
676 (enum regclass): Add MDR_REGS.
677 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
678 (IRA_COVER_CLASSES): Add MDR_REGS.
679 (REGNO_REG_CLASS): Handle MDR_REG.
680 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
681 (mn10300_register_move_cost): Likewise.
682 * config/mn10300/mn10300.md (MDR_REG): New.
683 (*movsi_internal): Handle moves to/from MDR_REGS.
685 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
687 (mn10300_secondary_reload): Tidy combination reload classes.
688 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
689 addresses for AM33. Allow symbolic offsets for reg+imm.
690 (mn10300_regno_in_class_p): New.
691 (mn10300_legitimize_reload_address): New.
692 * config/mn10300/mn10300.h (enum reg_class): Remove
693 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
694 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
696 (REG_CLASS_NAMES): Update to match.
697 (REG_CLASS_CONTENTS): Likewise.
698 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
699 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
700 (REGNO_IN_RANGE_P): Remove.
701 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
702 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
703 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
704 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
705 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
706 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
707 (REGNO_GENERAL_P): New.
708 (HAVE_POST_MODIFY_DISP): New.
709 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
710 (LEGITIMIZE_RELOAD_ADDRESS): New.
711 * config/mn10300/mn10300-protos.h: Update.
713 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
714 DATA_REGS for AM33 stack-pointer destination.
715 (mn10300_preferred_output_reload_class): Likewise.
716 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
717 into a form appropriate for ...
718 (TARGET_SECONDARY_RELOAD): New.
719 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
720 * config/mn10300/mn10300-protos.h: Update.
721 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
722 reload_insi; use the "A" constraint for the scratch; handle AM33
723 moves of sp to non-address registers.
725 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
726 (*movqi_internal): ... here.
727 (*am33_movhi, *mn10300_movhi): Merge into...
728 (*movhi_internal): ... here.
729 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
730 as the source/destination of moves from/to SP.
731 (movsf): Only allow for AM33-2.
732 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
733 any integer constant constraint. Only allow for AM33-2. Tidy
734 all of the alternative outputs.
735 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
736 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
738 (udivsi3, umodsi3): New patterns for MN103 only.
740 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
742 * doc/tm.texi.in: Spell out that a lack of register class unions
744 * doc/tm.texi: Regenerate.
746 2011-01-19 Jakub Jelinek <jakub@redhat.com>
748 PR rtl-optimization/47337
749 * dce.c (check_argument_store): New function.
750 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
752 PR tree-optimization/47290
753 * tree-eh.c (infinite_empty_loop_p): New function.
754 (cleanup_empty_eh): Use it.
756 2011-01-18 Steve Ellcey <sje@cup.hp.com>
759 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
760 (a64_expand_widen_sum): Ditto.
761 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
762 (vec_extract_evenodd_help): Ditto.
763 (vec_extract_evenv4hi): Ditto.
764 (vec_extract_oddv4hi): Ditto.
765 (vec_extract_evenv2si): Ditto.
766 (vec_extract_oddv2si): Ditto.
767 (vec_extract_evenv2sf): Ditto.
768 (vec_extract_oddv2sf): Ditto.
769 (vec_pack_trunc_v4hi: Ditto.
770 (vec_pack_trunc_v2si): Ditto.
771 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
772 (vec_interleave_highv8qi): Ditto.
774 (vec_extract_oddv8qi): Ditto.
775 (vec_interleave_lowv4hi): Ditto.
776 (vec_interleave_highv4hi): Ditto.
777 (vec_interleave_lowv2si): Ditto.
778 (vec_interleave_highv2si): Ditto.
780 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
782 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
783 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
784 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
785 (pa_c_mode_for_suffix): New.
786 (TARGET_EXPAND_BUILTIN): Define.
787 (TARGET_C_MODE_FOR_SUFFIX): Define.
788 (pa_builtins): Define.
789 (pa_init_builtins): Register __float128 type and init new support
791 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
792 * config/pa/quadlib.c (_U_Qfcopysign): New.
794 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
797 * explow.c (allocate_dynamic_stack_space): Do not assume more than
798 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
801 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
803 PR tree-optimization/47179
804 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
805 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
807 2011-01-18 Richard Guenther <rguenther@suse.de>
809 PR rtl-optimization/47216
810 * emit-rtl.c: Include tree-flow.h.
811 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
812 of replicating it with different semantics.
813 * Makefile.in (emit-rtl.o): Adjust.
815 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
817 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
819 (cortex_a9_dp): Handle neon types correctly.
821 2011-01-18 Jakub Jelinek <jakub@redhat.com>
823 PR rtl-optimization/47299
824 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
825 subtarget. Use normal multiplication if both operands are
827 * expmed.c (expand_widening_mult): Don't try to optimize constant
828 multiplication if op0 has VOIDmode. Convert op1 constant to mode
831 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
833 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
834 spacing after 'e.g.', typos, comma, hyphenation.
836 2011-01-17 Richard Henderson <rth@redhat.com>
838 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
839 (rx_restricted_mem_operand): New.
840 (rx_shift_operand): Use register_operand.
841 (rx_source_operand, rx_compare_operand): Likewise.
842 * config/rx/rx.md (addsi3_flags): New expander.
843 (adddi3): Rewrite as expander.
844 (adc_internal, *adc_flags, adddi3_internal): New patterns.
845 (subsi3_flags): New expander.
846 (subdi3): Rewrite as expander.
847 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
849 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
850 (rx_init_builtins): Remove sat builtin.
851 (rx_expand_builtin): Likewise.
852 * config/rx/rx.md (ssaddsi3): New.
853 (*sat): Rename from sat. Represent the CC_REG input.
855 * config/rx/predicates.md (rshift_operator): New.
856 * config/rx/rx.c (rx_expand_insv): Remove.
857 * config/rx/rx-protos.h: Update.
858 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
859 operand to the canonical position.
860 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
861 (*bitclr, *bitclr_in_memory): Similarly.
862 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
863 (insv): Retain the zero_extract in the expansion.
865 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
866 (bswaphi2, bitinvert, revw): Likewise.
868 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
869 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
870 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
871 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
872 (bitset, bitset_in_memory): Likewise.
873 (bitinvert, bitinvert_in_memory): Likewise.
874 (bitclr, bitclr_in_memory): Likewise.
875 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
876 (rx_strend, rx_cmpstrn): Likewise.
877 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
878 (bitop peep2 patterns): Remove.
880 * config/rx/rx.c (rx_match_ccmode): New.
881 * config/rx/rx-protos.h: Update.
882 * config/rx/rx.md (abssi2): Clobber, don't set flags.
883 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
884 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
885 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
886 (fix_truncsfsi2, floatsisf2): Likewise.
887 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
888 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
889 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
890 (*subsi3_flags, *xorsi3_flags): New.
892 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
894 * config/rx/rx.c (rx_print_operand): Remove workaround for
895 unsplit comparison operations.
897 * config/rx/rx.md (movsicc): Split after reload.
898 (*movsicc): Merge *movsieq and *movsine via match_operator.
899 (*stcc): New pattern.
901 * config/rx/rx.c (rx_float_compare_mode): Remove.
902 * config/rx/rx.h (rx_float_compare_mode): Remove.
903 * config/rx/rx.md (cstoresi4): Split after reload.
904 (*sccc): New pattern.
906 * config/rx/predicates.md (label_ref_operand): New.
907 (rx_z_comparison_operator): New.
908 (rx_zs_comparison_operator): New.
909 (rx_fp_comparison_operator): New.
910 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
911 Validate that the flags are set properly for the comparison.
912 (rx_gen_cond_branch_template): Remove.
913 (rx_cc_modes_compatible): Remove.
914 (mode_from_flags): New.
915 (flags_from_code): Rename from flags_needed_for_conditional.
916 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
917 (rx_select_cc_mode): Likewise.
918 (rx_split_fp_compare): New.
919 (rx_split_cbranch): New.
920 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
921 (*cbranchsi4): Use match_operator and rx_split_cbranch.
922 (*cbranchsf4): Similarly.
923 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
924 match_operator and rx_split_cbranch.
925 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
926 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
927 (*cmpsi): Rename from cmpsi.
928 (*tstsi): Rename from tstsi.
929 (*cmpsf): Rename from cmpsf; use CC_Fmode.
930 (*conditional_branch): Rename from conditional_branch.
931 (*reveresed_conditional_branch): Remove.
932 (b<code>): Remove expander.
933 * config/rx/rx-protos.h: Update.
935 * config/rx/rx.c (rx_compare_redundant): Remove.
936 * config/rx/rx.md (cmpsi): Don't use it.
937 * config/rx/rx-protos.h: Update.
939 * config/rx/rx-modes.def (CC_F): New mode.
940 * config/rx/rx.c (rx_select_cc_mode): New.
941 * config/rx/rx.h (SELECT_CC_MODE): Use it.
942 * config/rx/rx-protos.h: Update.
944 2011-01-17 Richard Henderson <rth@redhat.com>
946 * except.c (dump_eh_tree): Fix stray ; after for statement.
948 2011-01-17 Richard Guenther <rguenther@suse.de>
950 PR tree-optimization/47313
951 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
952 handling before copying the body. Properly deal with
953 by-reference result in SSA form.
955 2011-01-17 Ian Lance Taylor <iant@google.com>
958 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
959 (struct_value_alias_set): Don't define.
960 (sparc_option_override): Don't set sparc_sr_alias_set and
961 struct_value_alias_set.
962 (save_or_restore_regs): Use gen_frame_mem rather than calling
964 (sparc_struct_value_rtx): Likewise.
966 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
969 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
971 (_mm_maskstore_pd): Likewise.
972 (_mm_maskload_ps): Likewise.
973 (_mm_maskstore_ps): Likewise.
974 (_mm256_maskload_pd): Change mask to __m256i.
975 (_mm256_maskstore_pd): Likewise.
976 (_mm256_maskload_ps): Likewise.
977 (_mm256_maskstore_ps): Likewise.
979 * config/i386/i386-builtin-types.def: Updated.
980 (ix86_expand_special_args_builtin): Likewise.
982 * config/i386/i386.c (bdesc_special_args): Update
983 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
984 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
985 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
986 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
988 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
989 Use <avxpermvecmode> on mask register.
990 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
992 2011-01-17 Olivier Hainque <hainque@adacore.com>
993 Michael Haubenwallner <michael.haubenwallner@salomon.at>
994 Eric Botcazou <ebotcazou@adacore.com>
997 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
998 if <= USHRT_MAX in 32-bit mode.
1000 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1002 * doc/install.texi (Configuration, Specific): Wrap long
1003 lines in examples. Allow line wrapping in long options
1004 and URLs where beneficial for PDF output.
1006 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
1008 * config/mips/mips.c (mips_classify_symbol): Don't return
1009 SYMBOL_PC_RELATIVE for nonlocal labels.
1011 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
1013 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
1015 2011-01-15 Jan Hubicka <jh@suse.cz>
1017 PR tree-optimization/47276
1018 * ipa.c (function_and_variable_visibility): Do not try to mark alias
1019 declarations as needed.
1021 2011-01-15 Martin Jambor <mjambor@suse.cz>
1023 * common.opt (fdevirtualize): New flag.
1024 * doc/invoke.texi (Option Summary): Document it.
1025 * opts.c (default_options_table): Add devirtualize flag.
1026 * ipa-prop.c (detect_type_change): Return immediately if
1027 devirtualize flag is not set.
1028 (detect_type_change_ssa): Likewise.
1029 (compute_known_type_jump_func): Likewise.
1030 (ipa_analyze_virtual_call_uses): Likewise.
1032 2011-01-14 Martin Jambor <mjambor@suse.cz>
1034 PR tree-optimization/45934
1035 PR tree-optimization/46302
1036 * ipa-prop.c (type_change_info): New type.
1037 (stmt_may_be_vtbl_ptr_store): New function.
1038 (check_stmt_for_type_change): Likewise.
1039 (detect_type_change): Likewise.
1040 (detect_type_change_ssa): Likewise.
1041 (compute_complex_assign_jump_func): Check for dynamic type change.
1042 (compute_complex_ancestor_jump_func): Likewise.
1043 (compute_known_type_jump_func): Likewise.
1044 (compute_scalar_jump_functions): Likewise.
1045 (ipa_analyze_virtual_call_uses): Likewise.
1046 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
1048 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1050 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
1051 * config/i386/i386.opt (msse5): New Alias.
1053 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1055 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
1056 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1057 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1058 * config/sparc/sparc.h (CC1_SPEC): Likewise.
1060 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1062 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
1064 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1065 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1066 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
1067 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
1069 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
1071 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1073 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
1076 2011-01-14 Mike Stump <mikestump@comcast.net>
1078 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
1079 * config/fr30/fr30.md: Likweise
1080 (movsi_push): Likewise.
1081 (movsi_pop): Likewise.
1082 (enter_func): Likewise.
1083 * config/moxie/moxie.md (movsi_push): Likewise.
1084 (movsi_pop): Likewise.
1086 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1088 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
1089 %{no_archive} %{exact_version}.
1090 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
1091 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
1092 %{no_archive} %{exact_version}.
1093 * config/mips/openbsd.h (LINK_SPEC): Likewise.
1094 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
1095 * config/mips/vxworks.h: Likewise.
1097 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1099 * config/microblaze/microblaze.h (ASM_SPEC): Remove
1102 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1104 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
1105 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
1107 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1109 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
1112 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1114 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
1116 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
1117 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
1119 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
1120 Don't handle -shlib.
1122 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1124 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
1125 (CC1_SPEC): Don't handle -profile.
1127 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1129 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
1130 * config/mips/mips.h (CC1_SPEC): Likewise.
1132 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1134 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
1135 * config/mips/mips.h (CC1_SPEC): Likewise.
1137 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1139 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
1140 * config/m32r/linux.h (LINK_SPEC): Likewise.
1141 * config/mips/linux.h (LINK_SPEC): Likewise.
1142 * config/mips/linux64.h (LINK_SPEC): Likewise.
1143 * config/sparc/linux.h (LINK_SPEC): Likewise.
1144 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1145 LINK_SPEC): Likewise.
1146 * config/xtensa/linux.h (LINK_SPEC): Likewise.
1148 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1150 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
1152 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1154 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1156 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
1157 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
1159 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1161 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
1163 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1165 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
1166 supports -Bstatic/-Bdynamic.
1167 * configure: Regenerate.
1169 2011-01-14 Jan Hubicka <jh@suse.cz>
1170 Jack Howarth <howarth@bromo.med.uc.edu>
1173 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
1174 when checking debug_info_level. Test write_symbols instead of
1175 debug_hooks->var_location when setting flag_var_tracking_uninit.
1177 2011-01-14 Richard Guenther <rguenther@suse.de>
1179 PR tree-optimization/47179
1180 * target.def (ref_may_alias_errno): New target hook.
1181 * targhooks.h (default_ref_may_alias_errno): Declare.
1182 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
1183 (default_ref_may_alias_errno): New function.
1184 * target.h (struct ao_ref_s): Declare.
1185 * tree-ssa-alias.c: Include target.h.
1186 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
1187 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
1188 (targhooks.o): Likewise.
1189 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
1190 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
1192 2011-01-14 Richard Guenther <rguenther@suse.de>
1194 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
1196 2011-01-14 Richard Guenther <rguenther@suse.de>
1198 PR tree-optimization/47280
1199 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
1201 (tree_ssa_forward_propagate_single_use_vars): Deal with
1202 CFG changes from associate_plusminus.
1204 2011-01-14 Richard Guenther <rguenther@suse.de>
1208 2011-01-11 Richard Guenther <rguenther@suse.de>
1210 PR tree-optimization/46076
1211 * tree-ssa.c (useless_type_conversion_p): Conversions from
1212 unprototyped to empty argument list function types are useless.
1214 2011-01-14 Richard Guenther <rguenther@suse.de>
1216 PR tree-optimization/47286
1217 * tree-ssa-structalias.c (new_var_info): Register variables are global.
1219 2011-01-14 Martin Jambor <mjambor@suse.cz>
1222 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
1224 2011-01-13 Anatoly Sokolov <aesok@post.ru>
1226 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
1227 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1228 * config/xtensa/xtensa.c (xtensa_libcall_value,
1229 xtensa_function_value_regno_p): New functions.
1230 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1232 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
1235 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
1237 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
1238 New function prototype.
1239 * config/i386/winnt.c (i386_pe_assemble_visibility):
1240 Warn only if attribute was specified by user.
1242 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1245 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
1247 (floatunsdidf2_fcfidu): Ditto.
1249 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1251 * config/s390/s390.c (print_operand_address): Replace 'error' with
1252 'output_operand_lossage'.
1253 (print_operand): Likewise.
1255 2011-01-13 Jeff Law <law@redhat.com>
1257 PR rtl-optimization/39077
1258 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
1259 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
1260 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
1261 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
1262 * gcse.c (prune_insertions_deletions): New function.
1263 (compute_pre_data): Use it.
1265 2011-01-13 Dodji Seketeli <dodji@redhat.com>
1268 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
1270 (prune_unused_types_mark): Use it.
1272 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
1274 PR rtl-optimization/45352
1275 * sel-sched.c: Update copyright years.
1276 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1277 in the advancing loop when we have issued issue_rate insns.
1279 2011-01-12 Richard Henderson <rth@redhat.com>
1281 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
1282 (TARGET_MD_ASM_CLOBBERS): New.
1284 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
1285 (TARGET_DELEGITIMIZE_ADDRESS): New.
1287 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
1288 (clzsi2, *bsch): New patterns.
1290 * config/mn10300/mn10300.md (INT): New mode iterator.
1291 (*mov<INT>_clr): New pattern, and peep2 to generate it.
1293 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
1294 flag_split_wide_types.
1296 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
1297 (mn10300_trampoline_init): Rewrite without a template, an immediate
1298 load and a direct branch.
1299 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
1301 2011-01-12 Anatoly Sokolov <aesok@post.ru>
1303 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1304 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
1305 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
1306 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1308 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
1311 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
1314 2011-01-12 Jan Hubicka <jh@suse.cz>
1317 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
1318 (PLUGIN_COND_CLOSE): New macro.
1319 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
1321 2011-01-12 Richard Guenther <rguenther@suse.de>
1324 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
1325 register variables in a MEM_REF.
1327 2011-01-12 Joseph Myers <joseph@codesourcery.com>
1329 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
1330 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
1331 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
1332 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1333 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1334 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
1335 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
1336 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
1337 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
1338 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
1339 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
1340 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
1341 * config/gnu-user.h: New. Copied from linux.h.
1342 (LINUX_TARGET_STARTFILE_SPEC): Rename to
1343 GNU_USER_TARGET_STARTFILE_SPEC.
1344 (LINUX_TARGET_ENDFILE_SPEC): Rename to
1345 GNU_USER_TARGET_ENDFILE_SPEC.
1346 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
1347 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
1348 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
1349 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
1350 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
1351 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
1352 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
1353 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
1354 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
1355 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
1356 * config/arm/linux-eabi.h (CC1_SPEC): Use
1357 GNU_USER_TARGET_CC1_SPEC.
1358 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
1359 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
1360 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
1361 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
1362 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
1363 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
1364 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
1365 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
1367 2011-01-12 Richard Guenther <rguenther@suse.de>
1370 * doc/invoke.texi (ffast-math): Document it is turned on
1373 2011-01-12 Jan Hubicka <jh@suse.cz>
1375 PR tree-optimization/47233
1376 * opts.c (common_handle_option): Disable ipa-reference with profile
1379 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1381 * c-parser.c (c_parser_objc_at_property_declaration): Improved
1384 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1386 * c-parser.c (c_lex_one_token): Updated and reindented some
1387 comments. No changes in code.
1389 2011-01-11 Ian Lance Taylor <iant@google.com>
1391 * godump.c (go_output_var): Don't output the variable if there is
1392 already a type with the same name.
1394 2011-01-11 Ian Lance Taylor <iant@google.com>
1396 * godump.c (go_format_type): Don't generate float80.
1398 2011-01-11 Richard Henderson <rth@redhat.com>
1400 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
1401 declaration. Rewrite for both speed and size.
1402 (mn10300_address_cost_1): Remove.
1403 (mn10300_register_move_cost): New.
1404 (mn10300_memory_move_cost): New.
1405 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
1406 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
1407 extensions, shifts, BSWAP, CLZ.
1408 (mn10300_wide_const_load_uses_clr): Remove.
1409 (TARGET_REGISTER_MOVE_COST): New.
1410 (TARGET_MEMORY_MOVE_COST): New.
1411 * config/mn10300/mn10300-protos.h: Update.
1412 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
1414 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
1415 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
1416 * config/mn10300/mn10300-protos.h: Update.
1417 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
1418 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
1419 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
1420 (*test_int_bitfield, *test_byte_bitfield): Remove.
1421 (*bit_test, *subreg_bit_test): Remove.
1422 * config/mn10300/predicates.md (const_8bit_operand): Remove.
1424 * config/mn10300/constraints.md ("c"): Rename from "A".
1425 ("A", "D"): New constraint letters.
1426 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
1427 (fmssf4, fnmasf4, fnmssf4): Likewise.
1429 * config/mn10300/mn10300.md (isa): New attribute.
1430 (enabled): New attribute.
1432 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
1433 (abssf2, negsf2): Define only for hardware fp.
1434 (sqrtsf2): Reformat.
1435 (addsf3, subsf3, mulsf3): Merge expander and insn.
1437 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
1438 (DEBUGGER_AUTO_OFFSET): Remove.
1439 (DEBUGGER_ARG_OFFSET): Remove.
1441 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
1442 Emit register stores with the same offsets as the hardware.
1443 (mn10300_store_multiple_operation): Don't check that the register
1444 save offsets are monotonic.
1445 * config/mn10300/mn10300-protos.h: Update.
1447 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
1449 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
1450 in terms of the value on the stack, not the MDR register.
1452 2011-01-11 Jan Hubicka <jh@suse.cz>
1456 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
1457 (symbol_alias_set_destroy, symbol_alias_set_contains,
1458 propagate_aliases_backward): Declare.
1459 * lto-streamer-out.c (struct sets): New sturcture.
1460 (trivally_defined_alias): New function.
1461 (output_alias_pair_p): Rewrite.
1462 (output_unreferenced_globals): Fix output of alias pairs.
1463 (produce_symtab): Likewise.
1464 * ipa.c (function_and_variable_visibility): Set weak alias destination
1466 * varasm.c (symbol_alias_set_t): Remove.
1467 (symbol_alias_set_destroy): Export.
1468 (propagate_aliases_forward, propagate_aliases_backward): New functions
1470 (compute_visible_aliases): ... this one; remove.
1471 (trivially_visible_alias): New
1472 (trivially_defined_alias): New.
1473 (remove_unreachable_alias_pairs): Rewrite.
1474 (finish_aliases_1): Reorganize code checking if alias is defined.
1475 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
1478 2011-01-11 Richard Guenther <rguenther@suse.de>
1480 PR tree-optimization/46076
1481 * tree-ssa.c (useless_type_conversion_p): Conversions from
1482 unprototyped to empty argument list function types are useless.
1484 2011-01-11 Richard Guenther <rguenther@suse.de>
1487 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
1488 volatile MEMs as MEM_READONLY_P.
1490 2011-01-11 Richard Guenther <rguenther@suse.de>
1492 PR tree-optimization/47239
1493 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
1495 2011-01-11 Jeff Law <law@redhat.com>
1497 PR tree-optimization/47086
1498 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
1499 IVs from statements that might throw.
1501 2011-01-10 Jan Hubicka <jh@suse.cz>
1504 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
1506 2011-01-10 Jan Hubicka <jh@suse.cz>
1509 * profile.c (read_profile_edge_counts): Ignore profile inconistency
1510 when correcting profile.
1512 2011-01-10 Jan Hubicka <jh@suse.cz>
1515 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
1517 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
1518 Restore DECL_FINI_PRIORITY.
1520 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1522 * doc/gimple.texi: Fix quoting of multi-word return values in
1523 @deftypefn statements. Ensure presence of return value. Wrap
1524 overlong @deftypefn lines.
1525 (is_gimple_operand, is_gimple_min_invariant_address): Remove
1526 descriptions of removed functions.
1527 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
1528 of multi-word return value in @deftypefn statement.
1530 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1532 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
1533 (Conditional Expressions, Logical Operators)
1534 (Statement and operand traversals): Do not indent smallexample
1535 code. Fix duplicate function argument in example.
1537 2011-01-10 Jeff Law <law@redhat.com>
1539 PR tree-optimization/47141
1540 * ipa-split.c (split_function): Handle case where we are
1541 returning a value and the return block has a virtual operand phi.
1543 2011-01-10 Jan Hubicka <jh@suse.cz>
1545 PR tree-optimization/47234
1546 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
1547 (pass_feedback_split_functions): Declare.
1548 * passes.c (init_optimization_passes): Add ipa-split as subpass of
1550 * ipa-split.c (gate_split_functions): Update comments; disable
1551 split-functions for profile_arc_flag and branch_probabilities.
1552 (gate_feedback_split_functions): New function.
1553 (execute_feedback_split_functions): New function.
1554 (pass_feedback_split_functions): New global var.
1556 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
1559 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
1560 calling gimple_call_set_cannot_inline.
1562 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
1564 * config/darwin-sections.def: Remove unused section.
1566 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
1569 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
1571 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
1574 * c-parser.c (c_parser_declaration_or_fndef): Improved
1577 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
1579 * config/i386/winnt.c (i386_pe_start_function): Make sure
1580 to switch back to function's section.
1582 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
1586 * plugin.c: Move include of dlfcn.h from here...
1587 * system.h: ... to here.
1589 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1591 * doc/cpp.texi (C++ Named Operators): Fix markup for header
1593 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
1594 two extra empty pages in PDF output.
1596 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
1599 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
1600 for error recovery purposes behave as if it was not specified so
1601 that the default type is usd.
1603 2011-01-07 Jan Hubicka <jh@suse.cz>
1605 PR tree-optmization/46469
1606 * ipa.c (function_and_variable_visibility): Clear needed flags on
1607 nodes with external decls; handle weakrefs merging correctly.
1609 2011-01-07 Joseph Myers <joseph@codesourcery.com>
1611 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
1614 2011-01-07 Jan Hubicka <jh@suse.cz>
1616 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
1617 and no longer claim that gold is required for linker plugin.
1618 * configure: Regenerate.
1619 * gcc.c (PLUGIN_COND): New macro.
1620 (LINK_COMMAND_SPEC): Use it.
1621 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
1622 * config.in (HAVE_LTO_PLUGIN): New.
1623 * configure.ac (--with-lto-plugin): New parameter; autodetect
1626 2011-01-07 Jan Hubicka <jh@suse.cz>
1628 PR tree-optimization/46367
1629 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
1630 when we can update original.
1631 (cgraph_mark_inline_edge): Sanity check.
1632 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
1634 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1636 * config/spu/spu.h (ASM_COMMENT_START): Define.
1638 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
1642 (SWITCH_KEEP_FOR_GCC): Likewise.
1643 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
1644 (do_spec_1): Handle "%>".
1646 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
1648 2011-01-07 Jakub Jelinek <jakub@redhat.com>
1651 * config/i386/i386.c (ix86_delegitimize_address): If
1652 simplify_gen_subreg fails, return orig_x.
1655 * value-prof.c (gimple_stringop_fixed_value): Handle
1656 lhs of the call properly.
1658 2011-01-07 Jan Hubicka <jh@suse.cz>
1661 * lto-opt.c (lto_reissue_options): Set flag_shlib.
1663 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1665 * target.def (function_switched_text_sections): New hook.
1666 * doc/tm.texi: Regenerated.
1667 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1668 * final.c (default_function_switched_text_sections): New.
1669 (final_scan_insn): Call function_switched_text_sections when a
1670 mid-function section change occurs.
1671 * output.h (default_function_switched_text_sections): Declare.
1672 * config/darwin-protos.h (darwin_function_switched_text_sections):
1674 * config/darwin.c (darwin_function_switched_text_sections): New.
1675 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1677 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1679 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
1680 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
1681 the secondary code fragment when outputting for DWARF == 2.
1683 2011-01-07 Anatoly Sokolov <aesok@post.ru>
1685 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1686 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
1688 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
1689 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1691 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
1694 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
1695 when it is not empty.
1697 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
1700 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1701 (case ${target}): Add btver1.
1702 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1703 -march=native recognize btver1 processors.
1704 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1705 btver1 def_and_undef
1706 * config/i386/i386.c (struct processor_costs btver1_cost): New
1708 (m_BTVER1): New definition.
1709 (m_AMD_MULTIPLE): Includes m_BTVER1.
1710 (initial_ix86_tune_features): Add btver1 tune.
1711 (processor_target_table): Add btver1 entry.
1712 (static const char *const cpu_names): Add btver1 entry.
1713 (software_prefetching_beneficial_p): Add btver1.
1714 (ix86_option_override_internal): Add btver1 instruction sets.
1715 (ix86_issue_rate): Add btver1.
1716 (ix86_adjust_cost): Add btver1.
1717 * config/i386/i386.h (TARGET_BTVER1): New definition.
1718 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
1719 (enum processor_type): Add PROCESSOR_BTVER1.
1720 * config/i386/i386.md (define_attr "cpu"): Add btver1.
1722 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1725 * config/i386/i386.c (legitimize_tls_address)
1726 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
1727 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
1728 (tls_initial_exec_64_sun): New pattern.
1730 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
1732 * doc/invoke.texi (Overall Options): Improve wording and markup
1733 of the description of -wrapper.
1735 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1737 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
1738 rdynamic, threads): New Driver options.
1740 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1743 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
1744 if coming from .tdata.
1745 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1747 2011-01-06 Jan Hubicka <jh@suse.cz>
1750 * collect2.c (main): Do not enable LTOmode when plugin is active.
1752 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1755 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
1756 --version output if supported.
1757 * configure: Regenerate.
1759 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1761 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
1764 2011-01-06 Jakub Jelinek <jakub@redhat.com>
1767 * c-convert.c (convert): When converting a complex expression
1768 other than COMPLEX_EXPR to a different complex type, ensure
1769 c_save_expr is called instead of save_expr, unless in_late_binary_op.
1770 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
1771 when converting COMPLEX_TYPE.
1773 2011-01-06 Ira Rosen <irar@il.ibm.com>
1775 PR tree-optimization/47139
1776 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
1777 only the last reduction value is used outside the loop. Update
1780 2011-01-05 Joseph Myers <joseph@codesourcery.com>
1782 * config/rtems.opt: New.
1783 * config.gcc (*-*-rtems*): Use rtems.opt.
1785 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
1787 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
1788 processors do not support 3DNow instructions.
1790 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1792 * config/spu/spu.c (spu_option_override): Set parameter
1793 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
1795 2011-01-05 Jan Hubicka <jh@suse.cz>
1797 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
1798 at the command line.
1800 2011-01-05 Martin Jambor <mjambor@suse.cz>
1803 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
1804 deltas on streamed outgoing edges.
1805 (output_node_opt_summary): Output info for outgoing edges only when
1806 the node is in new parameter set.
1807 (output_cgraph_opt_summary): New parameter set, passed to the two
1808 aforementioned functions. Update its forward declaration and its
1811 2011-01-05 Tom Tromey <tromey@redhat.com>
1813 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
1814 operator to c_finish_omp_atomic.
1815 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
1816 (build_unary_op): Update.
1817 (build_modify_expr): Update.
1818 (build_asm_expr): Update.
1820 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1822 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
1823 newly inserted insns.
1825 (spu_emit_branch_hint): Likewise.
1826 (insert_hbrp_for_ilb_runout): Likewise.
1827 (spu_machine_dependent_reorg): Call df_finish_pass after
1828 schedule_insns returns.
1830 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1832 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
1834 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
1836 PR tree-optimization/47005
1837 * tree-sra.c (struct access): Add 'non_addressable' bit.
1838 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
1839 (decide_one_param_reduction): Return 0 if the parameter is passed by
1840 reference and one of the accesses in the group is non_addressable.
1842 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1844 PR tree-optimization/47056
1845 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
1846 (mark_load): Likewise. Handle FUNCTION_DECL specially.
1847 (mark_store): Likewise. Pass STMT to ipa_record_reference.
1849 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1851 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
1852 initializer. Skip view conversions from aggregate types.
1854 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
1857 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
1859 2011-01-04 Philipp Thomas <pth@suse.de>
1861 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
1864 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1866 * function.c (thread_prologue_and_epilogue_insns): Do not crash
1867 on empty epilogue sequences.
1869 2011-01-04 Joseph Myers <joseph@codesourcery.com>
1871 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
1872 non-static): New Driver options.
1874 2011-01-04 Jie Zhang <jie@codesourcery.com>
1877 * gcc.c (default_compilers[]): Set combinable field to 0
1878 for all assembly languages.
1880 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
1882 * config/mips/loongson3a.md: New file.
1883 * config/mips/mips.md: Include loongson3a.md.
1884 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
1887 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
1890 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
1891 instead of convert_memory_address_addr_space on the base expression.
1893 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1895 * config/spu/spu.c (spu_option_override): Update error text
1896 for bad -march= / -mtune= values.
1898 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1900 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
1901 if branch-hint optimization will be performed.
1903 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1905 PR tree-optimization/47148
1906 * ipa-split.c (split_function): Convert arguments to
1907 DECL_ARG_TYPE if possible.
1909 PR tree-optimization/47155
1910 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
1913 PR rtl-optimization/47157
1914 * combine.c (try_combine): If undobuf.other_insn becomes
1915 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
1916 and set *new_direct_jump_p too.
1918 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
1920 PR tree-optimization/47021
1921 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
1923 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1925 * gcc.c (process_command): Update copyright notice dates.
1926 * gcov.c (print_version): Likewise.
1927 * gcov-dump.c (print_version): Likewise.
1928 * mips-tfile.c (main): Likewise.
1929 * mips-tdump.c (main): Likewise.
1931 2011-01-03 Martin Jambor <mjambor@suse.cz>
1933 PR tree-optimization/46801
1934 * tree-sra.c (type_internals_preclude_sra_p): Check whether
1935 aggregate fields start at byte boundary instead of the bit-field flag.
1937 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
1940 * gcc.c (main): Revert revision 168407.
1942 2011-01-03 Martin Jambor <mjambor@suse.cz>
1944 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
1946 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1948 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
1949 vector optab to expand vector/scalar shift, update gimple to vector.
1951 2011-01-03 Martin Jambor <mjambor@suse.cz>
1953 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
1956 2011-01-03 Martin Jambor <mjambor@suse.cz>
1958 PR tree-optimization/46984
1959 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
1961 (cgraph_create_indirect_edge): Fixed line length.
1962 (cgraph_indirect_call_info): Declare.
1963 (cgraph_make_edge_direct) Update declaration.
1964 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
1965 (cgraph_create_indirect_edge): Use it.
1966 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
1968 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
1969 the new thunk_delta representation.
1970 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
1972 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
1973 (ipa_read_indirect_edge_info): Likewise.
1974 * lto-cgraph.c (output_edge_opt_summary): New function.
1975 (output_node_opt_summary): Call it on all outgoing edges.
1976 (input_edge_opt_summary): New function.
1977 (input_node_opt_summary): Call it on all outgoing edges.
1979 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
1982 * gcc.c (main): Don't check have_o when settting combine_inputs.
1984 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
1986 * regrename.c: Add general comment describing the pass.
1987 (struct du_head): Remove 'length' field.
1988 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
1989 (regrename_optimize): Do not sort chains. Rework comments, add others.
1990 Force renaming to the preferred class (if any) in the first pass and do
1991 not consider registers that belong to it in the second pass.
1992 (create_new_chain): Do not set 'length' field.
1993 (scan_rtx_reg): Likewise.
1995 2011-01-02 Jakub Jelinek <jakub@redhat.com>
1997 PR tree-optimization/47140
1998 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
1999 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
2002 PR rtl-optimization/47028
2003 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
2004 parm_birth_insn instead of at the beginning of first bb.
2006 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
2008 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
2009 Remove the word "see" before "@pxref".
2010 * doc/rtl.texi: Remove the word "see" before "@pxref".
2012 2011-01-01 Jan Hubicka <jh@suse.cz>
2014 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
2017 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
2020 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
2023 Copyright (C) 2011 Free Software Foundation, Inc.
2025 Copying and distribution of this file, with or without modification,
2026 are permitted in any medium without royalty provided the copyright
2027 notice and this notice are preserved.