1 2011-01-25 Nick Clifton <nickc@redhat.com>
3 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
4 * config/rx/rx.c (rx_function_value): Likewise.
5 (rx_promote_function_mode): Likewise.
6 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
7 in order to make it legitimate.
8 * config/rx/rx.md (adddi3_internal): If the second operand is a
9 MEM make sure that the first operand is the same as the result
11 (addsi3_unspec): Delete.
12 (subdi3): Do not accept immediate operands.
13 (subdi3_internal): Likewise.
15 2011-01-25 Jeff Law <law@redhat.com>
17 PR rtl-optimization/37273
18 * ira-costs.c (scan_one_insn): Detect constants living in memory and
19 handle them like argument loads from stack slots. Do not double
20 count memory for memory constants and argument loads from stack slots.
22 2011-01-25 Jakub Jelinek <jakub@redhat.com>
24 PR tree-optimization/47427
25 PR tree-optimization/47428
26 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
27 coalesce if the new root var would be TREE_READONLY.
29 2011-01-25 Richard Guenther <rguenther@suse.de>
32 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
33 correct type for TBAA.
35 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
37 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
38 (close_phi_written_to_memory): Call for_each_index with
39 dr_indices_valid_in_loop.
41 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
43 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
44 when it is initialized.
46 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
48 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
49 call to graphite_find_data_references_in_stmt.
50 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
51 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
52 call to graphite_find_data_references_in_stmt.
53 (analyze_drs_in_stmts): Same.
54 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
55 in which the scalar analysis of indices is performed.
56 (create_data_ref): Same. Update call to dr_analyze_indices.
57 (find_data_references_in_stmt): Update call to create_data_ref.
58 (graphite_find_data_references_in_stmt): Same.
59 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
61 (create_data_ref): Same.
62 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
63 call to create_data_ref.
65 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
67 * graphite-sese-to-poly.c (build_poly_scop): Move
68 rewrite_commutative_reductions_out_of_ssa before
71 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
73 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
74 VAR_DECL, PARM_DECL, and RESULT_DECL.
76 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
78 * graphite-dependences.c (reduction_dr_1): Allow several reductions
80 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
81 that have already been marked as PBB_IS_REDUCTION.
83 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
85 * graphite-scop-detection.c (same_close_phi_node): New.
86 (remove_duplicate_close_phi): New.
87 (make_close_phi_nodes_unique): New.
88 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
90 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
92 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
93 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
94 of both data references to be the same.
96 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
98 * graphite-dependences.c (build_lexicographical_constraint): Remove the
100 (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
101 (dependence_polyhedron): Same.
102 (graphite_legal_transform_dr): Same.
103 (graphite_carried_dependence_level_k): Same.
104 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
105 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
107 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
109 * graphite-sese-to-poly.c
110 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
111 (close_phi_written_to_memory): New.
112 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
115 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
117 * doc/install.texi: Update the expected version number of PPL to 0.11.
118 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
119 #if PPL_VERSION_MINOR < 11.
121 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
123 * graphite-dependences.c: Include graphite-cloog-util.h.
124 (new_poly_ddr): Inlined into dependence_polyhedron.
125 (free_poly_ddr): Moved close by new_poly_ddr.
126 (dependence_polyhedron_1): Renamed dependence_polyhedron.
127 Early return NULL when ppl_powerset_is_empty returns true.
128 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
129 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
130 (graphite_legal_transform_dr): Call new_poly_ddr.
131 (graphite_carried_dependence_level_k): Same.
132 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
133 (dot_transformed_deps_stmt_1): Removed.
134 (dot_deps_stmt_1): Call dot_deps_stmt_2.
135 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
136 (dot_deps_1): Call dot_deps_2.
137 * Makefile.in (graphite-dependences.o): Add missing dependence on
138 graphite-cloog-util.h.
140 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
142 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
143 (build_lexicographical_constraint): Same.
144 (dependence_polyhedron_1): Same.
145 (graphite_legal_transform_dr): Same.
146 (graphite_carried_dependence_level_k): Same.
147 * graphite-ppl.c (ppl_powerset_is_empty): New.
148 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
149 * tree-data-ref.c (dump_data_reference): Print the basic block index.
151 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
153 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
154 the "a followed by b" relation and document it.
156 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
158 * graphite-dependences.c (build_lexicographical_constraint): Stop the
159 iteration when the bag of constraints is empty.
161 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
163 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
165 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
167 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
168 nest and two loop depths as parameters.
169 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
172 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
174 * graphite-dependences.c (print_pddr): Call
175 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
177 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
179 * graphite-ppl.c (debug_gmp_value): New.
180 * graphite-ppl.h (debug_gmp_value): Declared.
182 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
184 * doc/install.texi: Document availability of cloog-0.16.
186 2011-01-25 Vladimir Kargov <kargov@gmail.com>
188 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
189 invalid postdominance info.
191 2011-01-24 Jan Hubicka <jh@suse.cz>
194 * doc/extend.texi (weak pragma): Drop claim that it must
195 appear before definition.
196 * varasm.c (merge_weak, declare_weak): Only sanity check
197 that DECL is not output at a time it is declared weak.
199 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
201 * machmode.def: Fixed comments.
203 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
205 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
207 2011-01-24 Paul Koning <ni1d@arrl.net>
209 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
212 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
215 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
216 (block_info): Add scanned and prev.
217 (move_or_delete_vzeroupper_2): Return if the basic block
218 has been scanned and the upper 128bit state is unchanged
220 (move_or_delete_vzeroupper_1): Return true if the exit
222 (move_or_delete_vzeroupper): Visit basic blocks using the
223 work-list based algorithm based on vt_find_locations in
226 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
228 2011-01-24 Nick Clifton <nickc@redhat.com>
230 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
231 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
232 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
233 then define __v850e1__.
234 * doc/invoke.texi: Document -mv850es.
236 2011-01-24 Richard Henderson <rth@redhat.com>
238 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
239 compound unordered comparisons.
240 * config/rx/rx.c (rx_split_fp_compare): Remove.
241 * config/rx/rx-protos.h: Update.
242 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
243 (cbranchsf4): Don't call rx_split_fp_compare.
244 (*cbranchsf4): Use rx_split_cbranch.
245 (*cmpsf): Don't accept "i" constraint.
246 (*conditional_branch): Only valid after reload.
247 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
249 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
252 * config/rs6000/altivec.md (vector constant splitters): Add
253 support for creating vector single precision constants if -mvsx is
254 used and we would create the constant using Altivec primitives.
256 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
257 Richard Sandiford <rdsandiford@googlemail.com>
259 PR rtl-optimization/47166
260 * reload1.c (emit_reload_insns): Disable the spill_reg_store
261 mechanism for PRE_MODIFY and POST_MODIFY.
262 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
265 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
267 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
269 2011-01-22 Jan Hubicka <jh@suse.cz>
272 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
274 2011-01-22 Jan Hubicka <jh@suse.cz>
276 PR tree-optimization/43884
278 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
279 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
281 2011-01-22 Anatoly Sokolov <aesok@post.ru>
283 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
284 * config/s390/s390.c (s390_register_move_cost,
285 s390_memory_move_cost): New.
286 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
288 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
291 * except.c (sjlj_assign_call_site_values): Move setting the
292 crtl->uses_eh_lsda flag to ...
293 (sjlj_mark_call_sites): ... here.
294 (sjlj_emit_function_enter): Support NULL dispatch label.
295 (sjlj_build_landing_pads): In a function with no landing pads
296 that still has must-not-throw regions, generate code to register
297 a personality function with empty LSDA.
299 2011-01-21 Richard Henderson <rth@redhat.com>
301 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
303 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
305 * compare-elim.c: New file.
306 * Makefile.in (OBJS-common): Add it.
307 (compare-elim.o): New.
308 * common.opt (fcompare-elim): New.
309 * opts.c (default_options_table): Add OPT_fcompare_elim.
310 * tree-pass.h (pass_compare_elim_after_reload): New.
311 * passes.c (init_optimization_passes): Add it.
312 * recog.h: Protect against re-inclusion.
313 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
314 * doc/invoke.texi (-fcompare-elim): Document it.
315 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
316 * doc/tm.texi: Rebuild.
318 2011-01-22 Nick Clifton <nickc@redhat.com>
320 * config/rx/rx.md (cstoresf4): Pass comparison operator to
323 2011-01-22 Nick Clifton <nickc@redhat.com>
325 * config/rx/rx.md (UNSPEC_CONST): New.
326 (deallocate_and_return): Wrap the amount popped off the stack in
327 an UNSPEC_CONST in order to stop it being rejected by
329 (pop_and_return): Add a "(return)" rtx.
330 (call): Drop the immediate operand.
331 (call_internal): Likewise.
332 (call_value): Likewise.
333 (call_value_internal): Likewise.
334 (sibcall_internal): Likewise.
335 (sibcall_value_internal): Likewise.
336 (sibcall): Likewise. Generate an explicit call using
338 (sibcall_value): Likewise.
339 (mov<>): FAIL if a constant operand is not legitimate.
340 (addsi3_unpsec): New pattern.
342 * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
344 (ok_for_max_constant): New function.
345 (gen_safe_add): New function.
346 (rx_expand_prologue): Use gen_safe_add.
347 (rx_expand_epilogue): Likewise.
348 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
351 2011-01-21 Jeff Law <law@redhat.com>
353 PR tree-optimization/47053
354 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
355 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
356 statements are deleted.
357 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
358 is nonempty, then purge dead edges and cleanup the CFG.
360 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
364 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
366 * tree-dfa.c (create_var_ann): Mark variable as used.
368 2011-01-21 Jakub Jelinek <jakub@redhat.com>
371 * except.c (convert_to_eh_region_ranges): Emit queued no-region
372 notes from other section in hot/cold partitioning even if
373 last_action is -3. Increment call_site_base.
375 PR rtl-optimization/47366
376 * fwprop.c (forward_propagate_into): Return bool. If
377 any changes are made, -fnon-call-exceptions is used and
378 REG_EH_REGION note is present, call purge_dead_edges
379 and return true if it purged anything.
380 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
381 any EH edges were purged.
383 2011-01-21 Jeff Law <law@redhat.com>
385 PR rtl-optimization/41619
386 * caller-save.c (setup_save_areas): Break out code to determine
387 which hard regs are live across calls by examining the reload chains
388 so that it is always used.
389 Eliminate code which checked REG_N_CALLS_CROSSED.
391 2011-01-21 Jakub Jelinek <jakub@redhat.com>
393 PR tree-optimization/47355
394 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
395 NOP has non-debug uses beyond PHIs in new_bb.
397 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
400 * cfgexpand.c (account_used_vars_for_block): Only account vars
401 that are annotated as used.
402 (estimated_stack_frame_size): Don't set TREE_USED.
403 * tree-dfa.c (create_var_ann): Mark variable as used.
405 2011-01-21 Richard Guenther <rguenther@suse.de>
408 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
410 2011-01-21 Richard Guenther <rguenther@suse.de>
412 PR tree-optimization/47365
413 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
414 (vn_reference_lookup_pieces): Adjust.
415 (vn_reference_lookup): Likewise.
416 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
417 (vn_reference_lookup_3): Only look through kills if in
419 (vn_reference_lookup_pieces): Adjust.
420 (vn_reference_lookup): Likewise.
421 (visit_reference_op_load): Likewise.
422 (visit_reference_op_store): Likewise.
423 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
424 (compute_avail): Likewise.
425 (eliminate): Likewise.
427 2011-01-21 Jakub Jelinek <jakub@redhat.com>
429 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
430 DECL_IGNORED_P non-reg vars if they are used.
432 PR tree-optimization/47391
433 * varpool.c (const_value_known_p): Return false if
436 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
439 * config/i386/i386.c (ix86_local_alignment): Handle
440 case for va_list_type_node is nil.
441 (ix86_canonical_va_list_type): Likewise.
443 2011-01-21 Alan Modra <amodra@gmail.com>
445 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
446 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
448 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
450 * config/arm/arm.md (define_attr type): Rename f_load
451 and f_store to f_fpa_load and f_fpa_store. Update.
452 (write_conflict): Deal with rename fallout.
453 (*push_fp_multi): Likewise.
454 * config/arm/fpa.md (f_load): Use f_fpa_load.
455 (f_store): Use f_fpa_store.
456 (*movsf_fpa): Likewise.
457 (*movdf_fpa): Likewise.
458 (*movxf_fpa): Likewise.
459 (*thumb2_movsf_fpa): Likewise.
460 (*thumb2_movdf_fpa): Likewise.
461 (*thumb2_movxf_fpa): Likewise.
462 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
463 f_loadd and f_stored.
464 (*thumb2_movdi_vfp): Likewise.
465 (*thumb2_movsf_vfp): Fix attribute to f_loads.
466 (*thumb2_movsi_vfp): Likewise.
467 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
468 Use f_loads instead of f_load.
469 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
471 2011-01-20 Anatoly Sokolov <aesok@post.ru>
473 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
474 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
475 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
476 (xtensa_mode_dependent_address_p): New function.
477 (constantpool_address_p): Make static. Change return type to bool.
478 Change argument type to const_rtx. Use CONST_INT_P predicate.
480 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
483 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
485 2011-01-20 Jakub Jelinek <jakub@redhat.com>
488 * cfgexpand.c (expand_debug_expr): Instead of generating
489 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
492 2011-01-20 Richard Guenther <rguenther@suse.de>
495 * tree-inline.c (remap_gimple_op_r): Recurse manually for
496 the pointer operand of MEM_REFs.
498 2011-01-20 Jakub Jelinek <jakub@redhat.com>
500 PR tree-optimization/46130
501 * ipa-split.c (consider_split): If return_bb contains non-virtual
502 PHIs other than for retval or if split_function would not adjust it,
505 2011-01-20 Richard Guenther <rguenther@suse.de>
507 PR tree-optimization/47167
508 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
509 Revert previous change, only avoid enumeral type changes.
511 2011-01-19 Dodji Seketeli <dodji@redhat.com>
514 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
515 (gen_scheduled_generic_parms_dies): New functions.
516 (gen_struct_or_union_type_die): Schedule template parameters DIEs
517 generation for the end of CU compilation.
518 (dwarf2out_finish): Generate template parameters DIEs here.
520 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
523 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
524 debug bind stmt on merge edges.
526 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
530 * function.c (instantiate_expr): Instantiate incoming rtl of
531 implicit arguments, and recurse on VALUE_EXPRs.
532 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
533 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
535 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
537 * c-parser.c (c_parser_for_statement): Initialize
538 collection_expression.
540 2011-01-19 Joseph Myers <joseph@codesourcery.com>
542 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
544 2011-01-19 Joseph Myers <joseph@codesourcery.com>
546 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
547 (LINK_SHLIB_SPEC): Don't use %(link_path).
548 (SUBTARGET_EXTRA_SPECS): Remove link_path.
550 2011-01-19 Joseph Myers <joseph@codesourcery.com>
552 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
553 (NO_SHARED_LIB_SUPPORT): Remove.
554 (LINK_SHLIB_SPEC): Remove one conditional definition.
556 2011-01-19 Joseph Myers <joseph@codesourcery.com>
558 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
560 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
561 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
562 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
563 %{call_shared} and conditionals on these options not being passed.
564 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
567 2011-01-19 Jakub Jelinek <jakub@redhat.com>
569 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
572 * ipa-split.c: Spelling fixes.
574 2011-01-19 Richard Henderson <rth@redhat.com>
576 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
579 * longlong.h [__mn10300__] (count_leading_zeros): New.
580 [__mn10300__] (umul_ppmm, smul_ppmm): New.
581 [__mn10300__] (add_ssaaaa, subddmmss): New.
582 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
583 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
585 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
587 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
589 2011-01-19 Richard Henderson <rth@redhat.com>
591 * config/mn10300/mn10300.md (addsi3_flags): New.
592 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
593 (subsi3_flags, subc_internal, subdi3): New.
594 (subdi3_internal, *subdi3_degenerate): New.
595 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
597 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
598 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
599 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
600 * config/mn10300/mn10300-protos.h: Update.
601 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
602 (return_ret): Likewise. Rename from return_internal_regs.
603 (return_internal): Remove.
605 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
606 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
607 (mn10300_legitimate_constant_p): Likewise.
608 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
609 (mn10300_frame_size): New.
610 (mn10300_expand_prologue): Use it.
611 (mn10300_expand_epilogue): Likewise.
612 (mn10300_initial_offset): Likewise.
613 * config/mn10300/mn10300-protos.h: Update.
614 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
615 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
616 (prologue, epilogue, return_internal): Tidy output code.
617 (mn10300_store_multiple_operation, return): Likewise.
618 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
619 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
620 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
621 (load_pic, am33_load_pic): New.
622 (mn10300_load_pic0, mn10300_load_pic1): New.
624 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
625 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
626 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
627 (cc_flags_for_mode, cc_flags_for_code): New.
628 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
629 overflow flag is not valid. Validate that the flags we need
630 for the comparison are valid.
631 (mn10300_output_cmp): Remove.
632 (mn10300_output_add): New.
633 (mn10300_select_cc_mode): Use cc_flags_for_code.
634 (mn10300_split_cbranch): New.
635 (mn10300_match_ccmode): New.
636 (mn10300_split_and_operand_count): New.
637 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
639 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
640 (addsi3): ... here. Use mn10300_output_add.
641 (*addsi3_flags): New.
642 (*am33_subsi3, *mn10300_subsi3): Merge...
643 (subsi3): ... here. Use attribute isa.
644 (*subsi3_flags): New.
645 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
647 (*am33_andsi3, *mn10300_andsi3): Merge...
649 (*andsi3_flags): New.
650 (andsi3 splitters): New.
651 (*am33_iorsi3, *mn10300_iorsi3): Merge...
653 (*iorsi3_flags): New.
654 (*am33_xorsi3, *mn10300_xorsi3): Merge...
656 (*xorsi3_flags): New.
657 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
658 (one_cmplsi2): ... here.
659 (*one_cmplsi2_flags): New.
660 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
661 instead of "dax" in constraints. Use mn10300_split_cbranch.
662 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
663 use matching constraints to eliminate a self-comparison.
664 (*integer_conditional_branch): Rename from integer_conditional_branch.
665 Use int_mode_flags to match CC_REG.
666 (*cbranchsi4_btst, *btstsi): New.
667 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
668 mn10300_split_cbranch.
669 (*am33_cmpsf): Rename from am33_cmpsf.
670 (*float_conditional_branch): Rename from float_conditional_branch.
671 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
672 (zero_extendqisi2): ... here.
673 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
674 (zero_extendhisi2): ... here.
675 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
676 (extendqisi2): ... here.
677 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
678 (extendhisi2): ... here.
679 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
681 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
683 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
685 (consecutive add peephole): Remove.
686 * config/mn10300/predicates.md (label_ref_operand): New.
687 (int_mode_flags): New.
688 (CCZN_comparison_operator): New.
690 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
691 (throughput_42_latency_43): New reservation.
692 (mulsidi3, umulsidi3): New expanders.
693 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
694 the MDR register to allocation; separately allocate the low and
695 high parts of the DImode result.
696 (umulsidi3_internal): Similarly.
697 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
698 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
699 (udivsi3, umodsi3): Remove.
700 (udivmodsi4, divmodsi4): New expanders.
701 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
702 (*divmodsi4): Simiarly.
705 * config/mn10300/constraints.md ("z"): New constraint.
706 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
707 (FIXED_REGISTERS): Don't fix MDR.
708 (CALL_USED_REGSITERS): Reformat nicely.
709 (REG_ALLOC_ORDER): Add MDR.
710 (enum regclass): Add MDR_REGS.
711 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
712 (IRA_COVER_CLASSES): Add MDR_REGS.
713 (REGNO_REG_CLASS): Handle MDR_REG.
714 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
715 (mn10300_register_move_cost): Likewise.
716 * config/mn10300/mn10300.md (MDR_REG): New.
717 (*movsi_internal): Handle moves to/from MDR_REGS.
719 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
721 (mn10300_secondary_reload): Tidy combination reload classes.
722 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
723 addresses for AM33. Allow symbolic offsets for reg+imm.
724 (mn10300_regno_in_class_p): New.
725 (mn10300_legitimize_reload_address): New.
726 * config/mn10300/mn10300.h (enum reg_class): Remove
727 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
728 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
730 (REG_CLASS_NAMES): Update to match.
731 (REG_CLASS_CONTENTS): Likewise.
732 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
733 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
734 (REGNO_IN_RANGE_P): Remove.
735 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
736 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
737 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
738 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
739 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
740 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
741 (REGNO_GENERAL_P): New.
742 (HAVE_POST_MODIFY_DISP): New.
743 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
744 (LEGITIMIZE_RELOAD_ADDRESS): New.
745 * config/mn10300/mn10300-protos.h: Update.
747 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
748 DATA_REGS for AM33 stack-pointer destination.
749 (mn10300_preferred_output_reload_class): Likewise.
750 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
751 into a form appropriate for ...
752 (TARGET_SECONDARY_RELOAD): New.
753 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
754 * config/mn10300/mn10300-protos.h: Update.
755 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
756 reload_insi; use the "A" constraint for the scratch; handle AM33
757 moves of sp to non-address registers.
759 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
760 (*movqi_internal): ... here.
761 (*am33_movhi, *mn10300_movhi): Merge into...
762 (*movhi_internal): ... here.
763 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
764 as the source/destination of moves from/to SP.
765 (movsf): Only allow for AM33-2.
766 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
767 any integer constant constraint. Only allow for AM33-2. Tidy
768 all of the alternative outputs.
769 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
770 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
772 (udivsi3, umodsi3): New patterns for MN103 only.
774 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
776 * doc/tm.texi.in: Spell out that a lack of register class unions
778 * doc/tm.texi: Regenerate.
780 2011-01-19 Jakub Jelinek <jakub@redhat.com>
782 PR rtl-optimization/47337
783 * dce.c (check_argument_store): New function.
784 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
786 PR tree-optimization/47290
787 * tree-eh.c (infinite_empty_loop_p): New function.
788 (cleanup_empty_eh): Use it.
790 2011-01-18 Steve Ellcey <sje@cup.hp.com>
793 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
794 (a64_expand_widen_sum): Ditto.
795 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
796 (vec_extract_evenodd_help): Ditto.
797 (vec_extract_evenv4hi): Ditto.
798 (vec_extract_oddv4hi): Ditto.
799 (vec_extract_evenv2si): Ditto.
800 (vec_extract_oddv2si): Ditto.
801 (vec_extract_evenv2sf): Ditto.
802 (vec_extract_oddv2sf): Ditto.
803 (vec_pack_trunc_v4hi: Ditto.
804 (vec_pack_trunc_v2si): Ditto.
805 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
806 (vec_interleave_highv8qi): Ditto.
808 (vec_extract_oddv8qi): Ditto.
809 (vec_interleave_lowv4hi): Ditto.
810 (vec_interleave_highv4hi): Ditto.
811 (vec_interleave_lowv2si): Ditto.
812 (vec_interleave_highv2si): Ditto.
814 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
816 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
817 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
818 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
819 (pa_c_mode_for_suffix): New.
820 (TARGET_EXPAND_BUILTIN): Define.
821 (TARGET_C_MODE_FOR_SUFFIX): Define.
822 (pa_builtins): Define.
823 (pa_init_builtins): Register __float128 type and init new support
825 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
826 * config/pa/quadlib.c (_U_Qfcopysign): New.
828 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
831 * explow.c (allocate_dynamic_stack_space): Do not assume more than
832 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
835 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
837 PR tree-optimization/47179
838 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
839 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
841 2011-01-18 Richard Guenther <rguenther@suse.de>
843 PR rtl-optimization/47216
844 * emit-rtl.c: Include tree-flow.h.
845 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
846 of replicating it with different semantics.
847 * Makefile.in (emit-rtl.o): Adjust.
849 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
851 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
853 (cortex_a9_dp): Handle neon types correctly.
855 2011-01-18 Jakub Jelinek <jakub@redhat.com>
857 PR rtl-optimization/47299
858 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
859 subtarget. Use normal multiplication if both operands are
861 * expmed.c (expand_widening_mult): Don't try to optimize constant
862 multiplication if op0 has VOIDmode. Convert op1 constant to mode
865 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
867 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
868 spacing after 'e.g.', typos, comma, hyphenation.
870 2011-01-17 Richard Henderson <rth@redhat.com>
872 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
873 (rx_restricted_mem_operand): New.
874 (rx_shift_operand): Use register_operand.
875 (rx_source_operand, rx_compare_operand): Likewise.
876 * config/rx/rx.md (addsi3_flags): New expander.
877 (adddi3): Rewrite as expander.
878 (adc_internal, *adc_flags, adddi3_internal): New patterns.
879 (subsi3_flags): New expander.
880 (subdi3): Rewrite as expander.
881 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
883 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
884 (rx_init_builtins): Remove sat builtin.
885 (rx_expand_builtin): Likewise.
886 * config/rx/rx.md (ssaddsi3): New.
887 (*sat): Rename from sat. Represent the CC_REG input.
889 * config/rx/predicates.md (rshift_operator): New.
890 * config/rx/rx.c (rx_expand_insv): Remove.
891 * config/rx/rx-protos.h: Update.
892 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
893 operand to the canonical position.
894 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
895 (*bitclr, *bitclr_in_memory): Similarly.
896 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
897 (insv): Retain the zero_extract in the expansion.
899 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
900 (bswaphi2, bitinvert, revw): Likewise.
902 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
903 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
904 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
905 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
906 (bitset, bitset_in_memory): Likewise.
907 (bitinvert, bitinvert_in_memory): Likewise.
908 (bitclr, bitclr_in_memory): Likewise.
909 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
910 (rx_strend, rx_cmpstrn): Likewise.
911 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
912 (bitop peep2 patterns): Remove.
914 * config/rx/rx.c (rx_match_ccmode): New.
915 * config/rx/rx-protos.h: Update.
916 * config/rx/rx.md (abssi2): Clobber, don't set flags.
917 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
918 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
919 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
920 (fix_truncsfsi2, floatsisf2): Likewise.
921 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
922 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
923 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
924 (*subsi3_flags, *xorsi3_flags): New.
926 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
928 * config/rx/rx.c (rx_print_operand): Remove workaround for
929 unsplit comparison operations.
931 * config/rx/rx.md (movsicc): Split after reload.
932 (*movsicc): Merge *movsieq and *movsine via match_operator.
933 (*stcc): New pattern.
935 * config/rx/rx.c (rx_float_compare_mode): Remove.
936 * config/rx/rx.h (rx_float_compare_mode): Remove.
937 * config/rx/rx.md (cstoresi4): Split after reload.
938 (*sccc): New pattern.
940 * config/rx/predicates.md (label_ref_operand): New.
941 (rx_z_comparison_operator): New.
942 (rx_zs_comparison_operator): New.
943 (rx_fp_comparison_operator): New.
944 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
945 Validate that the flags are set properly for the comparison.
946 (rx_gen_cond_branch_template): Remove.
947 (rx_cc_modes_compatible): Remove.
948 (mode_from_flags): New.
949 (flags_from_code): Rename from flags_needed_for_conditional.
950 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
951 (rx_select_cc_mode): Likewise.
952 (rx_split_fp_compare): New.
953 (rx_split_cbranch): New.
954 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
955 (*cbranchsi4): Use match_operator and rx_split_cbranch.
956 (*cbranchsf4): Similarly.
957 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
958 match_operator and rx_split_cbranch.
959 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
960 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
961 (*cmpsi): Rename from cmpsi.
962 (*tstsi): Rename from tstsi.
963 (*cmpsf): Rename from cmpsf; use CC_Fmode.
964 (*conditional_branch): Rename from conditional_branch.
965 (*reveresed_conditional_branch): Remove.
966 (b<code>): Remove expander.
967 * config/rx/rx-protos.h: Update.
969 * config/rx/rx.c (rx_compare_redundant): Remove.
970 * config/rx/rx.md (cmpsi): Don't use it.
971 * config/rx/rx-protos.h: Update.
973 * config/rx/rx-modes.def (CC_F): New mode.
974 * config/rx/rx.c (rx_select_cc_mode): New.
975 * config/rx/rx.h (SELECT_CC_MODE): Use it.
976 * config/rx/rx-protos.h: Update.
978 2011-01-17 Richard Henderson <rth@redhat.com>
980 * except.c (dump_eh_tree): Fix stray ; after for statement.
982 2011-01-17 Richard Guenther <rguenther@suse.de>
984 PR tree-optimization/47313
985 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
986 handling before copying the body. Properly deal with
987 by-reference result in SSA form.
989 2011-01-17 Ian Lance Taylor <iant@google.com>
992 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
993 (struct_value_alias_set): Don't define.
994 (sparc_option_override): Don't set sparc_sr_alias_set and
995 struct_value_alias_set.
996 (save_or_restore_regs): Use gen_frame_mem rather than calling
998 (sparc_struct_value_rtx): Likewise.
1000 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
1003 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
1005 (_mm_maskstore_pd): Likewise.
1006 (_mm_maskload_ps): Likewise.
1007 (_mm_maskstore_ps): Likewise.
1008 (_mm256_maskload_pd): Change mask to __m256i.
1009 (_mm256_maskstore_pd): Likewise.
1010 (_mm256_maskload_ps): Likewise.
1011 (_mm256_maskstore_ps): Likewise.
1013 * config/i386/i386-builtin-types.def: Updated.
1014 (ix86_expand_special_args_builtin): Likewise.
1016 * config/i386/i386.c (bdesc_special_args): Update
1017 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
1018 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
1019 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
1020 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
1022 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
1023 Use <avxpermvecmode> on mask register.
1024 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
1026 2011-01-17 Olivier Hainque <hainque@adacore.com>
1027 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1028 Eric Botcazou <ebotcazou@adacore.com>
1031 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
1032 if <= USHRT_MAX in 32-bit mode.
1034 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1036 * doc/install.texi (Configuration, Specific): Wrap long
1037 lines in examples. Allow line wrapping in long options
1038 and URLs where beneficial for PDF output.
1040 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
1042 * config/mips/mips.c (mips_classify_symbol): Don't return
1043 SYMBOL_PC_RELATIVE for nonlocal labels.
1045 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
1047 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
1049 2011-01-15 Jan Hubicka <jh@suse.cz>
1051 PR tree-optimization/47276
1052 * ipa.c (function_and_variable_visibility): Do not try to mark alias
1053 declarations as needed.
1055 2011-01-15 Martin Jambor <mjambor@suse.cz>
1057 * common.opt (fdevirtualize): New flag.
1058 * doc/invoke.texi (Option Summary): Document it.
1059 * opts.c (default_options_table): Add devirtualize flag.
1060 * ipa-prop.c (detect_type_change): Return immediately if
1061 devirtualize flag is not set.
1062 (detect_type_change_ssa): Likewise.
1063 (compute_known_type_jump_func): Likewise.
1064 (ipa_analyze_virtual_call_uses): Likewise.
1066 2011-01-14 Martin Jambor <mjambor@suse.cz>
1068 PR tree-optimization/45934
1069 PR tree-optimization/46302
1070 * ipa-prop.c (type_change_info): New type.
1071 (stmt_may_be_vtbl_ptr_store): New function.
1072 (check_stmt_for_type_change): Likewise.
1073 (detect_type_change): Likewise.
1074 (detect_type_change_ssa): Likewise.
1075 (compute_complex_assign_jump_func): Check for dynamic type change.
1076 (compute_complex_ancestor_jump_func): Likewise.
1077 (compute_known_type_jump_func): Likewise.
1078 (compute_scalar_jump_functions): Likewise.
1079 (ipa_analyze_virtual_call_uses): Likewise.
1080 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
1082 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1084 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
1085 * config/i386/i386.opt (msse5): New Alias.
1087 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1089 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
1090 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1091 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1092 * config/sparc/sparc.h (CC1_SPEC): Likewise.
1094 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1096 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
1098 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1099 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1100 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
1101 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
1103 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
1105 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1107 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
1110 2011-01-14 Mike Stump <mikestump@comcast.net>
1112 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
1113 * config/fr30/fr30.md: Likweise
1114 (movsi_push): Likewise.
1115 (movsi_pop): Likewise.
1116 (enter_func): Likewise.
1117 * config/moxie/moxie.md (movsi_push): Likewise.
1118 (movsi_pop): Likewise.
1120 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1122 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
1123 %{no_archive} %{exact_version}.
1124 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
1125 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
1126 %{no_archive} %{exact_version}.
1127 * config/mips/openbsd.h (LINK_SPEC): Likewise.
1128 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
1129 * config/mips/vxworks.h: Likewise.
1131 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1133 * config/microblaze/microblaze.h (ASM_SPEC): Remove
1136 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1138 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
1139 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
1141 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1143 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
1146 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1148 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
1150 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
1151 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
1153 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
1154 Don't handle -shlib.
1156 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1158 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
1159 (CC1_SPEC): Don't handle -profile.
1161 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1163 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
1164 * config/mips/mips.h (CC1_SPEC): Likewise.
1166 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1168 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
1169 * config/mips/mips.h (CC1_SPEC): Likewise.
1171 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1173 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
1174 * config/m32r/linux.h (LINK_SPEC): Likewise.
1175 * config/mips/linux.h (LINK_SPEC): Likewise.
1176 * config/mips/linux64.h (LINK_SPEC): Likewise.
1177 * config/sparc/linux.h (LINK_SPEC): Likewise.
1178 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1179 LINK_SPEC): Likewise.
1180 * config/xtensa/linux.h (LINK_SPEC): Likewise.
1182 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1184 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
1186 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1188 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1190 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
1191 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
1193 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1195 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
1197 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1199 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
1200 supports -Bstatic/-Bdynamic.
1201 * configure: Regenerate.
1203 2011-01-14 Jan Hubicka <jh@suse.cz>
1204 Jack Howarth <howarth@bromo.med.uc.edu>
1207 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
1208 when checking debug_info_level. Test write_symbols instead of
1209 debug_hooks->var_location when setting flag_var_tracking_uninit.
1211 2011-01-14 Richard Guenther <rguenther@suse.de>
1213 PR tree-optimization/47179
1214 * target.def (ref_may_alias_errno): New target hook.
1215 * targhooks.h (default_ref_may_alias_errno): Declare.
1216 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
1217 (default_ref_may_alias_errno): New function.
1218 * target.h (struct ao_ref_s): Declare.
1219 * tree-ssa-alias.c: Include target.h.
1220 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
1221 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
1222 (targhooks.o): Likewise.
1223 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
1224 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
1226 2011-01-14 Richard Guenther <rguenther@suse.de>
1228 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
1230 2011-01-14 Richard Guenther <rguenther@suse.de>
1232 PR tree-optimization/47280
1233 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
1235 (tree_ssa_forward_propagate_single_use_vars): Deal with
1236 CFG changes from associate_plusminus.
1238 2011-01-14 Richard Guenther <rguenther@suse.de>
1242 2011-01-11 Richard Guenther <rguenther@suse.de>
1244 PR tree-optimization/46076
1245 * tree-ssa.c (useless_type_conversion_p): Conversions from
1246 unprototyped to empty argument list function types are useless.
1248 2011-01-14 Richard Guenther <rguenther@suse.de>
1250 PR tree-optimization/47286
1251 * tree-ssa-structalias.c (new_var_info): Register variables are global.
1253 2011-01-14 Martin Jambor <mjambor@suse.cz>
1256 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
1258 2011-01-13 Anatoly Sokolov <aesok@post.ru>
1260 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
1261 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1262 * config/xtensa/xtensa.c (xtensa_libcall_value,
1263 xtensa_function_value_regno_p): New functions.
1264 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1266 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
1269 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
1271 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
1272 New function prototype.
1273 * config/i386/winnt.c (i386_pe_assemble_visibility):
1274 Warn only if attribute was specified by user.
1276 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1279 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
1281 (floatunsdidf2_fcfidu): Ditto.
1283 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1285 * config/s390/s390.c (print_operand_address): Replace 'error' with
1286 'output_operand_lossage'.
1287 (print_operand): Likewise.
1289 2011-01-13 Jeff Law <law@redhat.com>
1291 PR rtl-optimization/39077
1292 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
1293 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
1294 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
1295 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
1296 * gcse.c (prune_insertions_deletions): New function.
1297 (compute_pre_data): Use it.
1299 2011-01-13 Dodji Seketeli <dodji@redhat.com>
1302 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
1304 (prune_unused_types_mark): Use it.
1306 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
1308 PR rtl-optimization/45352
1309 * sel-sched.c: Update copyright years.
1310 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1311 in the advancing loop when we have issued issue_rate insns.
1313 2011-01-12 Richard Henderson <rth@redhat.com>
1315 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
1316 (TARGET_MD_ASM_CLOBBERS): New.
1318 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
1319 (TARGET_DELEGITIMIZE_ADDRESS): New.
1321 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
1322 (clzsi2, *bsch): New patterns.
1324 * config/mn10300/mn10300.md (INT): New mode iterator.
1325 (*mov<INT>_clr): New pattern, and peep2 to generate it.
1327 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
1328 flag_split_wide_types.
1330 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
1331 (mn10300_trampoline_init): Rewrite without a template, an immediate
1332 load and a direct branch.
1333 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
1335 2011-01-12 Anatoly Sokolov <aesok@post.ru>
1337 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1338 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
1339 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
1340 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1342 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
1345 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
1348 2011-01-12 Jan Hubicka <jh@suse.cz>
1351 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
1352 (PLUGIN_COND_CLOSE): New macro.
1353 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
1355 2011-01-12 Richard Guenther <rguenther@suse.de>
1358 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
1359 register variables in a MEM_REF.
1361 2011-01-12 Joseph Myers <joseph@codesourcery.com>
1363 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
1364 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
1365 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
1366 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1367 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1368 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
1369 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
1370 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
1371 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
1372 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
1373 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
1374 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
1375 * config/gnu-user.h: New. Copied from linux.h.
1376 (LINUX_TARGET_STARTFILE_SPEC): Rename to
1377 GNU_USER_TARGET_STARTFILE_SPEC.
1378 (LINUX_TARGET_ENDFILE_SPEC): Rename to
1379 GNU_USER_TARGET_ENDFILE_SPEC.
1380 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
1381 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
1382 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
1383 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
1384 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
1385 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
1386 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
1387 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
1388 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
1389 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
1390 * config/arm/linux-eabi.h (CC1_SPEC): Use
1391 GNU_USER_TARGET_CC1_SPEC.
1392 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
1393 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
1394 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
1395 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
1396 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
1397 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
1398 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
1399 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
1401 2011-01-12 Richard Guenther <rguenther@suse.de>
1404 * doc/invoke.texi (ffast-math): Document it is turned on
1407 2011-01-12 Jan Hubicka <jh@suse.cz>
1409 PR tree-optimization/47233
1410 * opts.c (common_handle_option): Disable ipa-reference with profile
1413 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1415 * c-parser.c (c_parser_objc_at_property_declaration): Improved
1418 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1420 * c-parser.c (c_lex_one_token): Updated and reindented some
1421 comments. No changes in code.
1423 2011-01-11 Ian Lance Taylor <iant@google.com>
1425 * godump.c (go_output_var): Don't output the variable if there is
1426 already a type with the same name.
1428 2011-01-11 Ian Lance Taylor <iant@google.com>
1430 * godump.c (go_format_type): Don't generate float80.
1432 2011-01-11 Richard Henderson <rth@redhat.com>
1434 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
1435 declaration. Rewrite for both speed and size.
1436 (mn10300_address_cost_1): Remove.
1437 (mn10300_register_move_cost): New.
1438 (mn10300_memory_move_cost): New.
1439 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
1440 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
1441 extensions, shifts, BSWAP, CLZ.
1442 (mn10300_wide_const_load_uses_clr): Remove.
1443 (TARGET_REGISTER_MOVE_COST): New.
1444 (TARGET_MEMORY_MOVE_COST): New.
1445 * config/mn10300/mn10300-protos.h: Update.
1446 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
1448 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
1449 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
1450 * config/mn10300/mn10300-protos.h: Update.
1451 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
1452 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
1453 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
1454 (*test_int_bitfield, *test_byte_bitfield): Remove.
1455 (*bit_test, *subreg_bit_test): Remove.
1456 * config/mn10300/predicates.md (const_8bit_operand): Remove.
1458 * config/mn10300/constraints.md ("c"): Rename from "A".
1459 ("A", "D"): New constraint letters.
1460 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
1461 (fmssf4, fnmasf4, fnmssf4): Likewise.
1463 * config/mn10300/mn10300.md (isa): New attribute.
1464 (enabled): New attribute.
1466 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
1467 (abssf2, negsf2): Define only for hardware fp.
1468 (sqrtsf2): Reformat.
1469 (addsf3, subsf3, mulsf3): Merge expander and insn.
1471 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
1472 (DEBUGGER_AUTO_OFFSET): Remove.
1473 (DEBUGGER_ARG_OFFSET): Remove.
1475 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
1476 Emit register stores with the same offsets as the hardware.
1477 (mn10300_store_multiple_operation): Don't check that the register
1478 save offsets are monotonic.
1479 * config/mn10300/mn10300-protos.h: Update.
1481 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
1483 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
1484 in terms of the value on the stack, not the MDR register.
1486 2011-01-11 Jan Hubicka <jh@suse.cz>
1490 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
1491 (symbol_alias_set_destroy, symbol_alias_set_contains,
1492 propagate_aliases_backward): Declare.
1493 * lto-streamer-out.c (struct sets): New sturcture.
1494 (trivally_defined_alias): New function.
1495 (output_alias_pair_p): Rewrite.
1496 (output_unreferenced_globals): Fix output of alias pairs.
1497 (produce_symtab): Likewise.
1498 * ipa.c (function_and_variable_visibility): Set weak alias destination
1500 * varasm.c (symbol_alias_set_t): Remove.
1501 (symbol_alias_set_destroy): Export.
1502 (propagate_aliases_forward, propagate_aliases_backward): New functions
1504 (compute_visible_aliases): ... this one; remove.
1505 (trivially_visible_alias): New
1506 (trivially_defined_alias): New.
1507 (remove_unreachable_alias_pairs): Rewrite.
1508 (finish_aliases_1): Reorganize code checking if alias is defined.
1509 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
1512 2011-01-11 Richard Guenther <rguenther@suse.de>
1514 PR tree-optimization/46076
1515 * tree-ssa.c (useless_type_conversion_p): Conversions from
1516 unprototyped to empty argument list function types are useless.
1518 2011-01-11 Richard Guenther <rguenther@suse.de>
1521 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
1522 volatile MEMs as MEM_READONLY_P.
1524 2011-01-11 Richard Guenther <rguenther@suse.de>
1526 PR tree-optimization/47239
1527 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
1529 2011-01-11 Jeff Law <law@redhat.com>
1531 PR tree-optimization/47086
1532 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
1533 IVs from statements that might throw.
1535 2011-01-10 Jan Hubicka <jh@suse.cz>
1538 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
1540 2011-01-10 Jan Hubicka <jh@suse.cz>
1543 * profile.c (read_profile_edge_counts): Ignore profile inconistency
1544 when correcting profile.
1546 2011-01-10 Jan Hubicka <jh@suse.cz>
1549 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
1551 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
1552 Restore DECL_FINI_PRIORITY.
1554 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1556 * doc/gimple.texi: Fix quoting of multi-word return values in
1557 @deftypefn statements. Ensure presence of return value. Wrap
1558 overlong @deftypefn lines.
1559 (is_gimple_operand, is_gimple_min_invariant_address): Remove
1560 descriptions of removed functions.
1561 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
1562 of multi-word return value in @deftypefn statement.
1564 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1566 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
1567 (Conditional Expressions, Logical Operators)
1568 (Statement and operand traversals): Do not indent smallexample
1569 code. Fix duplicate function argument in example.
1571 2011-01-10 Jeff Law <law@redhat.com>
1573 PR tree-optimization/47141
1574 * ipa-split.c (split_function): Handle case where we are
1575 returning a value and the return block has a virtual operand phi.
1577 2011-01-10 Jan Hubicka <jh@suse.cz>
1579 PR tree-optimization/47234
1580 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
1581 (pass_feedback_split_functions): Declare.
1582 * passes.c (init_optimization_passes): Add ipa-split as subpass of
1584 * ipa-split.c (gate_split_functions): Update comments; disable
1585 split-functions for profile_arc_flag and branch_probabilities.
1586 (gate_feedback_split_functions): New function.
1587 (execute_feedback_split_functions): New function.
1588 (pass_feedback_split_functions): New global var.
1590 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
1593 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
1594 calling gimple_call_set_cannot_inline.
1596 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
1598 * config/darwin-sections.def: Remove unused section.
1600 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
1603 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
1605 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
1608 * c-parser.c (c_parser_declaration_or_fndef): Improved
1611 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
1613 * config/i386/winnt.c (i386_pe_start_function): Make sure
1614 to switch back to function's section.
1616 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
1620 * plugin.c: Move include of dlfcn.h from here...
1621 * system.h: ... to here.
1623 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1625 * doc/cpp.texi (C++ Named Operators): Fix markup for header
1627 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
1628 two extra empty pages in PDF output.
1630 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
1633 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
1634 for error recovery purposes behave as if it was not specified so
1635 that the default type is usd.
1637 2011-01-07 Jan Hubicka <jh@suse.cz>
1639 PR tree-optmization/46469
1640 * ipa.c (function_and_variable_visibility): Clear needed flags on
1641 nodes with external decls; handle weakrefs merging correctly.
1643 2011-01-07 Joseph Myers <joseph@codesourcery.com>
1645 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
1648 2011-01-07 Jan Hubicka <jh@suse.cz>
1650 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
1651 and no longer claim that gold is required for linker plugin.
1652 * configure: Regenerate.
1653 * gcc.c (PLUGIN_COND): New macro.
1654 (LINK_COMMAND_SPEC): Use it.
1655 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
1656 * config.in (HAVE_LTO_PLUGIN): New.
1657 * configure.ac (--with-lto-plugin): New parameter; autodetect
1660 2011-01-07 Jan Hubicka <jh@suse.cz>
1662 PR tree-optimization/46367
1663 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
1664 when we can update original.
1665 (cgraph_mark_inline_edge): Sanity check.
1666 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
1668 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1670 * config/spu/spu.h (ASM_COMMENT_START): Define.
1672 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
1676 (SWITCH_KEEP_FOR_GCC): Likewise.
1677 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
1678 (do_spec_1): Handle "%>".
1680 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
1682 2011-01-07 Jakub Jelinek <jakub@redhat.com>
1685 * config/i386/i386.c (ix86_delegitimize_address): If
1686 simplify_gen_subreg fails, return orig_x.
1689 * value-prof.c (gimple_stringop_fixed_value): Handle
1690 lhs of the call properly.
1692 2011-01-07 Jan Hubicka <jh@suse.cz>
1695 * lto-opt.c (lto_reissue_options): Set flag_shlib.
1697 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1699 * target.def (function_switched_text_sections): New hook.
1700 * doc/tm.texi: Regenerated.
1701 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1702 * final.c (default_function_switched_text_sections): New.
1703 (final_scan_insn): Call function_switched_text_sections when a
1704 mid-function section change occurs.
1705 * output.h (default_function_switched_text_sections): Declare.
1706 * config/darwin-protos.h (darwin_function_switched_text_sections):
1708 * config/darwin.c (darwin_function_switched_text_sections): New.
1709 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1711 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1713 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
1714 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
1715 the secondary code fragment when outputting for DWARF == 2.
1717 2011-01-07 Anatoly Sokolov <aesok@post.ru>
1719 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1720 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
1722 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
1723 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1725 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
1728 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
1729 when it is not empty.
1731 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
1734 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1735 (case ${target}): Add btver1.
1736 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1737 -march=native recognize btver1 processors.
1738 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1739 btver1 def_and_undef
1740 * config/i386/i386.c (struct processor_costs btver1_cost): New
1742 (m_BTVER1): New definition.
1743 (m_AMD_MULTIPLE): Includes m_BTVER1.
1744 (initial_ix86_tune_features): Add btver1 tune.
1745 (processor_target_table): Add btver1 entry.
1746 (static const char *const cpu_names): Add btver1 entry.
1747 (software_prefetching_beneficial_p): Add btver1.
1748 (ix86_option_override_internal): Add btver1 instruction sets.
1749 (ix86_issue_rate): Add btver1.
1750 (ix86_adjust_cost): Add btver1.
1751 * config/i386/i386.h (TARGET_BTVER1): New definition.
1752 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
1753 (enum processor_type): Add PROCESSOR_BTVER1.
1754 * config/i386/i386.md (define_attr "cpu"): Add btver1.
1756 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1759 * config/i386/i386.c (legitimize_tls_address)
1760 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
1761 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
1762 (tls_initial_exec_64_sun): New pattern.
1764 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
1766 * doc/invoke.texi (Overall Options): Improve wording and markup
1767 of the description of -wrapper.
1769 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1771 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
1772 rdynamic, threads): New Driver options.
1774 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1777 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
1778 if coming from .tdata.
1779 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1781 2011-01-06 Jan Hubicka <jh@suse.cz>
1784 * collect2.c (main): Do not enable LTOmode when plugin is active.
1786 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1789 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
1790 --version output if supported.
1791 * configure: Regenerate.
1793 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1795 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
1798 2011-01-06 Jakub Jelinek <jakub@redhat.com>
1801 * c-convert.c (convert): When converting a complex expression
1802 other than COMPLEX_EXPR to a different complex type, ensure
1803 c_save_expr is called instead of save_expr, unless in_late_binary_op.
1804 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
1805 when converting COMPLEX_TYPE.
1807 2011-01-06 Ira Rosen <irar@il.ibm.com>
1809 PR tree-optimization/47139
1810 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
1811 only the last reduction value is used outside the loop. Update
1814 2011-01-05 Joseph Myers <joseph@codesourcery.com>
1816 * config/rtems.opt: New.
1817 * config.gcc (*-*-rtems*): Use rtems.opt.
1819 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
1821 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
1822 processors do not support 3DNow instructions.
1824 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1826 * config/spu/spu.c (spu_option_override): Set parameter
1827 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
1829 2011-01-05 Jan Hubicka <jh@suse.cz>
1831 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
1832 at the command line.
1834 2011-01-05 Martin Jambor <mjambor@suse.cz>
1837 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
1838 deltas on streamed outgoing edges.
1839 (output_node_opt_summary): Output info for outgoing edges only when
1840 the node is in new parameter set.
1841 (output_cgraph_opt_summary): New parameter set, passed to the two
1842 aforementioned functions. Update its forward declaration and its
1845 2011-01-05 Tom Tromey <tromey@redhat.com>
1847 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
1848 operator to c_finish_omp_atomic.
1849 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
1850 (build_unary_op): Update.
1851 (build_modify_expr): Update.
1852 (build_asm_expr): Update.
1854 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1856 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
1857 newly inserted insns.
1859 (spu_emit_branch_hint): Likewise.
1860 (insert_hbrp_for_ilb_runout): Likewise.
1861 (spu_machine_dependent_reorg): Call df_finish_pass after
1862 schedule_insns returns.
1864 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1866 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
1868 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
1870 PR tree-optimization/47005
1871 * tree-sra.c (struct access): Add 'non_addressable' bit.
1872 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
1873 (decide_one_param_reduction): Return 0 if the parameter is passed by
1874 reference and one of the accesses in the group is non_addressable.
1876 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1878 PR tree-optimization/47056
1879 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
1880 (mark_load): Likewise. Handle FUNCTION_DECL specially.
1881 (mark_store): Likewise. Pass STMT to ipa_record_reference.
1883 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1885 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
1886 initializer. Skip view conversions from aggregate types.
1888 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
1891 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
1893 2011-01-04 Philipp Thomas <pth@suse.de>
1895 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
1898 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1900 * function.c (thread_prologue_and_epilogue_insns): Do not crash
1901 on empty epilogue sequences.
1903 2011-01-04 Joseph Myers <joseph@codesourcery.com>
1905 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
1906 non-static): New Driver options.
1908 2011-01-04 Jie Zhang <jie@codesourcery.com>
1911 * gcc.c (default_compilers[]): Set combinable field to 0
1912 for all assembly languages.
1914 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
1916 * config/mips/loongson3a.md: New file.
1917 * config/mips/mips.md: Include loongson3a.md.
1918 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
1921 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
1924 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
1925 instead of convert_memory_address_addr_space on the base expression.
1927 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1929 * config/spu/spu.c (spu_option_override): Update error text
1930 for bad -march= / -mtune= values.
1932 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1934 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
1935 if branch-hint optimization will be performed.
1937 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1939 PR tree-optimization/47148
1940 * ipa-split.c (split_function): Convert arguments to
1941 DECL_ARG_TYPE if possible.
1943 PR tree-optimization/47155
1944 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
1947 PR rtl-optimization/47157
1948 * combine.c (try_combine): If undobuf.other_insn becomes
1949 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
1950 and set *new_direct_jump_p too.
1952 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
1954 PR tree-optimization/47021
1955 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
1957 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1959 * gcc.c (process_command): Update copyright notice dates.
1960 * gcov.c (print_version): Likewise.
1961 * gcov-dump.c (print_version): Likewise.
1962 * mips-tfile.c (main): Likewise.
1963 * mips-tdump.c (main): Likewise.
1965 2011-01-03 Martin Jambor <mjambor@suse.cz>
1967 PR tree-optimization/46801
1968 * tree-sra.c (type_internals_preclude_sra_p): Check whether
1969 aggregate fields start at byte boundary instead of the bit-field flag.
1971 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
1974 * gcc.c (main): Revert revision 168407.
1976 2011-01-03 Martin Jambor <mjambor@suse.cz>
1978 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
1980 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1982 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
1983 vector optab to expand vector/scalar shift, update gimple to vector.
1985 2011-01-03 Martin Jambor <mjambor@suse.cz>
1987 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
1990 2011-01-03 Martin Jambor <mjambor@suse.cz>
1992 PR tree-optimization/46984
1993 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
1995 (cgraph_create_indirect_edge): Fixed line length.
1996 (cgraph_indirect_call_info): Declare.
1997 (cgraph_make_edge_direct) Update declaration.
1998 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
1999 (cgraph_create_indirect_edge): Use it.
2000 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
2002 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
2003 the new thunk_delta representation.
2004 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
2006 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
2007 (ipa_read_indirect_edge_info): Likewise.
2008 * lto-cgraph.c (output_edge_opt_summary): New function.
2009 (output_node_opt_summary): Call it on all outgoing edges.
2010 (input_edge_opt_summary): New function.
2011 (input_node_opt_summary): Call it on all outgoing edges.
2013 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
2016 * gcc.c (main): Don't check have_o when settting combine_inputs.
2018 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
2020 * regrename.c: Add general comment describing the pass.
2021 (struct du_head): Remove 'length' field.
2022 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
2023 (regrename_optimize): Do not sort chains. Rework comments, add others.
2024 Force renaming to the preferred class (if any) in the first pass and do
2025 not consider registers that belong to it in the second pass.
2026 (create_new_chain): Do not set 'length' field.
2027 (scan_rtx_reg): Likewise.
2029 2011-01-02 Jakub Jelinek <jakub@redhat.com>
2031 PR tree-optimization/47140
2032 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
2033 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
2036 PR rtl-optimization/47028
2037 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
2038 parm_birth_insn instead of at the beginning of first bb.
2040 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
2042 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
2043 Remove the word "see" before "@pxref".
2044 * doc/rtl.texi: Remove the word "see" before "@pxref".
2046 2011-01-01 Jan Hubicka <jh@suse.cz>
2048 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
2051 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
2054 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
2057 Copyright (C) 2011 Free Software Foundation, Inc.
2059 Copying and distribution of this file, with or without modification,
2060 are permitted in any medium without royalty provided the copyright
2061 notice and this notice are preserved.