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