OSDN Git Service

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