OSDN Git Service

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