1 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
3 * graphite-dependences.c (build_lexicographical_constraint): Remove the
5 (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
6 (dependence_polyhedron): Same.
7 (graphite_legal_transform_dr): Same.
8 (graphite_carried_dependence_level_k): Same.
9 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
10 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14 * graphite-sese-to-poly.c
15 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
16 (close_phi_written_to_memory): New.
17 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
20 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
22 * doc/install.texi: Update the expected version number of PPL to 0.11.
23 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
24 #if PPL_VERSION_MINOR < 11.
26 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
28 * graphite-dependences.c: Include graphite-cloog-util.h.
29 (new_poly_ddr): Inlined into dependence_polyhedron.
30 (free_poly_ddr): Moved close by new_poly_ddr.
31 (dependence_polyhedron_1): Renamed dependence_polyhedron.
32 Early return NULL when ppl_powerset_is_empty returns true.
33 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
34 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
35 (graphite_legal_transform_dr): Call new_poly_ddr.
36 (graphite_carried_dependence_level_k): Same.
37 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
38 (dot_transformed_deps_stmt_1): Removed.
39 (dot_deps_stmt_1): Call dot_deps_stmt_2.
40 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
41 (dot_deps_1): Call dot_deps_2.
42 * Makefile.in (graphite-dependences.o): Add missing dependence on
43 graphite-cloog-util.h.
45 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
47 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
48 (build_lexicographical_constraint): Same.
49 (dependence_polyhedron_1): Same.
50 (graphite_legal_transform_dr): Same.
51 (graphite_carried_dependence_level_k): Same.
52 * graphite-ppl.c (ppl_powerset_is_empty): New.
53 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
54 * tree-data-ref.c (dump_data_reference): Print the basic block index.
56 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
58 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
59 the "a followed by b" relation and document it.
61 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
63 * graphite-dependences.c (build_lexicographical_constraint): Stop the
64 iteration when the bag of constraints is empty.
66 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
68 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
70 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
72 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
73 nest and two loop depths as parameters.
74 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
77 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
79 * graphite-dependences.c (print_pddr): Call
80 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
82 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
84 * graphite-ppl.c (debug_gmp_value): New.
85 * graphite-ppl.h (debug_gmp_value): Declared.
87 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
89 * doc/install.texi: Document availability of cloog-0.16.
91 2011-01-25 Vladimir Kargov <kargov@gmail.com>
93 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
94 invalid postdominance info.
96 2011-01-24 Jan Hubicka <jh@suse.cz>
99 * doc/extend.texi (weak pragma): Drop claim that it must
100 appear before definition.
101 * varasm.c (merge_weak, declare_weak): Only sanity check
102 that DECL is not output at a time it is declared weak.
104 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
106 * machmode.def: Fixed comments.
108 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
110 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
112 2011-01-24 Paul Koning <ni1d@arrl.net>
114 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
117 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
120 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
121 (block_info): Add scanned and prev.
122 (move_or_delete_vzeroupper_2): Return if the basic block
123 has been scanned and the upper 128bit state is unchanged
125 (move_or_delete_vzeroupper_1): Return true if the exit
127 (move_or_delete_vzeroupper): Visit basic blocks using the
128 work-list based algorithm based on vt_find_locations in
131 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
133 2011-01-24 Nick Clifton <nickc@redhat.com>
135 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
136 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
137 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
138 then define __v850e1__.
139 * doc/invoke.texi: Document -mv850es.
141 2011-01-24 Richard Henderson <rth@redhat.com>
143 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
144 compound unordered comparisons.
145 * config/rx/rx.c (rx_split_fp_compare): Remove.
146 * config/rx/rx-protos.h: Update.
147 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
148 (cbranchsf4): Don't call rx_split_fp_compare.
149 (*cbranchsf4): Use rx_split_cbranch.
150 (*cmpsf): Don't accept "i" constraint.
151 (*conditional_branch): Only valid after reload.
152 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
154 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
157 * config/rs6000/altivec.md (vector constant splitters): Add
158 support for creating vector single precision constants if -mvsx is
159 used and we would create the constant using Altivec primitives.
161 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
162 Richard Sandiford <rdsandiford@googlemail.com>
164 PR rtl-optimization/47166
165 * reload1.c (emit_reload_insns): Disable the spill_reg_store
166 mechanism for PRE_MODIFY and POST_MODIFY.
167 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
170 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
172 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
174 2011-01-22 Jan Hubicka <jh@suse.cz>
177 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
179 2011-01-22 Jan Hubicka <jh@suse.cz>
181 PR tree-optimization/43884
183 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
184 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
186 2011-01-22 Anatoly Sokolov <aesok@post.ru>
188 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
189 * config/s390/s390.c (s390_register_move_cost,
190 s390_memory_move_cost): New.
191 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
193 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
196 * except.c (sjlj_assign_call_site_values): Move setting the
197 crtl->uses_eh_lsda flag to ...
198 (sjlj_mark_call_sites): ... here.
199 (sjlj_emit_function_enter): Support NULL dispatch label.
200 (sjlj_build_landing_pads): In a function with no landing pads
201 that still has must-not-throw regions, generate code to register
202 a personality function with empty LSDA.
204 2011-01-21 Richard Henderson <rth@redhat.com>
206 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
208 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
210 * compare-elim.c: New file.
211 * Makefile.in (OBJS-common): Add it.
212 (compare-elim.o): New.
213 * common.opt (fcompare-elim): New.
214 * opts.c (default_options_table): Add OPT_fcompare_elim.
215 * tree-pass.h (pass_compare_elim_after_reload): New.
216 * passes.c (init_optimization_passes): Add it.
217 * recog.h: Protect against re-inclusion.
218 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
219 * doc/invoke.texi (-fcompare-elim): Document it.
220 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
221 * doc/tm.texi: Rebuild.
223 2011-01-22 Nick Clifton <nickc@redhat.com>
225 * config/rx/rx.md (cstoresf4): Pass comparison operator to
228 2011-01-22 Nick Clifton <nickc@redhat.com>
230 * config/rx/rx.md (UNSPEC_CONST): New.
231 (deallocate_and_return): Wrap the amount popped off the stack in
232 an UNSPEC_CONST in order to stop it being rejected by
234 (pop_and_return): Add a "(return)" rtx.
235 (call): Drop the immediate operand.
236 (call_internal): Likewise.
237 (call_value): Likewise.
238 (call_value_internal): Likewise.
239 (sibcall_internal): Likewise.
240 (sibcall_value_internal): Likewise.
241 (sibcall): Likewise. Generate an explicit call using
243 (sibcall_value): Likewise.
244 (mov<>): FAIL if a constant operand is not legitimate.
245 (addsi3_unpsec): New pattern.
247 * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
249 (ok_for_max_constant): New function.
250 (gen_safe_add): New function.
251 (rx_expand_prologue): Use gen_safe_add.
252 (rx_expand_epilogue): Likewise.
253 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
256 2011-01-21 Jeff Law <law@redhat.com>
258 PR tree-optimization/47053
259 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
260 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
261 statements are deleted.
262 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
263 is nonempty, then purge dead edges and cleanup the CFG.
265 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
269 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
271 * tree-dfa.c (create_var_ann): Mark variable as used.
273 2011-01-21 Jakub Jelinek <jakub@redhat.com>
276 * except.c (convert_to_eh_region_ranges): Emit queued no-region
277 notes from other section in hot/cold partitioning even if
278 last_action is -3. Increment call_site_base.
280 PR rtl-optimization/47366
281 * fwprop.c (forward_propagate_into): Return bool. If
282 any changes are made, -fnon-call-exceptions is used and
283 REG_EH_REGION note is present, call purge_dead_edges
284 and return true if it purged anything.
285 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
286 any EH edges were purged.
288 2011-01-21 Jeff Law <law@redhat.com>
290 PR rtl-optimization/41619
291 * caller-save.c (setup_save_areas): Break out code to determine
292 which hard regs are live across calls by examining the reload chains
293 so that it is always used.
294 Eliminate code which checked REG_N_CALLS_CROSSED.
296 2011-01-21 Jakub Jelinek <jakub@redhat.com>
298 PR tree-optimization/47355
299 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
300 NOP has non-debug uses beyond PHIs in new_bb.
302 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
305 * cfgexpand.c (account_used_vars_for_block): Only account vars
306 that are annotated as used.
307 (estimated_stack_frame_size): Don't set TREE_USED.
308 * tree-dfa.c (create_var_ann): Mark variable as used.
310 2011-01-21 Richard Guenther <rguenther@suse.de>
313 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
315 2011-01-21 Richard Guenther <rguenther@suse.de>
317 PR tree-optimization/47365
318 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
319 (vn_reference_lookup_pieces): Adjust.
320 (vn_reference_lookup): Likewise.
321 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
322 (vn_reference_lookup_3): Only look through kills if in
324 (vn_reference_lookup_pieces): Adjust.
325 (vn_reference_lookup): Likewise.
326 (visit_reference_op_load): Likewise.
327 (visit_reference_op_store): Likewise.
328 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
329 (compute_avail): Likewise.
330 (eliminate): Likewise.
332 2011-01-21 Jakub Jelinek <jakub@redhat.com>
334 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
335 DECL_IGNORED_P non-reg vars if they are used.
337 PR tree-optimization/47391
338 * varpool.c (const_value_known_p): Return false if
341 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
344 * config/i386/i386.c (ix86_local_alignment): Handle
345 case for va_list_type_node is nil.
346 (ix86_canonical_va_list_type): Likewise.
348 2011-01-21 Alan Modra <amodra@gmail.com>
350 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
351 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
353 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
355 * config/arm/arm.md (define_attr type): Rename f_load
356 and f_store to f_fpa_load and f_fpa_store. Update.
357 (write_conflict): Deal with rename fallout.
358 (*push_fp_multi): Likewise.
359 * config/arm/fpa.md (f_load): Use f_fpa_load.
360 (f_store): Use f_fpa_store.
361 (*movsf_fpa): Likewise.
362 (*movdf_fpa): Likewise.
363 (*movxf_fpa): Likewise.
364 (*thumb2_movsf_fpa): Likewise.
365 (*thumb2_movdf_fpa): Likewise.
366 (*thumb2_movxf_fpa): Likewise.
367 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
368 f_loadd and f_stored.
369 (*thumb2_movdi_vfp): Likewise.
370 (*thumb2_movsf_vfp): Fix attribute to f_loads.
371 (*thumb2_movsi_vfp): Likewise.
372 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
373 Use f_loads instead of f_load.
374 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
376 2011-01-20 Anatoly Sokolov <aesok@post.ru>
378 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
379 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
380 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
381 (xtensa_mode_dependent_address_p): New function.
382 (constantpool_address_p): Make static. Change return type to bool.
383 Change argument type to const_rtx. Use CONST_INT_P predicate.
385 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
388 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
390 2011-01-20 Jakub Jelinek <jakub@redhat.com>
393 * cfgexpand.c (expand_debug_expr): Instead of generating
394 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
397 2011-01-20 Richard Guenther <rguenther@suse.de>
400 * tree-inline.c (remap_gimple_op_r): Recurse manually for
401 the pointer operand of MEM_REFs.
403 2011-01-20 Jakub Jelinek <jakub@redhat.com>
405 PR tree-optimization/46130
406 * ipa-split.c (consider_split): If return_bb contains non-virtual
407 PHIs other than for retval or if split_function would not adjust it,
410 2011-01-20 Richard Guenther <rguenther@suse.de>
412 PR tree-optimization/47167
413 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
414 Revert previous change, only avoid enumeral type changes.
416 2011-01-19 Dodji Seketeli <dodji@redhat.com>
419 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
420 (gen_scheduled_generic_parms_dies): New functions.
421 (gen_struct_or_union_type_die): Schedule template parameters DIEs
422 generation for the end of CU compilation.
423 (dwarf2out_finish): Generate template parameters DIEs here.
425 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
428 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
429 debug bind stmt on merge edges.
431 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
435 * function.c (instantiate_expr): Instantiate incoming rtl of
436 implicit arguments, and recurse on VALUE_EXPRs.
437 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
438 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
440 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
442 * c-parser.c (c_parser_for_statement): Initialize
443 collection_expression.
445 2011-01-19 Joseph Myers <joseph@codesourcery.com>
447 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
449 2011-01-19 Joseph Myers <joseph@codesourcery.com>
451 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
452 (LINK_SHLIB_SPEC): Don't use %(link_path).
453 (SUBTARGET_EXTRA_SPECS): Remove link_path.
455 2011-01-19 Joseph Myers <joseph@codesourcery.com>
457 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
458 (NO_SHARED_LIB_SUPPORT): Remove.
459 (LINK_SHLIB_SPEC): Remove one conditional definition.
461 2011-01-19 Joseph Myers <joseph@codesourcery.com>
463 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
465 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
466 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
467 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
468 %{call_shared} and conditionals on these options not being passed.
469 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
472 2011-01-19 Jakub Jelinek <jakub@redhat.com>
474 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
477 * ipa-split.c: Spelling fixes.
479 2011-01-19 Richard Henderson <rth@redhat.com>
481 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
484 * longlong.h [__mn10300__] (count_leading_zeros): New.
485 [__mn10300__] (umul_ppmm, smul_ppmm): New.
486 [__mn10300__] (add_ssaaaa, subddmmss): New.
487 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
488 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
490 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
492 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
494 2011-01-19 Richard Henderson <rth@redhat.com>
496 * config/mn10300/mn10300.md (addsi3_flags): New.
497 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
498 (subsi3_flags, subc_internal, subdi3): New.
499 (subdi3_internal, *subdi3_degenerate): New.
500 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
502 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
503 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
504 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
505 * config/mn10300/mn10300-protos.h: Update.
506 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
507 (return_ret): Likewise. Rename from return_internal_regs.
508 (return_internal): Remove.
510 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
511 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
512 (mn10300_legitimate_constant_p): Likewise.
513 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
514 (mn10300_frame_size): New.
515 (mn10300_expand_prologue): Use it.
516 (mn10300_expand_epilogue): Likewise.
517 (mn10300_initial_offset): Likewise.
518 * config/mn10300/mn10300-protos.h: Update.
519 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
520 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
521 (prologue, epilogue, return_internal): Tidy output code.
522 (mn10300_store_multiple_operation, return): Likewise.
523 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
524 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
525 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
526 (load_pic, am33_load_pic): New.
527 (mn10300_load_pic0, mn10300_load_pic1): New.
529 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
530 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
531 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
532 (cc_flags_for_mode, cc_flags_for_code): New.
533 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
534 overflow flag is not valid. Validate that the flags we need
535 for the comparison are valid.
536 (mn10300_output_cmp): Remove.
537 (mn10300_output_add): New.
538 (mn10300_select_cc_mode): Use cc_flags_for_code.
539 (mn10300_split_cbranch): New.
540 (mn10300_match_ccmode): New.
541 (mn10300_split_and_operand_count): New.
542 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
544 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
545 (addsi3): ... here. Use mn10300_output_add.
546 (*addsi3_flags): New.
547 (*am33_subsi3, *mn10300_subsi3): Merge...
548 (subsi3): ... here. Use attribute isa.
549 (*subsi3_flags): New.
550 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
552 (*am33_andsi3, *mn10300_andsi3): Merge...
554 (*andsi3_flags): New.
555 (andsi3 splitters): New.
556 (*am33_iorsi3, *mn10300_iorsi3): Merge...
558 (*iorsi3_flags): New.
559 (*am33_xorsi3, *mn10300_xorsi3): Merge...
561 (*xorsi3_flags): New.
562 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
563 (one_cmplsi2): ... here.
564 (*one_cmplsi2_flags): New.
565 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
566 instead of "dax" in constraints. Use mn10300_split_cbranch.
567 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
568 use matching constraints to eliminate a self-comparison.
569 (*integer_conditional_branch): Rename from integer_conditional_branch.
570 Use int_mode_flags to match CC_REG.
571 (*cbranchsi4_btst, *btstsi): New.
572 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
573 mn10300_split_cbranch.
574 (*am33_cmpsf): Rename from am33_cmpsf.
575 (*float_conditional_branch): Rename from float_conditional_branch.
576 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
577 (zero_extendqisi2): ... here.
578 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
579 (zero_extendhisi2): ... here.
580 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
581 (extendqisi2): ... here.
582 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
583 (extendhisi2): ... here.
584 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
586 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
588 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
590 (consecutive add peephole): Remove.
591 * config/mn10300/predicates.md (label_ref_operand): New.
592 (int_mode_flags): New.
593 (CCZN_comparison_operator): New.
595 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
596 (throughput_42_latency_43): New reservation.
597 (mulsidi3, umulsidi3): New expanders.
598 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
599 the MDR register to allocation; separately allocate the low and
600 high parts of the DImode result.
601 (umulsidi3_internal): Similarly.
602 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
603 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
604 (udivsi3, umodsi3): Remove.
605 (udivmodsi4, divmodsi4): New expanders.
606 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
607 (*divmodsi4): Simiarly.
610 * config/mn10300/constraints.md ("z"): New constraint.
611 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
612 (FIXED_REGISTERS): Don't fix MDR.
613 (CALL_USED_REGSITERS): Reformat nicely.
614 (REG_ALLOC_ORDER): Add MDR.
615 (enum regclass): Add MDR_REGS.
616 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
617 (IRA_COVER_CLASSES): Add MDR_REGS.
618 (REGNO_REG_CLASS): Handle MDR_REG.
619 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
620 (mn10300_register_move_cost): Likewise.
621 * config/mn10300/mn10300.md (MDR_REG): New.
622 (*movsi_internal): Handle moves to/from MDR_REGS.
624 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
626 (mn10300_secondary_reload): Tidy combination reload classes.
627 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
628 addresses for AM33. Allow symbolic offsets for reg+imm.
629 (mn10300_regno_in_class_p): New.
630 (mn10300_legitimize_reload_address): New.
631 * config/mn10300/mn10300.h (enum reg_class): Remove
632 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
633 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
635 (REG_CLASS_NAMES): Update to match.
636 (REG_CLASS_CONTENTS): Likewise.
637 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
638 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
639 (REGNO_IN_RANGE_P): Remove.
640 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
641 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
642 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
643 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
644 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
645 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
646 (REGNO_GENERAL_P): New.
647 (HAVE_POST_MODIFY_DISP): New.
648 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
649 (LEGITIMIZE_RELOAD_ADDRESS): New.
650 * config/mn10300/mn10300-protos.h: Update.
652 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
653 DATA_REGS for AM33 stack-pointer destination.
654 (mn10300_preferred_output_reload_class): Likewise.
655 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
656 into a form appropriate for ...
657 (TARGET_SECONDARY_RELOAD): New.
658 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
659 * config/mn10300/mn10300-protos.h: Update.
660 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
661 reload_insi; use the "A" constraint for the scratch; handle AM33
662 moves of sp to non-address registers.
664 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
665 (*movqi_internal): ... here.
666 (*am33_movhi, *mn10300_movhi): Merge into...
667 (*movhi_internal): ... here.
668 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
669 as the source/destination of moves from/to SP.
670 (movsf): Only allow for AM33-2.
671 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
672 any integer constant constraint. Only allow for AM33-2. Tidy
673 all of the alternative outputs.
674 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
675 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
677 (udivsi3, umodsi3): New patterns for MN103 only.
679 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
681 * doc/tm.texi.in: Spell out that a lack of register class unions
683 * doc/tm.texi: Regenerate.
685 2011-01-19 Jakub Jelinek <jakub@redhat.com>
687 PR rtl-optimization/47337
688 * dce.c (check_argument_store): New function.
689 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
691 PR tree-optimization/47290
692 * tree-eh.c (infinite_empty_loop_p): New function.
693 (cleanup_empty_eh): Use it.
695 2011-01-18 Steve Ellcey <sje@cup.hp.com>
698 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
699 (a64_expand_widen_sum): Ditto.
700 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
701 (vec_extract_evenodd_help): Ditto.
702 (vec_extract_evenv4hi): Ditto.
703 (vec_extract_oddv4hi): Ditto.
704 (vec_extract_evenv2si): Ditto.
705 (vec_extract_oddv2si): Ditto.
706 (vec_extract_evenv2sf): Ditto.
707 (vec_extract_oddv2sf): Ditto.
708 (vec_pack_trunc_v4hi: Ditto.
709 (vec_pack_trunc_v2si): Ditto.
710 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
711 (vec_interleave_highv8qi): Ditto.
713 (vec_extract_oddv8qi): Ditto.
714 (vec_interleave_lowv4hi): Ditto.
715 (vec_interleave_highv4hi): Ditto.
716 (vec_interleave_lowv2si): Ditto.
717 (vec_interleave_highv2si): Ditto.
719 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
721 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
722 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
723 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
724 (pa_c_mode_for_suffix): New.
725 (TARGET_EXPAND_BUILTIN): Define.
726 (TARGET_C_MODE_FOR_SUFFIX): Define.
727 (pa_builtins): Define.
728 (pa_init_builtins): Register __float128 type and init new support
730 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
731 * config/pa/quadlib.c (_U_Qfcopysign): New.
733 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
736 * explow.c (allocate_dynamic_stack_space): Do not assume more than
737 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
740 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
742 PR tree-optimization/47179
743 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
744 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
746 2011-01-18 Richard Guenther <rguenther@suse.de>
748 PR rtl-optimization/47216
749 * emit-rtl.c: Include tree-flow.h.
750 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
751 of replicating it with different semantics.
752 * Makefile.in (emit-rtl.o): Adjust.
754 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
756 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
758 (cortex_a9_dp): Handle neon types correctly.
760 2011-01-18 Jakub Jelinek <jakub@redhat.com>
762 PR rtl-optimization/47299
763 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
764 subtarget. Use normal multiplication if both operands are
766 * expmed.c (expand_widening_mult): Don't try to optimize constant
767 multiplication if op0 has VOIDmode. Convert op1 constant to mode
770 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
772 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
773 spacing after 'e.g.', typos, comma, hyphenation.
775 2011-01-17 Richard Henderson <rth@redhat.com>
777 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
778 (rx_restricted_mem_operand): New.
779 (rx_shift_operand): Use register_operand.
780 (rx_source_operand, rx_compare_operand): Likewise.
781 * config/rx/rx.md (addsi3_flags): New expander.
782 (adddi3): Rewrite as expander.
783 (adc_internal, *adc_flags, adddi3_internal): New patterns.
784 (subsi3_flags): New expander.
785 (subdi3): Rewrite as expander.
786 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
788 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
789 (rx_init_builtins): Remove sat builtin.
790 (rx_expand_builtin): Likewise.
791 * config/rx/rx.md (ssaddsi3): New.
792 (*sat): Rename from sat. Represent the CC_REG input.
794 * config/rx/predicates.md (rshift_operator): New.
795 * config/rx/rx.c (rx_expand_insv): Remove.
796 * config/rx/rx-protos.h: Update.
797 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
798 operand to the canonical position.
799 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
800 (*bitclr, *bitclr_in_memory): Similarly.
801 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
802 (insv): Retain the zero_extract in the expansion.
804 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
805 (bswaphi2, bitinvert, revw): Likewise.
807 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
808 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
809 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
810 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
811 (bitset, bitset_in_memory): Likewise.
812 (bitinvert, bitinvert_in_memory): Likewise.
813 (bitclr, bitclr_in_memory): Likewise.
814 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
815 (rx_strend, rx_cmpstrn): Likewise.
816 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
817 (bitop peep2 patterns): Remove.
819 * config/rx/rx.c (rx_match_ccmode): New.
820 * config/rx/rx-protos.h: Update.
821 * config/rx/rx.md (abssi2): Clobber, don't set flags.
822 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
823 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
824 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
825 (fix_truncsfsi2, floatsisf2): Likewise.
826 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
827 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
828 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
829 (*subsi3_flags, *xorsi3_flags): New.
831 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
833 * config/rx/rx.c (rx_print_operand): Remove workaround for
834 unsplit comparison operations.
836 * config/rx/rx.md (movsicc): Split after reload.
837 (*movsicc): Merge *movsieq and *movsine via match_operator.
838 (*stcc): New pattern.
840 * config/rx/rx.c (rx_float_compare_mode): Remove.
841 * config/rx/rx.h (rx_float_compare_mode): Remove.
842 * config/rx/rx.md (cstoresi4): Split after reload.
843 (*sccc): New pattern.
845 * config/rx/predicates.md (label_ref_operand): New.
846 (rx_z_comparison_operator): New.
847 (rx_zs_comparison_operator): New.
848 (rx_fp_comparison_operator): New.
849 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
850 Validate that the flags are set properly for the comparison.
851 (rx_gen_cond_branch_template): Remove.
852 (rx_cc_modes_compatible): Remove.
853 (mode_from_flags): New.
854 (flags_from_code): Rename from flags_needed_for_conditional.
855 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
856 (rx_select_cc_mode): Likewise.
857 (rx_split_fp_compare): New.
858 (rx_split_cbranch): New.
859 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
860 (*cbranchsi4): Use match_operator and rx_split_cbranch.
861 (*cbranchsf4): Similarly.
862 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
863 match_operator and rx_split_cbranch.
864 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
865 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
866 (*cmpsi): Rename from cmpsi.
867 (*tstsi): Rename from tstsi.
868 (*cmpsf): Rename from cmpsf; use CC_Fmode.
869 (*conditional_branch): Rename from conditional_branch.
870 (*reveresed_conditional_branch): Remove.
871 (b<code>): Remove expander.
872 * config/rx/rx-protos.h: Update.
874 * config/rx/rx.c (rx_compare_redundant): Remove.
875 * config/rx/rx.md (cmpsi): Don't use it.
876 * config/rx/rx-protos.h: Update.
878 * config/rx/rx-modes.def (CC_F): New mode.
879 * config/rx/rx.c (rx_select_cc_mode): New.
880 * config/rx/rx.h (SELECT_CC_MODE): Use it.
881 * config/rx/rx-protos.h: Update.
883 2011-01-17 Richard Henderson <rth@redhat.com>
885 * except.c (dump_eh_tree): Fix stray ; after for statement.
887 2011-01-17 Richard Guenther <rguenther@suse.de>
889 PR tree-optimization/47313
890 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
891 handling before copying the body. Properly deal with
892 by-reference result in SSA form.
894 2011-01-17 Ian Lance Taylor <iant@google.com>
897 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
898 (struct_value_alias_set): Don't define.
899 (sparc_option_override): Don't set sparc_sr_alias_set and
900 struct_value_alias_set.
901 (save_or_restore_regs): Use gen_frame_mem rather than calling
903 (sparc_struct_value_rtx): Likewise.
905 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
908 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
910 (_mm_maskstore_pd): Likewise.
911 (_mm_maskload_ps): Likewise.
912 (_mm_maskstore_ps): Likewise.
913 (_mm256_maskload_pd): Change mask to __m256i.
914 (_mm256_maskstore_pd): Likewise.
915 (_mm256_maskload_ps): Likewise.
916 (_mm256_maskstore_ps): Likewise.
918 * config/i386/i386-builtin-types.def: Updated.
919 (ix86_expand_special_args_builtin): Likewise.
921 * config/i386/i386.c (bdesc_special_args): Update
922 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
923 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
924 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
925 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
927 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
928 Use <avxpermvecmode> on mask register.
929 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
931 2011-01-17 Olivier Hainque <hainque@adacore.com>
932 Michael Haubenwallner <michael.haubenwallner@salomon.at>
933 Eric Botcazou <ebotcazou@adacore.com>
936 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
937 if <= USHRT_MAX in 32-bit mode.
939 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
941 * doc/install.texi (Configuration, Specific): Wrap long
942 lines in examples. Allow line wrapping in long options
943 and URLs where beneficial for PDF output.
945 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
947 * config/mips/mips.c (mips_classify_symbol): Don't return
948 SYMBOL_PC_RELATIVE for nonlocal labels.
950 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
952 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
954 2011-01-15 Jan Hubicka <jh@suse.cz>
956 PR tree-optimization/47276
957 * ipa.c (function_and_variable_visibility): Do not try to mark alias
958 declarations as needed.
960 2011-01-15 Martin Jambor <mjambor@suse.cz>
962 * common.opt (fdevirtualize): New flag.
963 * doc/invoke.texi (Option Summary): Document it.
964 * opts.c (default_options_table): Add devirtualize flag.
965 * ipa-prop.c (detect_type_change): Return immediately if
966 devirtualize flag is not set.
967 (detect_type_change_ssa): Likewise.
968 (compute_known_type_jump_func): Likewise.
969 (ipa_analyze_virtual_call_uses): Likewise.
971 2011-01-14 Martin Jambor <mjambor@suse.cz>
973 PR tree-optimization/45934
974 PR tree-optimization/46302
975 * ipa-prop.c (type_change_info): New type.
976 (stmt_may_be_vtbl_ptr_store): New function.
977 (check_stmt_for_type_change): Likewise.
978 (detect_type_change): Likewise.
979 (detect_type_change_ssa): Likewise.
980 (compute_complex_assign_jump_func): Check for dynamic type change.
981 (compute_complex_ancestor_jump_func): Likewise.
982 (compute_known_type_jump_func): Likewise.
983 (compute_scalar_jump_functions): Likewise.
984 (ipa_analyze_virtual_call_uses): Likewise.
985 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
987 2011-01-14 Joseph Myers <joseph@codesourcery.com>
989 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
990 * config/i386/i386.opt (msse5): New Alias.
992 2011-01-14 Joseph Myers <joseph@codesourcery.com>
994 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
995 * config/sparc/linux64.h (CC1_SPEC): Likewise.
996 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
997 * config/sparc/sparc.h (CC1_SPEC): Likewise.
999 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1001 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
1003 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1004 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1005 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
1006 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
1008 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
1010 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1012 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
1015 2011-01-14 Mike Stump <mikestump@comcast.net>
1017 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
1018 * config/fr30/fr30.md: Likweise
1019 (movsi_push): Likewise.
1020 (movsi_pop): Likewise.
1021 (enter_func): Likewise.
1022 * config/moxie/moxie.md (movsi_push): Likewise.
1023 (movsi_pop): Likewise.
1025 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1027 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
1028 %{no_archive} %{exact_version}.
1029 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
1030 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
1031 %{no_archive} %{exact_version}.
1032 * config/mips/openbsd.h (LINK_SPEC): Likewise.
1033 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
1034 * config/mips/vxworks.h: Likewise.
1036 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1038 * config/microblaze/microblaze.h (ASM_SPEC): Remove
1041 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1043 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
1044 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
1046 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1048 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
1051 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1053 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
1055 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
1056 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
1058 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
1059 Don't handle -shlib.
1061 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1063 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
1064 (CC1_SPEC): Don't handle -profile.
1066 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1068 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
1069 * config/mips/mips.h (CC1_SPEC): Likewise.
1071 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1073 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
1074 * config/mips/mips.h (CC1_SPEC): Likewise.
1076 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1078 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
1079 * config/m32r/linux.h (LINK_SPEC): Likewise.
1080 * config/mips/linux.h (LINK_SPEC): Likewise.
1081 * config/mips/linux64.h (LINK_SPEC): Likewise.
1082 * config/sparc/linux.h (LINK_SPEC): Likewise.
1083 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1084 LINK_SPEC): Likewise.
1085 * config/xtensa/linux.h (LINK_SPEC): Likewise.
1087 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1089 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
1091 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1093 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1095 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
1096 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
1098 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1100 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
1102 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1104 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
1105 supports -Bstatic/-Bdynamic.
1106 * configure: Regenerate.
1108 2011-01-14 Jan Hubicka <jh@suse.cz>
1109 Jack Howarth <howarth@bromo.med.uc.edu>
1112 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
1113 when checking debug_info_level. Test write_symbols instead of
1114 debug_hooks->var_location when setting flag_var_tracking_uninit.
1116 2011-01-14 Richard Guenther <rguenther@suse.de>
1118 PR tree-optimization/47179
1119 * target.def (ref_may_alias_errno): New target hook.
1120 * targhooks.h (default_ref_may_alias_errno): Declare.
1121 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
1122 (default_ref_may_alias_errno): New function.
1123 * target.h (struct ao_ref_s): Declare.
1124 * tree-ssa-alias.c: Include target.h.
1125 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
1126 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
1127 (targhooks.o): Likewise.
1128 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
1129 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
1131 2011-01-14 Richard Guenther <rguenther@suse.de>
1133 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
1135 2011-01-14 Richard Guenther <rguenther@suse.de>
1137 PR tree-optimization/47280
1138 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
1140 (tree_ssa_forward_propagate_single_use_vars): Deal with
1141 CFG changes from associate_plusminus.
1143 2011-01-14 Richard Guenther <rguenther@suse.de>
1147 2011-01-11 Richard Guenther <rguenther@suse.de>
1149 PR tree-optimization/46076
1150 * tree-ssa.c (useless_type_conversion_p): Conversions from
1151 unprototyped to empty argument list function types are useless.
1153 2011-01-14 Richard Guenther <rguenther@suse.de>
1155 PR tree-optimization/47286
1156 * tree-ssa-structalias.c (new_var_info): Register variables are global.
1158 2011-01-14 Martin Jambor <mjambor@suse.cz>
1161 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
1163 2011-01-13 Anatoly Sokolov <aesok@post.ru>
1165 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
1166 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1167 * config/xtensa/xtensa.c (xtensa_libcall_value,
1168 xtensa_function_value_regno_p): New functions.
1169 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1171 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
1174 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
1176 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
1177 New function prototype.
1178 * config/i386/winnt.c (i386_pe_assemble_visibility):
1179 Warn only if attribute was specified by user.
1181 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1184 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
1186 (floatunsdidf2_fcfidu): Ditto.
1188 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1190 * config/s390/s390.c (print_operand_address): Replace 'error' with
1191 'output_operand_lossage'.
1192 (print_operand): Likewise.
1194 2011-01-13 Jeff Law <law@redhat.com>
1196 PR rtl-optimization/39077
1197 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
1198 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
1199 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
1200 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
1201 * gcse.c (prune_insertions_deletions): New function.
1202 (compute_pre_data): Use it.
1204 2011-01-13 Dodji Seketeli <dodji@redhat.com>
1207 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
1209 (prune_unused_types_mark): Use it.
1211 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
1213 PR rtl-optimization/45352
1214 * sel-sched.c: Update copyright years.
1215 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1216 in the advancing loop when we have issued issue_rate insns.
1218 2011-01-12 Richard Henderson <rth@redhat.com>
1220 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
1221 (TARGET_MD_ASM_CLOBBERS): New.
1223 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
1224 (TARGET_DELEGITIMIZE_ADDRESS): New.
1226 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
1227 (clzsi2, *bsch): New patterns.
1229 * config/mn10300/mn10300.md (INT): New mode iterator.
1230 (*mov<INT>_clr): New pattern, and peep2 to generate it.
1232 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
1233 flag_split_wide_types.
1235 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
1236 (mn10300_trampoline_init): Rewrite without a template, an immediate
1237 load and a direct branch.
1238 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
1240 2011-01-12 Anatoly Sokolov <aesok@post.ru>
1242 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1243 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
1244 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
1245 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1247 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
1250 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
1253 2011-01-12 Jan Hubicka <jh@suse.cz>
1256 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
1257 (PLUGIN_COND_CLOSE): New macro.
1258 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
1260 2011-01-12 Richard Guenther <rguenther@suse.de>
1263 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
1264 register variables in a MEM_REF.
1266 2011-01-12 Joseph Myers <joseph@codesourcery.com>
1268 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
1269 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
1270 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
1271 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1272 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1273 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
1274 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
1275 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
1276 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
1277 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
1278 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
1279 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
1280 * config/gnu-user.h: New. Copied from linux.h.
1281 (LINUX_TARGET_STARTFILE_SPEC): Rename to
1282 GNU_USER_TARGET_STARTFILE_SPEC.
1283 (LINUX_TARGET_ENDFILE_SPEC): Rename to
1284 GNU_USER_TARGET_ENDFILE_SPEC.
1285 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
1286 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
1287 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
1288 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
1289 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
1290 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
1291 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
1292 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
1293 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
1294 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
1295 * config/arm/linux-eabi.h (CC1_SPEC): Use
1296 GNU_USER_TARGET_CC1_SPEC.
1297 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
1298 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
1299 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
1300 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
1301 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
1302 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
1303 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
1304 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
1306 2011-01-12 Richard Guenther <rguenther@suse.de>
1309 * doc/invoke.texi (ffast-math): Document it is turned on
1312 2011-01-12 Jan Hubicka <jh@suse.cz>
1314 PR tree-optimization/47233
1315 * opts.c (common_handle_option): Disable ipa-reference with profile
1318 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1320 * c-parser.c (c_parser_objc_at_property_declaration): Improved
1323 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1325 * c-parser.c (c_lex_one_token): Updated and reindented some
1326 comments. No changes in code.
1328 2011-01-11 Ian Lance Taylor <iant@google.com>
1330 * godump.c (go_output_var): Don't output the variable if there is
1331 already a type with the same name.
1333 2011-01-11 Ian Lance Taylor <iant@google.com>
1335 * godump.c (go_format_type): Don't generate float80.
1337 2011-01-11 Richard Henderson <rth@redhat.com>
1339 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
1340 declaration. Rewrite for both speed and size.
1341 (mn10300_address_cost_1): Remove.
1342 (mn10300_register_move_cost): New.
1343 (mn10300_memory_move_cost): New.
1344 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
1345 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
1346 extensions, shifts, BSWAP, CLZ.
1347 (mn10300_wide_const_load_uses_clr): Remove.
1348 (TARGET_REGISTER_MOVE_COST): New.
1349 (TARGET_MEMORY_MOVE_COST): New.
1350 * config/mn10300/mn10300-protos.h: Update.
1351 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
1353 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
1354 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
1355 * config/mn10300/mn10300-protos.h: Update.
1356 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
1357 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
1358 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
1359 (*test_int_bitfield, *test_byte_bitfield): Remove.
1360 (*bit_test, *subreg_bit_test): Remove.
1361 * config/mn10300/predicates.md (const_8bit_operand): Remove.
1363 * config/mn10300/constraints.md ("c"): Rename from "A".
1364 ("A", "D"): New constraint letters.
1365 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
1366 (fmssf4, fnmasf4, fnmssf4): Likewise.
1368 * config/mn10300/mn10300.md (isa): New attribute.
1369 (enabled): New attribute.
1371 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
1372 (abssf2, negsf2): Define only for hardware fp.
1373 (sqrtsf2): Reformat.
1374 (addsf3, subsf3, mulsf3): Merge expander and insn.
1376 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
1377 (DEBUGGER_AUTO_OFFSET): Remove.
1378 (DEBUGGER_ARG_OFFSET): Remove.
1380 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
1381 Emit register stores with the same offsets as the hardware.
1382 (mn10300_store_multiple_operation): Don't check that the register
1383 save offsets are monotonic.
1384 * config/mn10300/mn10300-protos.h: Update.
1386 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
1388 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
1389 in terms of the value on the stack, not the MDR register.
1391 2011-01-11 Jan Hubicka <jh@suse.cz>
1395 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
1396 (symbol_alias_set_destroy, symbol_alias_set_contains,
1397 propagate_aliases_backward): Declare.
1398 * lto-streamer-out.c (struct sets): New sturcture.
1399 (trivally_defined_alias): New function.
1400 (output_alias_pair_p): Rewrite.
1401 (output_unreferenced_globals): Fix output of alias pairs.
1402 (produce_symtab): Likewise.
1403 * ipa.c (function_and_variable_visibility): Set weak alias destination
1405 * varasm.c (symbol_alias_set_t): Remove.
1406 (symbol_alias_set_destroy): Export.
1407 (propagate_aliases_forward, propagate_aliases_backward): New functions
1409 (compute_visible_aliases): ... this one; remove.
1410 (trivially_visible_alias): New
1411 (trivially_defined_alias): New.
1412 (remove_unreachable_alias_pairs): Rewrite.
1413 (finish_aliases_1): Reorganize code checking if alias is defined.
1414 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
1417 2011-01-11 Richard Guenther <rguenther@suse.de>
1419 PR tree-optimization/46076
1420 * tree-ssa.c (useless_type_conversion_p): Conversions from
1421 unprototyped to empty argument list function types are useless.
1423 2011-01-11 Richard Guenther <rguenther@suse.de>
1426 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
1427 volatile MEMs as MEM_READONLY_P.
1429 2011-01-11 Richard Guenther <rguenther@suse.de>
1431 PR tree-optimization/47239
1432 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
1434 2011-01-11 Jeff Law <law@redhat.com>
1436 PR tree-optimization/47086
1437 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
1438 IVs from statements that might throw.
1440 2011-01-10 Jan Hubicka <jh@suse.cz>
1443 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
1445 2011-01-10 Jan Hubicka <jh@suse.cz>
1448 * profile.c (read_profile_edge_counts): Ignore profile inconistency
1449 when correcting profile.
1451 2011-01-10 Jan Hubicka <jh@suse.cz>
1454 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
1456 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
1457 Restore DECL_FINI_PRIORITY.
1459 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1461 * doc/gimple.texi: Fix quoting of multi-word return values in
1462 @deftypefn statements. Ensure presence of return value. Wrap
1463 overlong @deftypefn lines.
1464 (is_gimple_operand, is_gimple_min_invariant_address): Remove
1465 descriptions of removed functions.
1466 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
1467 of multi-word return value in @deftypefn statement.
1469 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1471 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
1472 (Conditional Expressions, Logical Operators)
1473 (Statement and operand traversals): Do not indent smallexample
1474 code. Fix duplicate function argument in example.
1476 2011-01-10 Jeff Law <law@redhat.com>
1478 PR tree-optimization/47141
1479 * ipa-split.c (split_function): Handle case where we are
1480 returning a value and the return block has a virtual operand phi.
1482 2011-01-10 Jan Hubicka <jh@suse.cz>
1484 PR tree-optimization/47234
1485 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
1486 (pass_feedback_split_functions): Declare.
1487 * passes.c (init_optimization_passes): Add ipa-split as subpass of
1489 * ipa-split.c (gate_split_functions): Update comments; disable
1490 split-functions for profile_arc_flag and branch_probabilities.
1491 (gate_feedback_split_functions): New function.
1492 (execute_feedback_split_functions): New function.
1493 (pass_feedback_split_functions): New global var.
1495 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
1498 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
1499 calling gimple_call_set_cannot_inline.
1501 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
1503 * config/darwin-sections.def: Remove unused section.
1505 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
1508 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
1510 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
1513 * c-parser.c (c_parser_declaration_or_fndef): Improved
1516 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
1518 * config/i386/winnt.c (i386_pe_start_function): Make sure
1519 to switch back to function's section.
1521 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
1525 * plugin.c: Move include of dlfcn.h from here...
1526 * system.h: ... to here.
1528 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1530 * doc/cpp.texi (C++ Named Operators): Fix markup for header
1532 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
1533 two extra empty pages in PDF output.
1535 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
1538 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
1539 for error recovery purposes behave as if it was not specified so
1540 that the default type is usd.
1542 2011-01-07 Jan Hubicka <jh@suse.cz>
1544 PR tree-optmization/46469
1545 * ipa.c (function_and_variable_visibility): Clear needed flags on
1546 nodes with external decls; handle weakrefs merging correctly.
1548 2011-01-07 Joseph Myers <joseph@codesourcery.com>
1550 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
1553 2011-01-07 Jan Hubicka <jh@suse.cz>
1555 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
1556 and no longer claim that gold is required for linker plugin.
1557 * configure: Regenerate.
1558 * gcc.c (PLUGIN_COND): New macro.
1559 (LINK_COMMAND_SPEC): Use it.
1560 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
1561 * config.in (HAVE_LTO_PLUGIN): New.
1562 * configure.ac (--with-lto-plugin): New parameter; autodetect
1565 2011-01-07 Jan Hubicka <jh@suse.cz>
1567 PR tree-optimization/46367
1568 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
1569 when we can update original.
1570 (cgraph_mark_inline_edge): Sanity check.
1571 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
1573 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1575 * config/spu/spu.h (ASM_COMMENT_START): Define.
1577 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
1581 (SWITCH_KEEP_FOR_GCC): Likewise.
1582 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
1583 (do_spec_1): Handle "%>".
1585 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
1587 2011-01-07 Jakub Jelinek <jakub@redhat.com>
1590 * config/i386/i386.c (ix86_delegitimize_address): If
1591 simplify_gen_subreg fails, return orig_x.
1594 * value-prof.c (gimple_stringop_fixed_value): Handle
1595 lhs of the call properly.
1597 2011-01-07 Jan Hubicka <jh@suse.cz>
1600 * lto-opt.c (lto_reissue_options): Set flag_shlib.
1602 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1604 * target.def (function_switched_text_sections): New hook.
1605 * doc/tm.texi: Regenerated.
1606 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1607 * final.c (default_function_switched_text_sections): New.
1608 (final_scan_insn): Call function_switched_text_sections when a
1609 mid-function section change occurs.
1610 * output.h (default_function_switched_text_sections): Declare.
1611 * config/darwin-protos.h (darwin_function_switched_text_sections):
1613 * config/darwin.c (darwin_function_switched_text_sections): New.
1614 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
1616 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
1618 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
1619 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
1620 the secondary code fragment when outputting for DWARF == 2.
1622 2011-01-07 Anatoly Sokolov <aesok@post.ru>
1624 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1625 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
1627 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
1628 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1630 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
1633 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
1634 when it is not empty.
1636 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
1639 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1640 (case ${target}): Add btver1.
1641 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1642 -march=native recognize btver1 processors.
1643 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1644 btver1 def_and_undef
1645 * config/i386/i386.c (struct processor_costs btver1_cost): New
1647 (m_BTVER1): New definition.
1648 (m_AMD_MULTIPLE): Includes m_BTVER1.
1649 (initial_ix86_tune_features): Add btver1 tune.
1650 (processor_target_table): Add btver1 entry.
1651 (static const char *const cpu_names): Add btver1 entry.
1652 (software_prefetching_beneficial_p): Add btver1.
1653 (ix86_option_override_internal): Add btver1 instruction sets.
1654 (ix86_issue_rate): Add btver1.
1655 (ix86_adjust_cost): Add btver1.
1656 * config/i386/i386.h (TARGET_BTVER1): New definition.
1657 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
1658 (enum processor_type): Add PROCESSOR_BTVER1.
1659 * config/i386/i386.md (define_attr "cpu"): Add btver1.
1661 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1664 * config/i386/i386.c (legitimize_tls_address)
1665 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
1666 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
1667 (tls_initial_exec_64_sun): New pattern.
1669 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
1671 * doc/invoke.texi (Overall Options): Improve wording and markup
1672 of the description of -wrapper.
1674 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1676 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
1677 rdynamic, threads): New Driver options.
1679 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1682 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
1683 if coming from .tdata.
1684 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1686 2011-01-06 Jan Hubicka <jh@suse.cz>
1689 * collect2.c (main): Do not enable LTOmode when plugin is active.
1691 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1694 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
1695 --version output if supported.
1696 * configure: Regenerate.
1698 2011-01-06 Joseph Myers <joseph@codesourcery.com>
1700 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
1703 2011-01-06 Jakub Jelinek <jakub@redhat.com>
1706 * c-convert.c (convert): When converting a complex expression
1707 other than COMPLEX_EXPR to a different complex type, ensure
1708 c_save_expr is called instead of save_expr, unless in_late_binary_op.
1709 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
1710 when converting COMPLEX_TYPE.
1712 2011-01-06 Ira Rosen <irar@il.ibm.com>
1714 PR tree-optimization/47139
1715 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
1716 only the last reduction value is used outside the loop. Update
1719 2011-01-05 Joseph Myers <joseph@codesourcery.com>
1721 * config/rtems.opt: New.
1722 * config.gcc (*-*-rtems*): Use rtems.opt.
1724 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
1726 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
1727 processors do not support 3DNow instructions.
1729 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1731 * config/spu/spu.c (spu_option_override): Set parameter
1732 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
1734 2011-01-05 Jan Hubicka <jh@suse.cz>
1736 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
1737 at the command line.
1739 2011-01-05 Martin Jambor <mjambor@suse.cz>
1742 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
1743 deltas on streamed outgoing edges.
1744 (output_node_opt_summary): Output info for outgoing edges only when
1745 the node is in new parameter set.
1746 (output_cgraph_opt_summary): New parameter set, passed to the two
1747 aforementioned functions. Update its forward declaration and its
1750 2011-01-05 Tom Tromey <tromey@redhat.com>
1752 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
1753 operator to c_finish_omp_atomic.
1754 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
1755 (build_unary_op): Update.
1756 (build_modify_expr): Update.
1757 (build_asm_expr): Update.
1759 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1761 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
1762 newly inserted insns.
1764 (spu_emit_branch_hint): Likewise.
1765 (insert_hbrp_for_ilb_runout): Likewise.
1766 (spu_machine_dependent_reorg): Call df_finish_pass after
1767 schedule_insns returns.
1769 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1771 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
1773 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
1775 PR tree-optimization/47005
1776 * tree-sra.c (struct access): Add 'non_addressable' bit.
1777 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
1778 (decide_one_param_reduction): Return 0 if the parameter is passed by
1779 reference and one of the accesses in the group is non_addressable.
1781 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1783 PR tree-optimization/47056
1784 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
1785 (mark_load): Likewise. Handle FUNCTION_DECL specially.
1786 (mark_store): Likewise. Pass STMT to ipa_record_reference.
1788 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
1790 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
1791 initializer. Skip view conversions from aggregate types.
1793 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
1796 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
1798 2011-01-04 Philipp Thomas <pth@suse.de>
1800 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
1803 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1805 * function.c (thread_prologue_and_epilogue_insns): Do not crash
1806 on empty epilogue sequences.
1808 2011-01-04 Joseph Myers <joseph@codesourcery.com>
1810 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
1811 non-static): New Driver options.
1813 2011-01-04 Jie Zhang <jie@codesourcery.com>
1816 * gcc.c (default_compilers[]): Set combinable field to 0
1817 for all assembly languages.
1819 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
1821 * config/mips/loongson3a.md: New file.
1822 * config/mips/mips.md: Include loongson3a.md.
1823 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
1826 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
1829 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
1830 instead of convert_memory_address_addr_space on the base expression.
1832 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1834 * config/spu/spu.c (spu_option_override): Update error text
1835 for bad -march= / -mtune= values.
1837 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1839 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
1840 if branch-hint optimization will be performed.
1842 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1844 PR tree-optimization/47148
1845 * ipa-split.c (split_function): Convert arguments to
1846 DECL_ARG_TYPE if possible.
1848 PR tree-optimization/47155
1849 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
1852 PR rtl-optimization/47157
1853 * combine.c (try_combine): If undobuf.other_insn becomes
1854 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
1855 and set *new_direct_jump_p too.
1857 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
1859 PR tree-optimization/47021
1860 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
1862 2011-01-03 Jakub Jelinek <jakub@redhat.com>
1864 * gcc.c (process_command): Update copyright notice dates.
1865 * gcov.c (print_version): Likewise.
1866 * gcov-dump.c (print_version): Likewise.
1867 * mips-tfile.c (main): Likewise.
1868 * mips-tdump.c (main): Likewise.
1870 2011-01-03 Martin Jambor <mjambor@suse.cz>
1872 PR tree-optimization/46801
1873 * tree-sra.c (type_internals_preclude_sra_p): Check whether
1874 aggregate fields start at byte boundary instead of the bit-field flag.
1876 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
1879 * gcc.c (main): Revert revision 168407.
1881 2011-01-03 Martin Jambor <mjambor@suse.cz>
1883 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
1885 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1887 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
1888 vector optab to expand vector/scalar shift, update gimple to vector.
1890 2011-01-03 Martin Jambor <mjambor@suse.cz>
1892 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
1895 2011-01-03 Martin Jambor <mjambor@suse.cz>
1897 PR tree-optimization/46984
1898 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
1900 (cgraph_create_indirect_edge): Fixed line length.
1901 (cgraph_indirect_call_info): Declare.
1902 (cgraph_make_edge_direct) Update declaration.
1903 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
1904 (cgraph_create_indirect_edge): Use it.
1905 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
1907 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
1908 the new thunk_delta representation.
1909 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
1911 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
1912 (ipa_read_indirect_edge_info): Likewise.
1913 * lto-cgraph.c (output_edge_opt_summary): New function.
1914 (output_node_opt_summary): Call it on all outgoing edges.
1915 (input_edge_opt_summary): New function.
1916 (input_node_opt_summary): Call it on all outgoing edges.
1918 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
1921 * gcc.c (main): Don't check have_o when settting combine_inputs.
1923 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
1925 * regrename.c: Add general comment describing the pass.
1926 (struct du_head): Remove 'length' field.
1927 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
1928 (regrename_optimize): Do not sort chains. Rework comments, add others.
1929 Force renaming to the preferred class (if any) in the first pass and do
1930 not consider registers that belong to it in the second pass.
1931 (create_new_chain): Do not set 'length' field.
1932 (scan_rtx_reg): Likewise.
1934 2011-01-02 Jakub Jelinek <jakub@redhat.com>
1936 PR tree-optimization/47140
1937 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
1938 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
1941 PR rtl-optimization/47028
1942 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
1943 parm_birth_insn instead of at the beginning of first bb.
1945 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
1947 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
1948 Remove the word "see" before "@pxref".
1949 * doc/rtl.texi: Remove the word "see" before "@pxref".
1951 2011-01-01 Jan Hubicka <jh@suse.cz>
1953 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
1956 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
1959 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
1962 Copyright (C) 2011 Free Software Foundation, Inc.
1964 Copying and distribution of this file, with or without modification,
1965 are permitted in any medium without royalty provided the copyright
1966 notice and this notice are preserved.