OSDN Git Service

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