OSDN Git Service

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