OSDN Git Service

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