OSDN Git Service

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