1 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
3 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
4 sjlj_except_unwind_info.
6 2011-01-25 Richard Guenther <rguenther@suse.de>
8 PR tree-optimization/47426
9 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
10 visible functions results escape.
12 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15 * config/arm/arm.c (any_sibcall_uses_r3): New function.
16 (arm_get_frame_offsets): Use it.
18 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19 Jakub Jelinek <jakub@redhat.com>
21 PR tree-optimization/47271
22 * tree-if-conv.c (bb_postdominates_preds): New.
23 (if_convertible_bb_p): Call bb_postdominates_preds.
24 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
25 (predicate_scalar_phi): Call bb_postdominates_preds.
27 2011-01-25 Nick Clifton <nickc@redhat.com>
29 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
30 * config/rx/rx.c (rx_function_value): Likewise.
31 (rx_promote_function_mode): Likewise.
32 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
33 in order to make it legitimate.
34 * config/rx/rx.md (adddi3_internal): If the second operand is a
35 MEM make sure that the first operand is the same as the result
37 (addsi3_unspec): Delete.
38 (subdi3): Do not accept immediate operands.
39 (subdi3_internal): Likewise.
41 2011-01-25 Jeff Law <law@redhat.com>
43 PR rtl-optimization/37273
44 * ira-costs.c (scan_one_insn): Detect constants living in memory and
45 handle them like argument loads from stack slots. Do not double
46 count memory for memory constants and argument loads from stack slots.
48 2011-01-25 Jakub Jelinek <jakub@redhat.com>
50 PR tree-optimization/47427
51 PR tree-optimization/47428
52 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
53 coalesce if the new root var would be TREE_READONLY.
55 2011-01-25 Richard Guenther <rguenther@suse.de>
58 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
59 correct type for TBAA.
61 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
63 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
64 (close_phi_written_to_memory): Call for_each_index with
65 dr_indices_valid_in_loop.
67 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
69 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
70 when it is initialized.
72 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
74 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
75 call to graphite_find_data_references_in_stmt.
76 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
77 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
78 call to graphite_find_data_references_in_stmt.
79 (analyze_drs_in_stmts): Same.
80 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
81 in which the scalar analysis of indices is performed.
82 (create_data_ref): Same. Update call to dr_analyze_indices.
83 (find_data_references_in_stmt): Update call to create_data_ref.
84 (graphite_find_data_references_in_stmt): Same.
85 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
87 (create_data_ref): Same.
88 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
89 call to create_data_ref.
91 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
93 * graphite-sese-to-poly.c (build_poly_scop): Move
94 rewrite_commutative_reductions_out_of_ssa before
97 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
99 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
100 VAR_DECL, PARM_DECL, and RESULT_DECL.
102 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
104 * graphite-dependences.c (reduction_dr_1): Allow several reductions
106 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
107 that have already been marked as PBB_IS_REDUCTION.
109 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
111 * graphite-scop-detection.c (same_close_phi_node): New.
112 (remove_duplicate_close_phi): New.
113 (make_close_phi_nodes_unique): New.
114 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
116 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
118 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
119 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
120 of both data references to be the same.
122 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
124 * graphite-dependences.c (build_lexicographical_constraint): Remove the
126 (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
127 (dependence_polyhedron): Same.
128 (graphite_legal_transform_dr): Same.
129 (graphite_carried_dependence_level_k): Same.
130 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
131 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
133 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
135 * graphite-sese-to-poly.c
136 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
137 (close_phi_written_to_memory): New.
138 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
141 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
143 * doc/install.texi: Update the expected version number of PPL to 0.11.
144 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
145 #if PPL_VERSION_MINOR < 11.
147 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
149 * graphite-dependences.c: Include graphite-cloog-util.h.
150 (new_poly_ddr): Inlined into dependence_polyhedron.
151 (free_poly_ddr): Moved close by new_poly_ddr.
152 (dependence_polyhedron_1): Renamed dependence_polyhedron.
153 Early return NULL when ppl_powerset_is_empty returns true.
154 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
155 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
156 (graphite_legal_transform_dr): Call new_poly_ddr.
157 (graphite_carried_dependence_level_k): Same.
158 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
159 (dot_transformed_deps_stmt_1): Removed.
160 (dot_deps_stmt_1): Call dot_deps_stmt_2.
161 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
162 (dot_deps_1): Call dot_deps_2.
163 * Makefile.in (graphite-dependences.o): Add missing dependence on
164 graphite-cloog-util.h.
166 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
168 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
169 (build_lexicographical_constraint): Same.
170 (dependence_polyhedron_1): Same.
171 (graphite_legal_transform_dr): Same.
172 (graphite_carried_dependence_level_k): Same.
173 * graphite-ppl.c (ppl_powerset_is_empty): New.
174 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
175 * tree-data-ref.c (dump_data_reference): Print the basic block index.
177 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
179 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
180 the "a followed by b" relation and document it.
182 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
184 * graphite-dependences.c (build_lexicographical_constraint): Stop the
185 iteration when the bag of constraints is empty.
187 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
189 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
191 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
193 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
194 nest and two loop depths as parameters.
195 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
198 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
200 * graphite-dependences.c (print_pddr): Call
201 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
203 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
205 * graphite-ppl.c (debug_gmp_value): New.
206 * graphite-ppl.h (debug_gmp_value): Declared.
208 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
210 * doc/install.texi: Document availability of cloog-0.16.
212 2011-01-25 Vladimir Kargov <kargov@gmail.com>
214 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
215 invalid postdominance info.
217 2011-01-24 Jan Hubicka <jh@suse.cz>
220 * doc/extend.texi (weak pragma): Drop claim that it must
221 appear before definition.
222 * varasm.c (merge_weak, declare_weak): Only sanity check
223 that DECL is not output at a time it is declared weak.
225 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
227 * machmode.def: Fixed comments.
229 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
231 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
233 2011-01-24 Paul Koning <ni1d@arrl.net>
235 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
238 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
241 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
242 (block_info): Add scanned and prev.
243 (move_or_delete_vzeroupper_2): Return if the basic block
244 has been scanned and the upper 128bit state is unchanged
246 (move_or_delete_vzeroupper_1): Return true if the exit
248 (move_or_delete_vzeroupper): Visit basic blocks using the
249 work-list based algorithm based on vt_find_locations in
252 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
254 2011-01-24 Nick Clifton <nickc@redhat.com>
256 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
257 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
258 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
259 then define __v850e1__.
260 * doc/invoke.texi: Document -mv850es.
262 2011-01-24 Richard Henderson <rth@redhat.com>
264 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
265 compound unordered comparisons.
266 * config/rx/rx.c (rx_split_fp_compare): Remove.
267 * config/rx/rx-protos.h: Update.
268 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
269 (cbranchsf4): Don't call rx_split_fp_compare.
270 (*cbranchsf4): Use rx_split_cbranch.
271 (*cmpsf): Don't accept "i" constraint.
272 (*conditional_branch): Only valid after reload.
273 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
275 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
278 * config/rs6000/altivec.md (vector constant splitters): Add
279 support for creating vector single precision constants if -mvsx is
280 used and we would create the constant using Altivec primitives.
282 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
283 Richard Sandiford <rdsandiford@googlemail.com>
285 PR rtl-optimization/47166
286 * reload1.c (emit_reload_insns): Disable the spill_reg_store
287 mechanism for PRE_MODIFY and POST_MODIFY.
288 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
291 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
293 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
295 2011-01-22 Jan Hubicka <jh@suse.cz>
298 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
300 2011-01-22 Jan Hubicka <jh@suse.cz>
302 PR tree-optimization/43884
304 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
305 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
307 2011-01-22 Anatoly Sokolov <aesok@post.ru>
309 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
310 * config/s390/s390.c (s390_register_move_cost,
311 s390_memory_move_cost): New.
312 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
314 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
317 * except.c (sjlj_assign_call_site_values): Move setting the
318 crtl->uses_eh_lsda flag to ...
319 (sjlj_mark_call_sites): ... here.
320 (sjlj_emit_function_enter): Support NULL dispatch label.
321 (sjlj_build_landing_pads): In a function with no landing pads
322 that still has must-not-throw regions, generate code to register
323 a personality function with empty LSDA.
325 2011-01-21 Richard Henderson <rth@redhat.com>
327 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
329 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
331 * compare-elim.c: New file.
332 * Makefile.in (OBJS-common): Add it.
333 (compare-elim.o): New.
334 * common.opt (fcompare-elim): New.
335 * opts.c (default_options_table): Add OPT_fcompare_elim.
336 * tree-pass.h (pass_compare_elim_after_reload): New.
337 * passes.c (init_optimization_passes): Add it.
338 * recog.h: Protect against re-inclusion.
339 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
340 * doc/invoke.texi (-fcompare-elim): Document it.
341 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
342 * doc/tm.texi: Rebuild.
344 2011-01-22 Nick Clifton <nickc@redhat.com>
346 * config/rx/rx.md (cstoresf4): Pass comparison operator to
349 2011-01-22 Nick Clifton <nickc@redhat.com>
351 * config/rx/rx.md (UNSPEC_CONST): New.
352 (deallocate_and_return): Wrap the amount popped off the stack in
353 an UNSPEC_CONST in order to stop it being rejected by
355 (pop_and_return): Add a "(return)" rtx.
356 (call): Drop the immediate operand.
357 (call_internal): Likewise.
358 (call_value): Likewise.
359 (call_value_internal): Likewise.
360 (sibcall_internal): Likewise.
361 (sibcall_value_internal): Likewise.
362 (sibcall): Likewise. Generate an explicit call using
364 (sibcall_value): Likewise.
365 (mov<>): FAIL if a constant operand is not legitimate.
366 (addsi3_unpsec): New pattern.
368 * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
370 (ok_for_max_constant): New function.
371 (gen_safe_add): New function.
372 (rx_expand_prologue): Use gen_safe_add.
373 (rx_expand_epilogue): Likewise.
374 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
377 2011-01-21 Jeff Law <law@redhat.com>
379 PR tree-optimization/47053
380 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
381 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
382 statements are deleted.
383 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
384 is nonempty, then purge dead edges and cleanup the CFG.
386 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
390 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
392 * tree-dfa.c (create_var_ann): Mark variable as used.
394 2011-01-21 Jakub Jelinek <jakub@redhat.com>
397 * except.c (convert_to_eh_region_ranges): Emit queued no-region
398 notes from other section in hot/cold partitioning even if
399 last_action is -3. Increment call_site_base.
401 PR rtl-optimization/47366
402 * fwprop.c (forward_propagate_into): Return bool. If
403 any changes are made, -fnon-call-exceptions is used and
404 REG_EH_REGION note is present, call purge_dead_edges
405 and return true if it purged anything.
406 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
407 any EH edges were purged.
409 2011-01-21 Jeff Law <law@redhat.com>
411 PR rtl-optimization/41619
412 * caller-save.c (setup_save_areas): Break out code to determine
413 which hard regs are live across calls by examining the reload chains
414 so that it is always used.
415 Eliminate code which checked REG_N_CALLS_CROSSED.
417 2011-01-21 Jakub Jelinek <jakub@redhat.com>
419 PR tree-optimization/47355
420 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
421 NOP has non-debug uses beyond PHIs in new_bb.
423 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
426 * cfgexpand.c (account_used_vars_for_block): Only account vars
427 that are annotated as used.
428 (estimated_stack_frame_size): Don't set TREE_USED.
429 * tree-dfa.c (create_var_ann): Mark variable as used.
431 2011-01-21 Richard Guenther <rguenther@suse.de>
434 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
436 2011-01-21 Richard Guenther <rguenther@suse.de>
438 PR tree-optimization/47365
439 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
440 (vn_reference_lookup_pieces): Adjust.
441 (vn_reference_lookup): Likewise.
442 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
443 (vn_reference_lookup_3): Only look through kills if in
445 (vn_reference_lookup_pieces): Adjust.
446 (vn_reference_lookup): Likewise.
447 (visit_reference_op_load): Likewise.
448 (visit_reference_op_store): Likewise.
449 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
450 (compute_avail): Likewise.
451 (eliminate): Likewise.
453 2011-01-21 Jakub Jelinek <jakub@redhat.com>
455 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
456 DECL_IGNORED_P non-reg vars if they are used.
458 PR tree-optimization/47391
459 * varpool.c (const_value_known_p): Return false if
462 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
465 * config/i386/i386.c (ix86_local_alignment): Handle
466 case for va_list_type_node is nil.
467 (ix86_canonical_va_list_type): Likewise.
469 2011-01-21 Alan Modra <amodra@gmail.com>
471 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
472 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
474 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
476 * config/arm/arm.md (define_attr type): Rename f_load
477 and f_store to f_fpa_load and f_fpa_store. Update.
478 (write_conflict): Deal with rename fallout.
479 (*push_fp_multi): Likewise.
480 * config/arm/fpa.md (f_load): Use f_fpa_load.
481 (f_store): Use f_fpa_store.
482 (*movsf_fpa): Likewise.
483 (*movdf_fpa): Likewise.
484 (*movxf_fpa): Likewise.
485 (*thumb2_movsf_fpa): Likewise.
486 (*thumb2_movdf_fpa): Likewise.
487 (*thumb2_movxf_fpa): Likewise.
488 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
489 f_loadd and f_stored.
490 (*thumb2_movdi_vfp): Likewise.
491 (*thumb2_movsf_vfp): Fix attribute to f_loads.
492 (*thumb2_movsi_vfp): Likewise.
493 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
494 Use f_loads instead of f_load.
495 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
497 2011-01-20 Anatoly Sokolov <aesok@post.ru>
499 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
500 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
501 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
502 (xtensa_mode_dependent_address_p): New function.
503 (constantpool_address_p): Make static. Change return type to bool.
504 Change argument type to const_rtx. Use CONST_INT_P predicate.
506 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
509 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
511 2011-01-20 Jakub Jelinek <jakub@redhat.com>
514 * cfgexpand.c (expand_debug_expr): Instead of generating
515 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
518 2011-01-20 Richard Guenther <rguenther@suse.de>
521 * tree-inline.c (remap_gimple_op_r): Recurse manually for
522 the pointer operand of MEM_REFs.
524 2011-01-20 Jakub Jelinek <jakub@redhat.com>
526 PR tree-optimization/46130
527 * ipa-split.c (consider_split): If return_bb contains non-virtual
528 PHIs other than for retval or if split_function would not adjust it,
531 2011-01-20 Richard Guenther <rguenther@suse.de>
533 PR tree-optimization/47167
534 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
535 Revert previous change, only avoid enumeral type changes.
537 2011-01-19 Dodji Seketeli <dodji@redhat.com>
540 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
541 (gen_scheduled_generic_parms_dies): New functions.
542 (gen_struct_or_union_type_die): Schedule template parameters DIEs
543 generation for the end of CU compilation.
544 (dwarf2out_finish): Generate template parameters DIEs here.
546 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
549 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
550 debug bind stmt on merge edges.
552 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
556 * function.c (instantiate_expr): Instantiate incoming rtl of
557 implicit arguments, and recurse on VALUE_EXPRs.
558 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
559 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
561 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
563 * c-parser.c (c_parser_for_statement): Initialize
564 collection_expression.
566 2011-01-19 Joseph Myers <joseph@codesourcery.com>
568 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
570 2011-01-19 Joseph Myers <joseph@codesourcery.com>
572 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
573 (LINK_SHLIB_SPEC): Don't use %(link_path).
574 (SUBTARGET_EXTRA_SPECS): Remove link_path.
576 2011-01-19 Joseph Myers <joseph@codesourcery.com>
578 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
579 (NO_SHARED_LIB_SUPPORT): Remove.
580 (LINK_SHLIB_SPEC): Remove one conditional definition.
582 2011-01-19 Joseph Myers <joseph@codesourcery.com>
584 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
586 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
587 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
588 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
589 %{call_shared} and conditionals on these options not being passed.
590 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
593 2011-01-19 Jakub Jelinek <jakub@redhat.com>
595 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
598 * ipa-split.c: Spelling fixes.
600 2011-01-19 Richard Henderson <rth@redhat.com>
602 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
605 * longlong.h [__mn10300__] (count_leading_zeros): New.
606 [__mn10300__] (umul_ppmm, smul_ppmm): New.
607 [__mn10300__] (add_ssaaaa, subddmmss): New.
608 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
609 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
611 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
613 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
615 2011-01-19 Richard Henderson <rth@redhat.com>
617 * config/mn10300/mn10300.md (addsi3_flags): New.
618 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
619 (subsi3_flags, subc_internal, subdi3): New.
620 (subdi3_internal, *subdi3_degenerate): New.
621 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
623 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
624 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
625 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
626 * config/mn10300/mn10300-protos.h: Update.
627 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
628 (return_ret): Likewise. Rename from return_internal_regs.
629 (return_internal): Remove.
631 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
632 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
633 (mn10300_legitimate_constant_p): Likewise.
634 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
635 (mn10300_frame_size): New.
636 (mn10300_expand_prologue): Use it.
637 (mn10300_expand_epilogue): Likewise.
638 (mn10300_initial_offset): Likewise.
639 * config/mn10300/mn10300-protos.h: Update.
640 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
641 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
642 (prologue, epilogue, return_internal): Tidy output code.
643 (mn10300_store_multiple_operation, return): Likewise.
644 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
645 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
646 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
647 (load_pic, am33_load_pic): New.
648 (mn10300_load_pic0, mn10300_load_pic1): New.
650 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
651 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
652 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
653 (cc_flags_for_mode, cc_flags_for_code): New.
654 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
655 overflow flag is not valid. Validate that the flags we need
656 for the comparison are valid.
657 (mn10300_output_cmp): Remove.
658 (mn10300_output_add): New.
659 (mn10300_select_cc_mode): Use cc_flags_for_code.
660 (mn10300_split_cbranch): New.
661 (mn10300_match_ccmode): New.
662 (mn10300_split_and_operand_count): New.
663 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
665 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
666 (addsi3): ... here. Use mn10300_output_add.
667 (*addsi3_flags): New.
668 (*am33_subsi3, *mn10300_subsi3): Merge...
669 (subsi3): ... here. Use attribute isa.
670 (*subsi3_flags): New.
671 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
673 (*am33_andsi3, *mn10300_andsi3): Merge...
675 (*andsi3_flags): New.
676 (andsi3 splitters): New.
677 (*am33_iorsi3, *mn10300_iorsi3): Merge...
679 (*iorsi3_flags): New.
680 (*am33_xorsi3, *mn10300_xorsi3): Merge...
682 (*xorsi3_flags): New.
683 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
684 (one_cmplsi2): ... here.
685 (*one_cmplsi2_flags): New.
686 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
687 instead of "dax" in constraints. Use mn10300_split_cbranch.
688 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
689 use matching constraints to eliminate a self-comparison.
690 (*integer_conditional_branch): Rename from integer_conditional_branch.
691 Use int_mode_flags to match CC_REG.
692 (*cbranchsi4_btst, *btstsi): New.
693 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
694 mn10300_split_cbranch.
695 (*am33_cmpsf): Rename from am33_cmpsf.
696 (*float_conditional_branch): Rename from float_conditional_branch.
697 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
698 (zero_extendqisi2): ... here.
699 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
700 (zero_extendhisi2): ... here.
701 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
702 (extendqisi2): ... here.
703 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
704 (extendhisi2): ... here.
705 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
707 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
709 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
711 (consecutive add peephole): Remove.
712 * config/mn10300/predicates.md (label_ref_operand): New.
713 (int_mode_flags): New.
714 (CCZN_comparison_operator): New.
716 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
717 (throughput_42_latency_43): New reservation.
718 (mulsidi3, umulsidi3): New expanders.
719 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
720 the MDR register to allocation; separately allocate the low and
721 high parts of the DImode result.
722 (umulsidi3_internal): Similarly.
723 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
724 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
725 (udivsi3, umodsi3): Remove.
726 (udivmodsi4, divmodsi4): New expanders.
727 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
728 (*divmodsi4): Simiarly.
731 * config/mn10300/constraints.md ("z"): New constraint.
732 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
733 (FIXED_REGISTERS): Don't fix MDR.
734 (CALL_USED_REGSITERS): Reformat nicely.
735 (REG_ALLOC_ORDER): Add MDR.
736 (enum regclass): Add MDR_REGS.
737 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
738 (IRA_COVER_CLASSES): Add MDR_REGS.
739 (REGNO_REG_CLASS): Handle MDR_REG.
740 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
741 (mn10300_register_move_cost): Likewise.
742 * config/mn10300/mn10300.md (MDR_REG): New.
743 (*movsi_internal): Handle moves to/from MDR_REGS.
745 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
747 (mn10300_secondary_reload): Tidy combination reload classes.
748 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
749 addresses for AM33. Allow symbolic offsets for reg+imm.
750 (mn10300_regno_in_class_p): New.
751 (mn10300_legitimize_reload_address): New.
752 * config/mn10300/mn10300.h (enum reg_class): Remove
753 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
754 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
756 (REG_CLASS_NAMES): Update to match.
757 (REG_CLASS_CONTENTS): Likewise.
758 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
759 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
760 (REGNO_IN_RANGE_P): Remove.
761 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
762 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
763 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
764 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
765 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
766 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
767 (REGNO_GENERAL_P): New.
768 (HAVE_POST_MODIFY_DISP): New.
769 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
770 (LEGITIMIZE_RELOAD_ADDRESS): New.
771 * config/mn10300/mn10300-protos.h: Update.
773 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
774 DATA_REGS for AM33 stack-pointer destination.
775 (mn10300_preferred_output_reload_class): Likewise.
776 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
777 into a form appropriate for ...
778 (TARGET_SECONDARY_RELOAD): New.
779 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
780 * config/mn10300/mn10300-protos.h: Update.
781 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
782 reload_insi; use the "A" constraint for the scratch; handle AM33
783 moves of sp to non-address registers.
785 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
786 (*movqi_internal): ... here.
787 (*am33_movhi, *mn10300_movhi): Merge into...
788 (*movhi_internal): ... here.
789 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
790 as the source/destination of moves from/to SP.
791 (movsf): Only allow for AM33-2.
792 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
793 any integer constant constraint. Only allow for AM33-2. Tidy
794 all of the alternative outputs.
795 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
796 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
798 (udivsi3, umodsi3): New patterns for MN103 only.
800 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
802 * doc/tm.texi.in: Spell out that a lack of register class unions
804 * doc/tm.texi: Regenerate.
806 2011-01-19 Jakub Jelinek <jakub@redhat.com>
808 PR rtl-optimization/47337
809 * dce.c (check_argument_store): New function.
810 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
812 PR tree-optimization/47290
813 * tree-eh.c (infinite_empty_loop_p): New function.
814 (cleanup_empty_eh): Use it.
816 2011-01-18 Steve Ellcey <sje@cup.hp.com>
819 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
820 (a64_expand_widen_sum): Ditto.
821 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
822 (vec_extract_evenodd_help): Ditto.
823 (vec_extract_evenv4hi): Ditto.
824 (vec_extract_oddv4hi): Ditto.
825 (vec_extract_evenv2si): Ditto.
826 (vec_extract_oddv2si): Ditto.
827 (vec_extract_evenv2sf): Ditto.
828 (vec_extract_oddv2sf): Ditto.
829 (vec_pack_trunc_v4hi: Ditto.
830 (vec_pack_trunc_v2si): Ditto.
831 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
832 (vec_interleave_highv8qi): Ditto.
834 (vec_extract_oddv8qi): Ditto.
835 (vec_interleave_lowv4hi): Ditto.
836 (vec_interleave_highv4hi): Ditto.
837 (vec_interleave_lowv2si): Ditto.
838 (vec_interleave_highv2si): Ditto.
840 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
842 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
843 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
844 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
845 (pa_c_mode_for_suffix): New.
846 (TARGET_EXPAND_BUILTIN): Define.
847 (TARGET_C_MODE_FOR_SUFFIX): Define.
848 (pa_builtins): Define.
849 (pa_init_builtins): Register __float128 type and init new support
851 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
852 * config/pa/quadlib.c (_U_Qfcopysign): New.
854 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
857 * explow.c (allocate_dynamic_stack_space): Do not assume more than
858 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
861 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
863 PR tree-optimization/47179
864 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
865 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
867 2011-01-18 Richard Guenther <rguenther@suse.de>
869 PR rtl-optimization/47216
870 * emit-rtl.c: Include tree-flow.h.
871 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
872 of replicating it with different semantics.
873 * Makefile.in (emit-rtl.o): Adjust.
875 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
877 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
879 (cortex_a9_dp): Handle neon types correctly.
881 2011-01-18 Jakub Jelinek <jakub@redhat.com>
883 PR rtl-optimization/47299
884 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
885 subtarget. Use normal multiplication if both operands are
887 * expmed.c (expand_widening_mult): Don't try to optimize constant
888 multiplication if op0 has VOIDmode. Convert op1 constant to mode
891 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
893 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
894 spacing after 'e.g.', typos, comma, hyphenation.
896 2011-01-17 Richard Henderson <rth@redhat.com>
898 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
899 (rx_restricted_mem_operand): New.
900 (rx_shift_operand): Use register_operand.
901 (rx_source_operand, rx_compare_operand): Likewise.
902 * config/rx/rx.md (addsi3_flags): New expander.
903 (adddi3): Rewrite as expander.
904 (adc_internal, *adc_flags, adddi3_internal): New patterns.
905 (subsi3_flags): New expander.
906 (subdi3): Rewrite as expander.
907 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
909 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
910 (rx_init_builtins): Remove sat builtin.
911 (rx_expand_builtin): Likewise.
912 * config/rx/rx.md (ssaddsi3): New.
913 (*sat): Rename from sat. Represent the CC_REG input.
915 * config/rx/predicates.md (rshift_operator): New.
916 * config/rx/rx.c (rx_expand_insv): Remove.
917 * config/rx/rx-protos.h: Update.
918 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
919 operand to the canonical position.
920 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
921 (*bitclr, *bitclr_in_memory): Similarly.
922 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
923 (insv): Retain the zero_extract in the expansion.
925 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
926 (bswaphi2, bitinvert, revw): Likewise.
928 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
929 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
930 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
931 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
932 (bitset, bitset_in_memory): Likewise.
933 (bitinvert, bitinvert_in_memory): Likewise.
934 (bitclr, bitclr_in_memory): Likewise.
935 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
936 (rx_strend, rx_cmpstrn): Likewise.
937 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
938 (bitop peep2 patterns): Remove.
940 * config/rx/rx.c (rx_match_ccmode): New.
941 * config/rx/rx-protos.h: Update.
942 * config/rx/rx.md (abssi2): Clobber, don't set flags.
943 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
944 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
945 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
946 (fix_truncsfsi2, floatsisf2): Likewise.
947 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
948 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
949 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
950 (*subsi3_flags, *xorsi3_flags): New.
952 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
954 * config/rx/rx.c (rx_print_operand): Remove workaround for
955 unsplit comparison operations.
957 * config/rx/rx.md (movsicc): Split after reload.
958 (*movsicc): Merge *movsieq and *movsine via match_operator.
959 (*stcc): New pattern.
961 * config/rx/rx.c (rx_float_compare_mode): Remove.
962 * config/rx/rx.h (rx_float_compare_mode): Remove.
963 * config/rx/rx.md (cstoresi4): Split after reload.
964 (*sccc): New pattern.
966 * config/rx/predicates.md (label_ref_operand): New.
967 (rx_z_comparison_operator): New.
968 (rx_zs_comparison_operator): New.
969 (rx_fp_comparison_operator): New.
970 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
971 Validate that the flags are set properly for the comparison.
972 (rx_gen_cond_branch_template): Remove.
973 (rx_cc_modes_compatible): Remove.
974 (mode_from_flags): New.
975 (flags_from_code): Rename from flags_needed_for_conditional.
976 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
977 (rx_select_cc_mode): Likewise.
978 (rx_split_fp_compare): New.
979 (rx_split_cbranch): New.
980 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
981 (*cbranchsi4): Use match_operator and rx_split_cbranch.
982 (*cbranchsf4): Similarly.
983 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
984 match_operator and rx_split_cbranch.
985 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
986 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
987 (*cmpsi): Rename from cmpsi.
988 (*tstsi): Rename from tstsi.
989 (*cmpsf): Rename from cmpsf; use CC_Fmode.
990 (*conditional_branch): Rename from conditional_branch.
991 (*reveresed_conditional_branch): Remove.
992 (b<code>): Remove expander.
993 * config/rx/rx-protos.h: Update.
995 * config/rx/rx.c (rx_compare_redundant): Remove.
996 * config/rx/rx.md (cmpsi): Don't use it.
997 * config/rx/rx-protos.h: Update.
999 * config/rx/rx-modes.def (CC_F): New mode.
1000 * config/rx/rx.c (rx_select_cc_mode): New.
1001 * config/rx/rx.h (SELECT_CC_MODE): Use it.
1002 * config/rx/rx-protos.h: Update.
1004 2011-01-17 Richard Henderson <rth@redhat.com>
1006 * except.c (dump_eh_tree): Fix stray ; after for statement.
1008 2011-01-17 Richard Guenther <rguenther@suse.de>
1010 PR tree-optimization/47313
1011 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
1012 handling before copying the body. Properly deal with
1013 by-reference result in SSA form.
1015 2011-01-17 Ian Lance Taylor <iant@google.com>
1018 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
1019 (struct_value_alias_set): Don't define.
1020 (sparc_option_override): Don't set sparc_sr_alias_set and
1021 struct_value_alias_set.
1022 (save_or_restore_regs): Use gen_frame_mem rather than calling
1024 (sparc_struct_value_rtx): Likewise.
1026 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
1029 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
1031 (_mm_maskstore_pd): Likewise.
1032 (_mm_maskload_ps): Likewise.
1033 (_mm_maskstore_ps): Likewise.
1034 (_mm256_maskload_pd): Change mask to __m256i.
1035 (_mm256_maskstore_pd): Likewise.
1036 (_mm256_maskload_ps): Likewise.
1037 (_mm256_maskstore_ps): Likewise.
1039 * config/i386/i386-builtin-types.def: Updated.
1040 (ix86_expand_special_args_builtin): Likewise.
1042 * config/i386/i386.c (bdesc_special_args): Update
1043 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
1044 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
1045 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
1046 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
1048 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
1049 Use <avxpermvecmode> on mask register.
1050 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
1052 2011-01-17 Olivier Hainque <hainque@adacore.com>
1053 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1054 Eric Botcazou <ebotcazou@adacore.com>
1057 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
1058 if <= USHRT_MAX in 32-bit mode.
1060 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1062 * doc/install.texi (Configuration, Specific): Wrap long
1063 lines in examples. Allow line wrapping in long options
1064 and URLs where beneficial for PDF output.
1066 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
1068 * config/mips/mips.c (mips_classify_symbol): Don't return
1069 SYMBOL_PC_RELATIVE for nonlocal labels.
1071 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
1073 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
1075 2011-01-15 Jan Hubicka <jh@suse.cz>
1077 PR tree-optimization/47276
1078 * ipa.c (function_and_variable_visibility): Do not try to mark alias
1079 declarations as needed.
1081 2011-01-15 Martin Jambor <mjambor@suse.cz>
1083 * common.opt (fdevirtualize): New flag.
1084 * doc/invoke.texi (Option Summary): Document it.
1085 * opts.c (default_options_table): Add devirtualize flag.
1086 * ipa-prop.c (detect_type_change): Return immediately if
1087 devirtualize flag is not set.
1088 (detect_type_change_ssa): Likewise.
1089 (compute_known_type_jump_func): Likewise.
1090 (ipa_analyze_virtual_call_uses): Likewise.
1092 2011-01-14 Martin Jambor <mjambor@suse.cz>
1094 PR tree-optimization/45934
1095 PR tree-optimization/46302
1096 * ipa-prop.c (type_change_info): New type.
1097 (stmt_may_be_vtbl_ptr_store): New function.
1098 (check_stmt_for_type_change): Likewise.
1099 (detect_type_change): Likewise.
1100 (detect_type_change_ssa): Likewise.
1101 (compute_complex_assign_jump_func): Check for dynamic type change.
1102 (compute_complex_ancestor_jump_func): Likewise.
1103 (compute_known_type_jump_func): Likewise.
1104 (compute_scalar_jump_functions): Likewise.
1105 (ipa_analyze_virtual_call_uses): Likewise.
1106 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
1108 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1110 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
1111 * config/i386/i386.opt (msse5): New Alias.
1113 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1115 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
1116 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1117 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1118 * config/sparc/sparc.h (CC1_SPEC): Likewise.
1120 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1122 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
1124 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1125 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1126 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
1127 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
1129 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
1131 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1133 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
1136 2011-01-14 Mike Stump <mikestump@comcast.net>
1138 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
1139 * config/fr30/fr30.md: Likweise
1140 (movsi_push): Likewise.
1141 (movsi_pop): Likewise.
1142 (enter_func): Likewise.
1143 * config/moxie/moxie.md (movsi_push): Likewise.
1144 (movsi_pop): Likewise.
1146 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1148 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
1149 %{no_archive} %{exact_version}.
1150 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
1151 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
1152 %{no_archive} %{exact_version}.
1153 * config/mips/openbsd.h (LINK_SPEC): Likewise.
1154 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
1155 * config/mips/vxworks.h: Likewise.
1157 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1159 * config/microblaze/microblaze.h (ASM_SPEC): Remove
1162 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1164 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
1165 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
1167 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1169 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
1172 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1174 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
1176 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
1177 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
1179 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
1180 Don't handle -shlib.
1182 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1184 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
1185 (CC1_SPEC): Don't handle -profile.
1187 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1189 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
1190 * config/mips/mips.h (CC1_SPEC): Likewise.
1192 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1194 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
1195 * config/mips/mips.h (CC1_SPEC): Likewise.
1197 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1199 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
1200 * config/m32r/linux.h (LINK_SPEC): Likewise.
1201 * config/mips/linux.h (LINK_SPEC): Likewise.
1202 * config/mips/linux64.h (LINK_SPEC): Likewise.
1203 * config/sparc/linux.h (LINK_SPEC): Likewise.
1204 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1205 LINK_SPEC): Likewise.
1206 * config/xtensa/linux.h (LINK_SPEC): Likewise.
1208 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1210 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
1212 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1214 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1216 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
1217 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
1219 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1221 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
1223 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1225 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
1226 supports -Bstatic/-Bdynamic.
1227 * configure: Regenerate.
1229 2011-01-14 Jan Hubicka <jh@suse.cz>
1230 Jack Howarth <howarth@bromo.med.uc.edu>
1233 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
1234 when checking debug_info_level. Test write_symbols instead of
1235 debug_hooks->var_location when setting flag_var_tracking_uninit.
1237 2011-01-14 Richard Guenther <rguenther@suse.de>
1239 PR tree-optimization/47179
1240 * target.def (ref_may_alias_errno): New target hook.
1241 * targhooks.h (default_ref_may_alias_errno): Declare.
1242 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
1243 (default_ref_may_alias_errno): New function.
1244 * target.h (struct ao_ref_s): Declare.
1245 * tree-ssa-alias.c: Include target.h.
1246 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
1247 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
1248 (targhooks.o): Likewise.
1249 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
1250 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
1252 2011-01-14 Richard Guenther <rguenther@suse.de>
1254 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
1256 2011-01-14 Richard Guenther <rguenther@suse.de>
1258 PR tree-optimization/47280
1259 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
1261 (tree_ssa_forward_propagate_single_use_vars): Deal with
1262 CFG changes from associate_plusminus.
1264 2011-01-14 Richard Guenther <rguenther@suse.de>
1268 2011-01-11 Richard Guenther <rguenther@suse.de>
1270 PR tree-optimization/46076
1271 * tree-ssa.c (useless_type_conversion_p): Conversions from
1272 unprototyped to empty argument list function types are useless.
1274 2011-01-14 Richard Guenther <rguenther@suse.de>
1276 PR tree-optimization/47286
1277 * tree-ssa-structalias.c (new_var_info): Register variables are global.
1279 2011-01-14 Martin Jambor <mjambor@suse.cz>
1282 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
1284 2011-01-13 Anatoly Sokolov <aesok@post.ru>
1286 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
1287 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1288 * config/xtensa/xtensa.c (xtensa_libcall_value,
1289 xtensa_function_value_regno_p): New functions.
1290 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1292 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
1295 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
1297 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
1298 New function prototype.
1299 * config/i386/winnt.c (i386_pe_assemble_visibility):
1300 Warn only if attribute was specified by user.
1302 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1305 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
1307 (floatunsdidf2_fcfidu): Ditto.
1309 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1311 * config/s390/s390.c (print_operand_address): Replace 'error' with
1312 'output_operand_lossage'.
1313 (print_operand): Likewise.
1315 2011-01-13 Jeff Law <law@redhat.com>
1317 PR rtl-optimization/39077
1318 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
1319 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
1320 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
1321 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
1322 * gcse.c (prune_insertions_deletions): New function.
1323 (compute_pre_data): Use it.
1325 2011-01-13 Dodji Seketeli <dodji@redhat.com>
1328 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
1330 (prune_unused_types_mark): Use it.
1332 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
1334 PR rtl-optimization/45352
1335 * sel-sched.c: Update copyright years.
1336 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1337 in the advancing loop when we have issued issue_rate insns.
1339 2011-01-12 Richard Henderson <rth@redhat.com>
1341 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
1342 (TARGET_MD_ASM_CLOBBERS): New.
1344 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
1345 (TARGET_DELEGITIMIZE_ADDRESS): New.
1347 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
1348 (clzsi2, *bsch): New patterns.
1350 * config/mn10300/mn10300.md (INT): New mode iterator.
1351 (*mov<INT>_clr): New pattern, and peep2 to generate it.
1353 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
1354 flag_split_wide_types.
1356 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
1357 (mn10300_trampoline_init): Rewrite without a template, an immediate
1358 load and a direct branch.
1359 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
1361 2011-01-12 Anatoly Sokolov <aesok@post.ru>
1363 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1364 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
1365 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
1366 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1368 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
1371 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
1374 2011-01-12 Jan Hubicka <jh@suse.cz>
1377 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
1378 (PLUGIN_COND_CLOSE): New macro.
1379 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
1381 2011-01-12 Richard Guenther <rguenther@suse.de>
1384 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
1385 register variables in a MEM_REF.
1387 2011-01-12 Joseph Myers <joseph@codesourcery.com>
1389 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
1390 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
1391 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
1392 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1393 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1394 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
1395 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
1396 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
1397 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
1398 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
1399 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
1400 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
1401 * config/gnu-user.h: New. Copied from linux.h.
1402 (LINUX_TARGET_STARTFILE_SPEC): Rename to
1403 GNU_USER_TARGET_STARTFILE_SPEC.
1404 (LINUX_TARGET_ENDFILE_SPEC): Rename to
1405 GNU_USER_TARGET_ENDFILE_SPEC.
1406 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
1407 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
1408 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
1409 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
1410 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
1411 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
1412 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
1413 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
1414 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
1415 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
1416 * config/arm/linux-eabi.h (CC1_SPEC): Use
1417 GNU_USER_TARGET_CC1_SPEC.
1418 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
1419 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
1420 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
1421 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
1422 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
1423 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
1424 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
1425 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
1427 2011-01-12 Richard Guenther <rguenther@suse.de>
1430 * doc/invoke.texi (ffast-math): Document it is turned on
1433 2011-01-12 Jan Hubicka <jh@suse.cz>
1435 PR tree-optimization/47233
1436 * opts.c (common_handle_option): Disable ipa-reference with profile
1439 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1441 * c-parser.c (c_parser_objc_at_property_declaration): Improved
1444 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1446 * c-parser.c (c_lex_one_token): Updated and reindented some
1447 comments. No changes in code.
1449 2011-01-11 Ian Lance Taylor <iant@google.com>
1451 * godump.c (go_output_var): Don't output the variable if there is
1452 already a type with the same name.
1454 2011-01-11 Ian Lance Taylor <iant@google.com>
1456 * godump.c (go_format_type): Don't generate float80.
1458 2011-01-11 Richard Henderson <rth@redhat.com>
1460 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
1461 declaration. Rewrite for both speed and size.
1462 (mn10300_address_cost_1): Remove.
1463 (mn10300_register_move_cost): New.
1464 (mn10300_memory_move_cost): New.
1465 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
1466 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
1467 extensions, shifts, BSWAP, CLZ.
1468 (mn10300_wide_const_load_uses_clr): Remove.
1469 (TARGET_REGISTER_MOVE_COST): New.
1470 (TARGET_MEMORY_MOVE_COST): New.
1471 * config/mn10300/mn10300-protos.h: Update.
1472 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
1474 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
1475 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
1476 * config/mn10300/mn10300-protos.h: Update.
1477 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
1478 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
1479 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
1480 (*test_int_bitfield, *test_byte_bitfield): Remove.
1481 (*bit_test, *subreg_bit_test): Remove.
1482 * config/mn10300/predicates.md (const_8bit_operand): Remove.
1484 * config/mn10300/constraints.md ("c"): Rename from "A".
1485 ("A", "D"): New constraint letters.
1486 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
1487 (fmssf4, fnmasf4, fnmssf4): Likewise.
1489 * config/mn10300/mn10300.md (isa): New attribute.
1490 (enabled): New attribute.
1492 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
1493 (abssf2, negsf2): Define only for hardware fp.
1494 (sqrtsf2): Reformat.
1495 (addsf3, subsf3, mulsf3): Merge expander and insn.
1497 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
1498 (DEBUGGER_AUTO_OFFSET): Remove.
1499 (DEBUGGER_ARG_OFFSET): Remove.
1501 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
1502 Emit register stores with the same offsets as the hardware.
1503 (mn10300_store_multiple_operation): Don't check that the register
1504 save offsets are monotonic.
1505 * config/mn10300/mn10300-protos.h: Update.
1507 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
1509 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
1510 in terms of the value on the stack, not the MDR register.
1512 2011-01-11 Jan Hubicka <jh@suse.cz>
1516 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
1517 (symbol_alias_set_destroy, symbol_alias_set_contains,
1518 propagate_aliases_backward): Declare.
1519 * lto-streamer-out.c (struct sets): New sturcture.
1520 (trivally_defined_alias): New function.
1521 (output_alias_pair_p): Rewrite.
1522 (output_unreferenced_globals): Fix output of alias pairs.
1523 (produce_symtab): Likewise.
1524 * ipa.c (function_and_variable_visibility): Set weak alias destination
1526 * varasm.c (symbol_alias_set_t): Remove.
1527 (symbol_alias_set_destroy): Export.
1528 (propagate_aliases_forward, propagate_aliases_backward): New functions
1530 (compute_visible_aliases): ... this one; remove.
1531 (trivially_visible_alias): New
1532 (trivially_defined_alias): New.
1533 (remove_unreachable_alias_pairs): Rewrite.
1534 (finish_aliases_1): Reorganize code checking if alias is defined.
1535 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
1538 2011-01-11 Richard Guenther <rguenther@suse.de>
1540 PR tree-optimization/46076
1541 * tree-ssa.c (useless_type_conversion_p): Conversions from
1542 unprototyped to empty argument list function types are useless.
1544 2011-01-11 Richard Guenther <rguenther@suse.de>
1547 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
1548 volatile MEMs as MEM_READONLY_P.
1550 2011-01-11 Richard Guenther <rguenther@suse.de>
1552 PR tree-optimization/47239
1553 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
1555 2011-01-11 Jeff Law <law@redhat.com>
1557 PR tree-optimization/47086
1558 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
1559 IVs from statements that might throw.
1561 2011-01-10 Jan Hubicka <jh@suse.cz>
1564 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
1566 2011-01-10 Jan Hubicka <jh@suse.cz>
1569 * profile.c (read_profile_edge_counts): Ignore profile inconistency
1570 when correcting profile.
1572 2011-01-10 Jan Hubicka <jh@suse.cz>
1575 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
1577 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
1578 Restore DECL_FINI_PRIORITY.
1580 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1582 * doc/gimple.texi: Fix quoting of multi-word return values in
1583 @deftypefn statements. Ensure presence of return value. Wrap
1584 overlong @deftypefn lines.
1585 (is_gimple_operand, is_gimple_min_invariant_address): Remove
1586 descriptions of removed functions.
1587 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
1588 of multi-word return value in @deftypefn statement.
1590 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1592 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
1593 (Conditional Expressions, Logical Operators)
1594 (Statement and operand traversals): Do not indent smallexample
1595 code. Fix duplicate function argument in example.
1597 2011-01-10 Jeff Law <law@redhat.com>
1599 PR tree-optimization/47141
1600 * ipa-split.c (split_function): Handle case where we are
1601 returning a value and the return block has a virtual operand phi.
1603 2011-01-10 Jan Hubicka <jh@suse.cz>
1605 PR tree-optimization/47234
1606 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
1607 (pass_feedback_split_functions): Declare.
1608 * passes.c (init_optimization_passes): Add ipa-split as subpass of
1610 * ipa-split.c (gate_split_functions): Update comments; disable
1611 split-functions for profile_arc_flag and branch_probabilities.
1612 (gate_feedback_split_functions): New function.
1613 (execute_feedback_split_functions): New function.
1614 (pass_feedback_split_functions): New global var.
1616 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
1619 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
1620 calling gimple_call_set_cannot_inline.
1622 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
1624 * config/darwin-sections.def: Remove unused section.
1626 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
1629 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
1631 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
1634 * c-parser.c (c_parser_declaration_or_fndef): Improved
1637 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
1639 * config/i386/winnt.c (i386_pe_start_function): Make sure
1640 to switch back to function's section.
1642 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
1646 * plugin.c: Move include of dlfcn.h from here...
1647 * system.h: ... to here.
1649 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1651 * doc/cpp.texi (C++ Named Operators): Fix markup for header
1653 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
1654 two extra empty pages in PDF output.
1656 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
1659 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
1660 for error recovery purposes behave as if it was not specified so
1661 that the default type is usd.
1663 2011-01-07 Jan Hubicka <jh@suse.cz>
1665 PR tree-optmization/46469
1666 * ipa.c (function_and_variable_visibility): Clear needed flags on
1667 nodes with external decls; handle weakrefs merging correctly.
1669 2011-01-07 Joseph Myers <joseph@codesourcery.com>
1671 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
1674 2011-01-07 Jan Hubicka <jh@suse.cz>
1676 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
1677 and no longer claim that gold is required for linker plugin.
1678 * configure: Regenerate.
1679 * gcc.c (PLUGIN_COND): New macro.
1680 (LINK_COMMAND_SPEC): Use it.
1681 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
1682 * config.in (HAVE_LTO_PLUGIN): New.
1683 * configure.ac (--with-lto-plugin): New parameter; autodetect
1686 2011-01-07 Jan Hubicka <jh@suse.cz>
1688 PR tree-optimization/46367
1689 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
1690 when we can update original.
1691 (cgraph_mark_inline_edge): Sanity check.
1692 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
1694 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1696 * config/spu/spu.h (ASM_COMMENT_START): Define.
1698 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
1702 (SWITCH_KEEP_FOR_GCC): Likewise.
1703 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
1704 (do_spec_1): Handle "%>".
1706 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
1708 2011-01-07 Jakub Jelinek <jakub@redhat.com>
1711 * config/i386/i386.c (ix86_delegitimize_address): If
1712 simplify_gen_subreg fails, return orig_x.
1715 * value-prof.c (gimple_stringop_fixed_value): Handle
1716 lhs of the call properly.
1718 2011-01-07 Jan Hubicka <jh@suse.cz>
1721 * lto-opt.c (lto_reissue_options): Set flag_shlib.
1723 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1725 * target.def (function_switched_text_sections): New hook.
1726 * doc/tm.texi: Regenerated.
1727 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1728 * final.c (default_function_switched_text_sections): New.
1729 (final_scan_insn): Call function_switched_text_sections when a
1730 mid-function section change occurs.
1731 * output.h (default_function_switched_text_sections): Declare.
1732 * config/darwin-protos.h (darwin_function_switched_text_sections):
1734 * config/darwin.c (darwin_function_switched_text_sections): New.
1735 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1737 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1739 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
1740 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
1741 the secondary code fragment when outputting for DWARF == 2.
1743 2011-01-07 Anatoly Sokolov <aesok@post.ru>
1745 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1746 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
1748 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
1749 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1751 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
1754 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
1755 when it is not empty.
1757 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
1760 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1761 (case ${target}): Add btver1.
1762 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1763 -march=native recognize btver1 processors.
1764 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1765 btver1 def_and_undef
1766 * config/i386/i386.c (struct processor_costs btver1_cost): New
1768 (m_BTVER1): New definition.
1769 (m_AMD_MULTIPLE): Includes m_BTVER1.
1770 (initial_ix86_tune_features): Add btver1 tune.
1771 (processor_target_table): Add btver1 entry.
1772 (static const char *const cpu_names): Add btver1 entry.
1773 (software_prefetching_beneficial_p): Add btver1.
1774 (ix86_option_override_internal): Add btver1 instruction sets.
1775 (ix86_issue_rate): Add btver1.
1776 (ix86_adjust_cost): Add btver1.
1777 * config/i386/i386.h (TARGET_BTVER1): New definition.
1778 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
1779 (enum processor_type): Add PROCESSOR_BTVER1.
1780 * config/i386/i386.md (define_attr "cpu"): Add btver1.
1782 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1785 * config/i386/i386.c (legitimize_tls_address)
1786 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
1787 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
1788 (tls_initial_exec_64_sun): New pattern.
1790 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
1792 * doc/invoke.texi (Overall Options): Improve wording and markup
1793 of the description of -wrapper.
1795 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1797 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
1798 rdynamic, threads): New Driver options.
1800 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1803 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
1804 if coming from .tdata.
1805 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1807 2011-01-06 Jan Hubicka <jh@suse.cz>
1810 * collect2.c (main): Do not enable LTOmode when plugin is active.
1812 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1815 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
1816 --version output if supported.
1817 * configure: Regenerate.
1819 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1821 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
1824 2011-01-06 Jakub Jelinek <jakub@redhat.com>
1827 * c-convert.c (convert): When converting a complex expression
1828 other than COMPLEX_EXPR to a different complex type, ensure
1829 c_save_expr is called instead of save_expr, unless in_late_binary_op.
1830 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
1831 when converting COMPLEX_TYPE.
1833 2011-01-06 Ira Rosen <irar@il.ibm.com>
1835 PR tree-optimization/47139
1836 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
1837 only the last reduction value is used outside the loop. Update
1840 2011-01-05 Joseph Myers <joseph@codesourcery.com>
1842 * config/rtems.opt: New.
1843 * config.gcc (*-*-rtems*): Use rtems.opt.
1845 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
1847 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
1848 processors do not support 3DNow instructions.
1850 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1852 * config/spu/spu.c (spu_option_override): Set parameter
1853 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
1855 2011-01-05 Jan Hubicka <jh@suse.cz>
1857 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
1858 at the command line.
1860 2011-01-05 Martin Jambor <mjambor@suse.cz>
1863 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
1864 deltas on streamed outgoing edges.
1865 (output_node_opt_summary): Output info for outgoing edges only when
1866 the node is in new parameter set.
1867 (output_cgraph_opt_summary): New parameter set, passed to the two
1868 aforementioned functions. Update its forward declaration and its
1871 2011-01-05 Tom Tromey <tromey@redhat.com>
1873 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
1874 operator to c_finish_omp_atomic.
1875 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
1876 (build_unary_op): Update.
1877 (build_modify_expr): Update.
1878 (build_asm_expr): Update.
1880 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1882 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
1883 newly inserted insns.
1885 (spu_emit_branch_hint): Likewise.
1886 (insert_hbrp_for_ilb_runout): Likewise.
1887 (spu_machine_dependent_reorg): Call df_finish_pass after
1888 schedule_insns returns.
1890 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1892 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
1894 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
1896 PR tree-optimization/47005
1897 * tree-sra.c (struct access): Add 'non_addressable' bit.
1898 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
1899 (decide_one_param_reduction): Return 0 if the parameter is passed by
1900 reference and one of the accesses in the group is non_addressable.
1902 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1904 PR tree-optimization/47056
1905 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
1906 (mark_load): Likewise. Handle FUNCTION_DECL specially.
1907 (mark_store): Likewise. Pass STMT to ipa_record_reference.
1909 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1911 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
1912 initializer. Skip view conversions from aggregate types.
1914 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
1917 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
1919 2011-01-04 Philipp Thomas <pth@suse.de>
1921 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
1924 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1926 * function.c (thread_prologue_and_epilogue_insns): Do not crash
1927 on empty epilogue sequences.
1929 2011-01-04 Joseph Myers <joseph@codesourcery.com>
1931 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
1932 non-static): New Driver options.
1934 2011-01-04 Jie Zhang <jie@codesourcery.com>
1937 * gcc.c (default_compilers[]): Set combinable field to 0
1938 for all assembly languages.
1940 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
1942 * config/mips/loongson3a.md: New file.
1943 * config/mips/mips.md: Include loongson3a.md.
1944 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
1947 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
1950 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
1951 instead of convert_memory_address_addr_space on the base expression.
1953 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1955 * config/spu/spu.c (spu_option_override): Update error text
1956 for bad -march= / -mtune= values.
1958 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1960 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
1961 if branch-hint optimization will be performed.
1963 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1965 PR tree-optimization/47148
1966 * ipa-split.c (split_function): Convert arguments to
1967 DECL_ARG_TYPE if possible.
1969 PR tree-optimization/47155
1970 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
1973 PR rtl-optimization/47157
1974 * combine.c (try_combine): If undobuf.other_insn becomes
1975 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
1976 and set *new_direct_jump_p too.
1978 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
1980 PR tree-optimization/47021
1981 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
1983 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1985 * gcc.c (process_command): Update copyright notice dates.
1986 * gcov.c (print_version): Likewise.
1987 * gcov-dump.c (print_version): Likewise.
1988 * mips-tfile.c (main): Likewise.
1989 * mips-tdump.c (main): Likewise.
1991 2011-01-03 Martin Jambor <mjambor@suse.cz>
1993 PR tree-optimization/46801
1994 * tree-sra.c (type_internals_preclude_sra_p): Check whether
1995 aggregate fields start at byte boundary instead of the bit-field flag.
1997 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
2000 * gcc.c (main): Revert revision 168407.
2002 2011-01-03 Martin Jambor <mjambor@suse.cz>
2004 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
2006 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2008 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
2009 vector optab to expand vector/scalar shift, update gimple to vector.
2011 2011-01-03 Martin Jambor <mjambor@suse.cz>
2013 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
2016 2011-01-03 Martin Jambor <mjambor@suse.cz>
2018 PR tree-optimization/46984
2019 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
2021 (cgraph_create_indirect_edge): Fixed line length.
2022 (cgraph_indirect_call_info): Declare.
2023 (cgraph_make_edge_direct) Update declaration.
2024 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
2025 (cgraph_create_indirect_edge): Use it.
2026 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
2028 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
2029 the new thunk_delta representation.
2030 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
2032 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
2033 (ipa_read_indirect_edge_info): Likewise.
2034 * lto-cgraph.c (output_edge_opt_summary): New function.
2035 (output_node_opt_summary): Call it on all outgoing edges.
2036 (input_edge_opt_summary): New function.
2037 (input_node_opt_summary): Call it on all outgoing edges.
2039 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
2042 * gcc.c (main): Don't check have_o when settting combine_inputs.
2044 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
2046 * regrename.c: Add general comment describing the pass.
2047 (struct du_head): Remove 'length' field.
2048 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
2049 (regrename_optimize): Do not sort chains. Rework comments, add others.
2050 Force renaming to the preferred class (if any) in the first pass and do
2051 not consider registers that belong to it in the second pass.
2052 (create_new_chain): Do not set 'length' field.
2053 (scan_rtx_reg): Likewise.
2055 2011-01-02 Jakub Jelinek <jakub@redhat.com>
2057 PR tree-optimization/47140
2058 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
2059 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
2062 PR rtl-optimization/47028
2063 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
2064 parm_birth_insn instead of at the beginning of first bb.
2066 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
2068 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
2069 Remove the word "see" before "@pxref".
2070 * doc/rtl.texi: Remove the word "see" before "@pxref".
2072 2011-01-01 Jan Hubicka <jh@suse.cz>
2074 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
2077 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
2080 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
2083 Copyright (C) 2011 Free Software Foundation, Inc.
2085 Copying and distribution of this file, with or without modification,
2086 are permitted in any medium without royalty provided the copyright
2087 notice and this notice are preserved.