ipa-split.c (verify_non_ssa_vars): Break out from ......
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2010-07-02  Jan Hubicka  <jh@suse.cz>
2
3         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS walk
4         backwards from entry_bb to check only those basic block of header
5         that might lead to execution of split part.
6         (consider_split) ... here.
7         (find_return_bb): Allow assignment in return BB.
8         (find_retval): New.
9         (split_function): Fix name of cloned function; take care of updating return
10         value in return_bb containing move.
11
12 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
13
14         PR target/44771
15         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
16         used variable insn.
17
18 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
19
20         * implicit-zee.c (combine_reaching_defs): Fix long lines.
21         (is_set_with_extension_DI): Delete.
22         (struct zero_extend_info): New structure.
23         (add_removable_zero_extend ): New function.
24         (find_removable_zero_extends): Use note_stores to find SETs.
25         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
26
27 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
28
29         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
30         is_miss_rate_acceptable. Pull total_positions computation
31         out of the loops.  Early return if miss_positions exceeds
32         the acceptable threshold.
33         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
34         is_miss_rate_acceptable after renaming of compute_miss_rate.
35
36 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
37
38         PR middle-end/44576
39         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
40         of 1000) for miss rate if the address diference is greater than or
41         equal to the cache line size (the two reference will never hit the
42         same cache line).
43
44 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
45
46         PR target/42835
47         * config/arm/arm-modes.def (CC_NOTB): New mode.
48         * config/arm/arm.c (get_arm_condition_code): Handle it.
49         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
50         * config/arm/arm.md (subsi3_compare0_c): New pattern.
51         (compare_scc): Now a define_and_split.  Add a number of extra
52         splitters before it.
53
54         PR target/42172
55         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
56         and ZERO_EXTEND.
57         (arm_rtx_costs_1): Likewise.
58         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
59         * config/arm/arm.md (is_arch6): New attribute.
60         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
61         extendqisi2): Tighten the code somewhat, avoiding invalid
62         RTL to occur in the expander patterns.
63         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
64         (thumb1_zero_extendhisi2_v6): Delete.
65         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
66         (thumb1_extendhisi2_v6): Delete.
67         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
68         (thumb1_extendqisi2_v6): Delete.
69         (zero_extendhisi2 for register input splitter): New.
70         (zero_extendqisi2 for register input splitter): New.
71         (thumb1_extendhisi2 for register input splitter): New.
72         (extendhisi2 for register input splitter): New.
73         (extendqisi2 for register input splitter): New.
74         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
75         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
76         and add support for a register alternative requiring a split.
77         (thumb1_zero_extendqisi2): Likewise.
78         (arm_zero_extendqisi2): Likewise.
79         (arm_extendhisi2): Likewise.
80         (arm_extendqisi2): Likewise.
81
82 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
83
84         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
85         instead of an unspec.
86         (neon_expand_vector_init): Likewise.
87         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
88         (UNSPEC_VDUP_LANE): Delete.
89         (UNSPEC VDUP_N): Delete.
90         (UNSPEC_VGET_HIGH): Delete.
91         (UNSPEC_VGET_LANE): Delete.
92         (UNSPEC_VGET_LOW): Delete.
93         (UNSPEC_VMVN): Delete.
94         (UNSPEC_VSET_LANE): Delete.
95         (V_double_vector_mode): New.
96         (vec_set<mode>_internal): Make code emitted match that for the
97         corresponding intrinsics.
98         (vec_setv2di_internal): Likewise.
99         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
100         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
101         (neon_vset_lane<mode>): Combine double and quad patterns and
102         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
103         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
104         (neon_vdup_n<mode>): Rewrite RTL without unspec.
105         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
106         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
107         with neon_vdup_lanev2di, adjusting the pattern from the latter
108         to be predicable for consistency.
109         (neon_vdup_lane<mode>_internal): New.
110         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
111         to avoid using an unspec.
112         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
113         (neon_vdup_lanev2di): Turn into a define_expand.
114         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
115         (neon_vget_high<mode>): Replace with....
116         (neon_vget_highv16qi): New pattern using canonical RTL.
117         (neon_vget_highv8hi): Likewise.
118         (neon_vget_highv4si): Likewise.
119         (neon_vget_highv4sf): Likewise.
120         (neon_vget_highv2di): Likewise.
121         (neon_vget_low<mode>): Replace with....
122         (neon_vget_lowv16qi): New pattern using canonical RTL.
123         (neon_vget_lowv8hi): Likewise.
124         (neon_vget_lowv4si): Likewise.
125         (neon_vget_lowv4sf): Likewise.
126         (neon_vget_lowv2di): Likewise.
127
128         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
129         test for this emitting vmov.
130         (Vset_lane): Likewise.
131         (Vdup_n): Likewise.
132         (Vmov_n): Likewise.
133
134         * doc/arm-neon-intrinsics.texi: Regenerated.
135
136 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
137
138         * config/arm/neon.md (vec_extractv2di): Correct error in register
139         numbering to reconcile with neon_vget_lanev2di.
140
141 2010-07-02  Richard Guenther  <rguenther@suse.de>
142
143         * tree-ssa-structalias.c (pt_solution_set_var): New function.
144         * tree-ssa-alias.h (pt_solution_set_var): Declare.
145         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
146         points-to information.
147
148 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
149
150         * config/s390/s390.c (override_options): Adopt prefetching
151         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
152
153 2010-07-02  Jan Hubicka  <jh@suse.cz>
154
155         * df-problems.c (df_kill_notes): Do not collect dead  notes.
156         (df_set_note): Just call add_reg_note.
157         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
158         df_create_unused_note): Do not deal with lists of old notes.
159         (df_note_bb_compute): Likewise.
160
161 2010-07-02  Richard Guenther  <rguenther@suse.de>
162
163         * tree-ssa-structalias.c (find_func_aliases): Handle
164         pointer alignment via BIT_AND_EXPR.
165         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
166
167 2010-07-02  Richard Guenther  <rguenther@suse.de>
168
169         * tree-data-ref.c (initialize_data_dependence_relation): Handle
170         mismatching number of dimensions properly.
171
172 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
173
174         PR target/44707
175         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
176         (lo_sum (high ...) ...) patterns generated by earlier passes.
177
178 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
179
180         * doc/install.texi (Prerequisites): Document Perl requirement on
181         Solaris 2.
182         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
183
184 2010-07-02  Richard Guenther  <rguenther@suse.de>
185
186         PR middle-end/44777
187         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
188
189 2010-07-02  Jan Hubicka  <jh@suse.cz>
190
191         PR middle-end/44706
192         * predict.c (predict_paths_for_bb): Handle case when control dependence
193         BB has only abnormal edges.
194
195 2010-07-02  Richard Guenther  <rguenther@suse.de>
196
197         PR tree-optimization/44748
198         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
199         the embedded conversion in MEM_REFs.
200
201 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
202
203         * reload.c: Include toplev.h.
204         * recog.c:  Likewise.
205         * Makefile.in: Adjust dependencies.
206
207 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
208
209         PR debug/44694
210         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
211         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
212
213 2010-07-01  Richard Guenther  <rguenther@suse.de>
214
215         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
216         types for offsets.
217
218 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
219
220         PR target/44732
221         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
222
223         * config/ia64/ia64.c (ia64_register_move_cost): Fix argument types.
224
225 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
226
227         PR target/44727
228         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
229         Make sure operand 0 dies.
230
231 2010-07-01  Richard Guenther  <rguenther@suse.de>
232
233         PR middle-end/42834
234         PR middle-end/44468
235         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
236         * doc/generic.texi (References to storage): Document MEM_REF.
237         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
238         (print_call_name): Likewise.
239         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
240         (build_simple_mem_ref_loc): New function.
241         (mem_ref_offset): Likewise.
242         * tree.h (build_simple_mem_ref_loc): Declare.
243         (build_simple_mem_ref): Define.
244         (mem_ref_offset): Declare.
245         * fold-const.c: Include tree-flow.h.
246         (operand_equal_p): Handle MEM_REF.
247         (build_fold_addr_expr_with_type_loc): Likewise.
248         (fold_comparison): Likewise.
249         (fold_unary_loc): Fold
250         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
251         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
252         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
253         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
254         (ptr_deref_may_alias_ref_p_1): Likewise.
255         (ao_ref_base_alias_set): Properly differentiate base object for
256         offset and TBAA.
257         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
258         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
259         (indirect_refs_may_alias_p): Likewise.
260         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
261         chasing code.
262         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
263         (call_may_clobber_ref_p_1): Likewise.
264         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
265         * expr.c (expand_assignment): Handle MEM_REF.
266         (store_expr): Handle MEM_REFs from STRING_CSTs.
267         (store_field): If expanding a MEM_REF of a non-addressable
268         decl use bitfield operations.
269         (get_inner_reference): Handle MEM_REF.
270         (expand_expr_addr_expr_1): Likewise.
271         (expand_expr_real_1): Likewise.
272         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
273         * alias.c (ao_ref_from_mem): Handle MEM_REF.
274         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
275         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
276         (dr_analyze_indices): Likewise.
277         (dr_analyze_alias): Likewise.
278         (object_address_invariant_in_loop_p): Likewise.
279         * gimplify.c (mark_addressable): Handle MEM_REF.
280         (gimplify_cond_expr): Build MEM_REFs.
281         (gimplify_modify_expr_to_memcpy): Likewise.
282         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
283         (gimple_fold_indirect_ref): Adjust.
284         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
285         * tree.def (MEM_REF): New tree code.
286         * tree-dfa.c: Include toplev.h.
287         (get_ref_base_and_extent): Handle MEM_REF.
288         (get_addr_base_and_unit_offset): New function.
289         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
290         * gimple-fold.c (may_propagate_address_into_dereference): Handle
291         MEM_REF.
292         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
293         accesses if the array has just one dimension.  Remove always true
294         parameter.  Do not require type compatibility here.
295         (maybe_fold_offset_to_component_ref): Remove.
296         (maybe_fold_stmt_indirect): Remove.
297         (maybe_fold_reference): Remove INDIRECT_REF handling.
298         Fold back to non-MEM_REF.
299         (maybe_fold_offset_to_address): Simplify.  Deal with type
300         mismatches here.
301         (maybe_fold_reference): Likewise.
302         (maybe_fold_stmt_addition): Likewise.  Also handle
303         &ARRAY + I in addition to &ARRAY[0] + I.
304         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
305         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
306         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
307         * tree-ssa.c (useless_type_conversion_p): Make most pointer
308         conversions useless.
309         (warn_uninitialized_var): Handle MEM_REF.
310         (maybe_rewrite_mem_ref_base): New function.
311         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
312         to SSA form.
313         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
314         INDIRECT_REF handling.
315         (copy_tree_body_r): Handle MEM_REF.
316         * gimple.c (is_gimple_addressable): Adjust.
317         (is_gimple_address): Likewise.
318         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
319         invariant base are invariant.
320         (is_gimple_min_lval): Adjust.
321         (is_gimple_mem_ref_addr): New function.
322         (get_base_address): Handle MEM_REF.
323         (count_ptr_derefs): Likewise.
324         (get_base_loadstore): Likewise.
325         * gimple.h (is_gimple_mem_ref_addr): Declare.
326         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
327         * tree-cfg.c (verify_address): New function, split out from ...
328         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
329         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
330         INDIRECT_REFs.
331         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
332         INDIRECT_REF.  Allow conversions.
333         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
334         a register does not change its size.
335         (verify_types_in_gimple_reference): Verify MEM_REF.
336         (verify_gimple_assign_single): Disallow INDIRECT_REF.
337         Handle MEM_REF.
338         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
339         New.
340         (mark_address_taken): Handle MEM_REF.
341         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
342         (get_asm_expr_operands): Pass opf_not_non_addressable.
343         (get_expr_operands): Handle opf_[not_]non_addressable.
344         Handle MEM_REF.  Remove INDIRECT_REF handling.
345         * tree-vrp.c: (check_array_ref): Handle MEM_REF.
346         (search_for_addr_array): Likewise.
347         (check_array_bounds): Likewise.
348         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
349         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
350         (ref_always_accessed_p): Likewise.
351         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
352         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
353         Handle MEM_REF.
354         * cgraphbuild.c (mark_load): Properly check for NULL result
355         from get_base_address.
356         (mark_store): Likewise.
357         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
358         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
359         handling for MEM_REF.
360         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
361         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
362         * builtins.c (stabilize_va_list_loc): Use the function ABI
363         valist type if we couldn't canonicalize the argument type.
364         Always dereference with the canonical va-list type.
365         (maybe_emit_free_warning): Handle MEM_REF.
366         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
367         memmove to memcpy.
368         * builtins.c (fold_builtin_memory_op): Use ref-all types
369         for all memcpy foldings.
370         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
371         (build_outer_var_ref): Likewise.
372         (scan_omp_1_op): Likewise.
373         (lower_rec_input_clauses): Likewise.
374         (lower_lastprivate_clauses): Likewise.
375         (lower_reduction_clauses): Likewise.
376         (lower_copyprivate_clauses): Likewise.
377         (expand_omp_atomic_pipeline): Likewise.
378         (expand_omp_atomic_mutex): Likewise.
379         (create_task_copyfn): Likewise.
380         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
381         Remove old union trick.  Initialize constant offsets.
382         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
383         INDIRECT_REF.  Init base_alias_set properly.
384         (vn_reference_lookup_3): Replace INDIRECT_REF handling with
385         MEM_REF.
386         (vn_reference_fold_indirect): Adjust for MEM_REFs.
387         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
388         for ARRAY_REFs.
389         (may_insert): Remove.
390         (visit_reference_op_load): Do not test may_insert.
391         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
392         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
393         a field to store the constant offset this op applies.
394         (run_scc_vn): Adjust prototype.
395         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
396         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
397         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
398         bother about volatile qualifiers on pointers.
399         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
400         * tree-ssa-loop-ivopts.c
401         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust
402         for MEM_REF.
403         (strip_offset_1): Likewise.
404         (find_interesting_uses_address): Replace INDIRECT_REF handling with
405         MEM_REF handling.
406         (get_computation_cost_at): Likewise.
407         * ipa-pure-const.c (check_op): Handle MEM_REF.
408         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
409         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
410         and constants.
411         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
412         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
413         (eliminate_local_variables_1): Likewise.
414         (create_call_for_reduction_1): Likewise.
415         (create_loads_for_reductions): Likewise.
416         (create_loads_and_stores_for_name): Likewise.
417         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
418         (ssa_accessed_in_tree): Handle MEM_REF.
419         (ssa_accessed_in_assign_rhs): Likewise.
420         (update_type_size): Likewise.
421         (analyze_accesses_for_call_stmt): Likewise.
422         (analyze_accesses_for_assign_stmt): Likewise.
423         (transform_access_sites): Likewise.
424         (transform_allocation_sites): Likewise.
425         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
426         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
427         not handle INDIRECT_REF.
428         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
429         (cond_store_replacement): Likewise.
430         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
431         MEM_REF, no not handle INDIRECT_REFs.
432         (insert_into_preds_of_block): Properly initialize avail.
433         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
434         for ARRAY_REFs.  Properly handle reference lookups that
435         require a bit re-interpretation.
436         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
437         * tree-sra.c
438         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
439         (build_ref_for_offset_1): Remove.
440         (build_ref_for_offset): Build MEM_REFs.
441         (gate_intra_sra): Disable for now.
442         (sra_ipa_modify_expr): Handle MEM_REF.
443         (ipa_early_sra_gate): Disable for now.
444         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
445         MEM_REF handling.
446         (disqualify_base_of_expr): Likewise.
447         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
448         MEM_REF handling.
449         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
450         Use mem_ref_offset.  Remove bogus folding.
451         (build_access_from_expr_1): Properly handle MEM_REF for
452         non IPA-SRA.
453         (make_fancy_name_1): Add support for MEM_REF.
454         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
455         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
456         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
457         (compute_complex_ancestor_jump_func): Likewise.
458         (ipa_analyze_virtual_call_uses): Likewise.
459         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
460         INDIRECT_REF folding with more generalized MEM_REF folding.
461         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
462         (forward_propagate_addr_into_variable_array_index): Also handle
463         &ARRAY + I in addition to &ARRAY[0] + I.
464         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
465         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
466         creates assignments with overlap.
467         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
468         (get_frame_field): Likewise.
469         (get_nonlocal_debug_decl): Likewise.
470         (convert_nonlocal_reference_op): Likewise.
471         (struct nesting_info): Add mem_refs pointer-set.
472         (create_nesting_tree): Allocate it.
473         (convert_local_reference_op): Insert to be folded mem-refs.
474         (fold_mem_refs): New function.
475         (finalize_nesting_tree_1): Perform defered folding of mem-refs 
476         (free_nesting_tree): Free the pointer-set.
477         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
478         (vectorizable_load): Likewise.
479         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
480         (propagate_with_phi): Likewise.
481         * tree-object-size.c (addr_object_size): Handle MEM_REFs
482         instead of INDIRECT_REFs.
483         (compute_object_offset): Handle MEM_REF.
484         (plus_stmt_object_size): Handle MEM_REF.
485         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
486         for &MEM_REF.
487         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
488         (symbol_marked_for_renaming): Likewise.
489         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
490         (fold-const.o): Add $(TREE_FLOW_H).
491         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
492         (find_func_clobbers): Likewise.
493         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
494         (decompose_access): Likewise.
495         (replace_field_acc): Likewise.
496         (replace_field_access_stmt): Likewise.
497         (insert_new_var_in_stmt): Likewise.
498         (get_stmt_accesses): Likewise.
499         (reorg_structs_drive): Disable.
500         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
501         (ix86_canonical_va_list_type): Likewise.
502
503 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
504
505         PR other/44566
506         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
507         * target.def (struct gcc_target): Replace enum reg_class with
508         reg_class_t in hook argument / return types.
509         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
510         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
511         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
512         * targhooks.h (default_branch_target_register_class): Likewise.
513         (default_ira_cover_classes, default_secondary_reload): Likewise.
514         (default_memory_move_cost, default_register_move_cost): Likewise.
515         * targhooks.c (default_branch_target_register_class): Likewise.
516         (default_ira_cover_classes, default_secondary_reload): Likewise.
517         (default_memory_move_cost, default_register_move_cost): Likewise.
518         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
519         * bt-load.c (branch_target_load_optimize): Likewise.
520         * ira.c (setup_cover_and_important_classes): Likewise.
521         * ira-costs.c (copy_cost): Likewise.
522         * reload1.c (emit_input_reload_insns): Likewise.
523         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
524         * config/frv/frv.c (frv_secondary_reload): Likewise.
525         * config/s390/s390.c (s390_secondary_reload): Likewise.
526         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
527         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
528         (ix86_register_move_cost): Likewise.
529         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
530         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
531         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
532         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
533         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
534         (rs6000_ira_cover_classes): Likewise.
535         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
536         * config/picochip/picochip-protos.h (picochip_secondary_reload):
537         Likewise.
538         * config/pa/pa.c (pa_secondary_reload): Likewise.
539         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
540         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
541         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
542         * doc/tm.texi: Regenerate.
543
544 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
545
546         PR bootstrrap/44726
547         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
548         use.
549         (build_alias_set_optimal_p): Likewise.
550         (build_base_obj_set_for_drs): Likewise.
551
552 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
553
554         * target.def: Remove comment about licensing problems of function
555         declarations.
556
557         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
558         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
559         * doc/tm.texi: Regenerate.
560
561         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
562         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
563
564         * target.def (enum_va_list_p): Use DEFHOOK.
565         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
566         Rename ptype to ptree.
567         * doc/tm.texi: Regenerate.
568
569         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
570         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
571         * doc/tm.texi: Regenerate.
572
573         * target.def (memory_move_cost): Use DEFHOOK.
574         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
575         Rename regclass AKA class to rclass.
576         * doc/tm.texi: Regenerate.
577
578         * target.def (pragma_parse): Use DEFHOOK.
579         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
580         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
581         * doc/tm.texi: Regenerate.
582
583         * target.def (pass_by_reference): Use DEFHOOK.
584         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
585         * doc/tm.texi: Regenerate.
586
587         * target.def (resolve_overloaded_builtin): Rename params to arglist.
588         Use DEFHOOK.
589         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
590         * doc/tm.texi: Regenerate.
591
592         * target.def (return_pops_args): Use DEFHOOK.
593         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
594         Rename stack-size to size.
595         * doc/tm.texi: Regenerate.
596
597         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
598         last-sched_cycle to last_clock, cur_cycle to clock.
599         * doc/tm.texi.in: Use @hook.
600         * doc/tm.texi: Regenerate.
601
602         * target.def (print_operand, print_operand_address): Update comment.
603         (print_operand_punct_valid_p): Likewise.
604
605 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
606
607         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
608         to rtl.h.
609         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
610         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations
611         here.
612         * rtl-error.h: New.
613         * regrename.c: Do not include toplev.h. Include rtl-error.h.
614         * rtl-error.c: Likewise.
615         * reload.c: Likewise.
616         * recog.c:  Likewise.
617         * sel-sched.c: Likewise.
618         * function.c: Likewise.
619         * reg-stack.c: Likewise.
620         * cfgrtl.c: Likewise.
621         * reload1.c: Likewise.
622         * final.c: Include rtl-error.
623         * Makefile.in: Adjust dependencies.
624
625 2010-06-30  Jan Hubicka  <jh@suse.cz>
626
627         PR middle-end/PR44706
628         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
629         to return the value.
630
631 2010-06-30  Michael Matz  <matz@suse.de>
632
633         PR bootstrap/44699
634         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
635         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
636         a gimple reg, attach the original VDEF to the last store in the
637         sequence.
638
639 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
640
641         PR other/44034
642         * config/darwin.c (darwin_override_options): Use renamed
643         targetm.asm_out.emit_unwind_label.
644
645 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
646
647         PR tree-optimization/39799
648         * tree-inline.c (remap_ssa_name): Initialize variable only if
649         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
650
651 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
652
653         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
654
655 2010-06-30  Richard Guenther  <rguenther@suse.de>
656
657         PR target/44722
658         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
659         against oscillation with reverse peephole2.
660
661 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
662
663         PR target/44721
664         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
665         Fix last commit.
666
667 2010-06-30  Nick Clifton  <nickc@redhat.com>
668
669         * config/rx/rx-modes.def: New file.
670         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
671         (CC_REGNUM): Define.
672         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
673         register.
674         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
675         (SELECT_CC_MODE): Define.
676         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
677         (reg:CC CC_REG) instead of (cc0).
678         (attr "cc"): Delete.
679         (cbranchsi4): Do not split compare and branch here. Instead move
680         it to...
681         (cbranchsi4_<code>): ... here.  New patterns.
682         (cmpsi): Call rx-compare_redundant to find out if it is necessary
683         to emit the compare instruction.
684         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
685         cc_status flags.
686         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
687         FIRST_PSEUDO_REGNUM.
688         (rx_expand_prologue, rx_expand_epilogue): Likewise.
689         (rx_notice_update_cc): Delete.
690         (rx_cc_modes_compatible): New function.
691         (flags_needed_for_conditional): New function.
692         (flags_from_mode): New function.
693         (rx_compare_redundant): New function - scans backwards through
694         insn list to find out if condition flags are already set
695         correctly.
696         (TARGET_CC_MODES_COMPATIBLE): Define.
697         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
698
699         * config/rx/rx.h (BRANCH_COST): Define.
700         (REGISTER_MOVE_COST): Define.
701         * config/rx/predicates (rx_source_operand): Allow all constant
702         types.
703         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
704         (tstsi4): New pattern.
705         * config/rx/rx.c (rx_memory_move_cost): Define.
706         (TARGET_MEMORY_MOVE_COST): Define.
707
708 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
709
710         * tree.h (block_may_fallthru): Declare here.
711         * tree-flow.h (block_may_fallthru): Do not declare here.
712         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
713         bitmap.h
714         * Makefile.in (c-typeck.o): Update dependencies.
715
716 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
717
718         PR debug/44694
719         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
720         * cselib.c (cfa_base_preserved_regno): New static variable.
721         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
722         of REGNO (cfa_base_preserved_val->locs->loc).
723         (cselib_preserve_cfa_base_value): Add regno argument, set
724         cfa_base_preserved_regno to it.
725         (cselib_invalidate_regno): Allow removal of registers other than
726         cfa_base_preserved_regno from cfa_base_preserved_val.
727         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
728         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
729         of MEM addresses, if not on LHS.
730         (reverse_op): Don't add reverse ops for cfa_base_rtx.
731         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
732
733 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
734
735         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
736         static variables.
737         (peep2_buf_position): New static function.
738         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
739         peephole2_optimize): Use it.
740         (peep2_attempt, peep2_update_life): New static functions, broken out
741         of peephole2_optimize.
742         (peep2_fill_buffer): New static function.
743         (peephole2_optimize): Change the main loop to try to fill the buffer
744         with the maximum number of insns before matching them against
745         peepholes.  Use a forward scan.  Remove special case for targets with
746         conditional execution.
747         * genrecog.c (change_state): Delete dead code.
748         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
749         Rewrite so as not to expect the second insn to have had a peephole
750         applied yet.
751
752 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
753
754         * genhooks.c (emit_findices): Cast field precision to int.
755         (emit_documentation): Likewise.
756
757 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
758
759         PR tree-optimization/43801
760         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
761         if old_decl was DECL_ONE_ONLY.
762
763         PR debug/44668
764         * dwarf2out.c (add_accessibility_attribute): New function.
765         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
766         instead of adding DW_AT_accessibility manually.
767         (gen_enumeration_type_die, gen_struct_or_union_type_die,
768         gen_typedef_die): Use it.
769
770 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
771
772         * vmsdbgout.c (full_name): Just output the file name if not native.
773
774 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
775
776         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
777         (funcnam_table): New static table.
778         (funcnum_table): New static table.
779         (write_rtnbeg): Write value saved in funcnum_table.
780         (write_rtnend): Write value saved in funcnum_table.
781         (vmsdbgout_begin_function): Save current function info in
782         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
783         (vmsdbgout_finish): Iterate over funcnum_table.
784
785 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
786
787         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
788         (vmsdbgout_type_decl): Declare
789         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
790         (FUNC_EPILOGUE_LABEL): New macro
791         (vmsdbgout_begin_epilogue): New function.
792         (vmsdbgout_type_decl): New function.
793
794 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
795
796         * vmsdbg.h: Update copyright.
797
798 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
799
800         * vmsdbg.h (DST_K_TBG): New DST constant.
801         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
802         (write_modbeg): Cast module_language to avoid warning.
803         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
804
805 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
806
807         PR other/44034
808         * target.def, doc/tm.texi.in, genhooks.c: New files.
809         * target.h: Instead of defining individual hook members,
810         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
811         include target.def.
812         * target-def.h: Instead of defining individual hook initializers,
813         include target-hooks-def.h.
814         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
815         targetm.live_on_entry -> targetm.extra_live_on_entry
816         targetm.sched.md_finish ->targetm.sched.finish
817         targetm.sched.md_init -> targetm.sched.init
818         targetm.sched.md_init_global -> targetm.sched.init_global
819         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
820         targetm.asm_out.except_table_label ->
821           targetm.asm_out.emit_except_table_label
822         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
823         targetm.target_help -> targetm.help
824         targetm.vectorize.builtin_support_vector_misalignment ->
825           targetm.vectorize.support_vector_misalignment
826         targetm.file_start_app_off -> targetm.asm_file_start_app_off
827         targetm.file_start_file_directive ->
828          targetm.asm_file_start_file_directive
829         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
830         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
831         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
832         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
833           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
834         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
835           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
836         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
837         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
838         * Makefile.in (TARGET_H): Depend on target.def.
839         (TARGET_DEF_H): Depend on target-hooks-def.h.
840         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
841         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
842         * doc/tm.texi: Regenerate.
843
844         * Makefile.in (s-tm-texi): Remove stray tab / rule.
845
846         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
847         (targetm.sched.init): Likewise.
848
849 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
850
851         PR bootstrap/44713
852         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
853         (function_arg_advance_32): Const-ify TYPE parameter.
854         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
855         (ix86_function_arg_advance): Change type of NAMED to bool.
856         (function_arg_32): Const-ify CUM and TYPE parameters.
857         (function_arg_64): Likewise.  Change type of NAMED to bool.
858         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
859         to bool.
860         (ix86_function_arg): Change type of NAMED to bool.
861         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
862         last argument as a bool.
863
864 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
865
866         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
867         (OVERRIDE_OPTIONS): Add note of obsolescence.
868         Replace references with references to TARGET_OPTION_OVERRIDE.
869         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
870          the macro).
871         * targhooks.c (default_target_option_override): New function.
872         * targhooks.h (default_target_option_override): Declare.
873         * target.h (struct gcc_target): Add override member to
874         target_option member.
875         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
876         targetm.target_option.override call.
877         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
878         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
879
880 2010-06-29  Jan Hubicka  <jh@suse.cz>
881
882         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
883
884 2010-06-29  Jan Hubicka  <jh@suse.cz>
885
886         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
887         unreachable.
888         (rebuild_frequencies): New function.
889         * predict.h (rebuild_frequencies): Declare.
890         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
891         entry block and edge reaching new_entry.
892         (tree_function_versioning): When doing partial cloning, rebuild frequencies
893         when done.
894         * passes.c (execute_function_todo): Use rebild_frequencies.
895
896 2010-06-29  Richard Guenther  <rguenther@suse.de>
897
898         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
899         * tree-flow.h (enum noalias_state): Remove.
900         (struct var_ann_d): Remove noalias_state member.
901
902 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
903
904         PR target/43902
905         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
906         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
907         (maddhidi4): Likewise.
908
909         Revert parts of the change for PR25130.
910         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
911         MEM_ALIAS_SET.
912
913 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
914
915         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
916         targetm.calls.function_incoming_arg, and
917         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
918         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
919         * target.h (struct gcc_target): Add function_arg_advance,
920         function_arg, and function_incoming_arg fields.
921         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
922         (TARGET_FUNCTION_INCOMING_ARG): Define.
923         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
924         and TARGET_FUNCTION_INCOMING_ARG.
925         * targhooks.h (default_function_arg_advance): Declare.
926         (default_function_arg, default_function_incoming_arg): Declare.
927         * targhooks.c (default_function_arg_advance): New function.
928         (default_function_arg, default_function_incoming_arg): New function.
929         * config/i386/i386.c (function_arg_advance): Rename to...
930         (ix86_function_arg_advance): ...this.  Make static.
931         (function_arg): Rename to...
932         (ix86_function_arg): ...this.  Make static.
933         (TARGET_FUNCTION_ARG_ADVANCE): Define.
934         (TARGET_FUNCTION_ARG): Define.
935         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
936         (FUNCTION_ARG): Delete.
937         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
938         (function_arg): Delete prototype.
939
940 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
941
942         * reginfo.c (init_reg_sets_1): Adjust comments.
943         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
944         * calls.c (prepare_call_address): Likewise.
945         (emit_call_1): Use targetm.calls.return_pops_args.
946         (expand_call): Likewise.
947         * function.c (assign_parms): Likewise.
948         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
949         * target.h (struct gcc_target) [struct calls]: Add
950         return_pops_args field.
951         * targhooks.h (default_return_pops_args): Declare.
952         * targhooks.c (default_return_pops_args): Define.
953         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
954         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
955         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
956         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
957         documentation.
958         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
959         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
960         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
961         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
962         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
963         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
964         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
965         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
966         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
967         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
968         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
969         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
970         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
971         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
972         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
973         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
974         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
975         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
976         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
977         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
978         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
979         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
980         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
981         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
982         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
983         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
984         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
985         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
986         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
987         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
988         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
989         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
990         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
991         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
992         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
993         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
994         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
995         * config/i386/i386.c (ix86_return_pops_args): Make static.
996         Constify arguments.
997         (TARGET_RETURN_POPS_ARGS): Define.
998         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
999         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
1000         (TARGET_RETURN_POPS_ARGS): Define.
1001         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
1002         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
1003         (TARGET_RETURN_POPS_ARGS): Define.
1004
1005 2010-06-29  Richard Guenther  <rguenther@suse.de>
1006
1007         PR middle-end/44667
1008         * tree-inline.c (initialize_inlined_parameters): Make sure
1009         to remap the inlined parameter variable substitutions types.
1010
1011 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
1012
1013         PR rtl-optimization/44659
1014         * combine.c (make_compound_operation) <SUBREG>: Do not return the
1015         result of force_to_mode if it partially re-expanded the compound.
1016
1017 2010-06-28  Jan Hubicka  <jh@suse.cz>
1018
1019         PR middle-end/44671
1020         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
1021         RESULT_DECL.
1022
1023 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
1024
1025         * double-int.h (force_fit_type_double): Remove declaration.
1026         * double-int.c (force_fit_type_double): Move to tree.c.
1027         * tree.h (force_fit_type_double): Declare.
1028         * tree.h (force_fit_type_double): Moved from double-int.c. Use
1029         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
1030         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
1031         * convert.c (convert_to_pointer): Adjust call to
1032         force_fit_type_double.
1033         * tree-vrp.c (extract_range_from_assert,
1034         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
1035         * fold-const.c: Update comment.
1036         (int_const_binop, fold_convert_const_int_from_int,
1037         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
1038         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
1039         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
1040         round_up_loc): Adjust call to force_fit_type_double.
1041
1042 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1043
1044         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
1045
1046 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1047
1048         * tree-sra.c (convert_callers): New parameter, change fndecls of
1049         recursive calls.
1050         (modify_function): Pass the old decl to convert_callers.
1051
1052 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1053
1054         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
1055         ipa_check_create_node_params and ipa_initialize_node_params with
1056         checking asserts they are not necessary.
1057
1058 2010-06-28  Jan Hubicka  <jh@suse.cz>
1059
1060         PR tree-optimization/44687
1061         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
1062
1063 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1064
1065         PR c++/44535
1066         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
1067         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
1068         instead of BINFO_BASE_BINFO.
1069
1070 2010-06-28  Michael Matz  <matz@suse.de>
1071
1072         PR middle-end/44592
1073         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
1074         proper VDEF chain for intermediate stores in the sequence.
1075
1076 2010-06-28  Jan Hubicka  <jh@suse.cz>
1077
1078         PR tree-optimization/44357
1079         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to uninlinable
1080         functions.
1081
1082 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1083
1084         * config.gcc (powerpc*-*-*): Handle titan.
1085         * config/rs6000/rs6000.c (titan_cost): New costs.
1086         (rs6000_override_options): Add "titan" to processor_target_table.
1087         Add Titan to branch alignment logic.
1088         Correctly set rs6000_cost for titan.
1089         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
1090         * config/rs6000/titan.md: New file.
1091         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
1092         
1093 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
1094
1095         * tree-browser.c (TB_history_stack): Convert to a VEC.
1096         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
1097         (TB_history_prev): Likewise.
1098
1099 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
1100
1101         * vec.h (vec_heap_free): Add parentheses around free.
1102
1103 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
1104
1105         * system.h: Poison GCC_EXCEPT_H for front-end files.
1106
1107         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
1108         langhook.
1109         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
1110         Define to NULL by default.
1111         * except.h: Define GCC_EXCEPT_H.
1112         (doing_eh): Remove prototype.
1113         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
1114         (lang_protect_cleanup_actions): Remove.
1115         * except.c (lang_protect_cleanup_actions): Remove.
1116         (doing_eh): Remove.
1117         (gen_eh_region): Don't check doing_eh here.
1118         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
1119         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
1120         instead of lang_protect_cleanup_actions.
1121         * omp-low.c (maybe_catch_exception): Likewise.
1122         * Makefile.in: Update dependencies.
1123
1124 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
1125
1126         * cgraph.h (struct varpool_node): new used_from_object_file flag.
1127         (struct cgraph_local_info): new used_from_object_file flag.
1128         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
1129         (cgraph_clone_node): initialize used_from_object_file.
1130         (cgraph_create_virtual_clone): initialize used_from_object_file.
1131         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
1132         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
1133         when compiling with -fwhole-program.
1134         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
1135         internal resolver.
1136         * ipa.c (function_and_variable_visibility): Set externally_visible
1137         flag of varpool_node if used_from_object_file flag is set.
1138         (cgraph_externally_visible_p): check used_from_object_file flag.
1139         * doc/invoke.texi (-fwhole-program option): Change description of
1140         externally_visible attribute accordingly.
1141         * doc/extend.texi (externally_visible): Ditto.
1142
1143 2010-06-27  Jan Hubicka  <jh@suse.cz>
1144
1145         * params.def (max-inline-insns-auto): Default to 40.
1146         * doc/invoke.texi (max-inline-insns-auto): Document the change.
1147
1148 2010-06-27  Jan Hubicka  <jh@suse.cz>
1149
1150         PR middle-end/44671
1151         PR middle-end/44686
1152         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
1153         signature change.
1154         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
1155         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
1156
1157 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
1158
1159         * target.h (struct gcc_target): Add register_move_cost field.
1160         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
1161         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
1162         * targhooks.c (default_register_move_cost): New function.
1163         * targhooks.h (default_register_move_cost): Declare function.
1164         * defaults.h (REGISTER_MOVE_COST): Delete.
1165         * ira-int.h (ira_register_move_cost): Update comment.
1166         * ira.c: (ira_register_move_cost): Update comment.
1167         * reload.h (register_move_cost): Declare.
1168         * reginfo.c (register_move_cost): New function.
1169         (move_cost): Update comment.
1170         (init_move_cost, memory_move_secondary_cost): Replace
1171         REGISTER_MOVE_COST with register_move_cost.
1172         * postreload.c (reload_cse_simplify_set): (Ditto.).
1173         * reload.c (find_valid_class, find_reloads): (Ditto.).
1174         * reload1.c (choose_reload_regs): (Ditto.).
1175         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
1176         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
1177         * doc/md.texi (can_create_pseudo_p): Update documentation.
1178
1179         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
1180         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
1181         * config/i386/i386.h (ix86_memory_move_cost): Make static.
1182         (TARGET_MEMORY_MOVE_COST): Define.
1183
1184         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
1185         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
1186         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
1187         (TARGET_MEMORY_MOVE_COST): Define.
1188
1189 2010-06-27  Richard Guenther  <rguenther@suse.de>
1190
1191         PR tree-optimization/44683
1192         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
1193         false edge from the inverted condition.
1194
1195 2010-06-27  Richard Guenther  <rguenther@suse.de>
1196
1197         PR middle-end/44684
1198         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
1199         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
1200         for register LHS.  Or non-store assignments.
1201
1202 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
1203
1204         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
1205         (sparc_emit_set_const64): Likewise.  Remove disabled code.
1206         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
1207         (sparc_emit_set_const64): Likewise.
1208
1209 2010-06-26  Catherine Moore  <clm@codesourcery.com>
1210
1211         * config/mips/mips.md (alu_type): New attribute.
1212         (type): Infer type from alu_type.
1213         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
1214         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
1215         *subsi3_extended, negsi2, negdi2, *low<mode>,
1216         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
1217         xor<mode>3, *nor<mode>3,
1218         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
1219         *zero_extendhi_truncqi):  Set alu_type instead of type.
1220
1221 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
1222
1223         * config/alpha/alpha.c (alpha_need_linkage): Adjust
1224         splay_tree_new_ggc call.
1225         (alpha_use_linkage): Likewise.
1226
1227 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
1228
1229         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
1230         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
1231         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
1232         (static_specs): Remove switches_need_spaces.
1233         (process_command, do_self_spec): Hardcode handling "-o" instead of
1234         checking switches_need_spaces.
1235         * system.h (SWITCHES_NEED_SPACES): Poison.
1236
1237 2010-06-26  Richard Guenther  <rguenther@suse.de>
1238
1239         PR tree-optimization/44393
1240         * tree-loop-distribution.c (generate_loops_for_partition): Fix
1241         stmt removal and VOP renaming.
1242         (generate_memset_zero): Remove redundant stmt updating.
1243         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
1244         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
1245
1246 2010-06-26  Jan Hubicka  <jh@suse.cz>
1247
1248         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
1249         edges comming from header are equivalent.
1250         (visit_bb): Handle PHIs correctly.
1251         * tree-inline.c (copy_phis_for_bb): Be able to copy
1252         PHI from entry edge.
1253         (copy_cfg_body): Produce edge from entry BB before copying
1254         PHIs.
1255
1256 2010-06-26  Richard Guenther  <rguenther@suse.de>
1257
1258         PR middle-end/44674
1259         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
1260         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
1261
1262 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
1263
1264         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
1265         add_infile, alloc_switch): New.
1266         (process_command): Remove variable lang_n_infiles.  Process
1267         options in a single pass.  Use new functions for allocating
1268         infiles and switches arrays.  Properly skip operands of
1269         -Xpreprocessor and -Xassembler.
1270
1271 2010-06-26  Jan Hubicka  <jh@suse.cz>
1272
1273         PR middle-end/44671
1274         * cgraphunit.c (cgraph_function_versioning): Remove wrong
1275         cgraph_make_decl_local call; fix typo copying RTL data.
1276
1277 2010-06-25  DJ Delorie  <dj@redhat.com>
1278
1279         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
1280         (m32c_output_aligned_common): Likewise.
1281         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1282         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1283         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
1284         (m32c_register_pragmas): Register it.
1285         * config/m32c/m32c.c (m32c_get_pragma_address): New.
1286         (m32c_insert_attributes): Set #pragma address decls volatile.
1287         (pragma_entry_eq): New.
1288         (pragma_entry_hash): New.
1289         (m32c_note_pragma_address): New.
1290         (m32c_get_pragma_address): New.
1291         (m32c_output_aligned_common): New.
1292         * doc/extend.texi: Document the new pragma.
1293
1294         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
1295         also.
1296         * config/m32c/predicates.md (m32c_any_operand): Check the code
1297         instead of memory_operand so as to allow matching volatile MEMs.
1298         (m32c_nonimmediate_operand): Likewise.
1299         (mra_operand): Allow volatiles.
1300
1301 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
1302
1303         PR debug/44610
1304         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
1305         address if the offset is unknown.
1306
1307 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
1308
1309         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
1310         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
1311         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
1312         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
1313         to ia64_start_function. Invoke it.
1314         * config/ia64/ia64.c (ia64_start_function): Call new function
1315         dwarf2out_vms_debug_main_pointer.
1316
1317 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
1318
1319         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
1320         statements computing the true predicate.
1321
1322 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
1323
1324         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
1325         to boolean_true_node.
1326         (reset_bb_predicate): New.
1327         (predicate_bbs): Call reset_bb_predicate.
1328
1329 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
1330
1331         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
1332         (tree_if_conversion): Returns true when something has been changed.
1333         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
1334         changed something.
1335
1336 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
1337
1338         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
1339         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
1340         * tree-if-conv.c: Include dbgcnt.h.
1341         (tree_if_conversion): Use if_conversion_tree to count the number of
1342         if-convertible loops.
1343
1344 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
1345
1346         * common.opt (fprefetch-loop-arrays): Re-define
1347         -fprefetch-loop-arrays as a tri-state option with the initial
1348         value of -1.
1349         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
1350         pass only when flag_prefetch_loop_arrays > 0.
1351         * toplev.c (process_options): Note that, with tri-states,
1352         flag_prefetch_loop_arrays>0 means prefetching is enabled.
1353         * config/i386/i386.c (override_options): Enable prefetching at -O3
1354         for a set of CPUs that sw prefetching is helpful.
1355         (software_prefetching_beneficial_p): New.  Return TRUE if software
1356         prefetching is beneficial for the given CPU.
1357
1358 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
1359
1360         PR rtl-optimization/44326
1361         * implicit-zee.c (find_removable_zero_extends): Replace
1362         INSN_P with NONDEBUG_INSN_P.
1363
1364 2010-06-25  Martin Jambor  <mjambor@suse.cz>
1365
1366         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
1367         (struct ipa_node_params): Removed the modification_analysis_done flag.
1368         (ipa_is_param_modified): Removed.
1369         (ipa_analyze_node): Declare.
1370         (ipa_compute_jump_functions): Remove declaration.
1371         (ipa_count_arguments): Likewise.
1372         (ipa_detect_param_modifications): Likewise.
1373         (ipa_analyze_params_uses): Likewise.
1374         * ipa-prop.c (struct param_analysis_info): New type.
1375         (visit_store_addr_for_mod_analysis): Removed.
1376         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
1377         moved down in the file.
1378         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
1379         (ipa_count_arguments): Made static.
1380         (mark_modified): New function.
1381         (is_parm_modified_before_call): New function.
1382         (compute_pass_through_member_ptrs): New parameter parms_info, call
1383         is_parm_modified_before_call instead of ipa_is_param_modified.
1384         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
1385         it to compute_pass_through_member_ptrs.
1386         (ipa_compute_jump_functions): New parameter parms_info, pass it to
1387         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
1388         on the callee if it is analyzed.  Made static.
1389         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
1390         is_parm_modified_before_call instead of ipa_is_param_modified.
1391         (ipa_analyze_call_uses): New parameter parms_info, pass it to
1392         ipa_analyze_indirect_call_uses.
1393         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
1394         ipa_analyze_call_uses.
1395         (ipa_analyze_params_uses): New parameter parms_info, pass it to
1396         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
1397         (ipa_analyze_node): New function.
1398         (ipa_print_node_params): Do not dump the modified flag.
1399         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
1400         it.  Do not stream the modified parameter flag.
1401         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
1402         it.  Do not stream the modified parameter flag.
1403         * ipa-cp.c (ipcp_analyze_node): Removed.
1404         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
1405         with only a call to ipa_analyze_node.
1406         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
1407         node with only a call to ipa_analyze_node.
1408
1409 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1410
1411         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
1412
1413 2010-06-25  Jan Hubicka  <jh@suse.cz>
1414
1415         * tree-pass.h (pass_split_functions): Declare.
1416         * opts.c (decode_options): Enable function splitting at -O2
1417         * timevar.def (TV_IPA_FNSPLIT): New macro.
1418         * ipa-split.c: New file.
1419         * common.opt (-fpartial-inlining): New flag.
1420         * Makefile.in (ipa-split.o): New object file.
1421         * passes.c (init_optimization_passes): Add ipa-split.
1422         * params.def (partial-inlining-entry-probability): New parameters.
1423         * doc/invoke.texi (-fpartial-inlining): New.
1424
1425 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1426
1427         PR 44665
1428         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
1429         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
1430         (gimplify_expr): Likewise.
1431
1432 2010-06-25  Martin Jambor  <mjambor@suse.cz>
1433
1434         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
1435         statements instead of bailing out on them.
1436         (ipa_analyze_indirect_call_uses): Do not require that loads from the
1437         parameter are in the same BB as the condition.  Update comments.
1438
1439 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
1440
1441         PR middle-end/43866
1442         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
1443         true or always false, return NULL_TREE.
1444         (tree_unswitch_single_loop): Optimize conditions even when reaching
1445         max-unswitch-level parameter.  If num > 0, optimize first all conditions
1446         using entry checks, then do still reachable block discovery and consider
1447         only conditions in still reachable basic blocks in the loop.
1448
1449         PR tree-optimization/44539
1450         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
1451         the call doesn't have LHS, but has VDEF.
1452
1453 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
1454
1455         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
1456         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
1457         * gcc.c (enum add_del, struct modify_target, modify_target):
1458         Remove.
1459         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
1460         * system.h (MODIFY_TARGET_NAME): Poison.
1461
1462 2010-06-25  Alan Modra  <amodra@gmail.com>
1463
1464         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
1465         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
1466         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
1467         CMODEL_LARGE as default.
1468         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
1469         (offsettable_ok_by_alignment): Delete.
1470         (rs6000_emit_move): Remove mcmodel=medium optimization.
1471
1472 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
1473
1474         With large parts from Jim Wilson:
1475         PR target/43902
1476         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
1477         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
1478         * optabs.c (optab_for_tree_code): Likewise.
1479         (expand_widen_pattern_expr): Likewise.
1480         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
1481         out of execute_optimize_widening_mul.
1482         (convert_plusminus_to_widen): New function.
1483         (execute_optimize_widening_mul): Use the two new functions.
1484         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
1485         Remove code to generate widening multiply-accumulate.  Add support
1486         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
1487         * gimple-pretty-print.c (dump_ternary_rhs): New function.
1488         (dump_gimple_assign): Call it when appropriate.
1489         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
1490         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
1491         (expand_gimple_stmt_1): Likewise.
1492         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
1493         WIDEN_MULT_MINUS_EXPR.
1494         * tree-ssa-operands.c (get_expr_operands): Likewise.
1495         * tree-inline.c (estimate_operator_cost): Likewise.
1496         * gimple.c (extract_ops_from_tree_1): Renamed from
1497         extract_ops_from_tree.  Add new arg for a third operand; fill it.
1498         (gimple_build_assign_stat): Support operations with three operands.
1499         (gimple_build_assign_with_ops_stat): Likewise.
1500         (gimple_assign_set_rhs_from_tree): Likewise.
1501         (gimple_assign_set_rhs_with_ops_1): Renamed from
1502         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
1503         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
1504         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
1505         WIDEN_MULT_MINUS_EXPR.
1506         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
1507         (extract_ops_from_tree_1): Adjust declaration.
1508         (gimple_assign_set_rhs_with_ops_1): Likewise.
1509         (gimple_build_assign_with_ops): Pass NULL for last operand.
1510         (gimple_build_assign_with_ops3): New macro.
1511         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
1512         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
1513         functions.
1514         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
1515         (verify_gimple_assign): Call it.
1516         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
1517         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
1518         functions for dealing with three-operand statements.
1519         * tree.c (commutative_ternary_tree_code): New function.
1520         * tree.h (commutative_ternary_tree_code): Declare it.
1521         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
1522         ternary statements.
1523         (gimple_assign_nonzero_warnv_p): Likewise.
1524         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
1525         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
1526         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
1527         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
1528         (struct hashtable_expr): New member ternary in the union.
1529         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
1530         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
1531         (iterative_hash_hashable_expr): Likewise.
1532         (print_expr_hash_elt): Handle EXPR_TERNARY.
1533         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
1534         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
1535         statements.  Handle GIMPLE_TERNARY_RHS.
1536
1537 2010-06-25  Jan Hubicka  <jh@suse.cz>
1538
1539         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
1540
1541 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
1542
1543         PR c/44517
1544         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
1545         parameters are not good.
1546         (c_parser_parameter_declaration): Error unknown type name if the type
1547         name can't start declaration specifiers.
1548
1549 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
1550
1551         * gcc.c (translate_options): Don't mention +e in comment.
1552         (process_command): Don't handle +e specially.
1553
1554 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
1555
1556         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
1557
1558         * ira-build.c (merge_hard_reg_conflicts): New function.
1559         (create_cap_allocno, copy_info_to_removed_store_destinations,
1560         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
1561         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
1562         (remove_unnecessary_allocnos, remove_low_level_allocnos)
1563         copy_nifo_to_removed_store_destination): Use them.
1564         * ira-lives.c (make_hard_regno_born): New function, split out of
1565         make_regno_born.
1566         (make_allocno_born): Likewise.
1567         (make_hard_regno_dead): New function, split out of make_regno_dead.
1568         (make_allocno_dead): Likewise.
1569         (inc_register_pressure): New function, split out of set_allocno_live.
1570         (dec_register_pressure): New function, split out of clear_allocno_live.
1571         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
1572         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
1573         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
1574         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
1575         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
1576         mark_pseudo_regno_live.
1577         (process_bb_node_lives): Use mark_pseudo_regno_live,
1578         make_hard_regno_born and make_allocno_dead.
1579         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
1580         set_allocno_live, clear_allocno_live): Delete functions.
1581
1582         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
1583         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
1584         functions.
1585         (ira_flattening): Use ira_parent_allocno.
1586         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
1587         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
1588
1589         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
1590         statement.
1591
1592         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
1593         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
1594         minmax_set_iter_cond, minmax_set_iter_next,
1595         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
1596         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
1597         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
1598         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
1599         uses changed.
1600
1601         * ira-int.h (struct live_range, live_range_t): Renamed from struct
1602         ira_allocno_live_range and allocno_live_range_t; all uses changed.
1603         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
1604         All uses changed.
1605
1606 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
1607
1608         * thumb2.md (thumb2_tlobits_cbranch): Delete.
1609         (peephole2 to convert zero_extract/compare of single bit to
1610          lshift/compare): New.
1611
1612 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
1613
1614         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
1615         recursive call and call to 'int_const_binop'.
1616         (build_range_check, fold_cond_expr_with_comparison, unextend,
1617         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
1618         multiple_of_p): Adjust call to const_binop.
1619
1620 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
1621
1622         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
1623         determine size of XFmode operand.
1624         (XFmode extended DFmode push splitter): Ditto.
1625         (XFmode extended SFmode push splitter): Ditto.
1626
1627 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
1628
1629         PR target/44588
1630         * config/i386/i386.md (extract_code): New.
1631         (<u>divmodqi4): Likewise.
1632         (divmodhiqi3): Likewise.
1633         (udivmodhiqi3): Likewise.
1634         (<u>divqi3): Remvoved.
1635
1636 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
1637
1638         PR middle-end/44492
1639         * recog.h (struct recog_data): Add is_asm field.
1640         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
1641         present in constraints of inline-asm operand and memory operand
1642         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
1643         (extract_insn): Initialize recog_data.is_asm.
1644         * doc/md.texi (Constraints): Document operand side-effect rules.
1645
1646 2010-06-24  Andi Kleen  <ak@linux.intel.com>
1647
1648         * c-parser.c (c_parser_conditional_expression): Call
1649         warn_for_omitted_condop.
1650         * doc/invoke.texi: Document omitted condop warning.
1651
1652 2010-06-24  Nick Clifton<nickc@redhat.com>
1653
1654         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
1655         insn in the sequence is a jump insn before setting its label.
1656
1657 2010-06-24  Alan Modra  <amodra@gmail.com>
1658
1659         * collect2.c (main): Match exactly --version and --help.
1660
1661 2010-06-24  DJ Delorie  <dj@redhat.com>
1662
1663         * config/m32c/m32c-pragma.c: Don't include rtl.h.
1664
1665 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
1666
1667         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
1668         using X87MODEF mode iterator.
1669         (pushsf splitter): Macroize splitter using P mode iterator.
1670         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
1671         mode iterator.
1672
1673         (*movxf_internal): Rename from *movxf_integer.
1674         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
1675         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
1676         (*movdf_internal): Rename from *movdf_integer.
1677         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
1678         (*movsf_internal): Rename from *movdf_1.
1679
1680 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
1681
1682         * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
1683         (const_gimple_seq_node): Removed typedefs.
1684
1685         * gimple.h: (gimple_seq_node_d, gimple_seq_node)
1686         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
1687
1688 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
1689
1690         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
1691         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
1692         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
1693         and CODE_FOR_vec_extract_lo_v4df.
1694
1695         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
1696         Changed to define_insn_and_split.
1697         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
1698         (vec_extract_lo_v16hi): Likewise.
1699         (vec_extract_lo_v32qi): Likewise.
1700         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
1701         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
1702
1703 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
1704
1705         PR target/44640
1706         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
1707         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
1708         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
1709         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
1710         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
1711
1712         PR target/44640
1713         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
1714
1715         PR other/44644
1716         * df-core.c (struct df): Rename to df_d.
1717         * df.h (struct df): Likewise.
1718         * dse.h (struct df): Remove forward declaration.
1719         * recog.h (struct insn_data): Rename to:
1720         (struct_insn_data_d).  Adjusted all users.
1721
1722 2010-06-23  Arnaud Charlet  <charlet@adacore.com
1723
1724         PR ada/22220
1725         * doc/install.texi: Update requirements to build GNAT.
1726
1727 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
1728
1729         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
1730         enum type.
1731         (m68k_sched_attr_opx_type): Remove unreachable return.
1732         (m68k_sched_attr_opy_type): Likewise.
1733         (m68k_sched_attr_size): Likewise.
1734         (sched_get_opxy_mem_type): Likewise.
1735         (m68k_sched_attr_op_mem): Likewise.
1736
1737 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
1738
1739         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
1740         new statement and adjust VDEF only if necessary.  Remove superfluous
1741         call to maybe_clean_or_replace_eh_stmt.
1742         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
1743         copy the flags.
1744         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
1745         * tree-inline.c (copy_bb): ...and not there.
1746
1747 2010-06-22  Cary Coutant  <ccoutant@google.com>
1748
1749         * dwarf2out.c (is_nested_in_subprogram): New function.
1750         (should_move_die_to_comdat): Use it.
1751         (copy_ancestor_tree): Don't mark DIEs here.
1752         (copy_decls_walk): Start walk from root of newly-added tree;
1753         mark DIEs here instead.
1754
1755 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1756
1757         * config/i386/i386.md (unit): Also check sseishft1.
1758
1759 2010-06-22  Jan Hubicka  <jh@suse.cz>
1760
1761         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
1762         enabled.
1763
1764 2010-06-22  Jan Hubicka  <jh@suse.cz>
1765
1766         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
1767         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
1768         Return true if something changed.
1769         * df.h (df_confluence_function_n): Return bool.
1770         * df-core.c (df_worklist_propagate_forward,
1771         df_worklist_propagate_backward): Track changes and ages.
1772         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
1773         track ages.
1774         * dse.c (dse_confluence_n): Return always true.
1775
1776 2010-06-22  Jan Hubicka  <jh@suse.cz>
1777
1778         * bitmap.c (bitmap_clear_bit): Micro optimize.
1779
1780 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
1781
1782         * config/i386/i386.md (SWI1248x): New mode iterator.
1783         (SWI48x): Ditto.
1784         (SWI12): Ditto.
1785         (SWI24): Ditto.
1786
1787         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
1788         SWI1248x mode iterator.
1789         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
1790         using SWI124 mode iterator.
1791         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
1792         mode iterator.
1793         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
1794         *pushdi2_prologue_rex64 using P mode iterator.
1795         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
1796         using SWI48 mode iterator.
1797         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
1798         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
1799         using SWI1248x mode iterator.
1800         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
1801         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
1802         SWI48 mode iterator.
1803         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
1804         iterator.
1805         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
1806         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
1807         SWI12 mode iterator.
1808         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
1809         SWI12 mode iterator.
1810         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
1811         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
1812         SWI24 mode iterator.
1813         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
1814         SWI48 mode iterator.
1815         (mov<mode>_insn_1): New expander.
1816         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
1817         using SWI48x mode iterator.
1818
1819         (*movoi_internal_avx): Rename from *movoi_internal.
1820         (*movti_internal_rex64): Rename from *movti_rex64.
1821         (*movti_internal_sse): Rename from *movti_sse.
1822         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
1823         (*movdi_internal): Rename from *movdi_2.
1824         (*movsi_internal): Rename from *movsi_1.
1825         (*movhi_internal): Rename from *movhi_1.
1826         (*movqi_internal): Rename from *movqi_1.
1827
1828         (insv): Update the call to gen_movsi_insv_1 for rename.
1829         * config/i386/i386.c (promote_duplicated_reg): Ditto.
1830
1831 2010-06-22  Jan Hubicka  <jh@suse.cz>
1832
1833         * passes.c (execute_function_todo): Move call of statistics_fini_pass
1834         to ...
1835         (execute_todo) ... this one.
1836
1837 2010-06-22  Alan Modra  <amodra@gmail.com>
1838
1839         PR target/44364
1840         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
1841         * caller-save.c (insert_restore, insert_save): Use non-validate
1842         form of adjust_address.
1843
1844 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1845
1846         PR target/39690
1847         * config/pa/pa.c (override_options): Disable
1848         -freorder-blocks-and-partition.
1849
1850 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
1851
1852         PR target/44615
1853         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
1854
1855         * config/i386/i386.md (type): Add sseishft1
1856
1857         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
1858         (ppro_insn_load): Likewise.
1859         (ppro_insn_store): Likewise.
1860         (ppro_insn_both): Likewise.
1861
1862         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
1863         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
1864         for type.
1865         (*vec_extractv2di_1_avx): Likewise.
1866         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
1867         type.  Remove atom_unit.
1868         (*vec_extractv2di_1_sse2): Likewise.
1869
1870 2010-06-21  DJ Delorie  <dj@redhat.com>
1871
1872         * diagnostic.h (diagnostic_classification_change_t): New.
1873         (diagnostic_context): Add history and push/pop list.
1874         (diagnostic_push_diagnostics): Declare.
1875         (diagnostic_pop_diagnostics): Declare.
1876         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
1877         from pragmas in a history chain instead of the global table.
1878         (diagnostic_push_diagnostics): New.
1879         (diagnostic_pop_diagnostics): New.
1880         (diagnostic_report_diagnostic): Scan history chain to find state
1881         of diagnostics as of the diagnostic location.
1882         * opts.c (set_option): Pass UNKNOWN_LOCATION to
1883         diagnostic_classify_diagnostic.
1884         (enable_warning_as_error): Likewise.
1885         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
1886         use in the history chain.
1887         * c-family/c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1888         allow these pragmas anywhere.
1889         * doc/extend.texi: Document pragma GCC diagnostic changes.
1890
1891 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
1892
1893         * dwarf2out.c (add_linkage_name): New function.  Don't add
1894         anything to DW_TAG_member DIEs.
1895         (add_name_and_src_coords_attributes): Use it.
1896         (gen_variable_die): Call it for C++ static data members if
1897         specification is DW_TAG_member.
1898
1899         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
1900         C++ char16_t and char32_t.
1901
1902         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
1903         * genattrtab.c: Include vecprim.h.
1904         (cached_attrs, cached_attr_count, attrs_seen_once,
1905         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
1906         attrs_cached_after): New variables.
1907         (find_attrs_to_cache): New function.
1908         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
1909         (write_test_expr): Add attrs_cached argument, return it too,
1910         attempt to cache non-const attributes used more than once in
1911         a single case handling.
1912         (write_attr_get): Use find_attrs_to_cache, for caching candidates
1913         emit cached_* variables.  Adjust write_attr_set callers.
1914         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
1915         to find attributes that should be cached in this block.  Adjust
1916         write_test_expr callers.
1917         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
1918         callers.
1919         (make_automaton_attrs): Adjust write_test_expr caller.
1920
1921         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
1922         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
1923         (make_automaton_attrs): If find_tune_attr returns non-NULL,
1924         write separate internal_dfa_insn_code_* and insn_default_latency_*
1925         functions for each attribute's value and emit init_sched_attrs
1926         function and function pointers.
1927         * genattr.c (const_attrs, reservations): New variables.
1928         (gen_attr): Add const attributes to const_attrs vector.
1929         (check_tune_attr, find_tune_attr): New functions.
1930         (main): Add reservations to reservations vector.  If find_tune_attr
1931         returns true, add prototype for init_sched_attrs and make
1932         internal_dfa_insn_code and insn_default_latency function pointers,
1933         otherwise define init_sched_attrs as dummy macro.
1934         * cfgexpand.c: Include insn-attr.h.
1935         (gimple_expand_cfg): Call init_sched_attrs.
1936
1937         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
1938
1939         PR target/44575
1940         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
1941         va_arg from a set of register save slots into a temporary,
1942         if the container is bigger than type size, do the copying
1943         using smaller mode or using memcpy.
1944
1945         PR bootstrap/44426
1946         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
1947         prototype.
1948         (sel_print_to_dot): Remove macro.
1949         (sel_print): Likewise.  New prototype.
1950         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
1951         (sel_print): New function.
1952
1953 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1954
1955         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
1956         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
1957
1958 2010-06-21  Nick Clifton  <nickc@redhat.com>
1959
1960         * config/rx/rx.h (PTRDIFF_TYPE): Define.
1961         (SMALL_REGISTER_CLASS): Define (to zero).
1962         (PRINT_OPERAND): Delete.
1963         (PRINT_OPERAND_ADDRESS): Delete.
1964         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
1965         (rx_print_operand_address): Delete prototype.
1966         * config/rx/rx.c (rx_print_operand): Make static.
1967         Allow %H and %L to handle CONST_DOUBLEs.
1968         (rx_print_operand_address): Make static.
1969         (rx_gen_move_template): Rename local variable 'template' to
1970         out_template.
1971         (rx_function_arg): Do not pass unknown sized objects in registers.
1972         (TARGET_PRINT_OPERAND): Define.
1973         (TARGET_PRINT_OPERAND_ADDRESS): Define.
1974
1975 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1976
1977         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
1978
1979 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
1980
1981         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
1982         stack-alignment for simple leaf-functions.
1983
1984 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
1985
1986         * doc/install.texi: Document bootstrap-lto.
1987
1988 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
1989
1990         PR debug/44248
1991         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
1992         (input_function): Drop them here, if VTA is disabled.
1993
1994 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
1995
1996         PR target/44546
1997         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
1998         New predicate.
1999         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
2000         ix86_swapped_fp_comparsion_operator instead of
2001         ix86_fp_comparison_operator.
2002
2003         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
2004         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
2005         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
2006         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
2007         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
2008         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
2009
2010 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
2011
2012         PR other/32998
2013         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
2014         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
2015         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
2016         (decode_cmdline_option): Update for this return value.  Set
2017         orig_option_with_args_text field.  Set arg field for unknown
2018         options.  Make static.
2019         (decode_cmdline_options_to_array): New.
2020         (prune_options): Update handling of find_opt return value.
2021         * opts.c (read_cmdline_option): Take decoded option.  Return void.
2022         (read_cmdline_options): Take decoded options.
2023         (decode_options): Add parameters for decoded options.  Use
2024         decode_cmdline_options_to_array.  Use decoded options for -O
2025         scan.  Use integral_argument for -O parameters.  Update call to
2026         read_cmdline_options.
2027         (enable_warning_as_error): Update handling of find_opt return value.
2028         * opts.h: Update comment on unknown options.
2029         (struct cl_decoded_option): Update comments on opt_index and arg.
2030         Add orig_option_with_args_text.
2031         (decode_cmdline_option): Remove.
2032         (decode_cmdline_options_to_array): Declare.
2033         (decode_options): Update prototype.
2034         * toplev.c (save_argv): Remove.
2035         (save_decoded_options, save_decoded_options_count): New.
2036         (read_integral_parameter): Remove.
2037         (print_switch_values): Use decoded options.
2038         (toplev_main): Don't set save_argv.  Update call to decode_options.
2039         * toplev.h (read_integral_parameter): Remove.
2040         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
2041
2042 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
2043
2044         PR target/44072
2045         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
2046         immediate.
2047         * constraints.md (Pw, Px): New constraints.
2048         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
2049
2050 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2051
2052         * config/i386/sse.md (fma4modesuffixf4): Removed.
2053         (ssemodesuffixf2s): Likewise.
2054         (ssemodesuffixf4): Likewise.
2055         (ssemodesuffixf2c): Likewise.
2056         (ssescalarmodesuffix2s): Likewise.
2057         (avxmodesuffixf2c): Likewise.
2058         (ssemodesuffix): New.
2059         (ssescalarmodesuffix): Likewise.
2060         Update patterns with ssemodesuffix and ssescalarmodesuffix.
2061
2062 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
2063
2064         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
2065
2066 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2067
2068         * stor-layout.c (debug_rli): Remove unused local variables.
2069
2070 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2071
2072         PR rtl-optimization/40900
2073         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
2074         original expression for later reuse.
2075         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
2076         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
2077
2078 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
2079
2080         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
2081         double_int_fits_in_uhwi_p): Implement as static inline.
2082         (double_int_xor): New inline function.
2083         (double_int_lrotate, double_int_rrotate, double_int_max,
2084         double_int_umax, double_int_smax, double_int_min, double_int_umin,
2085         double_int_smin): Declare.
2086         (lrotate_double, rrotate_double): Remove declaration.
2087         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
2088         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
2089         (double_int_lrotate, double_int_rrotate, double_int_max,
2090         double_int_umax, double_int_smax, double_int_min, double_int_umin,
2091         double_int_smin): New function.
2092         * fold-const.c (int_const_binop): Clean up, use double_int_*
2093         functions.
2094         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
2095         double_int_* and immed_double_int_const functions.
2096
2097 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
2098
2099         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
2100         * function.c (types_used_by_cur_var_decl): Likewise.
2101         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
2102
2103 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
2104
2105         * tree.h (record_layout_info): Change type of pending_statics field
2106         to a VEC.
2107         * stor-layout.c (start_record_layout): Store NULL into
2108         pending_statics.
2109         (debug_rli): Call debug_vec_tree instead of debug_tree.
2110         (place_field): Likewise.
2111         (finish_record_layout): Likewise.
2112
2113 2010-06-18  Alan Modra  <amodra@gmail.com>
2114
2115         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
2116
2117 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2118
2119         PR target/43740
2120         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
2121         for SET source operand from SET destination operand.
2122
2123 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
2124
2125         PR rtl-optimization/39871
2126         * reload1.c (init_eliminable_invariants): For flag_pic, disable
2127         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
2128         (function_invariant_p): Rule out a plus of frame or arg pointer with
2129         a SYMBOL_REF.
2130         * ira.c (find_reg_equiv_invariant_const): Likewise.
2131
2132 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
2133
2134         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
2135         print_operand_address and puts to output the operand for CONST.
2136
2137 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
2138
2139         PR debug/44572
2140         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
2141         hook.
2142
2143 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2144
2145         * v850-protos.h (print_operand): Delete.
2146         (print_operand_address): Delete.
2147         * v850.h (PRINT_OPERAND): Delete.
2148         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2149         (PRINT_OPERAND_ADDRESS): Delete.
2150         * v850.c (print_operand_address): Rename to...
2151         (v850_print_operand_address): ...this.  Make static. Call
2152         v850_print_operand.
2153         (print_operand): Rename to...
2154         (v850_print_operand): ...this.  Make static.  Call
2155         v850_print_operand_address.
2156         (v850_print_operand_punct_valid_p): New function.
2157         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2158         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2159
2160 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2161
2162         * config/sh/sh-protos.h (print_operand): Delete.
2163         (print_operand_address): Delete.
2164         * config/sh/sh.h (PRINT_OPERAND): Delete.
2165         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2166         (PRINT_OPERAND_ADDRESS): Delete.
2167         * config/sh/sh.c (sh_print_operand_address): Make static.
2168         (sh_print_operand): Make static.  Call sh_print_operand_address
2169         and sh_print_operand.
2170         (sh_print_operand_punct_valid_p): New function.
2171         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2172         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2173
2174 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2175
2176         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
2177         (mcore_print_operand_address): Delete.
2178         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
2179         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2180         (PRINT_OPERAND_ADDRESS): Delete.
2181         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
2182         (mcore_print_operand): Make static.
2183         (mcore_print_operand_punct_valid_p): New function.
2184         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
2185         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2186
2187 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2188
2189         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
2190         (print_operand_address): Delete.
2191         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
2192         (PRINT_OPERAND_ADDRESS): Delete.
2193         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
2194         static.
2195         (m68hc11_print_operand): Make static.
2196         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2197
2198 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2199
2200         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
2201         (m32r_print_operand_address): Delete.
2202         * config/m32r/m32r.h (m32r_punct_chars): Delete.
2203         (PRINT_OPERAND): Delete.
2204         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2205         (PRINT_OPERAND_ADDRESS): Delete.
2206         * config/m32r/m32r.c (m32r_punct_chars): Make static.
2207         (m32r_print_operand_address): Make static.
2208         (m32r_print_operand): Make static.
2209         (m32r_print_operand_punct_valid_p): New function.
2210         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2211         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2212
2213 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2214
2215         * config/iq2000/iq2000-protos.h (print_operand): Delete.
2216         (print_operand_address): Delete.
2217         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
2218         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2219         (PRINT_OPERAND_ADDRESS): Delete.
2220         (iq2000_print_operand_punct): Delete.
2221         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
2222         (iq2000_print_operand_address): Make static.
2223         (iq2000_print_operand): Make static.
2224         (iq2000_print_operand_punct_valid_p): New function.
2225         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2226         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2227
2228 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2229
2230         * config/frv/frv-protos.h (frv_print_operand): Delete.
2231         (frv_print_operand_address): Delete.
2232         * config/frv/frv.h (PRINT_OPERAND): Delete.
2233         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2234         (PRINT_OPERAND_ADDRESS): Delete.
2235         * config/frv/frv.c (frv_print_operand_address): Make static.
2236         (frv_print_operand): Make static.
2237         (frv_print_operand_punct_valid_p): New function.
2238         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2239         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2240
2241 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2242
2243         * tree.h (vec_member): Declare.
2244         * tree.c (vec_member): Define.
2245
2246 2010-06-17  Richard Guenther  <rguenther@suse.de>
2247
2248         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
2249         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
2250
2251 2010-06-17  Richard Guenther  <rguenther@suse.de>
2252
2253         * tree-inline.c (declare_return_variable): Remove bogus code.
2254
2255 2010-06-17  Richard Guenther  <rguenther@suse.de>
2256
2257         * gimplify.c (gimplify_bind_expr): Always promote complex
2258         and vector variables to registers if possible.
2259
2260 2010-06-17  Richard Guenther  <rguenther@suse.de>
2261
2262         * expr.c (get_inner_reference): Use double_int for bit_offset
2263         calculation.
2264
2265 2010-06-16  DJ Delorie  <dj@redhat.com>
2266
2267         * common.opt (-fstrict-volatile-bitfields): new.
2268         * doc/invoke.texi: Document it.
2269         * fold-const.c (optimize_bit_field_compare): For volatile
2270         bitfields, use the field's type to determine the mode, not the
2271         field's size.
2272         * expr.c (expand_assignment): Likewise.
2273         (get_inner_reference): Likewise.
2274         (expand_expr_real_1): Likewise.
2275         * expmed.c (store_fixed_bit_field): Likewise.
2276         (extract_bit_field_1): Likewise.
2277         (extract_fixed_bit_field): Likewise.
2278
2279 2010-06-16  Richard Guenther  <rguenther@suse.de>
2280
2281         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
2282
2283 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
2284
2285         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
2286         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
2287         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
2288         * debug.c: Likewise.
2289         * sdbout.c: Likewise.
2290         * vmsdbgout.c: Likewise.
2291         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
2292         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
2293         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
2294         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
2295         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
2296         * dwarf2out.c (dw_fde_struct): New fields
2297         dw_fde_vms_{end,begin}_prologue.
2298         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
2299         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
2300         (dwarf2out_vms_end_prologue): New function.
2301         (dwarf2out_vms_begin_epilogue): New function.
2302         (dw_val_struct): New value dw_val_class_vms_delta.
2303         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
2304         begin_epilogue for VMS.
2305         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
2306         new static functions.
2307         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
2308         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
2309         static functions.
2310         (print_die): New case dw_val_class_vms_delta.
2311         (attr_checksum): Likewise.
2312         (same_dw_val_p: Likewise.
2313         (size_of_die): Likewise.
2314         (value_format): Likewise.
2315         (output_die): Likewise.
2316         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
2317         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
2318         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
2319         dwarf2out_cfi_begin_epilogue
2320         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
2321
2322 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
2323
2324         * config/cris/cris-protos.h (cris_print_operand): Delete.
2325         (cris_print_operand_address): Delete.
2326         * config/cris/cris.h (PRINT_OPERAND): Delete.
2327         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2328         (PRINT_OPERAND_ADDRESS): Delete.
2329         * config/cris/cris.c (cris_print_operand_address): Make static.
2330         (cris_print_operand): Make static.
2331         (cris_print_operand_punct_valid_p): New function.
2332         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2333         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2334
2335 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
2336
2337         * config/arm/arm-protos.h (arm_print_operand): Delete.
2338         (arm_print_operand_address): Delete.
2339         * config/arm/arm.h (PRINT_OPERAND): Delete.
2340         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2341         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
2342         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
2343         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
2344         (arm_print_operand): Make static.
2345         (arm_print_operand_punct_valid_p): New function.
2346         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2347         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2348
2349 2010-06-16  Nick Clifton  <nickc@redhat.com>
2350
2351         * config/rx/constraints.md (NEGint4): New constraint.
2352         * config/rx/rx.md (attr cc): Add set_zsc.
2353         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
2354         initialised.
2355         (cmpsf): Likewise.
2356         (call_internal): Clobber the cc0 register.
2357         (call_value_internal): Likewise.
2358         (cstoresi4): Likewise.
2359         (movsieq): Likewise.
2360         (movsine): Likewise.
2361         (addsi3): Add alternative to handle small negative constants.
2362         (sunsi3): Likewise.
2363         (addsi3): Do not set the O bit in the cc0 register.
2364         (adddi3): Likewise.
2365         (subsi3): Likewise.
2366         (subdi3): Likewise.
2367         (andsi3): Reorder alternatives to prefer shorter forms.
2368         (mulsi3): Likewise.
2369         (iorsi3): Likewise.
2370         (negsi2): Note that the cc0 flags are set.
2371         (rotlsi3): Note that only the Z and S bits are set in cc0.
2372         (lshrsi3): Likewise.
2373         (ashlsi3): Likewise.
2374         (subsf3): Use %Q for the MEM operand.
2375         (fix_truncsfsi2): Likewise.
2376         (floatsisf2): Likewise.
2377         (bitset): Remove early clobber from destination.
2378         (bitset_in_memory): Likewise.
2379         (lrintsf2): Clobber the cc0 register.
2380         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
2381         (rx_print_operand): Handle %N.
2382
2383 2010-06-16  Jan Hubicka  <jh@suse.cz>
2384
2385         * df-core.c (df_compact_blocks): Free problem_temps vector.
2386
2387 2010-06-16  Martin Jambor  <mjambor@suse.cz>
2388
2389         PR tree-optimization/43905
2390         * tree-sra.c: Include tree-inline.h.
2391         (create_abstract_origin): Removed.
2392         (modify_function): Version the call graph node instead of creating
2393         abstract origins and dealing with same_body aliases.
2394         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
2395         function is versionable.
2396         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
2397
2398 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2399
2400         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
2401         (CHOOSE_DYNAMIC_LINKER): Update.
2402
2403 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
2404
2405         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
2406         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
2407         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
2408         *prefetch_3dnow_rex.
2409
2410 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
2411
2412         * target.h (struct asm_out):Add declare_constant_name field.
2413         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
2414         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
2415         * output.h (default_asm_declare_constant_name): Declare.
2416         (assemble_label): Update prototype.
2417         * varasm.c (assemble_constant_contents): Use
2418         targetm.asm_out.declare_constant_name target hook.
2419         (assemble_label): Add 'file' argument.
2420         (default_asm_declare_constant_name): New function.
2421         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
2422         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
2423         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
2424
2425         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
2426         * config/darwin.c (darwin_asm_declare_constant_name): New function.
2427         (machopic_output_indirection): Update assemble_label argument list.
2428         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
2429         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
2430
2431 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
2432
2433         PR middle-end/44391
2434         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
2435         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
2436
2437 2010-06-15  Richard Guenther  <rguenther@suse.de>
2438
2439         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
2440
2441 2010-06-15  Paul Brook  <paul@codesourcery.com>
2442
2443         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
2444         hard-float ABI.
2445
2446 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
2447
2448         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
2449         don't get a vector type for output.
2450
2451 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
2452
2453         PR fortran/44536
2454         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
2455         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
2456         (LANG_HOOKS_DECLS): Add it.
2457         * gimplify.c (omp_notice_variable): Call
2458         lang_hooks.decls.omp_report_decl.
2459
2460 2010-06-15  Martin Jambor  <mjambor@suse.cz>
2461
2462         PR lto/44464
2463         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
2464         on the newly dead SSA name.
2465
2466 2010-06-15  Alan Modra  <amodra@gmail.com>
2467
2468         * doc/invoke.texi: Add mcmodel to powerpc options.
2469         * configure.ac: Add HAVE_LD_LARGE_TOC test.
2470         * configure: Regenerate.
2471         * config.in: Regenerate.
2472         * config/rs6000/linux64.opt (mcmodel): New.
2473         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
2474         (TARGET_CMODEL, SET_CMODEL): Define.
2475         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
2476         select CMODEL_MEDIUM default.
2477         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
2478         (TARGET_CMODEL): Define default.
2479         * config/rs6000/rs6000.c (cmodel): New variable.
2480         (rs6000_explicit_options): Add cmodel field.
2481         (rs6000_handle_option): Handle -mcmodel.
2482         (create_TOC_reference): Add largetoc_reg param.  Generate high,
2483         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
2484         (rs6000_delegitimize_address): Recognise new toc reference rtl
2485         and minimal-toc rtl.
2486         (rs6000_legitimize_reload_address): Handle new toc references.
2487         (print_operand_address): Handle legitimate_constant_pool_address_p
2488         match before lo_sum.
2489         (rs6000_eliminate_indexed_memrefs): Tidy.
2490         (rs6000_emit_move): Tweak threshold for inlining constants.
2491         Keep rs6000_emit_allocate_stack large stack frame offsets
2492         loaded into r0 inline.
2493         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
2494         (tocrel_base, tocrel_offset): New variables.
2495         (toc_relative_expr_p): Set them here.
2496         (print_operand_address): Skip over any offset on constant pool address.
2497         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
2498         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
2499         (offsettable_ok_by_alignment): New function.
2500         (rs6000_emit_move): Address suitably aligned local symbol_refs
2501         relative to the toc pointer for -mcmodel=medium.
2502         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
2503         strict param.  Allow lo_sum version of addressing.  Verify reg
2504         used for -mminimal-toc and -mcmodel != small.  Update all callers.
2505         * config/rs6000/constraints.md: Update for above change.
2506         * config/rs6000/predicates.md: Likewise.
2507         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
2508         code.
2509         (tls_gd): Split for -mcmodel=medium/large.
2510         (tls_gd_high, tls_gd_low): New.
2511         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
2512         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
2513         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
2514         (largetoc_high, largetoc_low): New.
2515         (cmptf_internal2): Add clobber.
2516         * config/rs6000/rs6000-protos.h: Update.
2517
2518 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
2519
2520         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
2521         true if no prefetch is going to be generated for a given group.
2522         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
2523         estimate the prefetch_count.
2524         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
2525         prefetch count by considering the unroll_factor and prefetch_mod
2526         for is_loop_prefetching_profitable.
2527
2528 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
2529
2530         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
2531         anything if the argument is not a MEM.
2532
2533 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
2534
2535         PR debug/43650
2536         PR debug/44181
2537         PR debug/44247
2538         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
2539         debug stmts.
2540         (canonicalize_loop_ivs): Likewise.
2541
2542 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
2543
2544         PR debug/43656
2545         * haifa-sched.c (setup_insn_reg_pressure_info,
2546         update_register_pressure): Reject debug insns.
2547         (ready_sort): Don't setup reg pressure for debug insns.
2548         (schedule_insn): Don't update reg pressure for debug insns.
2549
2550 2010-06-14  Richard Guenther  <rguenther@suse.de>
2551
2552         * lto-streamer.c (cached_bp): Remove.
2553         (bitpack_delete): Likewise.
2554         (bitpack_create): Likewise.
2555         (bp_get_next_word): Likewise.
2556         (bp_pack_value, bp_unpack_value): Move ...
2557         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
2558         Re-implement.
2559         (struct bitpack_d): Likewise.
2560         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
2561         New inline functions.
2562         * lto-streamer-out.c (lto_output_bitpack): Remove.
2563         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
2564         (pack_value_fields): Adjust.
2565         (lto_write_tree): Likewise.
2566         (output_gimple_stmt): Likewise.
2567         (output_function): Likewise.
2568         * lto-streamer-in.c (input_gimple_stmt): Adjust.
2569         (input_function): Likewise.
2570         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
2571         (lto_input_bitpack): Remove.
2572         (lto_materialize_tree): Adjust.
2573         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
2574         * lto-cgraph.c (lto_output_edge): Adjust.
2575         (lto_output_node): Likewise.
2576         (lto_output_varpool_node): Likewise.
2577         (lto_output_ref): Likewise.
2578         (input_node): Likewise.
2579         (input_varpool_node): Likewise.
2580         (input_ref): Likewise.
2581         (input_edge): Likewise.
2582         (output_node_opt_summary): Likewise.
2583         (input_node_opt_summary): Likewise.
2584         * ipa-pure-const.c (pure_const_write_summary): Likewise.
2585         (pure_const_read_summary): Likewise.
2586         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
2587         (ipa_read_indirect_edge_info): Likewise.
2588         (ipa_write_node_info): Likewise.
2589         (ipa_read_node_info): Likewise.
2590
2591 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2592
2593         PR target/44534
2594         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
2595         (vec_extract_lo_v16hi): Likewise.
2596         (vec_extract_lo_v32qi): Likewise.
2597
2598 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
2599
2600         PR bootstrap/44426
2601         * tree.h (build_call_expr): Don't define as vararg macro, instead
2602         add a prototype.
2603         * builtins.c (build_call_nofold): Remove.
2604         (expand_builtin_int_roundingfn, expand_builtin_pow,
2605         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
2606         expand_builtin_memset_args, expand_builtin_strcmp,
2607         expand_builtin_strncmp, expand_builtin_memory_chk): Use
2608         build_call_nofold_loc instead of build_call_nofold.
2609         (build_call_expr): New function.
2610
2611         PR tree-optimization/44508
2612         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
2613         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
2614         don't eliminate trivially dead stmts.
2615         * tree-vrp.c (vrp_finalize): Pass false as last argument
2616         to substitute_and_fold.
2617         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
2618         to substitute_and_fold.
2619         * tree-ssa-ccp.c (ccp_finalize): Likewise.
2620
2621         PR bootstrap/44509
2622         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
2623         * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2624         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2625         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2626         ggc_strdup instead of xstrdup.
2627
2628 2010-06-14  Ira Rosen  <irar@il.ibm.com>
2629
2630         PR tree-optimization/44507
2631         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
2632         to build initial vector for BIT_AND_EXPR.
2633         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2634
2635 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
2636
2637         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
2638         adjust z10prop set_attr.
2639
2640 2010-06-13  Jan Hubicka  <jh@suse.cz>
2641
2642         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
2643         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
2644         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
2645         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
2646         datastructure checks into checking asserts.
2647         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
2648         * tree-ssa-sccvn.c (VN_INFO): Likewise.
2649         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
2650         df_ref_create_structure): Likewise.
2651         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
2652         pool_free): Use gcc_checking_assert.
2653         * alias.c (get_alias_set): Likewise.
2654         * var-tracking.c (variable_htab_free, shared_hash_copy,
2655         canonicalize_values_mark, variable_merge_over_cur): Likewise.
2656         * lto-streamer.c (bp_unpack_value): Likewise.
2657
2658 2010-06-13  Richard Guenther  <rguenther@suse.de>
2659
2660         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
2661         Do not stream but initialize TYPE_CANONICAL to NULL.
2662         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
2663         * gimple.c (gimple_types_compatible_p): Disregard
2664         TYPE_STRUCTURAL_EQUALITY_P.
2665         (gimple_register_type): Use TYPE_CANONICAL as cache.
2666         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
2667         before registering common types.
2668         * config/i386/i386.c (ix86_function_arg_boundary): Do not
2669         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
2670         * tree.h (TYPE_CANONICAL): Clarify documentation.
2671
2672 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
2673
2674         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
2675         LIBCALL_VALUE): Remove macros.
2676         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
2677         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2678         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2679         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
2680         (ia64_function_value): Make static. Handle receiving the function
2681         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
2682
2683 2010-06-12  Jan Hubicka  <jh@suse.cz>
2684
2685         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
2686         at correct place.
2687
2688 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
2689
2690         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
2691
2692 2010-06-12  Jan Hubicka  <jh@suse.cz>
2693
2694         * df-core.c (df_clear_bb_info): New function.
2695         (df_set_blocks): bb_info is always allocated.
2696         (df_get_bb_info): Use block_info_elt_size.
2697         (df_set_bb_info): Likewise.
2698         (df_compact_blocks): Update for new block_info.
2699         (grow_bb_info): New function.
2700         * df-problems.c (df_grow_bb_info): Move to df-core.c
2701         (df_rd_set_bb_info): Remove.
2702         (df_rd_free_bb_info): Do not free block pool.
2703         (df_rd_alloc): Do not create pool, use check for
2704         obstack presence instead of NULL pointer for new blocks.
2705         (df_rd_free): DO not free alloc pool; clear block_info.
2706         (problem_RD): Add size of block info structure.
2707         (df_lr_set_bb_info): Remove.
2708         (df_lr_free_bb_info): Do not free block pool.
2709         (df_lr_alloc): Do not create pool, use check for
2710         obstack presence instead of NULL pointer for new blocks.
2711         (df_lr_free): DO not free alloc pool; clear block_info.
2712         (problem_LR): Add size of block info structure.
2713         (df_live_set_bb_info): Remove.
2714         (df_live_free_bb_info): Do not free block pool.
2715         (df_live_alloc): Do not create pool, use check for
2716         obstack presence instead of NULL pointer for new blocks.
2717         (df_live_free): DO not free alloc pool; clear block_info.
2718         (problem_LIVE): Add size of block info structure.
2719         (problem_CHAIN): Add size of block info structure.
2720         (df_byte_lr_set_bb_info): Remove.
2721         (df_byte_lr_free_bb_info): Do not free block pool.
2722         (df_byte_lr_alloc): Do not create pool, use check for
2723         obstack presence instead of NULL pointer for new blocks.
2724         (df_byte_lr_free): DO not free alloc pool; clear block_info.
2725         (problem_BYTE_LR): Add size of block info structure.
2726         (problem_NOTE): Add size of block info structure.
2727         (df_byte_MD_set_bb_info): Remove.
2728         (df_byte_MD_free_bb_info): Do not free block pool.
2729         (df_byte_MD_alloc): Do not create pool, use check for
2730         obstack presence instead of NULL pointer for new blocks.
2731         (df_byte_MD_free): DO not free alloc pool; clear block_info.
2732         (problem_BD): Add size of block info structure.
2733         * df-scan.c (df_scan_free_internal): Free block pool.
2734         (df_scan_set_bb_info): Remove.
2735         (df_scan_free_bb_info): Check for artificial_defs instead
2736         of bb_info being non-NULL.
2737         (df_scan_alloc): DO not create df_scan_block pool.
2738         (problem_SCAN): Set size of block info.
2739         (df_bb_refs_record): Do not allocate bb_info.
2740         * df.h (df_problem): Add block_info_elt_size.
2741         (struct dataflow): Change block_info to void *.
2742         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
2743         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
2744         in-line structures.
2745
2746 2010-06-12  Jan Hubicka  <jh@suse.cz>
2747
2748         PR tree-optimize/44485
2749         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
2750         containing use of return value of noreturn function.
2751
2752 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
2753
2754         * targhooks.c (default_function_value): Don't use
2755         FUNCTION_OUTGOING_VALUE.
2756         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
2757         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
2758
2759 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
2760
2761         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
2762         Add crtfastmath.o to extra_parts.
2763         * config/mips/crtfastmath.c: New.
2764         * config/mips/linux.h (ENDFILE_SPEC): New.
2765
2766 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
2767
2768         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
2769         old_type in parameter.
2770         (gcc_type_for_value): Update call to gcc_type_for_interval.
2771         (compute_type_for_level_1): Renamed compute_type_for_level.
2772         Update call to gcc_type_for_interval.
2773
2774 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
2775
2776         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
2777         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
2778
2779 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
2780
2781         * opts-common.c: Include options.h.
2782         (integral_argument): Move from opts.c.
2783         (decode_cmdline_option): New.  Based on read_cmdline_option.
2784         * opts.c (integral_argument): Move to opts-common.c.
2785         (read_cmdline_option): Move most contents to
2786         decode_cmdline_option.  Use %qs in diagnostics.
2787         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
2788         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
2789         decode_cmdline_option): New.
2790
2791 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
2792
2793         PR target/44481
2794         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
2795         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
2796         (partiysi2_cmp): Ditto.
2797         (*partiyhi2_cmp): Ditto.
2798         (*parityqi2_cmp): Remove.
2799
2800 2010-06-11  Jan Hubicka  <jh@suse.cz>
2801
2802         * bitmap.h (bmp_iter_next_bit): New.
2803         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
2804
2805 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
2806             Eric Botcazou  <ebotcazou@adacore.com>
2807
2808         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
2809         computed cost.
2810
2811 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
2812
2813         * config/i386/i386.md (unspec): New define_c_enum.
2814         (unspecv): Ditto.
2815
2816 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
2817
2818         * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
2819         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2820         (lazy_hex_fp_value): New function.
2821         (builtin_define_with_hex_fp_value): Provide definitions lazily.
2822         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
2823
2824 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
2825
2826         PR middle-end/44483
2827         * tree-if-conv.c (bb_predicate_s): New struct.
2828         (bb_predicate_p): New.
2829         (bb_has_predicate): New.
2830         (bb_predicate): New.
2831         (set_bb_predicate): New.
2832         (bb_predicate_gimplified_stmts): New.
2833         (set_bb_predicate_gimplified_stmts): New.
2834         (add_bb_predicate_gimplified_stmts): New.
2835         (init_bb_predicate): New.
2836         (free_bb_predicate): New.
2837         (is_predicated): Use bb_predicate.
2838         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
2839         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
2840         before processing their successors.
2841         (clean_predicate_lists): Removed.
2842         (find_phi_replacement_condition): Use bb_predicate.
2843         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
2844         computations.
2845         (insert_gimplified_predicates): New.
2846         (combine_blocks): Call insert_gimplified_predicates.
2847         (tree_if_conversion): Call free_bb_predicate instead of
2848         clean_predicate_lists.
2849
2850 2010-10-11  Paul Brook  <paul@codesourcery.com>
2851
2852         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
2853         * config/arm/arm.c (all_architectures): Change v7e-m default to
2854         cortexm4.
2855         * config/arm/arm-cores.def: Add cortex-m4.
2856         * config/arm/arm-tune.md: Regenerate.
2857
2858 2010-06-11  Jan Hubicka  <jh@suse.cz>
2859
2860         * ipa-pure-const.c (special_builtlin_state): New function.
2861         (check_call): Use it instead of special casign BUILT_IN_RETURN.
2862         (propagate_pure_const): Use it.
2863
2864 2010-06-11  Jan Hubicka  <jh@suse.cz>
2865
2866         * df-problems.c (df_live_scratch): Convert to bitmap_head.
2867         (df_live_alloc): Initialize df_live_scratch when initializing
2868         problem_data.
2869         (df_live_transfer_function): Update uses of df_live_scratch.
2870         (df_live_free): Free problem_data; clear df_live_scratch before
2871         releasing the obstack.
2872         (df_md_free): Free problem data.
2873
2874 2010-06-11  Jan Hubicka  <jh@suse.cz>
2875
2876         * doc/invoke.texi (Wsuggest-attribute): Document.
2877         (Wmissing-noreturn): Remove.
2878         * ipa-pure-const.c (warn_function_noreturn): New function.
2879         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
2880         warn_missing_noreturn.
2881         * common.opt (Wsuggest-attribute=noreturn): New.
2882         * tree-flow.h (warn_function_noreturn): Declare.
2883         * tree-cfg.c (execute_warn_function_noreturn): Use
2884         warn_function_noreturn.
2885         (gate_warn_function_noreturn): New.
2886         (pass_warn_function_noreturn): Update.
2887
2888 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2889
2890         * c-typeck.c (handle_warn_cast_qual): Add loc
2891         parameter. Improve warning message.
2892         (build_c_cast): Pass location to handle_warn_cast_qual.
2893
2894 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
2895
2896         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
2897         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
2898         insn mnemonic.
2899         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
2900
2901 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
2902
2903         Fix bootstap on mips
2904         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
2905         be naming typedefs.
2906
2907 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
2908
2909         * system.h (helper_const_non_const_cast): New inline for
2910         gcc version <= 4.0.
2911         (CONST_CAST2): For gcc version <= 4.0 use
2912         new helper to do const/non-const casting.
2913
2914 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
2915
2916         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
2917         * Makefile.in (OBJS-common): Include insn-enums.o.
2918         (insn-enums.o): New rule.
2919         (simple_generated_c): Add insn-enums.c.
2920         (build/genenums.o): New rule.
2921         (genprogmd): Add "enums".
2922         * genconstants.c (print_enum_type): Declare a C string array
2923         for each enum.
2924         * genenums.c: New file.
2925         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
2926         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
2927         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
2928
2929 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
2930
2931         * doc/md.texi (define_enum_attr): Document.
2932         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
2933         * read-md.h (lookup_enum_type): Declare.
2934         * read-md.c (lookup_enum_type): New function.
2935         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
2936         * genattrtab.c (attr_desc): Add an enum_name field.
2937         (evaluate_eq_attr): Take the associated attribute as argument.
2938         Get the enum prefix from the enum_name field, if defined.
2939         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
2940         (simplify_test_exp): Pass attr to evaluate_eq_attr.
2941         (add_attr_value): New function, split out from...
2942         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
2943         (write_test_expr): Pass attr to evaluate_eq_attr.
2944         (write_attr_get): Use the enum_name as the enum tag, if defined.
2945         (write_attr_valueq): Use the enum_name as a prefix, if defined.
2946         (find_attr): Initialize enum_name.
2947         (main): Handle DEFINE_ENUM_ATTR.
2948         * gensupport.c (process_rtx): Likewise.
2949         * config/mips/mips.h (mips_tune_attr): Delete.
2950         * config/mips/mips.md (cpu): Use define_attr_enum.
2951
2952 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
2953
2954         * doc/md.texi (define_c_enum, define_enum): Document.
2955         * read-md.h (md_constant): Add a parent_enum field.
2956         (enum_value, enum_type): New structures.
2957         (upcase_string, traverse_enum_types): Declare.
2958         * read-md.c (enum_types): New variable.
2959         (upcase_string, add_constant): New functions.
2960         (handle_constants): Don't create the hash table here.
2961         Use add_constant.
2962         (traverse_md_constants): Don't check for a null md_constants.
2963         (decimal_string, handle_enum, traverse_enum_types): New functions.
2964         (read_md_files): Initialize md_constants and md_enums.
2965         * genconstants.c (print_md_constant): Ignore info argument.
2966         Only print constants that belong to no enum.
2967         (print_enum_type): New function.
2968         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
2969         for each defined enum type.
2970         * config/mips/mips.md (processor): New define_enum.
2971         (unspec): New define_c_enum.
2972         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
2973         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
2974         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
2975         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
2976         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
2977         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
2978         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
2979         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
2980         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
2981         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
2982         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
2983         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
2984         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
2985         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
2986         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
2987         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
2988         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
2989         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
2990         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
2991         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
2992         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
2993         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
2994         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
2995         (UNSPEC_RDDSP): Move to mips-dsp.md.
2996         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
2997         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
2998         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
2999         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
3000         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
3001         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
3002         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
3003         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
3004         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
3005         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
3006         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
3007         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
3008         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
3009         Moved to mips-dspr2.md.
3010         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
3011         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
3012         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
3013         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
3014         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
3015         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
3016         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3017         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3018         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3019         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3020         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3021         UNSPEC_LOONGSON_PSADBH)
3022         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3023         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3024         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
3025         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3026         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3027         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3028         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
3029         (cpu): Update comment.
3030         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
3031         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
3032         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
3033         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
3034         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
3035         UNSPEC_LOONGSON_PCMPEQ)
3036         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
3037         UNSPEC_LOONGSON_PINSR_0)
3038         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3039         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3040         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3041         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3042         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3043         UNSPEC_LOONGSON_PSADBH)
3044         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3045         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3046         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
3047         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3048         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3049         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3050         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
3051         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
3052         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
3053         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
3054         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
3055         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
3056         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
3057         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
3058         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
3059         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
3060         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
3061         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
3062         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
3063         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
3064         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
3065         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
3066         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
3067         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
3068         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
3069         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
3070         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3071         (UNSPEC_RDDSP): Moved from mips.md.
3072         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
3073         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
3074         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
3075         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
3076         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
3077         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
3078         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
3079         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
3080         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
3081         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
3082         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
3083         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
3084         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
3085         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
3086         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
3087         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
3088         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
3089         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
3090         (UNSPEC_SCC): Moved from mips.md.
3091         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
3092         "processor_type" to "processor".
3093         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
3094         * config/mips/mips.h (processor_type): Delete.
3095         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
3096         "processor_type" to "processor".
3097
3098 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3099
3100         * configure.ac (tm_include_list): Add insn-constants.h.
3101         * configure: Regenerate.
3102         * Makefile.in (GTM_H): Move insn-constants.h here from...
3103         (TM_H): ...here.
3104         * mkconfig.sh: Remove special handling for insn-constants.h.
3105
3106 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3107
3108         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
3109         (BUILD_MD): ...this new variable.
3110         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
3111         that include the old contents of simple_generated_h and
3112         simple_generated_c.
3113         (simple_generated_h, simple_generated_c): Include them.  Add
3114         insn-constants.h.
3115         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
3116         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
3117         Remove these dependencies from the main rule and include
3118         insn-conditions.md in the command line only if it appears
3119         in the dependency list.
3120         (insn-constants.h, s-constants): Delete.
3121         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
3122         or gensupport.h.
3123         (build/genmddeps.o): Likewise.
3124         (genprogrtl): New variable that contains everything from genprogmd
3125         except mddeps and constants.
3126         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
3127         depend on $(BUILD_MD)
3128         (genprog): New variable.  Make these programs depend on
3129         $(BUILD_ERRORS).
3130         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
3131         (main): Use read_md_files instead of init_rtx_reader_args.
3132         * genconstants.c: As for genmddeps.c.
3133         * read-md.h (read_skip_construct): Declare.
3134         * read-md.c (read_skip_construct): New function.
3135         (handle_file): Allow a null handle_directive, skipping the
3136         construct if so.
3137         (parse_include): Update the comment accordingly.
3138
3139 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3140
3141         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
3142         * genmddeps.c: Include read-md.h.
3143         (main): Call init_rtx_reader_args instead of init_md_reader_args.
3144         * genattr.c (main): Likewise.
3145         * genattrtab.c (main): Likewise.
3146         * genautomata.c (main): Likewise.
3147         * gencodes.c (main): Likewise.
3148         * genconditions.c (main): Likewise.
3149         * genconfig.c (main): Likewise.
3150         * genconstants.c (main): Likewise.
3151         * genemit.c (main): Likewise.
3152         * genextract.c (main): Likewise.
3153         * genflags.c (main): Likewise.
3154         * genopinit.c (main): Likewise.
3155         * genoutput.c (main): Likewise.
3156         * genpeep.c (main): Likewise.
3157         * genrecog.c (main): Likewise.
3158         * genpreds.c (main): Likewise.
3159         * gensupport.h (in_fname): Move to read-md.h.
3160         (init_md_reader_args_cb): Rename to...
3161         (init_rtx_reader_args_cb): ...this and return a bool.
3162         (init_md_reader_args): Rename to...
3163         (init_rtx_reader_args): ...this and return a bool.
3164         (include_callback): Move to read-md.h.
3165         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
3166         (file_name_list, first_dir_md_include): Move to read-md.c
3167         (first_bracket_include): Delete unused variable.
3168         (last_dir_md_include): Move to read-md.c.
3169         (process_include): Delete, moving code to read-md.c:handle_include.
3170         (process_rtx): Don't handle INCLUDE.
3171         (save_string): Delete.
3172         (rtx_handle_directive): New function.
3173         (init_md_reader_args_cb): Rename to...
3174         (init_rtx_reader_args_cb): ...this and return a boolean success value.
3175         Use read_md_args.
3176         (init_md_reader_args): Rename to...
3177         (init_rtx_reader_args): ...this and return a boolean success value.
3178         * rtl.def (INCLUDE): Delete.
3179         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
3180         argument.
3181         * read-rtl.c (read_conditions): Don't gobble ')' here.
3182         (read_mapping): Likewise.
3183         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
3184         Handle top-level non-rtx constructs here rather than in read_rtx_1.
3185         Store the whole queue in *X.  Remove call to init_md_reader.
3186         (read_rtx_1): Rename to...
3187         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
3188         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
3189         here.
3190         (read_nested_rtx): New function.  Handle (nil) here rather than
3191         in read_rtx_code.
3192         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
3193         gobble ')' here.
3194         * read-md.h (directive_handler_t): New type.
3195         (in_fname, include_callback): Moved from read-md.h.
3196         (read_constants, init_md_reader): Delete.
3197         (read_md_files): Declare.
3198         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
3199         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
3200         from gensupport.c.
3201         (read_constants): Rename to...
3202         (handle_constants): ...this.  Don't gobble ')' here.
3203         (handle_include, handle_file, handle_toplevel_file)
3204         (parse_include): New functions, mostly taken from gensupport.c.
3205         (init_md_reader): Subsume into...
3206         (read_md_files): ...this new function.
3207
3208 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3209
3210         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
3211         (unread_char): Decrement read_md_lineno after putting back '\n'.
3212         * read-md.c (fatal_with_file_and_line): Push back any characters
3213         that we decide not to add to the context.
3214         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
3215         fatal_expected_char in cases where '/' ends a line (for example).
3216         (read_name): Don't increment read_md_lineno here.
3217         (read_escape): Likewise.
3218         (read_quoted_string): Likewise.
3219         (read_braced_string): Likewise.
3220
3221 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3222
3223         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
3224         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
3225         * genconstants.c: Include read-md.h.
3226         * read-rtl.c (md_constants): Move to read-md.c.
3227         (md_name): Move to read-md.h.
3228         (initialize_iterators): Use leading_string_hash instead of def_hash
3229         and leading_string_eq_p instead of def_name_eq_p.
3230         (read_name): Move to read-md.c.
3231         (def_hash, def_name_eq_p): Delete.
3232         (read_constants, traverse_md_constants): Move to read-md.c.
3233         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
3234         * read-md.h: Include hashtab.h.
3235         (md_name): Moved from read-rtl.c.
3236         (md_constant): Moved from read-md.h.
3237         (leading_string_hash, leading_string_eq_p, read_name)
3238         (read_constants, traverse_md_constants): Declare.
3239         * read-md.c (md_constants): Moved from read-rtl.c.
3240         (leading_string_hash, leading_string_eq_p): New functions.
3241         (read_name, read_constants, traverse_md_constants): Moved from
3242         read-rtl.c.
3243
3244 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3245
3246         * read-rtl.c (md_name): New structure.
3247         (read_name): Take an md_name instead of a buffer pointer.
3248         Use the "string" field instead of strcpy when expanding constants.
3249         (read_constants): Remove the tmp_char argument.  Update the calls
3250         to read_name, using two local name buffers instead of the tmp_char
3251         argument.  Merge the constant-creation code.
3252         (read_conditions): Remove the tmp_char argument.  Update the calls
3253         to read_name, using a local name buffer instead of the tmp_char
3254         argument.
3255         (read_mapping): Replace tmp_char variable with a local name buffer.
3256         Update the calls to read_name.
3257         (read_rtx_1): Likewise.  Update the calls to read_constants and
3258         read_conditions.
3259
3260 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3261
3262         * Makefile.in (build/read-md.o): Depend on errors.h.
3263         * read-md.h (error_with_line): Declare.
3264         * read-md.c: Include errors.h.
3265         (message_with_line_1): New function, extracted from...
3266         (message_with_line): ...here.
3267         (error_with_line): New function.
3268         * genattrtab.c: If a call to message_with_line is followed by
3269         "have_error = 1;", replace both statements with a call to
3270         error_with_line.
3271         * genoutput.c: Likewise.
3272         * genpreds.c: Likewise.
3273         * genrecog.c: If a call to message_with_line is followed by
3274         "error_count++;", replace both statements with a call to
3275         error_with_line.
3276         (errorcount): Delete.
3277         (main): Don't check it.
3278         * gensupport.c: If a call to message_with_line is followed by
3279         "errors = 1;", replace both statements with a call to error_with_line.
3280         (errors): Delete.
3281         (process_define_cond_exec): Check have_error instead of errors.
3282         (init_md_reader_args_cb): Likewise.  Don't set errors.
3283
3284 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3285
3286         * read-md.h (read_md_file): Declare.
3287         (read_char, unread_char): New functions.
3288         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
3289         (read_quoted_string, read_string): Remove FILE * argument.
3290         * read-md.c (read_md_file): New variable.
3291         (read_md_filename, read_md_lineno): Update comments and remove
3292         unnecessary initialization.
3293         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
3294         (read_escape, read_quoted_string, read_braced_string, read_string):
3295         Remove FILE * argument.  Update calls accordingly, using read_char
3296         and unread_char instead of getc and ungetc.
3297         * rtl.h (read_rtx): Remove FILE * argument.
3298         * read-rtl.c (iterator_group): Remove FILE * argument from
3299         "find_builtin".
3300         (iterator_traverse_data): Remove "infile" field.
3301         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
3302         (add_mapping, read_name, read_constants, read_conditions)
3303         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
3304         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
3305         Remove file arguments from all calls, using read_char and unread_char
3306         instead of getc and ungetc.
3307         * gensupport.c (process_include): Preserve read_md_file around
3308         the include.  Set read_md_file to the handle of the included file.
3309         Update call to read_rtx.
3310         (init_md_reader_args_cb): Set read_md_file to the handle of the file
3311         and remove local FILE *.  Update calls to read_rtx.
3312
3313 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3314
3315         * read-md.h (read_rtx_lineno): Rename to...
3316         (read_md_lineno): ...this.
3317         (read_rtx_filename): Rename to...
3318         (read_md_filename): ...this.
3319         (copy_rtx_ptr_loc): Rename to...
3320         (copy_md_ptr_loc): ...this.
3321         (print_rtx_ptr_loc): Rename to...
3322         (print_md_ptr_loc): ...this.
3323         * read-md.c: Likewise.  Update references after renaming.
3324         (string_obstack): Replace RTL with MD in comment.
3325         (set_rtx_ptr_loc): Rename to...
3326         (set_md_ptr_loc): ...this.
3327         (get_rtx_ptr_loc): Rename to...
3328         (get_md_ptr_loc): ...this.
3329         * genconditions.c: Update references after renaming.
3330         * genemit.c: Likewise.
3331         * genoutput.c: Likewise.
3332         * genpreds.c: Likewise.
3333         * gensupport.c: Likewise.
3334         * read-rtl.c: Likewise.
3335
3336 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3337
3338         * Makefile.in (READ_MD_H): New variable.
3339         (BUILD_RTL): Add build/read-md.o.
3340         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
3341         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
3342         (build/genattrtab.o, build/genconditions.o build/genemit.o)
3343         (build/genextract.o, build/genflags.o, build/genoutput.o)
3344         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
3345         (build/read-md.o): New rule.
3346         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
3347         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
3348         * coretypes.h: ...here.
3349         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
3350         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
3351         * genattr.c: Include read-md.h.
3352         * genattrtab.c: Likewise.
3353         * genconditions.c: Likewise.
3354         * genemit.c: Likewise.
3355         * genextract.c: Likewise.
3356         * genflags.c: Likewise.
3357         * genoutput.c: Likewise.
3358         * genpreds.c: Likewise.
3359         * genrecog.c: Likewise.
3360         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
3361         (join_c_conditions, print_c_condition, read_rtx_filename)
3362         (read_rtx_lineno): Move to read-md.h.
3363         * read-rtl.c: Include read-md.h.
3364         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
3365         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
3366         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
3367         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
3368         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
3369         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
3370         (read_braced_string, read_string): Move to read-md.c.
3371         (read_rtx): Move some initialization to init_md_reader and call
3372         init_md_reader here.
3373         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
3374         Move to read-md.h.
3375         * gensupport.c: Include read-md.h.
3376         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
3377         * read-md.h, read-md.c: New files.
3378
3379 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
3380
3381         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3382         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
3383         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
3384         * config/moxie/moxie.c (moxie_function_value): Make static.
3385         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
3386         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
3387
3388 2010-06-10  Martin Jambor  <mjambor@suse.cz>
3389
3390         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
3391         * dbgcnt.def (tree_sra): New counter.
3392         * tree-sra.c: Include dbgcnt.h.
3393         (gate_intra_sra): Check tree_sra debug counter.
3394
3395 2010-06-10  Martin Jambor  <mjambor@suse.cz>
3396
3397         PR tree-optimization/44258
3398         * tree-sra.c (build_access_subtree): Return false iff there is a
3399         partial overlap.
3400         (build_access_trees): Likewise.
3401         (analyze_all_variable_accesses): Disqualify candidates if
3402         build_access_trees returns true for them.
3403
3404 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
3405
3406         PR debug/41371
3407         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
3408         tail-recurse into canonical node.  Fast-forward over
3409         non-canonical VALUEs.
3410
3411 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
3412
3413         PR boostrap/44470
3414         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
3415         (*addsi_1_zext) <TYPE_LEA>: Likewise.
3416         (add lea splitter): Likewise.
3417         (add_zext lea splitter): Likewise.
3418
3419 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
3420
3421         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
3422
3423 2010-06-10  Jan Hubicka  <jh@suse.cz>
3424
3425         * df-problems.c (df_live_problem_data): Add live_bitmaps.
3426         (df_live_alloc): Initialize problem data and live_osbtacks.
3427         (df_live_finalize): Remove obstack, problem data; do not
3428         clear all bitmaps.
3429         (df_live_top_dump, df_live_bottom_dump): Do not dump old
3430         data when not allocated.
3431         (df_live_verify_solution_start): Do not allocate problem data.
3432         (df_live_verify_solution_end): Check if out is allocated.
3433         (struct df_md_problem_data): New structure.
3434         (df_md_alloc): Allocate problem data.
3435         (df_md_free): Free problem data; do not clear bitmaps.
3436
3437 2010-06-10  Jan Beulich  <jbeulich@novell.com>
3438
3439         PR bootstrap/37304
3440         * configure.ac: Replace $() with ${} when intending to expand
3441         variables rather than invoking commands.
3442         * configure: Re-generate.
3443
3444 2010-06-10  Jan Hubicka  <jh@suse.cz>
3445
3446         PR rtl-optimization/44460
3447         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
3448         TYPE_NEEDS_CONSTRUCTING sanity check.
3449
3450 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
3451
3452         * doc/include/fdl.texi: Move to GFDL version 1.3.
3453
3454         * doc/cpp.texi: Move to GFDL version 1.3.
3455         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
3456         * doc/gccint.texi: Move to GFDL version 1.3.
3457         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
3458         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
3459         * doc/invoke.texi: Move to GFDL version 1.3.
3460
3461 2010-06-09  Jan Hubicka  <jh@suse.cz>
3462
3463         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
3464         Break out from ...
3465         (propagate) ... here; swap the order.
3466
3467 2010-06-09  Jan Hubicka  <jh@suse.cz>
3468
3469         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
3470         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
3471         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
3472         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
3473
3474 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
3475
3476         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
3477         Do not the gather memory reference in the outer loop if the step
3478         is not a constant.
3479
3480 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
3481
3482         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
3483         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
3484         8 to 4.  Minor change of the related comments.
3485
3486 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
3487
3488         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
3489         the scev analysis when the variable is not used outside the loop
3490         in a close phi node: call compute_overall_effect_of_inner_loop.
3491
3492 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
3493
3494         * graphite-sese-to-poly.c (single_pred_cond): Renamed
3495         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
3496         (build_sese_conditions_before): Renamed call to single_pred_cond.
3497         (build_sese_conditions_after): Same.
3498
3499 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
3500
3501         * graphite-poly.h: Fix comments and indentation.
3502         * graphite-sese-to-poly.c: Same.
3503         (build_sese_conditions_before): Compute stmt and gbb only when needed.
3504         * tree-chrec.c: Fix comments and indentation.
3505         (tree-ssa-loop-niter.c): Same.
3506
3507 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
3508
3509         PR rtl-optimization/42461
3510         * dce.c (deletable_insn_p): Return true for const or pure calls again.
3511         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
3512
3513 2010-06-09  Jan Hubicka  <jh@suse.cz>
3514
3515         * bitmap.c (bitmap_and): Walk array forward.
3516         (bitmap_and_compl_into): Likewise.
3517         (bitmap_xor): Likewise.
3518         (bitmap_xor_into):  Likewise.
3519         (bitmap_equal_p): Likewise.
3520         (bitmap_intersect_p): Likewise.
3521         (bitmap_intersect_compl_p): Likewise.
3522         (bitmap_ior_and_into): Likewise.
3523         (bitmap_elt_copy): Likewise.
3524         (bitmap_and_compl): Likewise.
3525         (bitmap_elt_ior): Likewise.
3526
3527 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
3528
3529         * opts-common.c (prune_options): Ensure replacement argv array
3530         is correctly terminated by a NULL entry.
3531
3532 2010-06-09  Jan Hubicka  <jh@suse.cz>
3533
3534         * cgraph.h (varpool_first_static_initializer,
3535         varpool_next_static_initializer): Make checking only when
3536         checking enabled.
3537         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
3538         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
3539         gcc_assert to gcc_checking_assert.
3540         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
3541         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
3542         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
3543         op_iter_init_phiuse, op_iter_init_phidef,
3544         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
3545         gcc_checking_assert.
3546         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
3547         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
3548         partition_is_global, live_on_entry, live_on_exit,
3549         live_merge_and_clear): Likewise.
3550         * system.h (gcc_checking_assert): New macro.
3551         * gimple.h (set_bb_seq): Use gcc_checking_assert.
3552
3553 2010-06-09  Jason Merrill  <jason@redhat.com>
3554
3555         * Makefile.in (TAGS): Collect tags info from c-family.
3556
3557 2010-06-09  Jan Hubicka  <jh@suse.cz>
3558
3559         * gimple.h (gcc_gimple_checking_assert): New macro.
3560         (gimple_set_def_ops, gimple_set_use_ops,
3561         gimple_set_vuse, gimple_set_vdef,
3562         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
3563         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
3564         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
3565         gimple_asm_output_op, gimple_asm_output_op_ptr,
3566         gimple_asm_set_output_op, gimple_asm_clobber_op,
3567         gimple_asm_set_clobber_op, gimple_asm_label_op,
3568         gimple_asm_set_label_op, gimple_try_set_kind,
3569         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
3570         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
3571         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
3572         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
3573         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
3574         gimple_omp_for_set_initial, gimple_omp_for_final,
3575         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
3576         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
3577         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
3578         conditional with ENABLE_GIMPLE_CHECKING.
3579         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
3580
3581 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
3582
3583         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
3584         (get_computation_cost_at): Use it.
3585         (determine_use_iv_cost_condition): Likewise.
3586         (determine_iv_cost): Likewise.
3587
3588 2010-06-09  Richard Guenther  <rguenther@suse.de>
3589
3590         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
3591         replace constants.
3592
3593 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
3594
3595         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
3596
3597 2010-06-09  Martin Jambor  <mjambor@suse.cz>
3598
3599         PR tree-optimization/44423
3600         * tree-sra.c (dump_access): Dump also grp_assignment_read.
3601         (analyze_access_subtree): Pass negative allow_replacements to children
3602         if the current type is scalar.
3603
3604 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3605
3606         PR testsuite/42843
3607         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
3608         * doc/plugins.texi (Plugin license check): Update information
3609         on type of plugin_is_GPL_compatible.
3610         * Makefile.in (PLUGINCC): Define as $(COMPILER).
3611         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
3612
3613 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
3614
3615         * config/arm/arm.c (thumb2_reorg): New function.
3616         (arm_reorg): Call it.
3617         * config/arm/thumb2.md (define_peephole2 for flag clobbering
3618         arithmetic operations): Delete.
3619
3620 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
3621
3622         PR target/44067
3623         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
3624         e500v2 target.
3625
3626 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
3627
3628         PR plugins/44459
3629         * gcc-plugin.h: Encapsulate all declarations in extern "C".
3630
3631 2010-06-08  Jan Hubicka  <jh@suse.cz>
3632
3633         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
3634         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
3635
3636 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
3637
3638         PR tree-optimization/39874
3639         PR middle-end/28685
3640         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
3641         Declare.
3642         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
3643         same_bool_result_p): New.
3644         (and_var_with_comparison, and_var_with_comparison_1,
3645         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
3646         (or_var_with_comparison, or_var_with_comparison_1,
3647         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
3648         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
3649         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
3650         of combine_comparisons.
3651         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
3652
3653 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
3654
3655         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3656         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
3657         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
3658         pdp11_function_value_regno_p): New functions.
3659         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3660         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3661
3662 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
3663
3664         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
3665         Thumb-2 in the MINUS case.
3666
3667 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3668
3669         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
3670
3671         * doc/gty.texi (GTY Options): Document typed GC allocation and
3672         variable_size GTY option.
3673
3674         * ggc-internal.h: New.
3675
3676         * ggc.h: Update copyright year.
3677         (digit_string): Move to stringpool.c.
3678         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
3679         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
3680         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
3681         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
3682         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
3683         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
3684         (ggc_force_collect, ggc_get_size, ggc_statistics)
3685         (ggc_print_common_statistics): Move to ggc-internal.h.
3686         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
3687         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
3688         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
3689         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
3690         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
3691         (ggc_alloc_zone_pass_stat): Remove.
3692         (ggc_internal_alloc_stat, ggc_internal_alloc)
3693         (ggc_internal_cleared_alloc_stat): New.
3694         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
3695         (ggc_internal_vec_alloc_stat)
3696         (ggc_internal_cleared_vec_alloc_stat)
3697         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
3698         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
3699         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
3700         (ggc_cleared_alloc_ptr_array_two_args): New.
3701         (htab_create_ggc, splay_tree_new_ggc): Redefine.
3702         (ggc_splay_alloc): Change the type of the first argument to
3703         enum gt_types_enum.
3704         (ggc_alloc_string): Make macro.
3705         (ggc_alloc_string_stat): New.
3706         (ggc_strdup): Redefine.
3707         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
3708         (ggc_alloc_rtvec_sized): New.
3709         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
3710         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
3711         (ggc_internal_cleared_alloc_zone_stat)
3712         (ggc_internal_zone_alloc_stat)
3713         (ggc_internal_zone_cleared_alloc_stat)
3714         (ggc_internal_zone_vec_alloc_stat)
3715         (ggc_alloc_zone_rtx_def_stat)
3716         (ggc_alloc_zone_tree_node_stat)
3717         (ggc_alloc_zone_cleared_tree_node_stat)
3718         (ggc_alloc_cleared_gimple_statement_d_stat): New.
3719
3720         * ggc-common.c: Include ggc-internal.h.
3721         (ggc_internal_cleared_alloc_stat): Rename from
3722         ggc_alloc_cleared_stat.
3723         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
3724         (ggc_calloc): Remove.
3725         (ggc_cleared_alloc_htab_ignore_args): New.
3726         (ggc_cleared_alloc_ptr_array_two_args): New.
3727         (ggc_splay_alloc): Add obj_type parameter.
3728         (init_ggc_heuristics): Formatting fixes.
3729
3730         * ggc-none.c: Update copyright year.
3731         (ggc_alloc_stat): Rename to ggc_alloc_stat.
3732         (ggc_alloc_cleared_stat): Rename to
3733         ggc_internal_cleared_alloc_stat.
3734         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
3735
3736         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
3737         Remove references to ggc_alloc in comments.
3738         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
3739         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
3740         (new_ggc_zone, destroy_ggc_zone): Remove.
3741         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
3742
3743         * ggc-zone.c: Include ggc-internal.h.  Remove references to
3744         ggc_alloc in comments.
3745         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
3746         (ggc_internal_alloc_zone_pass_stat): New.
3747         (ggc_internal_cleared_alloc_zone_stat): New.
3748         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
3749         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
3750         (new_ggc_zone, destroy_ggc_zone): Remove.
3751
3752         * stringpool.c: Update copyright year.  Include ggc-internal.h
3753         (digit_vector): Make static.
3754         (digit_string): Moved from ggc.h.
3755         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
3756         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
3757
3758         * Makefile.in (GGC_INTERNAL_H): New.
3759         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
3760         $(GGC_INTERNAL_H) to dependencies.
3761
3762         * gentype.c: Update copyright year.
3763         (walk_type): Accept variable_size GTY option.
3764         (USED_BY_TYPED_GC_P): New macro.
3765         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
3766         whitespace at the end of strings.
3767         (get_type_specifier, variable_size_p): New functions.
3768         (alloc_quantity, alloc_zone): New enums.
3769         (write_typed_alloc_def): New function.
3770         (write_typed_struct_alloc_def): Likewise.
3771         (write_typed_typed_typedef_alloc_def): Likewise.
3772         (write_typed_alloc_defns): Likewise.
3773         (output_typename, write_splay_tree_allocator_def): Likewise.
3774         (write_splay_tree_allocators): Likewise.
3775         (main): Call write_typed_alloc_defns and
3776         write_splay_tree_allocators.
3777
3778         * lto-streamer.h (lto_file_decl_data_ptr): New.
3779
3780         * passes.c (order): Define using cgraph_node_ptr.
3781
3782         * strinpool.c (struct string_pool_data): Declare nested_ptr using
3783         ht_identifier_ptr.
3784
3785         * gimple.h (union gimple_statement_d): Likewise.
3786
3787         * rtl.h (struct rtx_def): Likewise.
3788         (struct rtvec_def): Likewise.
3789
3790         * tree.h (union tree_node): Likewise.
3791
3792         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
3793
3794         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
3795
3796         * tree-scalar-evolution.c (scev_initialize): Likewise.
3797
3798         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
3799
3800         * dwarf2asm.c (dw2_force_const_mem): Likewise.
3801
3802         * omp-low.c (lower_omp_critical): Likewise.
3803
3804         * bitmap.h (struct bitmap_head_def): Update comment to not
3805         reference ggc_alloc.
3806
3807         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
3808
3809         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
3810
3811         * ipa-prop.c (duplicate_ggc_array): Rename to
3812         duplicate_ipa_jump_func_array.  Use typed GC allocation.
3813         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
3814
3815         * gimple.c (gimple_alloc_stat): Use
3816         ggc_alloc_cleared_gimple_statement_d_stat.
3817
3818         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
3819
3820         * tree.c (make_node_stat): Use
3821         ggc_alloc_zone_cleared_tree_node_stat.
3822         (make_tree_vec_stat): Likewise.
3823         (build_vl_exp_stat): Likewise.
3824         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
3825         (make_tree_binfo_stat): Likewise.
3826         (tree_cons_stat): Likewise.
3827
3828         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
3829         (shallow_copy_rtx_stat): Likewise.
3830         (make_node_stat): Likewise.
3831
3832         * lto-symtab.c: Fix comment.
3833
3834         * tree-cfg.c (create_bb): Update comment to not reference
3835         ggc_alloc_cleared.
3836         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
3837
3838         * varpool.c (varpool_node): Use typed GC allocation.
3839         (varpool_extra_name_alias): Likewise.
3840
3841         * varasm.c (emutls_decl): Likewise.
3842         (get_unnamed_section): Likewise.
3843         (get_noswitch_section): Likewise.
3844         (get_section): Likewise.
3845         (get_block_for_section): Likewise.
3846         (build_constant_desc): Likewise.
3847         (create_constant_pool): Likewise.
3848         (force_const_mem): Likewise.
3849
3850         * tree.c (build_vl_exp_stat): Likewise.
3851         (build_real): Likewise.
3852         (build_string): Likewise.
3853         (decl_debug_expr_insert): Likewise.
3854         (decl_value_expr_insert): Likewise.
3855         (type_hash_add): Likewise.
3856         (build_omp_clause): Likewise.
3857
3858         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
3859
3860         * tree-ssa.c (init_tree_ssa): Likewise.
3861
3862         * tree-ssa-structalias.c (heapvar_insert): Likewise.
3863
3864         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
3865
3866         * tree-ssa-loop-niter.c (record_estimate): Likewise.
3867
3868         * tree-ssa-alias.c (get_ptr_info): Likewise.
3869
3870         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
3871
3872         * tree-phinodes.c (allocate_phi_node): Likewise.
3873
3874         * tree-iterator.c (tsi_link_before): Likewise.
3875         (tsi_link_after): Likewise.
3876
3877         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
3878
3879         * tree-dfa.c (create_var_ann): Likewise.
3880
3881         * tree-cfg.c (create_bb): Likewise.
3882
3883         * toplev.c (alloc_for_identifier_to_locale): Likewise.
3884         (general_init): Likewise.
3885
3886         * stringpool.c (stringpool_ggc_alloc): Likewise.
3887         (gt_pch_save_stringpool): Likewise.
3888
3889         * sese.c (if_region_set_false_region): Likewise.
3890
3891         * passes.c (do_per_function_toporder): Likewise.
3892
3893         * optabs.c (set_optab_libfunc): Likewise.
3894         (set_conv_libfunc): Likewise.
3895
3896         * lto-symtab.c (lto_symtab_register_decl): Likewise.
3897
3898         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
3899         (input_eh_region): Likewise.
3900         (input_eh_lp): Likewise.
3901         (make_new_block): Likewise.
3902         (unpack_ts_real_cst_value_fields): Likewise.
3903
3904         * lto-section-in.c (lto_new_in_decl_state): Likewise.
3905
3906         * lto-cgraph.c (input_node_opt_summary): Likewise.
3907
3908         * loop-init.c (loop_optimizer_init): Likewise.
3909
3910         * lambda.h (lambda_vector_new): Likewise.
3911
3912         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
3913
3914         * ira.c (update_equiv_regs): Likewise.
3915
3916         * ipa.c (cgraph_node_set_new): Likewise.
3917         (cgraph_node_set_add): Likewise.
3918         (varpool_node_set_new): Likewise.
3919         (varpool_node_set_add): Likewise.
3920
3921         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
3922         (duplicate_ipa_jump_func_array): Likewise.
3923         (ipa_read_node_info): Likewise.
3924
3925         * ipa-cp.c (ipcp_create_replace_map): Likewise.
3926
3927         * integrate.c (get_hard_reg_initial_val): Likewise.
3928
3929         * gimple.c (gimple_alloc_stat): Likewise.
3930         (gimple_build_omp_for): Likewise.
3931         (gimple_seq_alloc): Likewise.
3932         (gimple_copy): Likewise.
3933
3934         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
3935         (gsi_insert_after_without_update): Likewise.
3936
3937         * function.c (add_frame_space): Likewise.
3938         (insert_temp_slot_address): Likewise.
3939         (assign_stack_temp_for_type): Likewise.
3940         (allocate_struct_function): Likewise.
3941         (types_used_by_var_decl_insert): Likewise.
3942
3943         * except.c (init_eh_for_function): Likewise.
3944         (gen_eh_region): Likewise.
3945         (gen_eh_region_catch): Likewise.
3946         (gen_eh_landing_pad): Likewise.
3947         (add_call_site): Likewise.
3948
3949         * emit-rtl.c (get_mem_attrs): Likewise.
3950         (get_reg_attrs): Likewise.
3951         (start_sequence): Likewise.
3952         (init_emit): Likewise.
3953
3954         * dwarf2out.c (new_cfi): Likewise.
3955         (queue_reg_save): Likewise.
3956         (dwarf2out_frame_init): Likewise.
3957         (new_loc_descr): Likewise.
3958         (find_AT_string): Likewise.
3959         (new_die): Likewise.
3960         (add_var_loc_to_decl): Likewise.
3961         (clone_die): Likewise.
3962         (clone_as_declaration): Likewise.
3963         (break_out_comdat_types): Likewise.
3964         (new_loc_list): Likewise.
3965         (loc_descriptor): Likewise.
3966         (add_loc_descr_to_each): Likewise.
3967         (add_const_value_attribute): Likewise.
3968         (tree_add_const_value_attribute): Likewise.
3969         (add_comp_dir_attribute): Likewise.
3970         (add_name_and_src_coords_attributes): Likewise.
3971         (lookup_filename): Likewise.
3972         (store_vcall_insn): Likewise.
3973         (dwarf2out_init): Likewise.
3974
3975         * dbxout.c (dbxout_init): Likewise.
3976
3977         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3978
3979         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3980
3981         * config/score/score7.c (score7_output_external): Likewise.
3982
3983         * config/score/score3.c (score3_output_external): Likewise.
3984
3985         * config/s390/s390.c (s390_init_machine_status): Likewise.
3986
3987         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
3988         (rs6000_init_machine_status): Likewise.
3989         (output_toc): Likewise.
3990
3991         * config/pa/pa.c (pa_init_machine_status): Likewise.
3992         (get_deferred_plabel): Likewise.
3993
3994         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
3995
3996         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
3997
3998         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
3999
4000         * config/mep/mep.c (mep_init_machine_status): Likewise.
4001         (mep_note_pragma_flag): Likewise.
4002
4003         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
4004
4005         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
4006
4007         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
4008
4009         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4010         (i386_pe_maybe_record_exported_symbol): Likewise.
4011
4012         * config/i386/i386.c (get_dllimport_decl): Likewise.
4013         (ix86_init_machine_status): Likewise.
4014         (assign_386_stack_local): Likewise.
4015
4016         * config/frv/frv.c (frv_init_machine_status): Likewise.
4017
4018         * config/darwin.c (machopic_indirection_name): Likewise.
4019
4020         * config/cris/cris.c (cris_init_machine_status): Likewise.
4021
4022         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
4023
4024         * config/avr/avr.c (avr_init_machine_status): Likewise.
4025
4026         * config/arm/arm.c (arm_init_machine_status): Likewise.
4027
4028         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
4029         (alpha_need_linkage): Likewise.
4030         (alpha_use_linkage): Likewise.
4031
4032         * cgraph.c (cgraph_allocate_node): Likewise.
4033         (cgraph_create_edge_1): Likewise.
4034         (cgraph_create_indirect_edge): Likewise.
4035         (cgraph_add_asm_node): Likewise.
4036
4037         * cfgrtl.c (init_rtl_bb_info): Likewise.
4038
4039         * cfgloop.c (alloc_loop): Likewise.
4040         (rescan_loop_exit): Likewise.
4041
4042         * cfg.c (init_flow): Likewise.
4043         (alloc_block): Likewise.
4044         (unchecked_make_edge): Likewise.
4045
4046         * c-parser.c (c_parse_init): Likewise.
4047         (c_parse_file): Likewise.
4048
4049         * c-decl.c (bind): Likewise.
4050         (record_inline_static): Likewise.
4051         (push_scope): Likewise.
4052         (make_label): Likewise.
4053         (lookup_label_for_goto): Likewise.
4054         (finish_struct): Likewise.
4055         (finish_enum): Likewise.
4056         (c_push_function_context): Likewise.
4057
4058         * bitmap.c (bitmap_element_allocate): Likewise.
4059         (bitmap_gc_alloc_stat): Likewise.
4060
4061         * alias.c (record_alias_subset): Likewise.
4062         (init_alias_analysis): Likewise.
4063
4064 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
4065
4066         * fold-const.c (fold_comparison): Remove redundant parenthesis.
4067         * tree-inline.c (expand_call_inline): Pass translated return value of
4068         cgraph_inline_failed_string to diagnostic function.
4069
4070 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
4071             Shujing Zhao  <pearly.zhao@oracle.com>
4072
4073         PR c/37724
4074         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
4075         implicit bad conversions is initialization.
4076         (error_init): Use gmsgid instead of msgid for argument name and change
4077         the call for error.
4078         (pedwarn_init): Use gmsgid instead of msgid for argument name and
4079         change the call for pedwarn.
4080         (warning_init): Use gmsgid instead of msgid for argument name and
4081         change the call for warning.
4082
4083 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
4084
4085         * config/mips/mips-protos.h (mips_print_operand): Delete.
4086         (mips_print_operand_address): Delete.
4087         * config/mips/mips.h (mips_print_operand_punct): Delete.
4088         (PRINT_OPERAND): Delete.
4089         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4090         (PRINT_OPERAND_ADDRESS): Delete.
4091         * config/mips/mips.c (mips_print_operand_punct): Make static.
4092         (mips_print_operand_address): Make static.
4093         (mips_print_operand): Make static.  Call
4094         mips_print_operand_punct_valid_p.
4095         (mips_print_operand_punct_valid_p): New function.
4096         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4097         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4098
4099 2010-06-07  Jan Hubicka  <jh@suse.cz>
4100
4101         PR middle-end/44454
4102         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
4103         are allocated.
4104
4105 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
4106
4107         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
4108         name of RECORD.
4109
4110 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4111
4112         * doc/sourcebuild.texi (Effective-Target Keywords, Other
4113         attributes): Document gas.
4114
4115 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
4116
4117         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
4118         <TYPE_LEA>: Split instruction.
4119         <default>: Remove alternative 2 handling.
4120         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
4121         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
4122         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
4123
4124         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
4125         (ashift_zext lea splitter): Use DImode for multiplication.
4126
4127         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
4128         to generate addition.
4129
4130 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4131
4132         * common.opt (fira-verbose): Use Var.
4133         (fpcc-struct-return): Use Init instead of VarExists.
4134         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
4135         toplev.c.
4136         * flags.h (flag_signed_char, flag_short_enums,
4137         flag_pcc_struct_return, flag_ira_verbose,
4138         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
4139         * toplev.c (flag_detailed_statistics, flag_signed_char,
4140         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
4141         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
4142         * toplev.h (flag_crossjumping, flag_if_conversion,
4143         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
4144         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
4145         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
4146         flag_cprop_registers, time_report, flag_ira_loop_pressure,
4147         flag_ira_coalesce, flag_ira_move_spills,
4148         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
4149
4150 2010-06-07  Jan Hubicka  <jh@suse.cz>
4151
4152         * df-core.c (df_analyze_problem): Do verification after allocation.
4153
4154         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
4155         (df_lr_alloc): Initialize problem data; move bitmaps to
4156         lr_bitmaps obstack.
4157         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
4158         (df_lr_verify_solution_start): Do not initialize problem data;
4159         allocate bitmaps in lr_bitmaps.
4160         (df_lr_verify_solution_end): Do not free problem data.
4161
4162 2010-06-07  Jan Hubicka  <jh@suse.cz>
4163
4164         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
4165         if caller is noreturn.
4166         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
4167         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
4168         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
4169         * ipa-pure-const.c (check_decl): Add IPA parameter.
4170         (state_from_flags): New function.
4171         (better_state, worse_state): New functions.
4172         (check_call): When in IPA mode, do not care about callees.
4173         (check_load, check_store): Update.
4174         (check_ipa_load, check_ipa_store): New.
4175         (check_stmt): When in IPA mode, use IPA checkers.
4176         (analyze_function): Use state_from_flags.
4177         (propagate): Check indirect edges and references.
4178
4179 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
4180
4181         PR rtl-optimization/44404
4182         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
4183         of count_occurrences to see if it's safe to modify mem_insn.
4184
4185 2010-06-07  Richard Guenther  <rguenther@suse.de>
4186
4187         * gimplify.c (gimplify_cleanup_point_expr): For empty body
4188         and EH-only cleanup drop the cleanup instead of inserting it
4189         unconditionally.
4190
4191 2010-06-07  Ira Rosen  <irar@il.ibm.com>
4192
4193         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
4194         documentation.
4195         * targhooks.c (default_builtin_vectorization_cost): New function.
4196         * targhooks.h (default_builtin_vectorization_cost): Declare.
4197         * target.h (enum vect_cost_for_stmt): Define.
4198         (builtin_vectorization_cost): Change argument and comment.
4199         * tree-vectorizer.h: Remove cost model macros.
4200         * tree-vect-loop.c: Include target.h.
4201         (vect_get_cost): New function.
4202         (vect_estimate_min_profitable_iters): Replace cost model macros with
4203         calls to vect_get_cost.
4204         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
4205         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
4206         default implementation.
4207         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
4208         calls to target hook builtin_vectorization_cost.
4209         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
4210         Likewise.
4211         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
4212         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
4213         implementation to return costs.
4214         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
4215         * config/spu/spu.h: Remove vectorizer cost model macros.
4216         * config/i386/i386.h: Likewise.
4217         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
4218         a call to target hook builtin_vectorization_cost.
4219
4220 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
4221
4222         PR target/44319
4223         * config/i386/i386.c (override_options): Turn zee pass on for level 2
4224         and above and defer till target is known.
4225         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
4226         turn off otherwise.
4227
4228 2010-05-25  Jan Hubicka  <jh@suse.cz>
4229
4230         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
4231         (df_compact_blocks): Likewise.
4232         * df.h (struct df): Turn hardware_regs_used,
4233         regular_block_artificial_uses, eh_block_artificial_uses,
4234         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
4235         bitmap_head.
4236         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
4237         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
4238         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
4239         df_scan_blocks, df_insn_delete, df_insn_rescan,
4240         df_insn_rescan_debug_internal, df_insn_rescan_all,
4241         df_process_deferred_rescans, df_process_deferred_rescans,
4242         df_notes_rescan, df_get_call_refs, df_get_call_refs,
4243         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
4244         df_record_entry_block_defs, df_record_exit_block_uses,
4245         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
4246         df_scan_verify): Update.
4247
4248 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
4249
4250         PR c++/44188
4251         * c-common.c (is_typedef_decl): Move this definition ...
4252         * tree.c (is_typedef_decl): ... here.
4253         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
4254         * c-common.h (is_typedef_decl): Move this declaration ...
4255         * tree.h (is_typedef_decl): ... here.
4256         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
4257         * dwarf2out.c (is_naming_typedef_decl): New function.
4258         (gen_tagged_type_die): Split out of ...
4259         (gen_type_die_with_usage): ... this function. When an anonymous
4260         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
4261         is emitted for the typedef.
4262         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
4263         anonymous tagged types.
4264
4265 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4266
4267         PR c/20000
4268         * c-decl.c (grokdeclarator): Delete warning.
4269
4270 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
4271
4272         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
4273         newly built CALL_EXPR.
4274         * tree-profile.c (tree_profiling): Don't profile functions produced
4275         for built-in stuff.
4276
4277 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
4278
4279         PR bootstrap/44427
4280         PR bootstrap/44428
4281         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
4282         endianness-independent.
4283
4284 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4285
4286         * c-common.c: Move to c-family/.
4287         * c-common.def: Likewise.
4288         * c-common.h: Likewise.
4289         * c-cppbuiltin.c: Likewise.
4290         * c-dump.c: Likewise.
4291         * c-format.c: Likewise.
4292         * c-format.h : Likewise.
4293         * c-gimplify.c: Likewise.
4294         * c-lex.c: Likewise.
4295         * c-omp.c: Likewise.
4296         * c.opt: Likewise.
4297         * c-opts.c: Likewise.
4298         * c-pch.c: Likewise.
4299         * c-ppoutput.c: Likewise.
4300         * c-pragma.c: Likewise.
4301         * c-pragma.h: Likewise.
4302         * c-pretty-print.c: Likewise.
4303         * c-pretty-print.h: Likewise.
4304         * c-semantics.c: Likewise.
4305         * stub-objc.c: Likewise.
4306
4307         * gengtype.c (get_file_langdir): Special-case files in c-family/.
4308         (get_output_file_with_visibility): Fix name for c-common.h.
4309         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
4310
4311         * c-tree.h: Update include path for moved files.
4312         * c-lang.c: Likewise.
4313         * c-lang.h: Likewise.
4314         * c-parser.c: Likewise.
4315         * c-convert.c: Likewise.
4316         * c-decl.c: Likewise.
4317         * c-objc-common.c: Likewise.
4318         * configure.ac: Make sure c-family/ exists in the build directory.
4319         * configure: Regenerate.
4320         * Makefile.in: Update paths for moved files.  Regroup files per
4321         location and update dependencies.  Move generated_files down after
4322         ALL_GTFILES_H.
4323
4324         * config/spu/spu-c.c: Update paths for moved files.
4325         * config/mep/mep-pragma.c: Likewise.
4326         * config/darwin-c.c: Likewise.
4327         * config/i386/msformat-c.c: Likewise.
4328         * config/i386/i386-c.c: Likewise.
4329         * config/avr/avr-c.c: Likewise.
4330         * config/sol2-c.c: Likewise.
4331         * config/ia64/ia64-c.c: Likewise.
4332         * config/rs6000/rs6000-c.c: Likewise.
4333         * config/arm/arm.c: Likewise.
4334         * config/arm/arm-c.c: Likewise.
4335         * config/h8300/h8300.c: Likewise.
4336         * config/v850/v850-c.c: Likewise.
4337
4338         * config/t-darwin: Fix dependencies for moved files.
4339         * config/t-sol2: Fix dependencies for moved files.
4340         * config/mep/t-mep: Fix dependencies for moved files.
4341         * config/ia64/t-ia64: Fix dependencies for moved files.
4342         * config/rs6000/t-rs6000: Fix dependencies for moved files.
4343         * config/v850/t-v850: Fix dependencies for moved files.
4344         * config/v850/t-v850e: Fix dependencies for moved files.
4345
4346         * config/m32c/m32c-pragma.c
4347
4348         * po/exgettext: Look in c-family/ also.
4349
4350 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
4351
4352         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
4353         (mark_control_dependent_edges_necessary): Call it instead of marking
4354         the last statement manually.
4355         (propagate_necessity): Likewise.
4356
4357 2010-06-05  Jan Hubicka  <jh@suse.cz>
4358
4359         * basic-block.h (compute_dominance_frontiers): Updated.
4360         (compute_idf): Likewise.
4361
4362         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
4363         for dominance frontiers.
4364         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
4365         (insert_updated_phi_nodes_for): Likewise.
4366         (update_ssa): Likewise.
4367         * cfganal.c (compute_dominance_frontiers_1): Likewise.
4368         (compute_dominance_frontiers): Likewise.
4369         (compute_idf): Likewise.
4370         * df-problems.c (df_md_local_compute): Likewise.
4371
4372 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
4373
4374         * target.h (struct gcc_target): Add memory_move_cost field.
4375         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
4376         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
4377         * targhooks.c (default_memory_move_cost): New function.
4378         * targhooks.h (default_memory_move_cost): Declare function.
4379         * reload.h (memory_move_cost): Declare.
4380         (memory_move_secondary_cost): Change type of 'in' argument to bool.
4381         * reginfo.c (memory_move_cost): New function.
4382         (memory_move_secondary_cost): Change type of 'in' argument to bool.
4383         * ira.h (ira_memory_move_cost): Update comment.
4384         * ira.c: (ira_memory_move_cost): Update comment.
4385         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
4386         with memory_move_cost.
4387         * postreload.c (reload_cse_simplify_set): (Ditto.).
4388         * reload1.c (choose_reload_regs): (Ditto.).
4389         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
4390         (MEMORY_MOVE_COST):  Revise documentation.
4391
4392         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
4393         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
4394         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
4395         type of 'in' argument to bool.
4396         (TARGET_MEMORY_MOVE_COST): Define.
4397
4398 2010-06-05  Jan Hubicka  <jh@suse.cz>
4399
4400         * ipa-pure-const.c (propagate): Fix typo in handling of functions
4401         that cannot return.  Be more careful when merging the results with
4402         previously known ones.
4403
4404 2010-06-05  Matthias Klose  <doko@ubuntu.com>
4405
4406         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
4407         function to add the -iplugindir option.
4408         (find_plugindir_spec_function): Add new declaration and function.
4409         (static_spec_func): Use it for "find-plugindir".
4410
4411 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
4412
4413         PR c++/44361
4414         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
4415         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
4416         statement expression.
4417
4418 2010-06-05  Jan Hubicka  <jh@suse.cz>
4419
4420         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
4421         (df_rd_problem_data): Convert sparse_invalidated_by_call,
4422         dense_invalidated_by_call to bitmap head.
4423         (df_rd_alloc, df_rd_bb_local_compute_process_def,
4424         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
4425         df_rd_start_dump, df_lr_verify_transfer_functions,
4426         df_live_verify_transfer_functions, df_chain_create_bb,
4427         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
4428         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
4429         df_simulate_one_insn_forwards, df_md_alloc,
4430         df_md_bb_local_compute_process_def,
4431         df_md_bb_local_compute_process_def, df_md_local_compute,
4432         df_md_transfer_function df_md_free): Update.
4433
4434 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
4435
4436         PR c/44322
4437         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
4438         target type for ADDR_EXPR; require no changes to qualifiers except
4439         for function types.
4440         * c-tree.h (c_build_type_variant): Remove.
4441
4442 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
4443
4444         * genautomata.c (get_excl_set): Do work per element, not per char.
4445         (check_presence_pattern_sets): Similar.
4446         (check_absence_pattern_sets): Similar.
4447
4448 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
4449
4450         * genautomata.c (curr_state_pass_num): Delete.
4451         (min_issue_delay_pass_states): Delete.
4452         (min_issue_delay): Delete.
4453         (initiate_min_issue_delay_pass_states): Delete.
4454         (output_min_issue_delay_table): Compute min_issue_delay_vect
4455         using a breadth-first search variant.
4456         (output_tables): Don't call initiate_min_issue_delay_pass_states.
4457
4458 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4459
4460         PR boostrap/44421
4461         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
4462         (df_byte_lr_bb_local_compute): Likewise.
4463
4464 2010-06-03  Jason Merrill  <jason@redhat.com>
4465
4466         Implement noexcept operator (5.3.7)
4467         * c-common.c (c_common_reswords): Add noexcept.
4468         * c-common.h (enum rid): Add RID_NOEXCEPT.
4469
4470 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
4471
4472         * config/darwin-driver.c (darwin_default_min_version): Use
4473         GCC-specific formats in diagnostics.
4474         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
4475         diagnostics.
4476         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
4477         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
4478         eval_spec_function, handle_braces, process_brace_body, main,
4479         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
4480         getenv_spec_function, compare_version_strings,
4481         version_compare_spec_function): Use GCC-specific formats in
4482         diagnostics.
4483
4484 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
4485
4486         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
4487         that operand 0 and operand 1 are equal.
4488         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
4489         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
4490         and operand 1 are equal.
4491         <default>: Ditto.  Remove ??? comment.
4492         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
4493         and operand 1 are equal.
4494         <default>: Ditto.  Remove ??? comment.
4495         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
4496         are equal.
4497         (*add<mode>_4) <default>: Ditto.
4498         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
4499
4500 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
4501
4502         * config/i386/i386-protos.h (ix86_print_operand): Declare.
4503         * config/i386/i386.c (ix86_print_operand): Make non-static.
4504         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
4505         * output.h (output_operand): Declare.
4506         * final.c (output_operand): Make non-static.
4507
4508 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
4509
4510         PR rtl-optimization/44013
4511         * sched-deps.c (add_dependence_list_and_free): Don't free lists
4512         when processing debug insns.
4513
4514         PR debug/41371
4515         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
4516         recursing.  Check that recursion is bounded.  Rename inner var
4517         to avoid hiding incoming argument.
4518
4519 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
4520
4521         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
4522         operands[2] == 255.
4523         (*addqi_3): Ditto.
4524         (*addqi_4): Ditto.
4525         (*addqi_5): Ditto.
4526         (*addqi_ext_1_rex64): Ditto.
4527         (*addqi_ext_1): Ditto.
4528
4529         (*addqi_4): Check for incdec_operand in QImode.
4530
4531         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
4532         using SWI mode iterator.
4533         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
4534         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
4535         mode iterator.
4536         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
4537         using SWI mode iterator.
4538
4539 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4540
4541         PR c/25880
4542         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
4543         * c-format.c (gcc_diag_flag_specs): Add hash.
4544         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
4545         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
4546         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
4547         pp_c_cv_qualifiers. Handle qualifiers spelling here.
4548         (pp_c_type_qualifier_list): Call the function above.
4549         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
4550         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
4551         (WARN_FOR_QUALIFIERS): New macro.
4552         (convert_for_assignment): Use it.
4553
4554 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
4555
4556         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
4557
4558 2010-06-04  Jan Hubicka  <jh@suse.cz>
4559
4560         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
4561         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
4562         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
4563         DF_BYTE_LR_OUT): Update for embedded bitmaps.
4564         * fwprop.c (single_def_use_enter_block): Likewise.
4565         * ddg.c (create_ddg_dep_from_intra_loop_link,
4566         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
4567         * loop-iv.c (latch_dominating_def): Likewise.
4568         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
4569         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
4570         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
4571         df_rd_transfer_function, df_rd_top_dump,
4572         df_rd_bottom_dump): Update.
4573         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
4574         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
4575         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
4576         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
4577         df_lr_verify_solution_start, df_lr_verify_solution_end,
4578         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
4579         df_live_free_bb_info, df_live_alloc, df_live_reset,
4580         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
4581         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
4582         df_live_verify_solution_start, df_live_verify_solution_end,
4583         df_live_verify_transfer_functions, df_chain_create_bb,
4584         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
4585         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
4586         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
4587         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
4588         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
4589         df_byte_lr_transfer_function, df_byte_lr_top_dump,
4590         df_byte_lr_bottom_dump, df_create_unused_note,
4591         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
4592         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
4593         df_md_transfer_function, df_md_init, df_md_confluence_0,
4594         df_md_confluence_n,
4595         df_md_top_dump, df_md_bottom_dump): Update.
4596         (struct df_lr_problem_data): Embedd bitmap headers.
4597
4598 2010-06-04  Jan Hubicka  <jh@suse.cz>
4599
4600         * dce.c (dce_process_block): Do not re-scan already marked
4601         instructions.
4602
4603 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
4604
4605         PR rtl-optimization/39871
4606         PR rtl-optimization/40615
4607         PR rtl-optimization/42500
4608         PR rtl-optimization/42502
4609         * ira.c (init_reg_equiv_memory_loc: New function.
4610         (ira): Call it twice.
4611         * reload.h (calculate_elim_costs_all_insns): Declare.
4612         * ira-costs.c: Include "reload.h".
4613         (regno_equiv_gains): New static variable.
4614         (init_costs): Allocate it.
4615         (finish_costs): Free it.
4616         (ira_costs): Call calculate_elim_costs_all_insns.
4617         (find_costs_and_classes): Take estimated elimination costs
4618         into account.
4619         (ira_adjust_equiv_reg_cost): New function.
4620         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
4621         * reload1.c (init_eliminable_invariants, free_reg_equiv,
4622         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
4623         (elim_bb): New static variable.
4624         (reload): Move code out of here into init_eliminable_invariants and
4625         free_reg_equiv.  Call them.
4626         (calculate_elim_costs_all_insns): New function.
4627         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
4628         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
4629         but call note_reg_elim_costly if we turned a valid memory address
4630         into an invalid one.
4631         * Makefile.in (ira-costs.o): Depend on reload.h.
4632
4633 2010-06-04  Julian Brown  <julian@codesourcery.com>
4634
4635         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
4636         for pool ranges.
4637
4638 2010-06-04  Richard Guenther  <rguenther@suse.de>
4639
4640         PR lto/41584
4641         * cgraph.h (struct varpool_node): Add lto_file_data field.
4642         * lto-cgraph.c (input_varpool_node): Initialize it.
4643
4644 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
4645
4646         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
4647         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
4648         predicate in "type" attribute calculation.
4649         (*addsi_1_zext): Ditto.
4650         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
4651         (*addsi_2_zext): Ditto.
4652         (*add<mode>_3): Ditto.
4653         (*addsi_3_zext): Ditto.
4654         (*add<mode>_5): Ditto.
4655
4656 2010-06-03  Jan Hubicka  <jh@suse.cz>
4657
4658         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
4659         of bitmap_bit_p.
4660         * cfganal.c (compute_dominance_frontiers_1): Likewise.
4661
4662 2010-06-03  Jan Hubicka  <jh@suse.cz>
4663
4664         * df-problems.c (df_create_unused_note, df_note_bb_compute):
4665         micro-optimize the checks when to add new note.
4666
4667 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
4668
4669         * final.c (output_asm_insn): Call
4670         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
4671         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
4672         (output_address): Call targetm.asm_out.print_operand_address.
4673         Update comments.
4674         * target.h (struct gcc_target): Add print_operand,
4675         print_operand_address, and print_operand_punct_valid_p fields.
4676         * targhooks.h (default_print_operand): Declare.
4677         (default_print_operand_address): Declare.
4678         (default_print_operand_punct_valid_p): Declare.
4679         * targhooks.c (default_print_operand): Define.
4680         (default_print_operand_address): Define.
4681         (default_print_operand_punct_valid_p): Define.
4682         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
4683         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
4684         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4685         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
4686         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
4687         * vmsdbgout.c (addr_const_to_string): Update comment.
4688         * config/i386/i386.c (print_operand): Rename to...
4689         (ix86_print_operand): ...this.  Make static.
4690         (print_operand_address): Rename to...
4691         (ix86_print_operand_address): ...this.  Make static.  Call
4692         ix86_print_operand instead of PRINT_OPERAND.
4693         (ix86_print_operand_punct_valid_p): New function.
4694         (TARGET_PRINT_OPERAND): Define.
4695         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4696         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4697         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
4698         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4699         (PRINT_OPERAND): Delete.
4700         (PRINT_OPERAND_ADDRESS): Delete.
4701         * config/i386/i386-protos.h (print_operand): Delete prototype.
4702         (print_operand_address): Delete prototype.
4703
4704 2010-06-03  Richard Guenther  <rguenther@suse.de>
4705
4706         PR tree-optimization/44403
4707         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4708         Preserve pointer qualifiers.
4709         (vect_create_data_ref_ptr): Likewise.
4710
4711 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
4712
4713         PR c++/44294
4714         * defaults.h (MAX_FIXED_MODE_SIZE): New.
4715
4716         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
4717
4718 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
4719
4720         PR debug/44375
4721         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
4722         return false if merging the bbs would lead to goto_locus
4723         location being lost from the IL.
4724
4725 2010-06-03  Jan Hubicka  <jh@suse.cz>
4726             Jakub Jelinek  <jakub@redhat.com>
4727
4728         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
4729         set->regs[i] is NULL or has just one entry.
4730
4731 2010-06-03  Jan Hubicka  <jh@suse.cz>
4732
4733         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
4734         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
4735
4736 2010-06-03  Paul Brook  <paul@codesourcery.com>
4737
4738         * config/arm/arm.c (FL_TUNE): Define.
4739         (arm_default_cpu, arm_cpu_select): Remove.
4740         (all_cores): Populate core field.
4741         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
4742         (arm_find_cpu): New function.
4743         (arm_handle_option): Lookup cpu/architecture names.
4744         (arm_override_options): Cleanup mcpu/march/mtune handling.
4745         (arm_file_start): Ditto.
4746
4747 2010-06-03  Alan Modra  <amodra@gmail.com>
4748
4749         PR target/44169
4750         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
4751         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
4752         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
4753         (rs6000_emit_load_toc_table): Likewise.
4754
4755 2010-06-02  Jan Hubicka  <jh@suse.cz>
4756
4757         * passes.c (init_optimization_passes): Put ipa reference
4758         after ipa pure-const.
4759
4760 2010-06-02  Jan Hubicka  <jh@suse.cz>
4761
4762         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
4763         calls_read_all and calls_write_all.
4764         (get_reference_optimization_summary): Fix formatting.
4765         (is_proper_for_analysis): Check that decl is not readonly.
4766         (propagate_bits): Check CONST/PURE/noreturn flags.
4767         (ipa_init): Move all_module_statics to optimization_summary_obstack.
4768         (analyze_function): Ignore indirect edges.
4769         (copy_global_bitmap): For all module statics, do nothing.
4770         (generate_summary): Do not print calls_read_all/calls_write_all.
4771         (read_write_all_from_decl): Take node as argument; check
4772         cgraph_node_cannot_return.
4773         (propagate): Reorganize read_all/write_all computation;
4774         check indirect edges; check ecf flags; use all_module_statics
4775         in the results; do not free all_module_statics.
4776         (stream_out_bitmap): Handle all_module_statics.
4777         (ipa_reference_write_optimization_summary): Likewise; use
4778         varpool/cgraph encoders to get boundaries.
4779         (ipa_reference_read_optimization_summary): Read in all_module_statics;
4780         use it when possible.
4781
4782 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4783
4784         PR target/44218
4785         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
4786         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
4787
4788         * doc/extend.texi (powerpc builtins): Document vec_recip,
4789         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
4790
4791         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
4792         (rs6000_emit_swrsqrt): Ditto.
4793         (rs6000_emit_swdivsf): Delete.
4794         (rs6000_emit_swdivdf): Ditto.
4795         (rs6000_emit_swrsqrtsf): Ditto.
4796
4797         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
4798         describe the reciprocal estimate support for each type.
4799         (recip_options): Map -mrecip=<opt> into option bits.
4800         (gen_2arg_fn_t): New typedef for binary rtx gen function.
4801         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
4802         reciprocal estimate instructions.
4803         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
4804         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
4805         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
4806         cost information if -mdebug=cost or -mdebug=reg.
4807         (rs6000_override_options): Set -mrecip-precision for power6, and
4808         power7 machines.  If -mvsx or -mdfp, enable various options that
4809         came in previous instruction set ISAs, unless the option was
4810         explicitly disabled by the command line option.  Parse
4811         -mrecip=<opt> options.
4812         (rs6000_builtin_vectorized_function): Add support for vectorizing
4813         the reciprocal estimate builtins and expansions.
4814         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
4815         (bdesc_2arg): Add reciprocal estimate builtins.
4816         (bdesc_1arg): Add reciprocal square root estimate builtins.
4817         (rs6000_expand_builtin): Rewrite to use a switch statement,
4818         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
4819         (rs6000_init_builtins): Create declarations for reciprocal
4820         estimate builtins.
4821         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
4822         sized, prefer traditional floating point registers, if integer
4823         vector types, prefer altivec registers.  Don't actually look at
4824         the memory address any more.
4825         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
4826         builtins.
4827         (rs6000_load_constant_and_splat): New helper function to load up
4828         the constant for reciprocal estimate instructions.
4829         (rs6000_emit_madd): New helper function for generating
4830         multiply/add type instructions, based on the current switches.
4831         (rs6000_emit_msub): Ditto.
4832         (rs6000_emit_mnsub): Ditto.
4833         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
4834         replace a divide with a reciprocal estimate and fixup, adding
4835         support for machines with high precision and vectors.
4836         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
4837         low precision machines.
4838         (rs6000_emit_swdiv): New common function to be called to replace a
4839         division with reciprocal estimate and fixup.
4840         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
4841         for double and vector types.  Add support for high precision machines.
4842
4843         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
4844         the reciprocal estimate instructions can be generated.
4845         (TARGET_FRE): Ditto.
4846         (TARGET_FRSQRTES): Ditto.
4847         (TARGET_FRSQRTE): Ditto.
4848         (RS6000_RECIP_*): New macros for reciprocal estimate support.
4849
4850         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
4851         square root estimate on vectors.
4852         (re<mode>2): New insn for reciprocal division estimate on vectors.
4853
4854         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
4855         New builtin.
4856         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
4857         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
4858         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
4859         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
4860         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
4861         (RS6000_BUILTIN_RSQRT): Ditto.
4862         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
4863         floating point builtin.
4864
4865         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4866         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
4867         __RECIP_PRECISION__ based on the command line switches.
4868         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
4869
4870         * config/rs6000/rs6000.opt (-mrecip): Document add support for
4871         replacing division instructions with reciprocal estimate and fixup.
4872         (-mrecip=<opt>): New option.
4873         (-mrecip-precision): Ditto.
4874
4875         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
4876         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
4877         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
4878         precision scalar.
4879
4880         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
4881         (UNSPEC_VREFP): Ditto.
4882         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
4883         conterparts with regard to support of -mno-fused-madd and -ffast-math.
4884         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
4885         reciprocal estimate instructions to be generated.
4886         (altivec_vrefp): Ditto.
4887
4888         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
4889         estimate support.
4890         (rreg): New mode attribute for reciprocal estimate support.
4891         (recip<mode>3): New insn for division using reciprocal estimate
4892         and fixup builtins.
4893         (divide define_split): New define_split to convert floating point
4894         division to use reciprocal estimate if the user used the
4895         appropriate options and the split is run when we can add new
4896         pseudo registers for the fixup.
4897         (rsqrt<mode>2): New insn for reciprocal square root support.
4898         (recipsf3): Move into recip<mode>3.
4899         (recipdf3): Ditto.
4900         (fres): Use TARGET_FRES.
4901         (rsqrtsf2): Move into rsqrt<mode>2.
4902         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
4903         (copysignsf3): Add support for VSX.
4904         (fred): Use TARGET_FRE.
4905         (fred_fpr): Ditto.
4906         (rsqrtdf_internal1): New function for frsqrte instruciton.
4907
4908         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
4909         (vec_rsqrt): Ditto.
4910
4911 2010-06-03  Richard Guenther  <rguenther@suse.de>
4912
4913         PR middle-end/44291
4914         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
4915         (set_user_assembler_libfunc): Likewise.
4916
4917 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
4918
4919         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
4920         defaults.h.
4921         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
4922         to defaults.h
4923         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
4924         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
4925         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
4926         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
4927         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
4928         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
4929         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
4930         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
4931         * defaults.h: Updated for above mentioned changes.
4932
4933 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
4934
4935         * c-common.c: Remove header include of tm_p.h.
4936         * Makefile.in (c-common.o): Remove TM_P_H dependency.
4937
4938 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
4939
4940         * tree.h (struct tree_decl_map): New type.
4941         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
4942         (tree_decl_map_hash): New prototype.
4943         (debug_expr_for_decl, value_expr_for_decl): Change into
4944         tree_decl_map hashtab from tree_map.
4945         (init_ttree): Adjust initialization.
4946         (tree_decl_map_hash): New function.
4947         (decl_debug_expr_lookup, decl_debug_expr_insert,
4948         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
4949
4950 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4951
4952         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
4953         linker emulations.
4954         * configure: Regenerate.
4955         * config.in: Regenerate.
4956
4957         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
4958         (X86_64_EMULATION): Define.
4959         (TARGET_LD_EMULATION): Use them.
4960
4961         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
4962         (SPARC64_EMULATION): Define.
4963         (LINK_ARCH_SPEC): Use them.
4964
4965 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
4966
4967         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
4968         smallest_mode_for_size for computing the precision types of new
4969         graphite IVs.  Do not call lang_hooks.types.type_for_size.
4970
4971 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
4972
4973         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
4974         information.
4975         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
4976
4977 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
4978
4979         PR middle-end/44363
4980         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
4981         return false instead.
4982
4983 2010-06-02  Jan Hubicka  <jh@suse.cz>
4984
4985         PR middle-end/44295
4986         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
4987         create new cgraph node to check callee.
4988
4989 2010-06-02  Richard Guenther  <rguenther@suse.de>
4990
4991         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
4992
4993 2010-06-02  Richard Guenther  <rguenther@suse.de>
4994
4995         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
4996         (lto_wrapper_cleanup): ... this.  Do not exit.
4997         (fatal): Adjust.  Exit here.
4998         (fatal_perror): Likewise.
4999         (fatal_signal): New function.
5000         (main): Set up signal handlers to cleanup temporary files.
5001         * Makefile.in (lto-wrapper.o): Adjust dependencies.
5002
5003 2010-06-02  Richard Guenther  <rguenther@suse.de>
5004
5005         PR tree-optimization/44377
5006         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
5007
5008 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5009
5010         * config/s390/2097.md (z10_fhex): Remove insn reservation.
5011         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
5012         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
5013         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
5014         instruction.
5015         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
5016
5017 2010-06-02  Jan Hubicka  <jh@suse.cz>
5018
5019         * bitmap.c (bitmap_descriptor): Add search_iter.
5020         (bitmap_find_bit): Increment it.
5021         (print_statistics): Print it.
5022
5023 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
5024
5025         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
5026         instead of gimple_build_call_vec.  Delete unnecessary local variable.
5027
5028 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5029
5030         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
5031         change from yesterday.
5032
5033 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5034
5035         * c-ada-spec.c: Clean up redundant includes.
5036
5037 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
5038
5039         * gimplify.c: Do not include except.h and optabs.h.
5040         (gimplify_body): Do not initialize RTL profiling.
5041         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
5042         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
5043         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
5044         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
5045         langhooks.h.
5046
5047         * tree-pretty-print.h: Include pretty-print.h.
5048         * gimple-pretty-print.h: Include pretty-print.h.
5049
5050         * tree-pretty-print.c: Do not include diagnostic.h.
5051         * tree-vrp.c: Likewise.
5052         * tree-tailcall.c: Likewise
5053         * tree-scalar-evolution.c: Likewise
5054         * tree-ssa-dse.c: Likewise
5055         * tree-chrec.c: Likewise
5056         * tree-ssa-sccvn.c: Likewise
5057         * tree-ssa-copyrename.c: Likewise
5058         * tree-nomudflap.c: Likewise
5059         * tree-call-cdce.c: Likewise
5060         * tree-stdarg.c: Likewise
5061         * tree-ssa-math-opts.c: Likewise
5062         * tree-nrv.c: Likewise
5063         * tree-ssa-sink.c: Likewise
5064         * tree-browser.c: Likewise
5065         * tree-ssa-loop-ivcanon.c: Likewise
5066         * tree-ssa-loop.c: Likewise
5067         * tree-parloops.c: Likewise
5068         * tree-ssa-address.c: Likewise
5069         * tree-ssa-ifcombine.c: Likewise
5070         * tree-if-conv.c: Likewise
5071         * tree-data-ref.c: Likewise
5072         * tree-affine.c: Likewise
5073         * tree-ssa-phiopt.c: Likewise
5074         * tree-ssa-coalesce.c: Likewise
5075         * tree-ssa-pre.c: Likewise
5076         * tree-ssa-live.c: Likewise
5077         * tree-predcom.c: Likewise
5078         * tree-ssa-forwprop.c: Likewise
5079         * tree-ssa-dce.c: Likewise
5080         * tree-ssa-ter.c: Likewise
5081         * tree-ssa-loop-prefetch.c: Likewise
5082         * tree-optimize.c: Likewise
5083         * tree-ssa-phiprop.c: Likewise
5084         * tree-object-size.c: Likewise
5085         * tree-outof-ssa.c: Likewise
5086         * tree-ssa-structalias.c: Likewise
5087         * tree-switch-conversion.c: Likewise
5088         * tree-ssa-reassoc.c: Likewise
5089         * tree-ssa-operands.c: Likewise
5090         * tree-vectorizer.c: Likewise
5091         * tree-vect-data-refs.c: Likewise
5092         * tree-vect-generic.c: Likewise
5093         * tree-vect-stmts.c: Likewise
5094         * tree-vect-patterns.c: Likewise
5095         * tree-vect-slp.c: Likewise
5096         * tree-vect-loop.c: Likewise
5097         * tree-ssa-loop-ivopts.c: Likewise
5098         * tree-ssa-loop-im.c: Likewise
5099         * tree-ssa-loop-niter.c: Likewise
5100         * tree-ssa-loop-unswitch.c: Likewise
5101         * tree-ssa-loop-manip.c: Likewise
5102         * tree-ssa-loop-ch.c: Likewise
5103         * tree-dump.c: Likewise
5104         * tree-complex.c: Likewise
5105
5106         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
5107         * tree-ssa-uninit.c: Likewise
5108         * tree-ssa-threadupdate.c: Likewise
5109         * tree-ssa-uncprop.c: Likewise
5110         * tree-ssa-ccp.c: Likewise
5111         * tree-ssa-dom.c: Likewise
5112         * tree-ssa-propagate.c: Likewise
5113         * tree-ssa-alias.c: Likewise
5114         * tree-dfa.c: Likewise
5115         * tree-cfgcleanup.c: Likewise
5116         * tree-sra.c: Likewise
5117         * tree-ssa-copy.c: Likewise
5118         * tree-ssa.c: Likewise
5119         * tree-profile.c: Likewise
5120         * tree-cfg.c: Likewise
5121         * tree-ssa-threadedge.c: Likewise
5122         * tree-vect-loop-manip.c: Likewise
5123
5124         * tree-inline.c: Do not include diagnostic.h and expr.h.
5125         Include rtl.h.
5126         (copy_decl_for_dup_finish): Do not use NULL_RTX.
5127
5128         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
5129         * tree-loop-distribution.c: Likewise.
5130
5131 2010-06-01  Jan Hubicka  <jh@suse.cz>
5132
5133         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
5134
5135 2010-06-01  Jan Hubicka  <jh@suse.cz>
5136
5137         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
5138         remove return value.
5139         (split_bbs_on_noreturn_calls) .... here.
5140         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
5141         * tree-flow.h (fixup_noreturn_call): New.
5142
5143 2010-06-01  Jan Hubicka  <jh@suse.cz>
5144
5145         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
5146
5147 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
5148
5149         * tree.h (build_nt_call_list): Delete.
5150         * tree.c (build_nt_call_list): Delete.
5151
5152 2010-06-01  Jan Hubicka  <jh@suse.cz>
5153
5154         * fwprop.c: Make emit-rtl.h include last.
5155         * rtlanal.c: Include emit-rtl.h.
5156         * genautomata.c: Output emit-rtl include into insn-automata.c
5157         * df-scan.c: Include emit-rtl.h.
5158         * haifa-sched.c: Indlude emit-rtl.h.
5159         * mode-switching.c: Indlude emit-rtl.h.
5160         * graph.c: Indlude emit-rtl.h.
5161         * sel-sched.c: Include emit-rtl.h.
5162         * sel-sched-ir.c: Include emit-rtl.h.
5163         * ira-build.c: Include emit-rtl.h.
5164         * emit-rtl.c: (first_insn, last_insn): Remove defines.
5165         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
5166         Move to emit-rtl.h.
5167         (set_new_first_and_last_insn, get_last_insn_anywhere,
5168         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
5169         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
5170         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
5171         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
5172         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
5173         Use accessor functions.
5174         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
5175          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
5176         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
5177         mem_expr_equal_p): Move here from rtl.h.
5178         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
5179         Move here from emit-rtl.c; make inline.
5180         * cfglayout.h: Include emit-rtl.h.
5181         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
5182          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
5183         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
5184         mem_expr_equal_p, get_insns, set_first-insn,
5185         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
5186         * reg-stack.c: Include emit-rtl.h.
5187         * dce.c: Likewise.
5188
5189 2010-06-01  Jan Hubicka  <jh@suse.cz>
5190
5191         * cgraph.h (tree_function_versioning): Update prototype.
5192         (cgraph_function_versioning): Update prototype.
5193         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
5194         bitmap.
5195         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
5196         (cgraph_materialize_clone, save_inline_function_body): Update use of
5197         tree_function_versioning.
5198         * tree-inline.c (copy_bb): Look for previous copied block to link
5199         after; fix debug output.
5200         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
5201         (copy_body): Likewise.
5202         (expand_call_inline): Update use of copy_body.
5203         (tree_function_versioning): Update use of copy body; accept
5204         blocks_to_copy and new_entry.
5205
5206 2010-06-01  Jan Hubicka  <jh@suse.cz>
5207
5208         * gegenrtl.c: Remove unnecesary prototypes.
5209         (gendecl): Remove.
5210         (gendef): Produce static inline.
5211         (gencode): Remove.
5212         (main): Do not decode parameters; generate header only.
5213         * Makefile.in (genrtl.c): Remove.
5214
5215 2010-06-01  Jan Hubicka  <jh@suse.cz>
5216
5217         * tree-switch-conversion.c (build_one_array): Make it readonly.
5218
5219 2010-06-01  Richard Guenther  <rguenther@suse.de>
5220
5221         * optabs.c (init_optabs): Guard all accesses to reinit.
5222         * ipa-pure-const.c (propagate): Fix another typo.
5223         * opts.c (common_handle_option): Split assignment to bool.
5224         * c-opts.c (c_common_handle_option): Likewise.
5225
5226 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
5227             Matthew Gingell  <gingell@adacore.com>
5228
5229         * doc/invoke.texi: Mention -fdump-ada-spec.
5230         * tree-dump.c (dump_files): Add ada-spec.
5231         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
5232         * tree-pass.h (tree_dump_index): Add TDI_ada.
5233         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
5234         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
5235         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
5236         * c-decl.c: Include c-ada-spec.h.
5237         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
5238         functions.
5239         (c_write_global_declarations): Add handling of -fdump-ada-spec.
5240         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
5241         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
5242         * c-ada-spec.h, c-ada-spec.c: New files.
5243
5244 2010-06-01  Richard Guenther  <rguenther@suse.de>
5245
5246         PR lto/43853
5247         * ipa-pure-const.c (get_function_state): Hand back varying state
5248         if we do not have one.
5249         (has_function_state): New function.
5250         (duplicate_node_data): Adjust.
5251         (remove_node_data): Likewise.
5252         (pure_const_write_summary): Likewise.
5253         (propagate): Likewise.  Fix typo.
5254
5255 2010-06-01  Jan Hubicka  <jh@suse.cz>
5256
5257         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
5258         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
5259         (execute_all_ipa_transforms): Do not play with the states.
5260
5261 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
5262
5263         * config/arm/t-linux-androideabi: New.
5264         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
5265
5266 2010-06-01  Jan Hubicka  <jh@suse.cz>
5267
5268         * tree-inline.c (estimate_num_insns): For stdarg functions look
5269         into call statement to count cost of argument passing.
5270
5271 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
5272
5273         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
5274         argument for fprintf.
5275         (ix86_output_addr_diff_elt): Likewise.
5276         (x86_function_profiler): Likewise.
5277         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
5278         (LPREFIX): Likewise.
5279         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5280
5281 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
5282
5283         PR target/44338
5284         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
5285         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
5286         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
5287         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
5288         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
5289         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
5290         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
5291         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
5292         TARGET_FUSED_MADD.
5293
5294 2010-05-31  Jan Hubicka  <jh@suse.cz>
5295
5296         * tree.h (tree_range_check_failed): Declare noreturn.
5297
5298 2010-05-31  Jan Hubicka  <jh@suse.cz>
5299
5300         * gimple.c (gimple_call_builtin_p): New function.
5301         * gimple.h (gimple_call_builtin_p): Declare.
5302         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
5303         to exit.
5304         (execute_warn_function_return): BUILT_IN_RETURN is return.
5305         (split_critical_edges): Return edges are not critical.
5306         (is_ctrl_altering_stmt): Builtin_in_return is altering.
5307         (gimple_verify_flow_info): Handle built_in_return.
5308         (execute_warn_function_return): Handle built_in_return.
5309         * ipa-pure-const.c (check_call): Ignore builtin_return.
5310
5311 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
5312
5313         PR middle-end/44337
5314         * expr.c (expand_assignment): Don't store anything for out-of-bounds
5315         array accesses with non-MEM.
5316
5317         PR tree-optimization/44182
5318         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
5319         newly needs to end a bb is followed by debug stmts, instead return
5320         true from the function at the end.
5321         (maybe_move_debug_stmts_to_successors): New function.
5322         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
5323
5324 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
5325
5326         PR target/44161
5327         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
5328
5329 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
5330
5331         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
5332         for nested functions in non-optimized compilation.
5333
5334 2010-05-31  Richard Guenther  <rguenther@suse.de>
5335
5336         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
5337
5338 2010-05-30  Jan Hubicka  <jh@suse.cz>
5339
5340         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
5341
5342 2010-05-30  Richard Guenther  <rguenther@suse.de>
5343
5344         PR lto/42975
5345         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
5346         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
5347         no longer needed.
5348
5349 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
5350
5351         * config/darwin.c (output_objc_section_asm_op): Add comment.
5352         (name_needs_quotes): Add '_' to list of valid comment chars.
5353         (machopic_output_function_base_name): Remove unneeded quotes.
5354         (darwin_encode_section_info): Adjust asm whitespace.
5355         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
5356         (ASM_OUTPUT_LOCAL): Ditto.
5357         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
5358         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
5359         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
5360
5361 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
5362
5363         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
5364         RS6000_OUTPUT_BASENAME unconditionally.
5365         (rs6000_output_function_epilogue): Likewise.
5366
5367 2010-05-30  Jan Hubicka  <jh@suse.cz>
5368
5369         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
5370         nodes.
5371
5372 2010-05-30  Richard Guenther  <rguenther@suse.de>
5373
5374         * tree-cfg.c (verify_gimple_assign_single): Implement
5375         verification for COND_EXPR rhs.
5376
5377 2010-05-30  Jan Hubicka  <jh@suse.cz>
5378
5379         * cgraph.h (cgraph_dump_file): Declare.
5380         * cgraphunit.c (cgraph_dump_file): Export.
5381         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
5382
5383 2010-05-30  Jan Hubicka  <jh@suse.cz>
5384
5385         * dwarf2out.c (reference_to_unused,
5386         premark_types_used_by_global_vars_helper): Avoid creation of new
5387         varpool nodes.
5388
5389 2010-05-30  Jan Hubicka  <jh@suse.cz>
5390
5391         * cgraph.h (cgraph_node_cannot_return,
5392         cgraph_edge_cannot_lead_to_return): New functions.
5393         * cgraph.c (cgraph_node_cannot_return,
5394         cgraph_edge_cannot_lead_to_return): Use them.
5395         * ipa-pure-const.c (pure_const_names): New static var.
5396         (check_call): Handle calls not leading to return.
5397         (pure_const_read_summary): Dump info read.
5398         (propagate): Dump info about propagation process; ignore side effects
5399         of functions not leading to exit; fix handling of pure functions.
5400
5401 2010-05-30  Jan Hubicka  <jh@suse.cz>
5402
5403         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
5404         for tail call epilogues.
5405
5406 2010-05-30  Jan Hubicka  <jh@suse.cz>
5407
5408         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
5409         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
5410         dump files.
5411
5412 2010-05-29  Jan Hubicka  <jh@suse.cz>
5413
5414         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
5415         node; remove references in node we no longer keep in cgrpah but need
5416         body of.
5417
5418 2010-05-29  Jan Hubicka  <jh@suse.cz>
5419
5420         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
5421
5422 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5423
5424         PR target/44165
5425         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
5426
5427 2010-05-29  Jan Hubicka  <jh@suse.cz>
5428
5429         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
5430         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
5431         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
5432         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
5433         debug_names_replaced_by, debug_update_ssa): Likewise.
5434         * sbitmap.c (debug_sbitmap): Likewise.
5435         * genrecog.c (debug_decision, debug_decision_list): Likewise.
5436         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
5437         debug_tree_chain): Likewise.
5438         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
5439         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
5440         * optabs.c  (debug_optab_libfuncs): Likewise.
5441         (verify_loop_closed_ssa): Likewise.
5442         * value-prof.c (verify_histograms): Likewise.
5443         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
5444         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
5445         * cfghooks.c (verify_flow_info): Likewise.
5446         * fold-const.c (debug_fold_checksum): Likewise.
5447         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
5448         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
5449         Likewise.
5450         * omega.c (debug_omega_problem): Likewise.
5451         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
5452         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
5453         * dominance.c (verify_dominators, debug_dominance_info,
5454         debug_dominance_tree): Likewise.
5455         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
5456         * df_regno_debug, df_ref_debug,
5457         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
5458         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
5459         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
5460         * sel-sched.c (debug_state): Likewise.
5461         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
5462         Likewise.
5463         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
5464         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
5465         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
5466         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
5467         Likewise.
5468         * c-pretty-print.c (debug_c_tree): Likewise.
5469         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
5470         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
5471         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
5472         * ebitmap.c (debug_ebitmap): Likewise.
5473         * function.c (debug_find_var_in_block_tree): Likewise.
5474         * print-rtl.c (debug_rtx): Likewise.
5475         (debug_rtx_count): Likewise.
5476         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
5477         * stor-layout.c (debug_rli): Likewise.
5478         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
5479         * tree-data-ref.c (debug_data_references,
5480         debug_data_dependence_relations, debug_data_reference,
5481         debug_data_dependence_relation, debug_rdg_vertex,
5482         debug_rdg_component, debug_rdg): Likewise.
5483         * tree-affine.c (debug_aff): Likewise.
5484         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
5485         Likewise.
5486         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
5487         * emit-rtl.c (verify_rtl_sharing): Likewise.
5488         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
5489         debug_value_expressions): Likewise.
5490         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
5491         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
5492         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
5493         * cfglayout.c (verify_insn_chain): Likewise.
5494         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
5495         debug_clast_stmt, debug_generated_program): Likewise.
5496         * ggc-page.c (debug_print_page_list): Likewise.
5497         * tree-ssa-ter.c (debug_ter): Likewise.
5498         * graphite-dependences.c (debug_pddr): Likewise.
5499         * sched-deps.c (debug_ds): Likewise.
5500         * tree-ssa.c (verify_ssa): Likewise.
5501         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
5502         debug_scattering_functions, debug_iteration_domains, debug_pdr,
5503         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
5504         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
5505         * tree-inline.c (debug_find_tree): Likewise.
5506         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
5507         debug_ppl_powerset_matrix): Likewise.
5508         * var-tracking.c (debug_dv): Likewise.
5509         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
5510         * cfgloop.c (verify_loop_structure): Likewise.
5511         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
5512         * c-common.c (verify_sequence_points): Likewise.
5513         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
5514         debug_candidates, debug_rgn_dependencies): Likewise.
5515         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
5516         * debug_constraint_graph, debug_solution_for_var,
5517         debug_sa_points_to_info): Likewise.
5518         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
5519         Likewie.
5520         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
5521         debug_loops, debug_loop, debug_loop_num): Likewise.
5522         * passes.c (debug_pass): Likewise.
5523         (dump_properties): Likewise; add cfglayout property.
5524         (debug_properties): Likewise.
5525         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
5526         * varpool.c (debug_varpool): Likewise.
5527         * regcprop.c (debug_value_data): Likewise.
5528         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
5529         debug_immediate_uses_for): Likewise.
5530
5531 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
5532
5533         PR bootstrap/44315
5534         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
5535         Filter out insn-flags.h.
5536
5537 2010-05-29  Jan Hubicka  <jh@suse.cz>
5538
5539         * cgraph.h (struct varpool_node_set_def,
5540         struct cgraph_node_set_def): Remove unused AUX pointer.
5541         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
5542         VEC_empty macro.
5543
5544 2010-05-29  Jan Hubicka  <jh@suse.cz>
5545
5546         PR middle-end/44324
5547         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
5548
5549 2010-05-29  Richard Guenther  <rguenther@suse.de>
5550
5551         * lto-streamer.c (cached_bp): New global variable.
5552         (bitpack_create): Return the cached bitpack, if available.
5553         (bitpack_delete): Clear and cache the bitpack, if appropriate.
5554         (bp_pack_value): Remove redundant asserts.
5555
5556 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
5557
5558         PR middle-end/44306
5559         * tree-if-conv.c (is_true_predicate): New.
5560         (is_predicated): Use is_true_predicate.
5561         (add_to_predicate_list): Same.  Do not use unshare_expr.
5562         (add_to_dst_predicate_list): Same.
5563
5564 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
5565
5566         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
5567         field on edges.
5568         (predicate_bbs): Same.
5569         (clean_predicate_lists): Same.
5570         (find_phi_replacement_condition): Do not AND the predicate from
5571         edge->aux.
5572
5573 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
5574
5575         PR bootstrap/44315
5576         * Makefile.in (build/gencondmd.o): Add a missing `\'.
5577
5578 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5579
5580         PR target/44261
5581         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
5582         (negdf2): Adjust expander pattern and use negdf2_slow.
5583         (negsf2): Likewise.
5584
5585 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
5586
5587         * basic-block.h (struct control_flow_graph): Move last_label_uid field
5588         up.
5589         * df.h (struct df_base_ref): Move regno field up.
5590         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
5591         * expr.h (struct separate_ops): Move location field up.
5592         * optabs.h (struct optab_d): Move libcall_basename field down.
5593         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
5594         * config/i386/i386.h (struct machine_function): Convert call_abi field
5595         into a bitfield.  Move cfa field to the end of the structure.
5596
5597 2010-05-29  Jan Hubicka  <jh@suse.cz>
5598
5599         * varpool.c (varpool_get_node): Fix lookup.
5600
5601 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
5602
5603         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
5604         RTL specific prototypes with #ifdef RTX_CODE.
5605         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
5606         * config/spu/t-spu-elf: Fix dependencies.
5607
5608         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
5609
5610 2010-05-29  Mike Stump  <mikestump@comcast.net>
5611
5612         PR bootstrap/44315
5613         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
5614         TM_H when building to avoid dependency loops.
5615
5616 2010-05-29  Jan Hubicka  <jh@suse.cz>
5617
5618         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
5619         refs and body; not the whole node for masters of materialized clones.
5620
5621 2010-05-29  Mike Stump  <mikestump@comcast.net>
5622
5623         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
5624
5625 2010-05-29  Jan Hubicka  <jh@suse.cz>
5626
5627         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
5628         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
5629         use of clone_function_name.
5630         * cgraph.h (cgraph_create_virtual_clone,
5631         cgraph_function_versioning): update prototypes.
5632         (clone_function_name): Declare.
5633         * ipa-cp.c (ipcp_insert_stage): Update call of
5634         cgraph_create_virtual_clone.
5635         * omp-low.c (create_omp_child_function_name): Use
5636         cgraph_create_virtual_clone.
5637         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
5638         (cgraph_function_versioning): Take SUFFIX argument; produce new name
5639         and make decl local.
5640
5641 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
5642
5643         * vec.h: Include statistics.h
5644         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
5645         with VEC_H.
5646
5647 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
5648
5649         * c-lex.c: Do not include c-tree.h.
5650         * c-pretty-print.c: Likewise.
5651         * c-opts.c: Likewise.
5652         * c-gimplify.c: Likewise.
5653         * c-common.c: Likewise.
5654         * c-dump.c: Likewise.  Include c-common.h.
5655
5656 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
5657
5658         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
5659         before including diagnostic-core.h.
5660         (c_cpp_error): New prototype moved from c-tree.h.
5661         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
5662         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
5663         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
5664         (c_cpp_error): Prototype moved to c-common.h.
5665         * Makefile.in: Update dependency for C_COMMON_H.
5666
5667 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
5668
5669         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
5670         * c-common.c (c_register_addr_space): Remove here.
5671         * c-decl.c (c_register_addr_space): Re-add here.
5672
5673 2010-05-28  Mike Stump  <mikestump@comcast.net>
5674
5675         * config/darwin-c.c: Remove c-tree.h include.
5676
5677 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
5678
5679         * gcc.c: Include diagnostic.h.
5680         (error_count): Remove.  All users changed to use errorcount.
5681         (programname): Remove.  All users changed to use progname.
5682         (fancy_abort, internal_error, fatal_error, error, warning, inform,
5683         fnotice): Remove.
5684         (execute): Don't include "Internal error" and bug reporting
5685         information in argument of internal_error call.
5686         (process_command): Don't increment error_count after calling
5687         perror_with_name.
5688         (input_filename): Rename to gcc_input_filename.  All users
5689         changed.
5690         (main): Call diagnostic_initialize.  Register delete_temp_files
5691         with atexit.  Use seen_error to test for errors.
5692         * gcc.h: Include diagnostic-core.h.
5693         (fatal_error, error, warning): Remove.
5694         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
5695         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
5696         (gcc.o): Update dependencies.
5697
5698 2010-05-28  Jeff Law  <law@redhat.com>
5699
5700         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
5701         functions.
5702         * ira.h (ira_bad_reload_regno): Declare
5703         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
5704
5705         * ira-color.c (update_curr_costs): Free updated hard reg costs.
5706         (ira_reassign_conflict_allocnos): Remove bogus asserts.
5707         (allocno_reload_assign): Likewise.
5708
5709 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
5710
5711         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
5712         build1_stat.
5713
5714 2010-05-28  Richard Guenther  <rguenther@suse.de>
5715
5716         PR lto/44312
5717         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
5718         Stream fixed-point constants mode.
5719         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
5720         and TYPE_PRECISION.
5721         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
5722         Stream fixed-point constants mode.
5723         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
5724         and TYPE_PRECISION.
5725
5726 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
5727
5728         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
5729         only place it was called from.
5730         (number_of_latch_executions): Do not return chrec_dont_know when the
5731         may_be_zero is a runtime condition: instead, return a COND_EXPR
5732         including the may_be_zero condition.
5733         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
5734         of nb_iterations.
5735         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
5736         COND_EXPRs.
5737
5738 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
5739
5740         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
5741         generate COND_EXPRs for degenerate_phi_result.
5742
5743 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
5744
5745         PR middle-end/44293
5746         * tree-if-conv.c (if_convertible_loop_p): Check the
5747         if-convertibility of phi nodes in non predicated BBs.
5748
5749 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
5750
5751         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
5752
5753 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
5754
5755         PR driver/15303
5756         * gcc.c (inform, warning, inform): New functions.
5757         (fatal_ice): Rename to internal_error; change cmsgid parameter to
5758         gmsgid.  All callers changed.
5759         (notice): Rename to fnotice; add parameter fp.  All callers changed.
5760         (fatal_error): Rename to fatal_signal.  All users changed.
5761         (fatal): Rename to fatal_error; change cmsgid parameter to
5762         gmsgid.  All callers changed.
5763         (process_command): Use warning instead of error for warnings.
5764         (end_going_arg): Don't use _() around argument of error.
5765         (do_spec_1): Use inform for message from %n specs.  Use warning
5766         instead of error for warnings.
5767         (main): Use inform for comparison messages.  Use warning for
5768         message about unused linker input.
5769         (error): Increment error_count.  Print "error: ".
5770         * gcc.h (fatal): Change to fatal_error.
5771         (warning): Declare.
5772         * config/darwin-driver.c (darwin_default_min_version): Use warning
5773         instead of fprintf for warnings.
5774         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
5775
5776 2010-05-28  Julian Brown  <julian@codesourcery.com>
5777
5778         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
5779         (*thumb2_addsi3_compare0_scratch): New.
5780         * config/arm/constraints.md (Pv): New.
5781         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
5782         for ARM mode only.
5783         (*addsi3_compare0_scratch): Likewise.
5784
5785 2010-05-28  Jan Hubicka  <jh@suse.cz>
5786
5787         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
5788         check.
5789         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
5790         only on local statics.
5791
5792 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
5793
5794         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
5795
5796 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
5797
5798         PR bootstrap/44314
5799         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
5800         (OPTION_GLIBC): Define.
5801
5802 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
5803
5804         PR debug/41048
5805         * dwarf2out.c (double_int_type_size_in_bits): New function.
5806         (round_up_to_align): Change first argument and return value to
5807         double_int.
5808         (field_byte_offset): Work internally on double_ints.
5809
5810         PR target/43636
5811         * builtins.c (expand_movstr): Use a temporary pseudo instead
5812         of target even when target is not NULL and not const0_rtx, but
5813         fails movstr predicate.
5814         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
5815
5816 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
5817
5818         * final.c (rest_of_clean_state): Use %m in errors instead of
5819         strerror (errno).
5820         * gengtype.c (read_input_list, close_output_files): Use xstrerror
5821         instead of strerror.
5822         * toplev.c (process_options): Use %m in errors instead of strerror
5823         (errno).
5824         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
5825         (errno).
5826
5827 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
5828
5829         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
5830         (ix86_canonical_va_list_type): Make static.  Add declaration.
5831         (ix86_enum_va_list): Make static.  Reindent.
5832         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
5833         (ix86_canonical_va_list_type): Ditto.
5834         (ix86_enum_va_list): Ditto.
5835
5836 2010-05-28  Richard Guenther  <rguenther@suse.de>
5837
5838         * lto-wrapper.c (run_gcc): With -save-temps generate a
5839         user-visible ltrans filename.  Fixup ltrans unit numbering.
5840
5841 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
5842
5843         * c-common.c (c_common_nodes_and_builtins): Replace use
5844         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
5845         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
5846         to ix86_enum_va_list.
5847         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
5848         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
5849         (TARGET_ENUM_VA_LIST_P): Add hook description.
5850         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
5851         * target.h (gcc_target): Add enum_va_list hook.
5852
5853         PR bootstrap/44299
5854         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
5855         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
5856         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
5857
5858 2010-05-28  Alan Modra  <amodra@gmail.com>
5859
5860         PR target/44266
5861         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5862         emit_library_call machinery to set up __tls_get_addr calls.
5863
5864 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5865
5866         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
5867
5868 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
5869
5870         Revert fix for PR c++/44188
5871         * c-common.c (is_typedef_decl): Revert the moving of  this
5872         definition ...
5873         * tree.c (is_typedef_decl): ... here.
5874         (typdef_variant_p): Revert the moving of this  definition
5875         here from gcc/cp/tree.c.
5876         * c-common.h (is_typedef_decl): Revert the moving of this
5877         declaration ...
5878         * tree.h (is_typedef_decl): ... here.
5879         (typedef_variant_p): Revert the moving of this  declaration here
5880         from gcc/cp/cp-tree.h
5881         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
5882         (gen_tagged_type_die): Revert the splitting out of ...
5883         (gen_type_die_with_usage): ... this function. Revert the anonymous
5884         tagged type handling.
5885         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
5886         typedefs naming anonymous tagged types.
5887
5888 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
5889
5890         * config/rs6000/rs6000-modes.def (PSImode): Delete.
5891
5892 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
5893
5894         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
5895         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
5896         throughout.
5897         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
5898         "xer" to "ca".
5899         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
5900         XER_REGS to CA_REGS throughout.
5901         * config/rs6000/rs6000.h: Same.
5902         (ADDITIONAL_REGISTER_NAMES): Add "xer".
5903         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
5904         that mode_iterator "P" is the size for arithmetic carries as well.
5905         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
5906
5907 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
5908
5909         PR bootstrap/44255
5910         * combine.c (struct rtx_subst_pair): Define unconditionally.
5911         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
5912         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
5913         Call make_compound_operation on pair->to.
5914         (propagate_for_debug): Don't call make_compound_operation here.
5915         Always use simplify_replace_fn_rtx.
5916
5917 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
5918
5919         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
5920         * config/xtensa/xtensa.c (override_options): Check
5921           TARGET_FORCE_NO_PIC and set flag_pic.
5922         * config/xtensa/xtensa.opt: Document -mforce-no-pic
5923
5924 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
5925
5926         PR bootstrap/44299
5927         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
5928         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
5929
5930 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
5931
5932         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
5933         toplev.h.
5934         * diagnostic.c: Don't include toplev.h.
5935         (progname): Define.  Moved from toplev.c.
5936         (seen_error): New function.
5937         * diagnostic.h: Include diagnostic-core.h.
5938         (diagnostic_t, emit_diagnostic): Don't declare here.
5939         * toplev.c (progname): Move to toplev.c.
5940         (emit_debug_global_declarations, compile_file, finalize,
5941         do_compile, toplev_main): Use seen_error.
5942         * toplev.h: Include diagnostic-core.h.
5943         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
5944         internal_error, warning, warning_at, error, error_n, error_at,
5945         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
5946         verbatim, fnotice, progname): Move to diagnostic-core.h.
5947         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
5948         (expand_builtin_expect): Use seen_error.
5949         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
5950         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
5951         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
5952         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
5953         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
5954         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
5955         errorcount for errors.
5956         * c-opts.c (c_common_finish): Use seen_error.
5957         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
5958         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
5959         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
5960         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
5961         (get_coverage_counts): Use seen_error.
5962         * dwarf2out.c (dwarf2out_finish): Use seen_error.
5963         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
5964         gimplify_body): Use seen_error.
5965         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
5966         * ipa-pure-const.c (gate_pure_const): Use seen_error.
5967         * ipa-reference.c (gate_reference): Use seen_error.
5968         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
5969         * lambda-code.c: Include diagnostic-core.h instead of
5970         diagnostic.h.
5971         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
5972         * lto-compress.c: Include diagnostic-core.h instead of
5973         diagnostic.h.
5974         * lto-section-in.c: Include diagnostic-core.h instead of
5975         diagnostic.h.
5976         * lto-streamer-out.c: Include diagnostic-core.h instead of
5977         diagnostic.h.
5978         * lto-streamer.c: Include diagnostic-core.h instead of
5979         diagnostic.h.
5980         (gate_lto_out): Use seen_error.
5981         * matrix-reorg.c: Include diagnostic-core.h instead of
5982         diagnostic.h.
5983         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
5984         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
5985         (gate_expand_omp, lower_omp_1): Use seen_error.
5986         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
5987         (rest_of_decl_compilation, rest_of_type_compilation,
5988         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
5989         * tree-cfg.c (label_to_block_fn): Use seen_error.
5990         * tree-inline.c (optimize_inline_calls): Use seen_error.
5991         * tree-mudflap.c (mudflap_finish_file): Use
5992         seen_error.
5993         * tree-optimize.c (gate_all_optimizations,
5994         gate_all_early_local_passes, gate_all_early_optimizations): Use
5995         seen_error.
5996         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
5997         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
5998         (varpool_remove_unreferenced_decls,
5999         varpool_assemble_pending_decls): Use seen_error.
6000         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
6001         (TOPLEV_H, DIAGNOSTIC_H): Update.
6002         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
6003         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
6004         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
6005         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
6006         coverage.o, lambda-code.o): Update dependencies.
6007
6008 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
6009
6010         PR c++/44188
6011         * c-common.c (is_typedef_decl): Move this definition ...
6012         * tree.c (is_typedef_decl): ... here.
6013         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6014         * c-common.h (is_typedef_decl): Move this declaration ...
6015         * tree.h (is_typedef_decl): ... here.
6016         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6017         * dwarf2out.c (is_naming_typedef_decl): New function.
6018         (gen_tagged_type_die): Split out of ...
6019         (gen_type_die_with_usage): ... this function. When an anonymous
6020         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6021         is emitted for the typedef.
6022         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6023         anonymous tagged types.
6024
6025 2010-05-27  Jason Merrill  <jason@redhat.com>
6026
6027         * print-tree.c (debug_vec_tree): New fn.
6028         (print_vec_tree): New fn.
6029         * tree.h: Declare them.
6030         * gdbinit.in (pvt): New command.
6031
6032         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
6033
6034         * gdbinit.in (pdd): New command.
6035
6036 2010-05-27  Jan Hubicka  <jh@suse.cz>
6037
6038         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
6039         (update_caller_keys): Return early if there are no callers;
6040         only update fibheap when decresing the key.
6041         (update_callee_keys): Avoid recursion.
6042         (decide_inlining_of_small_functions): When badness does not match;
6043         re-insert into fibheap.
6044
6045 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
6046
6047         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
6048         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
6049         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
6050         (ALL_HOST_OBJS): Now a union of the above two.
6051         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
6052         all files in ALL_HOST_FRONTEND_OBJS.
6053         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
6054
6055         * c-common.c: Pretend to be a backend file by undefining
6056         IN_GCC_FRONTEND (still need rtl.h here).
6057
6058 2010-05-27  Jan Hubicka  <jh@suse.cz>
6059
6060         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
6061         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
6062
6063 2010-05-27  Jan Hubicka  <jh@suse.cz>
6064
6065         * sched-ebb.c: Rename struct deps to struct deps_desc.
6066         * ddg.c: Likewise.
6067         * sel-sched-ir.c: Likewise.
6068         * sched-deps.c: Likewise.
6069         * sched-int.h: Likewise.
6070         * sched-rgn.c: Likewise.
6071
6072 2010-05-27  Jon Beniston <jon@beniston.com>
6073
6074         PR 43726
6075         * config/lm32/lm32.h: Remove definition of
6076         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
6077
6078 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6079
6080         PR lto/44230
6081         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
6082
6083 2010-05-27  Richard Guenther  <rguenther@suse.de>
6084
6085         PR tree-optimization/44284
6086         * tree-vect-stmts.c (vectorizable_assignment): Handle
6087         sign-changing conversions as simple copy.
6088
6089 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6090
6091         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
6092         Bionic C library.
6093         (__gthread_active_p): Check for pthread_create if compiling against
6094         Bionic C library.
6095
6096 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6097
6098         Support compilation for Android platform.  Reimplement -mandroid.
6099
6100         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
6101         (*android*): Set ANDROID_DEFAULT.
6102         (arm*-*-linux*): Include linux-android.h.
6103         (arm*-*-eabi*): Don't include previous -mandroid implementation.
6104         * config/arm/eabi.h: Remove, move Android-specific parts ...
6105         * config/linux-android.h: ... here.  New file.
6106         * config/arm/eabi.opt: Rename to ...
6107         * config/linux-android.opt: ... this.
6108         (mandroid): Allow -mno-android option.  Initialize based on
6109         ANDROID_DEFAULT.
6110         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
6111         Move logic to corresponding LINUX_TARGET_* macros.
6112         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
6113         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
6114         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
6115         Android definitions.
6116         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
6117         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
6118         Document.
6119
6120 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6121
6122         Add support for Bionic C library
6123
6124         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
6125         macro.
6126         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
6127         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
6128
6129         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
6130         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
6131         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
6132         to support multiple C libraries.  Handle Bionic.
6133         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
6134         (BIONIC_DYNAMIC_LINKER64): Define.
6135         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
6136         Update.
6137         (TARGET_HAS_SINCOS): Enable for Bionic.
6138
6139         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
6140         the last option specified on command line take effect.
6141         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
6142         (mbionic): New.
6143         (mglibc, muclibc): Update.
6144
6145         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
6146         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
6147         DEFAULT_LIBC.
6148
6149         * doc/invoke.texi (-mglibc, -muclibc): Update.
6150         (-mbionic): Document.
6151
6152 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6153
6154         * c-common.h (c_register_addr_space): Add prototype.
6155         (ADDR_SPACE_KEYWORD): Remove.
6156         * c-common.c (c_register_addr_space): New function.
6157         (c_addr_space_name): Reimplement.
6158         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
6159
6160         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
6161         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
6162
6163         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
6164         Remove TARGET_ADDR_SPACE_KEYWORDS.
6165
6166 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
6167
6168         * input.c: New file.
6169         * input.h (main_input_filename): Move declaration to toplev.h.
6170         * toplev.c (input_location, line_table): Move to input.c
6171         * toplev.h (main_input_filename): Move declaration from input.h.
6172         * tree.c (expand_location): Move to input.c.
6173         * Makefile.in (OBJS-common): Add input.o.
6174         (input.o): Add dependencies.
6175
6176 2010-05-27  Richard Guenther  <rguenther@suse.de>
6177
6178         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
6179         for non-existant files.
6180         (fork_execute): Mark args_name file as deleted.
6181
6182 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
6183
6184         PR bootstrp/44287
6185         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
6186         (narrow_signed_type): Likewise.
6187
6188 2010-05-26  Jan Hubicka  <jh@suse.cz>
6189
6190         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
6191         edge only when checking is enabled; check using former_clone_of;
6192         check inline clones too.
6193         (cgraph_materialize_clone): Record former_clone_of pointer.
6194         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
6195         combining redirections; dump args_to_skip bitmap
6196         (cgraph_materialize_all_clones): Do no redirection here.
6197         * ipa-inline.c (inline_transform): Do redirection here.
6198         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
6199         cheking only).
6200
6201 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6202
6203         * config/avr/avr-c.c: Do not include regs.h.
6204         Include cpplib.h for cpp_define and tree.h for c-common.h.
6205         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
6206         * config/avr/t-avr: Fix dependencies for avr-c.o.
6207
6208 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6209
6210         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
6211         string instead of SYMBOL_REF rtx.
6212         * rtl.h (set_stack_check_libfunc): Move prototype from here...
6213         * libfuncs.h: ...to here.  Adjust for explow.c change.
6214
6215 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
6216
6217         * pretty-print.c: Don't include ggc.h.
6218         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
6219         (identifier_to_locale): Use them for allocation.
6220         * pretty-print.h (identifier_to_locale_alloc,
6221         identifier_to_locale_free): Declare.
6222         * toplev.c (alloc_for_identifier_to_locale): New.
6223         (general_init): Set identifier_to_locale_alloc and
6224         identifier_to_locale_free.
6225         * Makefile.in (pretty-print.o): Update dependencies.
6226
6227 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6228
6229         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
6230         pointer types if they have different alignment or mode.
6231
6232 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
6233
6234         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6235         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6236         * config/sparc/sparc-protos.h (function_value): Remove declaration.
6237         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
6238         sparc_function_value_regno_p): New functions.
6239         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6240         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6241         (function_value): Rename to...
6242         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
6243         argument to 'outgoing'.
6244         (function_arg_record_value, function_arg_union_value,
6245         function_arg_vector_value): Update comment.
6246
6247 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6248
6249         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
6250         (fde_needed_for_eh_p): New predicate.
6251         (output_call_frame_info): Use it throughout to decide whether FDEs
6252         are needed for EH purpose.
6253         (dwarf2out_begin_prologue): Reorder assignments.
6254
6255 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6256
6257         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
6258         special case loop->header.
6259         (is_predicated): New.
6260         (if_convertible_loop_p): Call it.
6261
6262 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6263
6264         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
6265         iterator in parameter.  Do not generate code during the analysis.
6266         (tree_if_convert_cond_stmt): Removed.
6267         (tree_if_convert_stmt): Removed.
6268         (predicate_bbs): New.
6269         (if_convertible_loop_p): Call predicate_bbs.
6270         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
6271         now contains all the analysis part.
6272
6273 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6274
6275         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
6276         statements in the analysis part.
6277         (tree_if_convert_stmt): Update comment.
6278         (remove_conditions_and_labels): New.
6279         (combine_blocks): Call remove_conditions_and_labels.
6280         (tree_if_conversion): Update comment.
6281
6282 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6283
6284         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
6285         than 2 predecessors or more than 2 successors.
6286
6287 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6288
6289         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
6290         of loops in which the data dependence analysis fails.
6291
6292 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6293
6294         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
6295         CDI_POST_DOMINATORS.
6296         (tree_if_conversion): Same.
6297
6298 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6299
6300         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
6301
6302 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6303
6304         * tree-if-conv.c: Update copyright years.  Fix comments.
6305         Fix indentation.
6306
6307 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
6308
6309         * builtin-types.def (BT_INT128): New primitive type.
6310         (BT_UINT128): Likewise.
6311         * c-common.c (c_common_r): Add __int128 keyword.
6312         (c_common_type_for_size): Handle __int128.
6313         (c_common_type_for_mode): Likewise.
6314         (c_common_signed_or_unsigned_type): Likewise.
6315         (c_common_nodes_and_builtins): Add builtin type
6316         if target supports 128-bit integer scalar.
6317         * c-common.h (enum rid): Add RID_INT128.
6318         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
6319         if target supports 128-bit integer scalar.
6320         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
6321         (finish_declspecs): Likewise.
6322         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
6323         (c_token_starts_declspecs): Likewise.
6324         (c_parser_declspecs): Likewise.
6325         (c_parser_attributes): Likewise.
6326         (c_parser_objc_selector): Likewise.
6327         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
6328         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
6329         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
6330         * tree.c (make_or_reuse_type): Likewise.
6331         (make_unsigned_type): Likewise.
6332         (build_common_tree_nodes_2): Likewise.
6333         * tree.h (enum integer_type_kind): Add itk_int128 and
6334         itk_unsigned_int128.
6335         (int128_integer_type_node): New define.
6336         (int128_unsigned_type_node): New define.
6337         * doc/extend.texi: Add documentation about __int128 type.
6338
6339 2010-05-26  Richard Guenther  <rguenther@suse.de>
6340
6341         * tree-ssa-sccvn.c (copy_nary): Adjust.
6342         (copy_phis): Rename to ...
6343         (copy_phi): ... this.  Adjust.
6344         (copy_references): Rename to ...
6345         (copy_reference): ... this.  Adjust.
6346         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
6347         result into the valid table.
6348
6349 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6350
6351         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
6352         insn-config.h, insn-codes.h, recog.h, and optabs.h.
6353
6354 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6355
6356         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
6357
6358 2010-05-26  Richard Guenther  <rguenther@suse.de>
6359
6360         * opts.c (common_handle_option): Handle OPT_Ofast.
6361
6362 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
6363
6364         * diagnostic.c: Don't include opts.h.
6365         (permissive_error_option): Define.
6366         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
6367         for classify_diagnostic.  Don't use memset for
6368         classify_diagnostic.  Initialize new and recently added fields.
6369         (diagnostic_classify_diagnostic): Use context->n_opts instead of
6370         N_OPTS.
6371         (diagnostic_report_diagnostic): Pass context parameter to
6372         diagnostic_report_warnings_p.  Use option_enabled and option_name
6373         hooks from context.
6374         (emit_diagnostic): Use permissive_error_option.
6375         (permerror): Likewise.
6376         * diagnostic.h: Don't include options.h.
6377         (struct diagnostic_context): Add n_opts, opt_permissive,
6378         inhibit_warnings, warn_system_headers, option_enabled and
6379         option_name fields.  Change classify_diagnostic to a pointer.
6380         * opts-diagnostic.h: New file.
6381         * opts.c: Include opts-diagnostic.h.
6382         (common_handle_option): Set global_dc fields for -Wfatal-errors,
6383         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
6384         (option_name): New function.
6385         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
6386         (c_common_handle_option): Set global_dc->permissive for
6387         -fpermissive.
6388         * c-common.c (c_cpp_error): Save and restore
6389         global_dc->warn_system_headers, not variable warn_system_headers.
6390         * toplev.c: Include opts-diagnostic.h.
6391         (general_init): Update call to diagnostic_initialize.  Set
6392         global_dc->show_column, global_dc->option_enabled and
6393         global_dc->option_name.
6394         (process_options): Don't set global_dc fields here.
6395         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
6396         (diagnostic.o, opts.o, toplev.o): Update dependencies.
6397
6398 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
6399
6400         * config/picochip/picochip.md (movsi): Split a movsi from a
6401         const after reload.
6402
6403 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6404
6405         * ggc-zone.c: Update copyright year.
6406         (poison_region): Mark memory for Valgrind as undefined before
6407         memset () call and inaccessible afterwards.
6408         (ggc_pch_total_size): Change type of i to int.
6409
6410 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6411
6412         * ggc-common.c (ggc_free_overhead): Allow empty slot.
6413
6414 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6415
6416         * ggc-common.c: Update copyright year.
6417         (ggc_rlimit_bound): Remove prototype.  Compile only if
6418         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
6419         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
6420         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
6421         (ggc_min_heapsize_heuristic): Likewise.
6422
6423 2010-05-26  Richard Guenther  <rguenther@suse.de>
6424
6425         PR rtl-optimization/44164
6426         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
6427         no-common access-path disambiguation.
6428         (indirect_ref_may_alias_decl_p): Adjust.
6429         (indirect_refs_may_alias_p): Likewise.
6430         (refs_may_alias_p_1): Likewise.
6431
6432 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6433
6434         * c-typeck.c: Do not include expr.h.
6435
6436 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6437
6438         * rtl.h (decl_default_tls_model): Move prototype from here...
6439         * output.h: ...to here.
6440         * c-decl.c: Do not include rtl.h.
6441         * c-pragma.c: Likewise.
6442         * c-parser.c: Likewise.
6443         * c-gimplify.c: Likewise.  And also not hard-reg-set.
6444         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
6445         FIXME note for it.  Add a FIXME note for expr.h.
6446         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
6447         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
6448         defined.
6449
6450 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
6451
6452         PR target/44199
6453         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
6454         or total_size is larger than red zone size for non-V4 ABI, emit a
6455         stack_tie resp. frame_tie insn before stack pointer restore.
6456         * config/rs6000/rs6000.md (frame_tie): New insn.
6457
6458 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6459
6460         * function.h (struct function): Add can_throw_non_call_exceptions bit.
6461         * lto-streamer-in.c (input_function): Stream it in.
6462         * lto-streamer-out.c (output_function): Stream it out.
6463         * function.c (allocate_struct_function): Set it.
6464         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
6465         for flag_non_call_exceptions.
6466         * cfgbuild.c (control_flow_insn_p): Likewise.
6467         (make_edges): Likewise.
6468         * cfgexpand.c (expand_stack_alignment): Likewise.
6469         * combine.c (distribute_notes): Likewise.
6470         * cse.c (cse_extended_basic_block): Likewise.
6471         * except.c (insn_could_throw_p): Likewise.
6472         * gcse.c (simple_mem): Likewise.
6473         * ipa-pure-const.c (check_call): Likewise.
6474         (check_stmt ): Likewise.
6475         * lower-subreg.c (lower-subreg.c): Likewise.
6476         * optabs.c (emit_libcall_block): Likewise.
6477         (prepare_cmp_insn): Likewise.
6478         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
6479         * postreload.c (rest_of_handle_postreload): Likewise.
6480         * reload1.c (reload_as_needed): Likewise.
6481         (emit_input_reload_insns): Likewise.
6482         (emit_output_reload_insns): Likewise.
6483         (fixup_abnormal_edges): Likewise.
6484         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
6485         * store-motion.c (find_moveable_store): Likewise.
6486         * tree-eh.c (stmt_could_throw_p): Likewise.
6487         (tree_could_throw_p): Likewise.
6488         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
6489         * config/arm/arm.c (arm_expand_prologue): Likewise.
6490         (thumb1_expand_prologue): Likewise.
6491         * config/rx/rx.md (cbranchsf4): Likewise.
6492         (cmpsf): Likewise.
6493         * config/s390/s390.c (s390_emit_prologue): Likewise.
6494         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
6495         (inline_forbidden_into_p): New predicate.
6496         (expand_call_inline): Use it to forbid inlining.
6497         (tree_can_inline_p): Likewise.
6498
6499 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
6500
6501         * config/i386/i386-c.c: Do not include rtl.h.
6502         * config/i386/t-i386: Update dependencies.
6503
6504 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
6505
6506         * attribs.c: Do not include rtl.h.
6507         * Makefile.in: Update dependencies.
6508
6509 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
6510
6511         * double-int.h (double_int_and): New.
6512         * combine.c (try_combine): Clean up, use double_int_* and
6513         immed_double_int_const functions.
6514
6515 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6516
6517         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
6518         stderr to /dev/null instead of grep -q.
6519         * configure: Regenerate.
6520
6521 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
6522
6523         * Makefile.in (EXCEPT_H): Fix typo.
6524
6525 2010-05-25  Vladimir Makarov <vmakarov@redhat.com>
6526
6527         * ira-build.c (update_conflict_hard_reg_costs): New.
6528         (ira_build): Call update_conflict_hard_reg_costs.
6529
6530 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
6531
6532         PR debug/41371
6533         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
6534         ENABLE_CHECKING.
6535         (intersect_loc_chains): Walk the s2var's loc_chain together
6536         with s1node chain as long as the locations are equal, don't
6537         call find_loc_in_1pdv in that case.
6538
6539         PR debug/42801
6540         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
6541         (copy_bind_expr): ... instead of here.
6542         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
6543         if the block hasn't been remapped.
6544         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
6545         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
6546
6547 2010-05-25  Richard Guenther  <rguenther@suse.de>
6548
6549         PR middle-end/44069
6550         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
6551         out-of-bounds array accesses.
6552
6553 2010-05-25  Richard Guenther  <rguenther@suse.de>
6554
6555         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
6556         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
6557         (run_gcc): Re-organize to make cleanup easier.
6558
6559 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6560
6561         * config/s390/s390.c (optimization_options): Fix and move the
6562         flag_prefetch_loop_arrays override ...
6563         (override_options): ... here.
6564
6565 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
6566
6567         * diagnostic.c: Don't include plugin.h.
6568         (diagnostic_report_diagnostic): Don't handle plugins specially
6569         here.  Pass context to internal_error callback.
6570         * diagnostic.h (struct diagnostic_context): Add context parameter
6571         to internal_error callback.
6572         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
6573         * plugin.h (struct diagnostic_context): Declare.
6574         (warn_if_plugins, plugins_internal_error_function): Declare.
6575         * toplev.c (general_init): Set global_dc->internal_error.
6576         * Makefile.in (diagnostic.o): Update dependencies.
6577
6578 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
6579
6580         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
6581         * config/rs6000/t-darwin64: New.
6582         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
6583         build crt2.
6584
6585 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
6586
6587         PR 44203
6588         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
6589         match the original (and intended) behaviour before r159557.  This
6590         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
6591         in two ways.
6592
6593 2010-05-25  Richard Guenther  <rguenther@suse.de>
6594
6595         * doc/invoke.texi: Document -Ofast.
6596         * target.h (struct gcc_target): Add handle_ofast.
6597         * target-def.h (TARGET_HANDLE_OFAST): Add.
6598         (TARGET_INITIALIZER): Adjust.
6599         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
6600         * common.opt (Ofast): Add.
6601
6602 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
6603
6604         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
6605         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
6606
6607 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
6608
6609         PR target/43610
6610         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
6611         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
6612         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
6613         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
6614
6615 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
6616
6617         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
6618         DW_OP_minus with negated offset instead of DW_OP_plus.
6619         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
6620
6621 2010-05-25  Wei Guozhi  <carrot@google.com>
6622
6623         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
6624         tst instruction and a new alternative.
6625         * config/arm/constraints.md (Pu): New constraint.
6626
6627 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
6628
6629         * function.c (assign_stack_local_1): Initialize variable
6630         to avoid warning when bootstrapping at -O3.
6631
6632 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
6633
6634         * configure.ac (all_lang_makefiles): Remove everything related to it.
6635         * configure: Regenerate.
6636         * Makefile.in: Fix reference to ada Make-lang.in.
6637         Remove support for LANG_MAKEFILES.
6638
6639 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
6640             Sandra Loosemore  <sandra@codesourcery.com>
6641
6642         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
6643         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
6644         description.  Add arm_neon_fp16_ok.
6645         (Add Options): Add arm_neon and arm_neon_fp16.
6646
6647 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
6648
6649         * diagnostic.c: Don't include flags.h.
6650         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
6651         context parameters.  Check flags in the context passed as a parameter.
6652         (diagnostic_build_prefix): Add context parameter.  Check
6653         show_column flag in context.
6654         (diagnostic_action_after_output): Check fatal_errors flag in context.
6655         (diagnostic_report_current_module): Check show_column flag in context.
6656         (default_diagnostic_starter): Update call to
6657         diagnostic_build_prefix.
6658         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
6659         (emit_diagnostic): Pass context to permissive_error_kind.
6660         (permerror): Pass context to permissive_error_kind.
6661         * diagnostic.h (struct diagnostic_context): Add show_column,
6662         pedantic_errors, permissive and fatal_errors fields.
6663         (diagnostic_build_prefix): Update prototype.
6664         * langhooks.c
6665         * toplev.c (process_options): Set flags in global_dc from
6666         flag_show_column, flag_pedantic_errors, flag_permissive,
6667         flag_fatal_errors.
6668         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
6669         to diagnostic_build_prefix.
6670         * Makefile.in (diagnostic.o): Update dependencies.
6671
6672 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6673
6674         * config/i386/ia32intrin.h (__crc32q): Define only if
6675         __SSE4_2__ is defined.
6676
6677 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
6678
6679         PR target/44132
6680         PR middle-end/43602
6681         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
6682         DECL_VISIBILITY_SPECIFIED.
6683         (emutls_decl): Set DECL_PRESERVE_P and copy
6684         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
6685         (emutls_finalize_control_var): New callback.
6686         (emutls_finish): Finalize emutls control variables.
6687         * toplev.c (compile_file): Move the call to emutls_finish ()
6688         before varpool_assemble_pending_decls ().
6689
6690 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
6691
6692         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
6693         added to the preprocessor condition.
6694
6695 2010-05-24  Paul Brook  <paul@codesourcery.com>
6696
6697         * gengtype-lex.l: Add HARD_REG_SET.
6698         * expr.c (expand_expr_real_1): Record writes to hard registers.
6699         * function.c (rtl_data): Add asm_clobbers.
6700         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
6701         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
6702         Use crtl->asm_clobbers.
6703
6704 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6705
6706         * doc/makefile.texi (Makefile): Mention stages 'profile'
6707         and 'feedback' for profiledbootstrap.
6708
6709 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6710
6711         PR target/44245
6712         * config/i386/i386.c (def_builtin): Properly check
6713         OPTION_MASK_ISA_64BIT.
6714
6715 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
6716
6717         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
6718         typedefs with different but compatible types.  Allow duplicate
6719         typedefs with the same type except for pedantic non-C1X, but give
6720         warning for variably modified types.
6721         * c-typeck.c (tagged_types_tu_compatible_p,
6722         function_types_compatible_p, type_lists_compatible_p,
6723         comptypes_internal): Add parameter different_types_p; set
6724         *different_types_p for different but compatible types.  All
6725         callers changed.
6726         (comptypes_check_different_types): New.
6727         * c-tree.h (comptypes_check_different_types): Declare.
6728
6729 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
6730
6731         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
6732         * jump.c: Include basic-block.h.
6733         * profile.c: Likewise.
6734         * tree-profile.c: Likewise.
6735         * coverage.c: Likewise.
6736         * basic-block.h (optimize_function_for_size_p): Move to function.h.
6737         (optimize_function_for_speed_p): Likewise.
6738         * function.h (optimize_function_for_size_p,
6739         optimize_function_for_speed_p): Moved here from basic-block.h.
6740         * Makefile.in: Update dependencies.
6741
6742 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6743
6744         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
6745         before calling make; allow override through $MAKE.
6746         * doc/invoke.texi (Optimize Options): Document override.
6747
6748 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
6749
6750         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
6751         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6752         (rs6000_mode_dependent_address_ptr): Make static.
6753         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6754         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
6755         Remove.
6756
6757 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
6758
6759         PR target/43869
6760         * config/i386/i386.c: Make sure that the correct regparm is passed.
6761
6762 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
6763
6764         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
6765         * sbitmap.c: ...to here to internalize sbitmap element access.
6766         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
6767         Explain why basic-block.h is included.
6768         * function.h: Include tm.h for CUMULATIVE_ARGS.
6769         * Makefile.in: Update dependencies.
6770
6771 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
6772
6773         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
6774         New core types.
6775         * sbitmap.h (struct sbitmap_def): Do not typedef here.
6776         * sbitmap.c: Include sbitmap.h.
6777         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
6778         hard-reg-set.h.  Split everything related to regsets out from here...
6779         * regset.h: ...to here.  New file.
6780         * df.h: Include regset.h and sbitmap.h.
6781         * tree-flow.h: Likewise.
6782         * cfgloop.h: Likewise.
6783         * except.h: Do not include sbitmap.h.  Include hashtab.h.
6784         * cgraph.h: Include vec.h and function.h.
6785         * reload.h (struct insn_chain): Change types of live_throughout
6786         and dead_or_set from regset_head to bitmap_head.
6787         (compute_use_by_pseudos): Be defined also if regset.h is not included.
6788         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
6789         spilled_regs from regset_head to bitmap_head to avoid dependency
6790         in regset.h.
6791         * sel-sched-ir.h: Include regset.h.
6792         * reload.c: Include df.h before reload.h.
6793         * caller-save.c: Likewise.
6794         * reload1.c: Likewise.
6795         * ira.c: Likewise.
6796         (mark_elimination): Update type of r to bitmap, consistent with
6797         DF_LR_IN.
6798         * dominance.c: Include bitmap.h.
6799         * modulo-sched.c: Include df.h.
6800         * cfganal.c: Include bitmap.h and sbitmap.h.
6801         * cfgbuild.c: Include sbitmap.h.
6802         * lcm.c: Include sbitmap.h.
6803         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
6804         * domwalk.c: Include sbitmap.h, exclude ggc.h.
6805         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
6806         * cselib.c: Include bitmap.h.
6807         * tree-optimize.c: Include regset.h.
6808         * stmt.c: Include bitmap.h.
6809         * Makefile.in: Update dependencies.
6810
6811 2010-05-22  Jan Hubicka  <jh@suse.cz>
6812
6813         * cgraph.h (struct varpool_node): Add same_comdat_group.
6814         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
6815         pointer.
6816         (output_varpool): Update call of lto_output_varpool_node.
6817         (input_varpool): Read same_comdat_group pointer.
6818         (input_varpool_1): Fixup same_comdat_group pointer.
6819         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
6820         group is needed, all are.
6821         * varpool.c (varpool_remove_node): Remove node from same comdat group
6822         linklist too.
6823         (varpool_analyze_pending_decls): Walk same comdat groups.
6824
6825 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
6826
6827         * rtl.h (union rtunion_def): Remove rt_bit member.
6828         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
6829         * print-rtl (print_rtx): Do not print the member.
6830         * gengtype.c (adjust_field_rtx_def): Do not handle it.
6831         * gengenrtl.c (type_from_format): Likewise.
6832         (accessor_from_format): Likewise.
6833
6834 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
6835
6836         * dbgcnt.c: Include toplev.h instead of errors.h.
6837         * ira-emit.c: Don't include errors.h.
6838         * ira.c: Include toplev.h instead of errors.h.
6839         * lto-compress.c: Include toplev.h instead of errors.h.
6840         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
6841         ira.o, dbgcnt.o): Update dependencies.
6842
6843 2010-05-22  Richard Guenther  <rguenther@suse.de>
6844
6845         * gimple.c (gimple_types_compatible_p): Check type qualifications
6846         before merging pointer to complete and pointer to incomplete type.
6847         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
6848         we use our own resolution algorithm.  The gold linker plugin
6849         doesn't do the job we want it to do here.
6850
6851 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
6852
6853         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6854         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6855         (sparc_mode_dependent_address_p): New function.
6856
6857 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
6858
6859         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
6860
6861         * timevar.c: Do not include any core headers.
6862         (timevar_print): De-i18n-ize.
6863         (print_time): Likewise.
6864         * timevar.h (timevar_push, timevar_pop): Make inline functions.
6865
6866 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
6867
6868         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
6869         langhooks-def.h.
6870         (diagnostic_initialize): Initialize x_data not last_function.
6871         (diagnostic_report_current_function): Move to tree-diagnostic.c.
6872         (default_diagnostic_starter): Call
6873         diagnostic_report_current_module not
6874         diagnostic_report_current_function.
6875         (diagnostic_report_diagnostic): Initialize x_data not
6876         abstract_origin.
6877         (verbatim): Likewise.
6878         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
6879         x_data.
6880         (struct diagnostic_context): Change last_function to x_data.
6881         (diagnostic_auxiliary_data): Replace with
6882         diagnostic_context_auxiliary_data and
6883         diagnostic_info_auxiliary_data.
6884         (diagnostic_last_function_changed, diagnostic_set_last_function,
6885         diagnostic_report_current_function): Move to tree-diagnostic.h.
6886         (print_declaration, dump_generic_node, print_generic_stmt,
6887         print_generic_stmt_indented, print_generic_expr,
6888         print_generic_decl, debug_c_tree, dump_omp_clauses,
6889         print_call_name, debug_generic_expr, debug_generic_stmt,
6890         debug_tree_chain, default_tree_printer): Move to
6891         tree-pretty-print.h.
6892         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
6893         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
6894         gimple-pretty-print.h.
6895         * pretty-print.c: Don't include tree.h
6896         (pp_base_format): Don't handle %K here.
6897         (pp_base_tree_identifier): Move to tree-pretty-print.c.
6898         * pretty-print.h (text_info): Change abstract_origin to x_data.
6899         (pp_tree_identifier, pp_unsupported_tree,
6900         pp_base_tree_identifier): Move to tree-pretty-print.h.
6901         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
6902         tree-pretty-print.h: New files.
6903         * tree-pretty-print.c: Include tree-pretty-print.h.
6904         (percent_K_format): New.  Moved from pretty-print.c.
6905         (pp_base_tree_identifier): Move from pretty-print.c.
6906         * c-objc-common.c: Include tree-pretty-print.h.
6907         (c_tree_printer): Handle %K here.
6908         * langhooks.c: Include tree-diagnostic.h.
6909         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
6910         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
6911         (default_tree_printer): Handle %K using percent_K_format.
6912         (general_init): Use default_tree_diagnostic_starter.
6913         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
6914         (free_lang_data): Use default_tree_diagnostic_starter.
6915         * c-pretty-print.c: Include tree-pretty-print.h.
6916         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6917         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6918         * dwarf2out.c: Include tree-pretty-print.h.
6919         * except.c: Include tree-pretty-print.h.
6920         * gimple-pretty-print.c: Include tree-pretty-print.h and
6921         gimple-pretty-print.h.
6922         * gimplify.c: Include tree-pretty-print.h.
6923         * graphite-poly.c: Include tree-pretty-print.h and
6924         gimple-pretty-print.h.
6925         * ipa-cp.c: Include tree-pretty-print.h.
6926         * ipa-inline.c: Include gimple-pretty-print.h.
6927         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6928         * ipa-pure-const.c: Include gimple-pretty-print.h.
6929         * ipa-struct-reorg.c: Include tree-pretty-print.h and
6930         gimple-pretty-print.h.
6931         * ipa-type-escape.c: Include tree-pretty-print.h.
6932         * print-rtl.c: Include tree-pretty-print.h.
6933         * print-tree.c: Include gimple-pretty-print.h.
6934         * sese.c: Include tree-pretty-print.h.
6935         * tree-affine.c: Include tree-pretty-print.h.
6936         * tree-browser.c: Include tree-pretty-print.h.
6937         * tree-call-cdce.c: Include gimple-pretty-print.h.
6938         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6939         * tree-chrec.c: Include tree-pretty-print.h.
6940         * tree-data-ref.c: Include tree-pretty-print.h and
6941         gimple-pretty-print.h.
6942         * tree-dfa.c: Include tree-pretty-print.h.
6943         * tree-if-conv.c: Include tree-pretty-print.h and
6944         gimple-pretty-print.h.
6945         * tree-inline.c: Include tree-pretty-print.h.
6946         * tree-into-ssa.c: Include tree-pretty-print.h and
6947         gimple-pretty-print.h.
6948         * tree-nrv.c: Include tree-pretty-print.h.
6949         * tree-object-size.c: Include tree-pretty-print.h and
6950         gimple-pretty-print.h.
6951         * tree-outof-ssa.c: Include tree-pretty-print.h and
6952         gimple-pretty-print.h.
6953         * tree-parloops.c: Include tree-pretty-print.h and
6954         gimple-pretty-print.h.
6955         * tree-predcom.c: Include tree-pretty-print.h and
6956         gimple-pretty-print.h.
6957         * tree-scalar-evolution.c: Include tree-pretty-print.h and
6958         gimple-pretty-print.h.
6959         * tree-sra.c: Include tree-pretty-print.h.
6960         * tree-ssa-address.c: Include tree-pretty-print.h.
6961         * tree-ssa-alias.c: Include tree-pretty-print.h.
6962         * tree-ssa-ccp.c: Include tree-pretty-print.h and
6963         gimple-pretty-print.h.
6964         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
6965         * tree-ssa-copy.c: Include tree-pretty-print.h and
6966         gimple-pretty-print.h.
6967         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
6968         * tree-ssa-dce.c: Include tree-pretty-print.h and
6969         gimple-pretty-print.h.
6970         * tree-ssa-dom.c: Include tree-pretty-print.h and
6971         gimple-pretty-print.h.
6972         * tree-ssa-dse.c: Include gimple-pretty-print.h.
6973         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
6974         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
6975         * tree-ssa-live.c: Include tree-pretty-print.h and
6976         gimple-pretty-print.h.
6977         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
6978         gimple-pretty-print.h.
6979         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
6980         gimple-pretty-print.h.
6981         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
6982         gimple-pretty-print.h.
6983         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
6984         gimple-pretty-print.h.
6985         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
6986         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
6987         * tree-ssa-operands.c: Include tree-pretty-print.h and
6988         gimple-pretty-print.h.
6989         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
6990         gimple-pretty-print.h.
6991         * tree-ssa-pre.c: Include tree-pretty-print.h and
6992         gimple-pretty-print.h.
6993         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
6994         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
6995         gimple-pretty-print.h.
6996         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
6997         gimple-pretty-print.h.
6998         * tree-ssa-sink.c: Include gimple-pretty-print.h.
6999         * tree-ssa-ter.c: Include tree-pretty-print.h and
7000         gimple-pretty-print.h.
7001         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
7002         * tree-ssa.c: Include tree-pretty-print.h and
7003         gimple-pretty-print.h.
7004         * tree-stdarg.c: Include gimple-pretty-print.h.
7005         * tree-switch-conversion.c: Include gimple-pretty-print.h.
7006         * tree-tailcall.c: Include tree-pretty-print.h and
7007         gimple-pretty-print.h.
7008         * tree-vect-data-refs.c: Include tree-pretty-print.h and
7009         gimple-pretty-print.h.
7010         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
7011         gimple-pretty-print.h.
7012         * tree-vect-loop.c: Include tree-pretty-print.h and
7013         gimple-pretty-print.h.
7014         * tree-vect-patterns.c: Include gimple-pretty-print.h.
7015         * tree-vect-slp.c: Include tree-pretty-print.h and
7016         gimple-pretty-print.h.
7017         * tree-vect-stmts.c: Include tree-pretty-print.h and
7018         gimple-pretty-print.h.
7019         * tree-vectorizer.c: Include tree-pretty-print.h.
7020         * tree-vrp.c: Include tree-pretty-print.h and
7021         gimple-pretty-print.h.
7022         * value-prof.c: Include tree-pretty-print.h and
7023         gimple-pretty-print.h.
7024         * var-tracking.c: Include tree-pretty-print.h.
7025         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
7026         (tree-diagnostic.o): New dependencies.
7027         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
7028         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
7029         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
7030         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
7031         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
7032         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
7033         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
7034         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
7035         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
7036         tree-ssa-address.o, tree-ssa-loop-niter.o,
7037         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
7038         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
7039         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
7040         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
7041         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
7042         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
7043         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
7044         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
7045         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
7046         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
7047         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
7048         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
7049         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
7050         tree-switch-conversion.o, var-tracking.o, value-prof.o,
7051         cfgexpand.o, pretty-print.o): Update dependencies.
7052
7053 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
7054
7055         * tree-ssa-structalias.c: Remove tm_p.h from include.
7056
7057 2010-05-21  Jeff Law  <law@redhat.com>
7058
7059         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
7060
7061 2010-05-21  Jason Merrill  <jason@redhat.com>
7062
7063         * tree-eh.c (cleanup_is_dead_in): New.
7064         (lower_try_finally): Don't generate a dead cleanup region.
7065         (lower_cleanup): Likewise.
7066
7067 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
7068
7069         PR debug/44223
7070         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
7071         unchain each use from the cyclic next_regno_use chain first.
7072
7073 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7074
7075         * real: Do not include gmp.h, mpfr.h, and mpc.h.
7076         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
7077         (real_value_negate, real_value_abs): New prototypes.
7078         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
7079         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
7080         new include file for interface between MPFR and REAL_VALUE_TYPE.
7081         * real.c: Include realmpfr.h.
7082         (real_arithmetic2): Remove legacy function.
7083         (real_value_negate): New.
7084         (real_value_abs): New.
7085         (mfpr_from_real, real_from_mpfr): Move from here...
7086         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
7087         * builtins.c: Include realmpfr.h.
7088         * fold-const.c: Include realmpfr.h.
7089         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
7090         (fold_negate_const): Likewise.
7091         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
7092         * toplev.c: Include realmpfr.h.
7093         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
7094         and real_value_negate.
7095         * fixed-value.c (check_real_for_fixed_mode): Likewise.
7096         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
7097         (vfp3_const_double_index): Likewise.
7098         (arm_print_operand): Likewise.
7099         * Makefile.in: Update dependencies.
7100
7101 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7102
7103         * config/s390/s390.c (override_options): Increase the default
7104         of max-completely-peel-times.
7105
7106 2010-05-21  Julian Brown  <julian@codesourcery.com>
7107             Mark Mitchell  <mark@codesourcery.com>
7108
7109         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
7110         sibling calls for Thumb-1.
7111         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
7112         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
7113         Thumb-2.
7114         (*call_insn, *call_value_insn): Don't use for Thumb-2.
7115         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
7116         for Thumb-2.
7117         (return): New expander.
7118         (*arm_return): New name for ARM return insn.
7119         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
7120
7121 2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
7122
7123         * config.gcc (sparc64-*-rtems*): New target.
7124
7125 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
7126
7127         * tree.c (build_function_decl_skip_args): Fix grammar.
7128         (build_function_type_list_1): Fix typos, adjust formatting.
7129
7130 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7131
7132         * tree.h: Include real.h and fixed-value.h as basic datatypes.
7133         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
7134         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
7135         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
7136         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
7137         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
7138         tree-pretty-print.c, tree-loop-distribution.c,
7139         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
7140         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
7141         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
7142         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
7143         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
7144         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
7145         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
7146         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
7147         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
7148         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
7149         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
7150         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
7151         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
7152         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
7153         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
7154         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
7155         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
7156         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
7157         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
7158         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
7159         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
7160         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
7161         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
7162         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
7163         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
7164         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
7165         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
7166         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
7167         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
7168         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
7169         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
7170         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
7171         config/score/score7.c, config/score/score.c, config/arm/arm.c,
7172         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
7173         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
7174         config/bfin/bfin.c: Clean up redundant includes.
7175         * Makefile.in: Update accordingly.
7176
7177 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
7178
7179         PR middle-end/44204
7180         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
7181         statement has no arguments.
7182
7183 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
7184
7185         PR/44139
7186         * varasm.c (emutls_decl): Merge attributes to new decl.
7187
7188 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7189
7190         PR middle-end/44101
7191         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
7192         around the uniquized constructor if its type requires a conversion.
7193
7194 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
7195
7196         PR debug/44205
7197         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
7198         at -O0 goto_locus of any of the incoming edges differs from
7199         goto_locus of outgoing edge, or gimple_location of any of the
7200         labels differs.
7201
7202 2009-09-14  Vladimir Makarov <vmakarov@redhat.com>
7203
7204         * ira.c (ira_non_ordered_class_hard_regs): Define.
7205         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
7206         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
7207         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
7208         cost of unaligned hard regs when allocating multi-reg pseudos.
7209
7210 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
7211
7212         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
7213         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
7214         for TARGET_NO_FLOAT.
7215         * config/mips/mips.c (mips_file_start): Expand conditional expression
7216         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
7217         (mips_override_options): Move -mno-float override -msoft-float and
7218         -mhard-float.
7219         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
7220         Condition(TARGET_SUPPORTS_NO_FLOAT).
7221         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
7222         __mips_no_float here.
7223         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
7224         (TARGET_SUPPORTS_NO_FLOAT): Define.
7225         * config/mips/sdemtk.opt: Delete.
7226
7227 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
7228
7229         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
7230
7231 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
7232
7233         PR target/43733
7234         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
7235         * configure: Regenerate.
7236         * config.in: Regenerate.
7237         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
7238         instead of sahf only for 64bit targets.
7239
7240 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
7241
7242         PR debug/44178
7243         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
7244         setup_ref_regs for DEBUG_INSNs.
7245
7246 2010-05-20  Jan Hubicka  <jh@suse.cz>
7247
7248         PR middle-end/44197
7249         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
7250
7251 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
7252
7253         PR bootstrap/43870
7254         * df-scan.c (df_ref_compare): Stabilize sort.
7255
7256 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
7257
7258         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
7259         argument.  Don't use DW_OP_piece if offset is non-zero,
7260         put offset into second DW_OP_bit_piece argument.
7261         (dw_sra_loc_expr): Adjust callers.  For memory expressions
7262         compute offset.
7263
7264 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
7265
7266         PR target/44202
7267         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
7268         settings for 16-bit-constant "addo" alternative.
7269
7270 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
7271
7272         * config/mips/mips-dsp.md (add<DSPV:mode>3,
7273         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
7274
7275         PR target/43764
7276         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
7277         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
7278         Use it.
7279
7280 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
7281
7282         * diagnostic.c (FLOAT, FFS): Don't undefine.
7283         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
7284         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
7285         include ordering.
7286
7287 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
7288
7289         * combine.c (propagate_for_debug): Call make_compound_operation
7290         on the source value.
7291         (try_combine): When implementing a split chosen by find_split_point,
7292         either copy i2src or set it to null.  Assert that i2src is not null
7293         before substituting into CALL_INSN_FUNCTION_USAGE.
7294
7295 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
7296
7297         * double-int.h (double_int_ior): New function.
7298         * tree.h (build_int_cst_wide_type): Remove.
7299         * tree.c (build_int_cst_wide_type): Remove.
7300         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
7301         of build_int_cst_wide_type.
7302         * stor-layout.c (set_sizetype): (Ditto.).
7303         * dojump.c (do_jump): Use build_int_cstu instead of
7304         build_int_cst_wide_type.
7305
7306 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
7307
7308         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
7309         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
7310         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
7311         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
7312         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
7313         propagate the 'data' argument to copy_tree_r.
7314         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
7315         Propagate 'data' argument to walk_tree.
7316         (copy_if_shared): New function.
7317         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
7318         (unmark_visited): New function.
7319         (unshare_body): Call copy_if_shared instead of doing it manually.
7320         (unvisit_body): Call unmark_visited instead of doing it manually.
7321
7322 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
7323
7324         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
7325         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
7326         * hooks.c: Likewise.
7327         * target-def.h (TARGET_FOLD_BUILTIN): Define to
7328         hook_tree_tree_int_treep_bool_null.
7329         * target.h (struct gcc_target): Update signature of fold_builtin
7330         field.
7331         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
7332         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
7333         instead of the call expression.
7334         (fold_builtin_call_array): Pass n and argarray directly.
7335         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
7336         consing a list.
7337         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
7338         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
7339         `i' and use it in place of `arity'.
7340         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
7341         Dereference `args' directly.
7342         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
7343
7344 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7345
7346         * doc/sourcebuild.texi (Effective-Target Keywords): Document
7347         3dnow, sse3, sse2.
7348         (Directives): Document optional dg-require-effective-target
7349         selector.
7350
7351 2010-05-19  Richard Guenther  <rguenther@suse.de>
7352
7353         PR lto/44196
7354         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
7355
7356 2010-05-19  Richard Guenther  <rguenther@suse.de>
7357
7358         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
7359         * common.opt (fwhopr=): New.
7360         * opts.c (common_handle_option): Handle OPT_fwhopr.
7361         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
7362         * collect2.c (main): Match -fwhopr*.
7363         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
7364         Execute ltrans stage in parallel when jobs is bigger than 1.
7365
7366 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7367
7368         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
7369         pentiumpro on Solaris 8/x86 with Sun as.
7370         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
7371         hidden alias bug.
7372         (gcc_cv_as_ix86_quad): Check for .quad directive.
7373         * configure: Regenerate.
7374         * config.in: Regenerate.
7375         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
7376
7377 2010-05-19  Martin Jambor  <mjambor@suse.cz>
7378
7379         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
7380         also for indirect edges.  Actual printing moved...
7381         (ipa_print_node_jump_functions_for_edge): ...here.
7382         (ipa_compute_jump_functions): Renamed to
7383         ipa_compute_jump_functions_for_edge and made static.
7384         (ipa_compute_jump_functions): New function.
7385         (make_edge_direct_to_target): Check if the number of arguments on
7386         the newly direct edge is the same as the number of parametrs of
7387         the callee.
7388         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
7389         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
7390         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7391         analysis functions unconditionally, call the new
7392         ipa_analyze_params_uses on the node instead of every edge.
7393
7394 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
7395
7396         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
7397         to tree.
7398         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
7399         also checks for a constant int vs.  non-constant but
7400         loop-invariant steps.
7401         (find_or_create_group): Change the sort algorithm to only consider
7402         steps that are constant ints.
7403         (idx_analyze_ref): Adopt code to handle a tree instead of a
7404         HOST_WIDE_INT for step.
7405         (gather_memory_references_ref): Handle tree instead of int and be
7406         prepared to see a NULL_TREE.
7407         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
7408         prefetches if the step cannot be calculated at compile time.
7409         (issue_prefetch_ref): Issue prefetches for non-constant but
7410         loop-invariant steps.
7411
7412 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
7413
7414         Revert:
7415         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
7416
7417         * tree.h (build_call_list): Remove.
7418         * tree.c (build_call_list): Remove.
7419
7420 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
7421
7422         * tree.h (build_call_list): Remove.
7423         * tree.c (build_call_list): Remove.
7424
7425 2010-05-18  Jan Hubicka  <jh@suse.cz>
7426
7427         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
7428
7429 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
7430
7431         PR rtl-optimization/43332
7432         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
7433
7434 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
7435
7436         * tree.h (build_int_cstu): Implement as static inline.
7437         * tree.c (build_int_cstu): Remove function.
7438         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
7439         sign extended.
7440
7441 2010-05-18  Richard Guenther  <rguenther@suse.de>
7442
7443         PR lto/44143
7444         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
7445         (debug): Initialize from -save-temps.
7446         (collect_execute): Print command-line when verbose.
7447         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
7448         for ltrans invocation.  Produce -dumpbase flag again.
7449         (process_args): Remove.
7450         (main): Simplify.
7451         * collect2.c (maybe_run_lto_and_relink): Only pass object
7452         files to lto-wrapper.
7453         * gcc.c (LINK_COMMAND_SPEC): Likewise.
7454
7455 2010-05-18  Jan Hubicka  <jh@suse.cz>
7456
7457         * opts.c (decode_options): Do not disable whopr at ipa_cp.
7458         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
7459
7460 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
7461
7462         PR lto/44184
7463         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
7464         in a GIMPLE_ASM.
7465         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
7466         in a GIMPLE_ASM.
7467
7468 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
7469
7470         PR debug/41371
7471         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
7472         rtx_equal_p inline.
7473
7474 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
7475
7476         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
7477         lto-macho as lto_binary_reader.
7478
7479         * darwin.c (darwin_asm_named_section): Do not add assembler comment
7480         after .section directive; just print it before the directive instead.
7481
7482 2010-05-17  Jan Hubicka  <jh@suse.cz>
7483
7484         * cgraph.c (cgraph_create_virtual_clone): Only check
7485         versionable_function_p when not in wpa and checking is enabled.
7486         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
7487         there are no more functions to materialize.
7488
7489 2010-05-17  Jan Hubicka  <jh@suse.cz>
7490
7491         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
7492         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
7493         New functions.
7494         (output_cgraph): Call output_cgraph_opt_summary.
7495         (input_cgrpah): Call input_cgraph_opt_summary.
7496         (output_cgraph_opt_summary_p, output_node_opt_summary,
7497         input_node_opt_summary, input_cgraph_opt_section): New functions.
7498         * lto-section-in.c (lto_section_name): Add cgraphopt.
7499         * tree-inline.c (tree_function_versioning): Handle parm_num.
7500         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
7501         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
7502
7503 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
7504
7505         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
7506         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
7507         the insn to prefetch ratio heuristic to loops with known trip count.
7508
7509 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
7510
7511         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
7512         (schedule_prefetches): Do not generate a prefetch if the unroll factor
7513         is far from what is required by the prefetch.
7514
7515 2010-05-17  Jan Hubicka  <jh@suse.cz>
7516
7517         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
7518         (ipcp_estimate_growth): Likewise.
7519         (ipcp_const_param_count): Likewise.
7520         (ipcp_insert_stage): Likewise.
7521         * ipa-prop.c (visit_load_for_mod_analysis): New function.
7522         (visit_store_addr_for_mod_analysis): Set used flag.
7523         (ipa_detect_param_modifications): Set used flag for SSE params;
7524         update use of walk_stmt_load_store_addr_ops.
7525         (ipa_print_node_params): Print used flag.
7526         (ipa_write_node_info): Stream used flag.
7527         (ipa_read_node_info): Likewise.
7528         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
7529         (ipa_is_param_used): New function.
7530         (lto_ipa_fixup_call_notes): Remove unused declaration.
7531
7532 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7533
7534         PR target/44074
7535         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
7536         * configure: Regenerate.
7537         * config.in: Regenerate.
7538         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
7539         !HAVE_AS_IX86_REP_LOCK_PREFIX.
7540         Don't emit whitespace.
7541         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
7542         (*rep_movsi): Likewise.
7543         (*rep_movsi_rex64): Likewise.
7544         (*rep_movqi): Likewise.
7545         (*rep_movqi_rex64): Likewise.
7546         (*rep_stosdi_rex64): Likewise.
7547         (*rep_stossi): Likewise.
7548         (*rep_stossi_rex64): Likewise.
7549         (*rep_stosqi): Likewise.
7550         (*rep_stosqi_rex64): Likewise.
7551         (*cmpstrnqi_nz_1): Use {%;} after repz.
7552         (*cmpstrnqi_nz_rex_1): Likewise.
7553         (*cmpstrnqi_1): Likewise.
7554         (*cmpstrnqi_rex_1): Likewise.
7555         (*strlenqi_1): Use {%;} after repnz.
7556         (*strlenqi_rex_1): Likewise.
7557         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
7558         (*sync_compare_and_swap<mode>): Likewise.
7559         (sync_double_compare_and_swap<mode>): Likewise.
7560         (*sync_double_compare_and_swapdi_pic): Likewise.
7561         (sync_old_add<mode>): Likewise.
7562         (sync_add<mode>): Likewise.
7563         (sync_sub<mode>): Likewise.
7564         (sync_<code><mode>): Likewise.
7565
7566 2010-05-17  Martin Jambor  <mjambor@suse.cz>
7567
7568         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
7569         otr_token and polymorphic.
7570         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
7571         (cgraph_clone_edge): Copy the above fields.
7572         * tree.c (get_binfo_at_offset): New function.
7573         * tree.h (get_binfo_at_offset): Declare.
7574         * ipa-prop.h (enum jump_func_type): Added known_type jump function
7575         type, reordered items, updated comments.
7576         (union jump_func_value): Added base_type field, reordered fields.
7577         (enum ipa_lattice_type): Moved down in the file.
7578         (struct ipa_param_descriptor): New field polymorphic.
7579         (ipa_is_param_polymorphic): New function.
7580         * ipa-prop.c: Include gimple.h and gimple-fold.h.
7581         (ipa_print_node_jump_functions): Print known type jump functions.
7582         (compute_complex_pass_through): Renamed to...
7583         (compute_complex_assign_jump_func): this.
7584         (compute_complex_ancestor_jump_func): New function.
7585         (compute_known_type_jump_func): Likewise.
7586         (compute_scalar_jump_functions): Create known type and complex ancestor
7587         jump functions.
7588         (ipa_note_param_call): New parameter polymorphic, set the corresponding
7589         flag in the call note accordingly.
7590         (ipa_analyze_call_uses): Renamed to...
7591         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
7592         variable var only in the block where it is used.
7593         (ipa_analyze_virtual_call_uses): New function.
7594         (ipa_analyze_call_uses): Likewise.
7595         (combine_known_type_and_ancestor_jfs): Likewise.
7596         (update_jump_functions_after_inlining): Implemented handling of a
7597         number of new jump function types combination.
7598         (print_edge_addition_message): Removed.
7599         (make_edge_direct_to_target): New function.
7600         (try_make_edge_direct_simple_call): Likewise.
7601         (try_make_edge_direct_virtual_call): Likewise.
7602         (update_call_notes_after_inlining): Renamed to...
7603         (update_indirect_edges_after_inlining): this.  Moved edge creation for
7604         indirect calls to try_make_edge_direct_simple_call, also calls
7605         try_make_edge_direct_virtual_call for virtual calls.
7606         (ipa_print_node_params): Changed the header message.
7607         (ipa_write_jump_function): Stream also known type jump functions.
7608         (ipa_read_jump_function): Likewise.
7609         (ipa_write_indirect_edge_info): Stream new fields in
7610         cgraph_indirect_call_info.
7611         (ipa_read_indirect_edge_info): Likewise.
7612         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
7613         GIMPLE_FOLD_H.
7614
7615 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7616
7617         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
7618
7619 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
7620
7621         * tree.h (CALL_EXPR_ARGS): Delete.
7622         (call_expr_arglist): Delete.
7623         * tree.c (call_expr_arglist): Delete.
7624         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
7625         targetm.fold_builtin.
7626         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
7627         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
7628         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
7629         arglist parameter.  Use CALL_EXPR_ARG.
7630         (picochip_expand_builtin_3op): Likewise.
7631         (picochip_expand_builtin_2opvoid): Likewise.
7632         (picochip_expand_array_get): Likewise.
7633         (picochip_expand_array_put): Likewise.
7634         (picochip_expand_array_testport): Likewise.
7635         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
7636         rather than arglist.
7637         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
7638         CALL_EXPR_ARGS.
7639         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
7640         than TREE_VALUE and TREE_CHAIN.
7641         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
7642         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
7643         the arglist.
7644
7645 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
7646
7647         PR bootstrap/42347
7648         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
7649         to have no fallthru edge.
7650
7651         PR middle-end/44102
7652         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
7653         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
7654         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
7655         add BARRIER after previous bb if needed.
7656
7657 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
7658
7659         * tree.c (build_function_type_list_1): Remove bogus assert condition.
7660
7661 2010-05-17  Alan Modra  <amodra@gmail.com>
7662
7663         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
7664         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
7665         with copy_reg rtx param.
7666         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
7667         Correct cases where code for ABI_V4 did not initialise the reg
7668         used to access frame.  Also leave frame_reg_rtx as sp for large
7669         frames that save no regs.
7670
7671 2010-05-17  Martin Jambor  <mjambor@suse.cz>
7672
7673         PR middle-end/44133
7674         * tree-sra.c (create_access_replacement): New parameter rename, mark
7675         the replaement for renaming only when it is true.
7676         (get_access_replacement): Pass true in the rename parameter of
7677         create_access_replacement.
7678         (get_unrenamed_access_replacement): New function.
7679         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
7680         replacement declaration from it.
7681
7682 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
7683
7684         * function.c (try_fit_stack_local, add_frame_space): New static
7685         functions.
7686         (assign_stack_local_1): Use them.  Look for opportunities to use
7687         space previously wasted on alignment.
7688         * function.h (struct frame_space): New.
7689         (struct rtl_data): Add FRAME_SPACE_LIST member.
7690         * reload1.c (something_was_spilled): New static variable.
7691         (alter_reg): Set it.
7692         (reload): Test it in addition to testing if the frame size changed.
7693
7694 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
7695
7696         * config/s390/s390.c: Define sane prefetch settings and activate
7697         flag_prefetch_loop_arrays on -O3.
7698         * config/s390/s390.h: Declare that read can use write prefetch.
7699
7700 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
7701
7702         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
7703         build.
7704
7705 2010-05-16  Jan Hubicka  <jh@suse.cz>
7706
7707         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
7708         function body; do not check stdarg field of struct function.
7709
7710 2010-05-16  Jan Hubicka  <jh@suse.cz>
7711
7712         * cgraph.c (dump_cgraph_node): Dump versionable flag.
7713         * cgraph.h (cgraph_local_info): Add versionable flag.
7714         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
7715         (ipcp_versionable_function_p): Use it.
7716         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
7717         versionable flag.
7718
7719 2010-05-16  Jan Hubicka  <jh@suse.cz>
7720
7721         * cgraph.c (cgraph_clone_node): Take decl argument and insert
7722         clone into hash when it is different from orig.
7723         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
7724         * cgraph.h (cgraph_clone_node): Update prototype.
7725         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
7726         (lto_cgraph_encoder_delete): Delete body map.
7727         (lto_cgraph_encoder_size): Move to header.
7728         (lto_cgraph_encoder_encode_body_p,
7729         lto_set_cgraph_encoder_encode_body): New.
7730         (lto_output_node): Do not take written_decls argument; output clone_of
7731         pointer.
7732         (add_node_to): Add include_body_argument; call
7733         lto_set_cgraph_encoder_encode_body on master of the clone.
7734         (add_references): Update use of add_node_to.
7735         (compute_ltrans_boundary): Likewise.
7736         (output_cgraph): Do not create written_decls bitmap.
7737         (input_node): Take nodes argument; stream in clone_of correctly.
7738         (input_cgraph_1): Update use of input_node.
7739         * lto-streamer-out.c (lto_output): Use encoder info to decide
7740         what bodies to output.
7741         * ipa-inline.c (cgraph_clone_inlined_nodes,
7742         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
7743         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
7744         (lto_cgraph_encoder_size): Define here.
7745         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
7746         Declare.
7747
7748 2010-05-16  Richard Guenther  <rguenther@suse.de>
7749
7750         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
7751         -fipa-type-escape.
7752         * ipa-type-escape.c (gate_type_escape_vars): Run when
7753         -fipa-struct-reorg runs.
7754         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
7755         * common.opt (fipa-type-escape): Remove.
7756
7757 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
7758
7759         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
7760         (decode_options): Likewise.
7761         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
7762
7763 2010-05-16  Jan Hubicka  <jh@suse.cz>
7764
7765         * ipa.c (function_and_variable_visibility): Also bring local all
7766         aliases.
7767
7768 2010-05-16  Richard Guenther  <rguenther@suse.de>
7769
7770         * alias.c (nonoverlapping_memrefs_p): Remove use of
7771         IPA type-escape information.
7772
7773 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
7774
7775         * c-common.c (c_common_reswords): Add _Static_assert for C.
7776         * c-parser.c (c_token_starts_declaration,
7777         c_parser_next_token_starts_declaration,
7778         c_parser_static_assert_declaration_no_semi,
7779         c_parser_static_assert_declaration): New.
7780         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
7781         Handle static assertions if static_assert_ok.
7782         (c_parser_external_declaration, c_parser_declaration_or_fndef,
7783         c_parser_compound_statement_nostart, c_parser_label,
7784         c_parser_for_statement, c_parser_objc_methodprotolist,
7785         c_parser_omp_for_loop): All callers of
7786         c_parser_declaration_or_fndef changed.
7787         (c_parser_struct_declaration): Handle static assertions.
7788         (c_parser_compound_statement_nostart): Use
7789         c_parser_next_token_starts_declaration and
7790         c_token_starts_declaration to detect start of declarations.
7791         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
7792         Likewise.
7793
7794 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
7795
7796         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7797         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7798         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7799         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7800         (mmix_function_outgoing_value): Rename to...
7801         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
7802         (mmix_function_value_regno_p): Make static.
7803         (mmix_libcall_value): New function.
7804         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
7805         mmix_function_value_regno_p): Remove declaration.
7806
7807 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
7808
7809         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
7810         BUILT_IN_ALLOCA if stack checking is enabled.
7811
7812 2010-05-16  Richard Guenther  <rguenther@suse.de>
7813
7814         * var-tracking.c (vars_copy_1): Inline ...
7815         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
7816         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
7817         (variable_merge_over_cur): Adjust.  Merge asserts.
7818         (variable_merge_over_src): Likewise.
7819         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
7820         (variable_post_merge_new_vals): Merge asserts.
7821         (variable_post_merge_perm_vals): Likewise.
7822         (find_mem_expr_in_1pdv): Likewise.
7823         (dataflow_set_different_value): Remove.
7824         (onepart_variable_different_p): Merge asserts.
7825         (variable_different_p): Likewise.
7826         (dataflow_set_different_1): Inline ...
7827         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
7828         (emit_notes_for_differences_1): Merge asserts.
7829
7830 2010-05-16  Richard Guenther  <rguenther@suse.de>
7831
7832         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
7833         * optabs.c (libfunc_decl_hash): Likewise.
7834         * varasm.c (emutls_decl): Likewise.
7835
7836 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
7837
7838         * c-decl.c: Don't include gimple.h.
7839         (merge_decls): Do not copy gimple_body.
7840
7841 2010-05-15  Jason Merrill  <jason@redhat.com>
7842
7843         * c.opt: Add -fnothrow-opt.
7844
7845 2010-05-15  Jan Hubicka  <jh@suse.cz>
7846
7847         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
7848         analyzed.
7849         * passes.c (ipa_write_summaries): Write all analyzed nodes.
7850
7851 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
7852
7853         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
7854         * Makefile.in: Add it.
7855         Fix all other Makefile dependencies for changes below.
7856         * tree.h: Include it instead of defining VEC primitives here.
7857         * gimple.h: Likewise.
7858         * rtl.h: Likewise.
7859         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
7860         * except.h: Include vecir.h, break dependence on tree.h.
7861
7862         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
7863         Move from here...
7864         * tree-iterator.c: ...to here.
7865         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
7866
7867         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
7868         tm_p.h.
7869         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
7870         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
7871         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
7872         tree-mudflap.h, and target.h.
7873         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
7874         predict.h, tree-inline.h, gimple.h, and langhooks.h.
7875         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
7876         Add FIXME for why gimple.h is still included (should be unnecessary
7877         since GCC 4.5 gimplification unit-at-a-time).
7878         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
7879         * c-pragma.c: Add FIXME for why function.h needs to be included just
7880         for cfun, at front-end level.
7881         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
7882         Do not include ggc.h, but include vecprim.h for VEC(char).
7883         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
7884         Explain why target.h is included.
7885         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
7886         Explain why gimple.h is included.
7887         * c-ppoutput.c: Do not include tm.h.
7888         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
7889         * c-parses.c: Explain why rtl.h is included, and that this (and only
7890         this) is also why tm.h must be included.
7891         Do not include except.h.
7892         * c-lang.c: Do not include ggc.h.
7893
7894 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
7895
7896         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
7897
7898 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
7899
7900         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
7901         unions by default if those structs and unions have no tags.  Do
7902         not condition anonymous struct and unions handling on flag_iso.
7903         Allow anonymous structs and unions for C1X.
7904         (finish_struct): Do not diagnose lack of named fields when
7905         anonymous structs and unions present for C1X.  Accept flexible
7906         array members in structure with anonymous structs or unions but no
7907         directly named fields.
7908         * doc/extend.texi (Unnamed Fields): Update.
7909
7910 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
7911
7912         * gimple.h (compare_field_offset): Rename into...
7913         (gimple_compare_field_offset): ...this.
7914         * gimple.c (compare_field_offset): Rename into...
7915         (gimple_compare_field_offset): ...this.  Compare the full access if
7916         the offset is self-referential.
7917         (gimple_types_compatible_p): Adjust for above renaming.
7918         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
7919         DECL_NONADDRESSABLE_P flag of fields before merging them.
7920
7921 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
7922
7923         * tree.h (ctor_to_list): Delete.
7924         * tree.c (ctor_to_list): Delete.
7925
7926 2010-05-15  Jan Hubicka  <jh@suse.cz>
7927
7928         * ipa-reference.c: Include toplev.h
7929         (is_proper_for_analysis): Only add to all_module_statics
7930         if it is allocated.
7931         (write_node_summary_p, stream_out_bitmap,
7932         ipa_reference_write_optimization_summary,
7933         ipa_reference_read_optimization_summary): New.
7934         (struct ipa_opt_pass_d pass_ipa_reference): Add
7935         optimization summary streaming.
7936         * lto-cgraph.c (referenced_from_this_partition_p,
7937         reachable_from_this_partition_p): New functions.
7938         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
7939         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
7940         * opts.c (decode_options): Enable ipa_reference.
7941         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
7942         * lto-streamer.h (referenced_from_this_partition_p,
7943         reachable_from_this_partition_p): Declare.
7944
7945 2010-05-15  Richard Guenther  <rguenther@suse.de>
7946
7947         PR tree-optimization/44038
7948         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
7949         taking the address of a V_C_E of a constant.
7950
7951 2010-05-14  Jan Hubicka  <jh@suse.cz>
7952
7953         * tree.h (memory_identifier_string): Remove.
7954         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
7955         (ipa_reference_global_vars_info_d): Remove statics_not_read and
7956         statics_not_written.
7957         (ipa_reference_optimization_summary_d): New structure.
7958         (ipa_reference_optimization_summary_t): New type and vector.
7959         (ipa_reference_vars_info_d): Embedd structures instead of using
7960         pointers.
7961         (reference_vars_to_consider): Remove out of GGC space.
7962         (module_statics_escape): Remove.
7963         (global_info_obstack): Rename to ...
7964         (optimization_summary_obstack): ... this one.
7965         (initialization_status_t): Remove.
7966         (memory_identifier_string): Remove.
7967         (get_reference_vars_info): Fix indenting.
7968         (set_reference_vars_info): Likewise.
7969         (get_reference_optimization_summary): New.
7970         (set_reference_optimization_summary): New.
7971         (get_global_reference_vars_info): Remove.
7972         (ipa_reference_get_read_global): Remove.
7973         (ipa_reference_get_written_global): Remove.
7974         (ipa_reference_get_not_read_global): Update.
7975         (ipa_reference_get_not_written_global): Update.
7976         (is_proper_for_analysis): Outlaw addressable.
7977         (propagate_bits): Update for new datastructures.
7978         (analyze_variable): Remove.
7979         (init_function_info): Update for new datastructures.
7980         (clean_function_local_data): Remove.
7981         (clean_function): Remove.
7982         (copy_global_bitmap): Use optimizations_summary_obstack.
7983         (duplicate_node_data): Duplicate optimization summary only.
7984         (remove_node_data): Remove optimization summary only.
7985         (generate_summary): Do not analyze variables; do not compute
7986         module_statics_escape; do not prune solutions by it.
7987         (read_write_all_from_decl): Fix typos in comments.
7988         (propagate): Doscover readonly and nonaddressable first;
7989         update for new datastructures; share global bitmaps.
7990         * ipa-reference.h (ipa_reference_get_read_global,
7991         ipa_reference_get_written_global): Remove.
7992         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
7993         * Makefile.in: Remove ipa-refereference from GT files.
7994
7995 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
7996
7997         PR debug/44112
7998         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
7999         for all SYMBOL_REF_DECLs.
8000
8001 2010-05-14  Jan Hubicka  <jh@suse.cz>
8002
8003         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
8004         (varpool_all_refs_explicit_p): New inline function.
8005         * ipa-reference.c: Update comment.
8006         (module_statics_written): Remove.
8007         (get_static_decl): Remove.
8008         (ipa_init): Do not initialize module_statics_written.
8009         (analyze_function): Likewise.
8010         (generate_summary): Likewise; do not compute module_statics_readonly
8011         and do not update variable flags.
8012         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
8013         * ipa.c: Inlucde flags.h
8014         (cgraph_local_node_p): New.
8015         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
8016         promote functions to local.
8017         (ipa_discover_readonly_nonaddressable_vars): New function.
8018         (function_and_variable_visibility): Use cgraph_local_node_p.
8019         * varpool.c (varpool_finalize_decl): Set force_output for
8020         DECL_PRESERVE_P vars.
8021
8022 2010-05-14  Jan Hubicka  <jh@suse.cz>
8023
8024         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
8025
8026 2010-05-14  Richard Guenther  <rguenther@suse.de>
8027
8028         PR tree-optimization/44119
8029         * tree-ssa-pre.c (eliminate): Properly mark replacement of
8030         a PHI node necessary.
8031
8032 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
8033
8034         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
8035
8036 2010-05-14  Jason Merrill  <jason@redhat.com>
8037
8038         PR c++/44127
8039         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
8040         (gimple_call_set_nothrow): New.
8041         * gimple.c (gimple_build_call_from_tree): Call it.
8042         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
8043
8044         PR c++/44127
8045         * gimplify.c (gimplify_seq_add_stmt): No longer static.
8046         * gimple.h: Declare it.
8047         * gimple.c (gimple_build_eh_filter): No ops.
8048
8049 2010-05-14  Jan Hubicka  <jh@suse.cz>
8050
8051         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
8052         nodes already in queue.
8053         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
8054         re-enqueueing node.
8055
8056 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
8057
8058         PR debug/44136
8059         * cfgexpand.c (expand_debug_expr): If non-memory op0
8060         has BLKmode, return NULL.
8061
8062 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
8063
8064         * config.gcc: Add support for --with-cpu option for bdver1.
8065         * config/i386/i386.h (TARGET_BDVER1): New macro.
8066         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
8067         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8068         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
8069         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8070         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
8071         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
8072         (processor_type): Add PROCESSOR_BDVER1.
8073         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
8074         processor_type in config/i386/i386.h.
8075         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
8076         movaps <reg, reg> instead of movapd <reg, reg> when replacing
8077         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
8078         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
8079         to emit packed xor instead of packed double/packed integer
8080         xor for SSE and AVX when moving a zero value.
8081         * config/i386/sse.md: Add check for
8082         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
8083         movapd/movdqa for SSE and AVX.
8084         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
8085         single logical operations i.e and, or and xor instead of packed double
8086         logical operations for SSE and AVX.
8087         * config/i386/i386-c.c (ix86_target_macros_internal):
8088         Add PROCESSOR_BDVER1.
8089         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
8090         (has_fma4, has_xop): New.
8091         * config/i386/i386.c (bdver1_cost): New variable.
8092         (m_BDVER1): New macro.
8093         (m_AMD_MULTIPLE): Add m_BDVER1.
8094         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
8095         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
8096         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
8097         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
8098         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
8099         x86_tune_sse_partial_reg_dependency,
8100         x86_tune_sse_unaligned_load_optimal,
8101         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
8102         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
8103         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
8104         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
8105         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
8106         Enable/disable for bdver1.
8107         (processor_target_table): Add bdver1_cost.
8108         (cpu_names): Add bdver1.
8109         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
8110          processor_alias_table.
8111         (ix86_expand_vector_move_misalign): Change.
8112         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
8113         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
8114         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
8115         of movupd/movdqu for SSE and AVX.
8116         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
8117         (ix86_tune_adjust_cost): Add code for bdver1.
8118         (standard_sse_constant_opcode): Add check for
8119         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
8120         of packed double xor for SSE and AVX.
8121
8122 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
8123
8124         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
8125         result to unsigned.
8126
8127 2010-05-14  Tristan Gingold  <gingold@adacore.com>
8128
8129         * toplev.c (default_debug_hooks): Remove this variable.
8130         (process_options): Remove assignments to default_debug_hooks.
8131
8132 2010-05-14  Martin Jambor  <mjambor@suse.cz>
8133
8134         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
8135         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
8136         * langhooks.h (struct lang_hooks_for_decls): Removed field
8137         fold_obj_type_ref.
8138         * tree.c (free_lang_data): Remove assignment to
8139         lang_hooks.fold_obj_type_ref.
8140         * tree.def (OBJ_TYPE_REF): Update comment.
8141
8142 2010-05-14  Richard Guenther  <rguenther@suse.de>
8143
8144         PR tree-optimization/44124
8145         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
8146
8147 2010-05-14  Alan Modra  <amodra@gmail.com>
8148
8149         PR target/44075
8150         * config/rs6000/rs6000.c (struct machine_function): Reorder
8151         fields for better packing.  Add lr_save_state.
8152         (rs6000_ra_ever_killed): Return lr_save_state if set.
8153         (rs6000_emit_eh_reg_restore): Set lr_save_state.
8154
8155 2010-05-13  Jan Hubicka  <jh@suse.cz>
8156
8157         * varpool.c (decide_is_variable_needed): Drop code checking
8158         TREE_SYMBOL_REFERENCED.
8159
8160 2010-05-13  Jan Hubicka  <jh@suse.cz>
8161
8162         * final.c (output_addr_const): Do not call mark_decl_referenced.
8163         * cgraphunit.c (process_function_and_variable_attributes): Use
8164         mark_needed_node dirrectly.
8165         (assemble_thunk): Do not call mark_decl_referenced.
8166
8167 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
8168
8169         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
8170
8171 2010-05-13  Jeff Law  <law@redhat.com>
8172
8173         * ira-conflicts.c (print_allocno_conflicts): New function broken out
8174         from...
8175         (print_conflicts): Call print_allocno_conflicts.
8176
8177 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
8178
8179         PR debug/44104
8180         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
8181         if it is NULL.
8182
8183 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
8184
8185         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
8186         t-mingw-w64 or t-mingw-w32 for multilib configuration.
8187         * config/i386/t-mingw-w32: New.
8188         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
8189
8190 2010-05-13  Martin Jambor  <mjambor@suse.cz>
8191
8192         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
8193         gimple-fold.c).
8194         * gimple-fold.c (get_base_binfo_for_type): New function.
8195         (gimple_get_relevant_ref_binfo): Likewise.
8196         (gimple_fold_obj_type_ref_known_binfo): Likewise.
8197         (gimple_fold_obj_type_ref): Likewise.
8198         (fold_gimple_call): Simplify condition for folding virtual calls
8199         and call gimple_fold_obj_type_ref.
8200         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
8201         (gimple_fold_obj_type_ref_known_binfo): Likewise.
8202
8203 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
8204
8205         * config/rs6000/rs6000-protos.h
8206         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
8207         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
8208         (rs6000_debug_mode_dependent_address)
8209         (rs6000_mode_dependent_address_ptr): Likewise.
8210
8211 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
8212
8213         PR debug/43983
8214         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
8215         by SRA.
8216         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
8217         * tree-sra.c (create_access_replacement): Call unshare_expr before
8218         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
8219         * dwarf2out.c: Include tree-flow.h.
8220         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
8221         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
8222         Handle DW_OP_bit_piece.
8223         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
8224         construct_piece_list, adjust_piece_list): New functions.
8225         (add_var_loc_to_decl): Handle SRA optimized variables.
8226         Adjust for var_loc_note to loc field renaming.
8227         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
8228         in VAR_LOCATION note.
8229         (new_loc_descr_op_bit_piece): New function.
8230         (dw_sra_loc_expr): New function.
8231         (dw_loc_list): Use it.  Don't handle the last range after the
8232         loop, handle it inside of the loop.  Adjust for var_loc_note
8233         to loc field renaming.
8234         (add_location_or_const_value_attribute): Only special case
8235         single entry loc lists if loc is NOTE_P.  Adjust for
8236         var_loc_note to loc field renaming.
8237         (dwarf2out_var_location): Don't set newloc->var_loc_note
8238         and newloc->next here.
8239
8240 2010-05-12  Jan Hubicka  <jh@suse.cz>
8241
8242         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
8243         flag.
8244         * cgraph.h (cgraph_only_called_directly_p,
8245         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
8246         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
8247         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
8248         (assemble
8249         * ipa.c (cgraph_remove_unreachable_nodes): Use
8250         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
8251         flags.
8252         * tree-inline.c (copy_bb): Check address_taken flag.
8253         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
8254         externally_visible flag.
8255
8256 2010-05-12  Jason Merrill  <jason@redhat.com>
8257
8258         PR bootstrap/44048
8259         PR target/44099
8260         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
8261         * sdbout.c (plain_type_1): Likewise.
8262         * dwarf2out.c (is_base_type): Likewise.
8263         (gen_type_die_with_usage): Likewise.  Generate
8264         DW_TAG_unspecified_type for any LANG_TYPE.
8265
8266 2010-05-12  Jan Hubicka  <jh@suse.cz>
8267
8268         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
8269         indrect edges too.
8270         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
8271         (cgraph_clone_edge): Update.
8272         (cgraph_node_remove_callees): Remove indirect calls too.
8273         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
8274         (cgraph_create_indirect_edge): Update prototype.
8275         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
8276         is_proper_for_analysis.
8277         (add_new_function, visited_nodes, function_insertion_hook_holder,
8278         get_local_reference_vars_info, mark_address_taken, mark_address,
8279         mark_load, mark_store, check_asm_memory_clobber, check_call,
8280         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
8281         (ipa_init): Do not initialize visited_nodes;
8282         function_insertion_hook_holder.
8283         (analyze_variable): Rewrite.
8284         (analyze_function): Rewrite.
8285         (copy_local_bitmap): Remove.
8286         (duplicate_node_dat): Do not duplicate local info.
8287         (generate_summary): Simplify to only walk cgraph.
8288         (write_node_summary_p, ipa_reference_write_summary,
8289         ipa_reference_read_summary): Remove.
8290         (propagate): Do not remove function insertion;
8291         generate summary.
8292         (pass_ipa_reference): NULLify summary handling fields.
8293         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
8294         (input_edge): Input ecf_flags.
8295         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
8296         (update_indirect_edges_after_inlining): Ignore edges with unknown
8297         param.
8298
8299 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
8300
8301         * implicit-zee.c: New file.
8302         * tree-pass.h (pass_implicit_zee): Declare.
8303         * passes.c (init_optimization_passes): Add zee pass.
8304         * common.opt (fzee): New flag.
8305         * timevar.def (TV_ZEE): Define.
8306         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
8307         and beyond.
8308         * Makefile.in (implicit-zee.o): Add new build file.
8309
8310 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
8311             Nathan Froyd  <froydnj@codesourcery.com>
8312
8313         * c-common.c (sync_resolve_params): Remove write-only variable.
8314
8315 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
8316
8317         * target.h (struct gcc_target): Add mode_dependent_address_p field.
8318         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
8319         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
8320         * targhooks.c (default_mode_dependent_address_p): New function.
8321         * targhooks.h (default_mode_dependent_address_p): Declare function.
8322         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
8323         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
8324         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
8325         target hook. Change return type to bool.
8326         * recog.h (mode_dependent_address_p): Change return type to bool.
8327
8328 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
8329             Nathan Froyd  <froydnj@codesourcery.com>
8330
8331         * tree-mudflap.c (build_function_type_0, build_function_type_1,
8332         build_function_type_2, build_function_type_3): Remove.
8333         (mudflap_init): Use build_function_type_list.
8334
8335 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
8336             Nathan Froyd  <froydnj@codesourcery.com>
8337
8338         * coverage.c (build_fn_info_value): Call build_constructor instead of
8339         build_constructor_from_list.
8340         (build_ctr_info_value): Likewise.
8341         (build_gcov_info): Likewise.
8342
8343 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
8344
8345         * tree.c (build_constructor): Compute TREE_CONSTANT for the
8346         resultant constructor.
8347         (build_constructor_single): Don't set TREE_CONSTANT.
8348         (build_constructor_from_list): Don't compute TREE_CONSTANT.
8349
8350 2010-05-12  Jan Hubicka  <jh@suse.cz>
8351
8352         * cgraph.h (struct varpool_node): Add aux.
8353         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
8354         * varpool.c (varpool_remove_node): Do not remove initializer.
8355         (varpool_reset_queue): Export.
8356         (varpool_finalize_decl): Volatile vars are forced to be output.
8357         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
8358         replaced decl.
8359         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
8360         process_references, varpool_can_remove_if_no_refs): New functions.
8361         (cgraph_remove_unreachable_nodes): Handle variables too.
8362
8363 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
8364
8365         PR target/44088
8366         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
8367
8368 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
8369
8370         PR middle-end/44085
8371         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
8372         change value of ORT_TASK.
8373         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
8374         (omp_notice_threadprivate_variable): New function.
8375         (omp_notice_variable): Call it for threadprivate variables.
8376         If enclosing ctx is a task, print enclosing task rather than
8377         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
8378         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
8379         if task has untied clause.
8380
8381         PR debug/42278
8382         * dwarf2out.c (base_type_die): Don't add name attribute here.
8383         (modified_type_die): Instead of sizetype use
8384         its underlying original type.  If a DW_TAG_base_type doesn't
8385         have name added, add __unknown__.
8386         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
8387         always call force_type_die instead.
8388
8389 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
8390
8391         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
8392         for __stack_chk_guard.
8393
8394 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
8395
8396         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
8397         don't call start_source_file debug hook here...
8398         (finish_options): ... but here, after outputting predefined and
8399         command line defines and undefs.
8400
8401         PR middle-end/44071
8402         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
8403         no fallthru edge.
8404         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
8405         optimizing away empty bb with no successors, move over its
8406         footer chain to fallthru predecessor.
8407         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
8408         (rtl_split_edge): For asm goto call patch_jump_insn even if
8409         splitting fallthru edge.
8410
8411         PR c++/44059
8412         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
8413         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
8414         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
8415         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
8416         on DW.ref.* decls.
8417
8418         PR c++/44062
8419         * c-parser.c (c_parser_expression): Mark LHS of a comma
8420         expression as read if it is a decl, handled component or
8421         COMPOUND_EXPR with that on the RHS.
8422         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
8423         if it is a decl or handled component.
8424
8425 2010-05-11  Jan Hubicka  <jh@suse.cz>
8426
8427         * lto-symtab.c (lto_symtab_free): New function.
8428         * lto-streamer.h (lto_symtab_free): Declare.
8429
8430 2010-05-11  Jan Hubicka  <jh@suse.cz>
8431
8432         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
8433         that if function is needed it is reachable.
8434         (lto_output_node): See if it the function is reachable or referenced.
8435         (output_cgraph): Update call of lto_output_node.
8436         * lto-streamer.h (reachable_from_other_partition_p): Declare.
8437
8438 2010-05-11  Jan Hubicka  <jh@suse.cz>
8439
8440         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
8441         Mark as used.
8442
8443 2010-05-11  Jan Hubicka  <jh@suse.cz>
8444
8445         PR tree-optimize/44063
8446         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
8447         queue.
8448         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
8449         limits.
8450         (estimate_function_body_sizes): Compute sizes even when disregarding.
8451
8452 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
8453
8454         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
8455
8456 2010-05-11  Jan Hubicka  <jh@suse.cz>
8457
8458         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
8459         into every boundary.
8460
8461 2010-05-11  Jan Hubicka  <jh@suse.cz>
8462
8463         * matrix-reorg.c (matrix_reorg): Rebuild edges.
8464
8465 2010-05-11  Jan Hubicka  <jh@suse.cz>
8466
8467         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
8468         lto_streamer_cache_delete): Put nodes into heap.
8469         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
8470         heap.
8471
8472 2010-05-11  Jan Hubicka  <jh@suse.cz>
8473
8474         * cgraphbuild.c (cgraph_rebuild_references): New.
8475         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
8476         out extern inlines.
8477         * cgraph.h (cgraph_rebuild_references): Declare.
8478         * tree-inline.c (tree_function_versioning): Use it.
8479         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
8480
8481 2010-05-11  Jan Hubicka  <jh@suse.cz>
8482
8483         * cgraph.c: Include ipa-utils.h
8484         (cgraph_create_virtual_clone): Update references.
8485         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
8486
8487 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
8488
8489         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
8490         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
8491         cache size.
8492
8493 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
8494
8495         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
8496
8497 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
8498
8499         * gcc.c (execute): For -### don't quote arguments that
8500         contain just alphanumerics and _/-. characters.
8501         * doc/invoke.texi: Document that change for -###.
8502
8503         PR debug/44023
8504         * df-problems.c (struct dead_debug): Add to_rescan field.
8505         (dead_debug_init): Clear to_rescan field.
8506         (dead_debug_finish): Rescan all debug insns in to_rescan
8507         bitmap and free the bitmap.
8508         (dead_debug_insert_before): Instead of rescanning debug insns
8509         immediately queue their rescanning until dead_debug_finish.
8510         (df_note_bb_compute): After dead_debug_add do continue instead
8511         of break.
8512
8513 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
8514
8515         PR debug/44028
8516         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
8517         clear also INSN_REG_USE_LIST.
8518
8519 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8520
8521         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
8522
8523 2010-05-10  Jan Hubicka  <jh@suse.cz>
8524
8525         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
8526         commited change.
8527
8528 2010-05-10  Jan Hubicka  <jh@suse.cz>
8529
8530         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
8531         Allocate encoders.
8532         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
8533         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
8534         (lto_streamer_cache_create): Init alloc pool.
8535         (lto_streamer_cache_delete): Free alloc pool.
8536         * lto-streamer.h: Include alloc pool.
8537         (lto_streamer_cache_d): Use alloc pool.
8538         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
8539
8540 2010-05-10  Jan Hubicka  <jh@suse.cz>
8541
8542         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
8543         * cgraphbuild.c: Include except.h
8544         (record_type_list, record_eh_tables): New function.
8545         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
8546
8547 2010-05-10  Jan Hubicka  <jh@suse.cz>
8548
8549         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
8550         __frame_dummy_init_array_entry, force_to_data): Attribute as used
8551         rather than unused.
8552
8553 2010-05-10  Michael Matz  <matz@suse.de>
8554
8555         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
8556         (can_reassociate_p): Use FLOAT_TYPE_P.
8557         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
8558         (vect_force_simple_reduction): ... this.
8559         * tree-parloops.c (gather_scalar_reductions): Use
8560         vect_force_simple_reduction.
8561         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
8562         vect_is_simple_reduction, add modify argument, if true rewrite
8563         "a-b" into "a+(-b)".
8564         (vect_is_simple_reduction, vect_force_simple_reduction): New
8565         functions.
8566         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
8567
8568 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8569             Vladimir Makarov  <vmakarov@redhat.com>
8570
8571         PR rtl-optimization/44012
8572         * ira-build.c (remove_unnecessary_allocnos): Nullify
8573         regno_allocno_map of the removed allocno.
8574
8575 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8576
8577         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
8578         to /dev/null.
8579         * configure: Regenerate.
8580
8581 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8582
8583         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
8584         unused.
8585         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
8586         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
8587         support in Sun ld.
8588         * configure: Regenerate.
8589
8590 2010-05-10  Richard Guenther  <rguenther@suse.de>
8591
8592         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
8593         marked if the entry identifier is marked.
8594
8595 2010-05-10  Richard Guenther  <rguenther@suse.de>
8596
8597         * c-common.c (struct c_common_attributes): Add fnspec attribute.
8598         (handle_fnspec_attribute): New function.
8599         * gimple.h (gimple_call_return_flags): Declare.
8600         (gimple_call_arg_flags): Likewise.
8601         * gimple.c (gimple_call_arg_flags): New function.
8602         (gimple_call_return_flags): Likewise.
8603         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
8604         New argument flags.
8605         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
8606         return value flags.
8607         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
8608         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
8609         main work to ...
8610         (make_heapvar_for): ... this new function.
8611         (handle_rhs_call): Handle fnspec attribute argument specifiers.
8612         (handle_lhs_call): Likewise.
8613         (find_func_aliases): Adjust.
8614
8615 2010-05-10  Richard Guenther  <rguenther@suse.de>
8616
8617         PR tree-optimization/44050
8618         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
8619
8620 2010-05-10  Wei Guozhi  <carrot@google.com>
8621
8622         PR target/42879
8623         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
8624
8625 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
8626
8627         PR c/10676
8628         * c-typeck.c (lookup_field): Take a type directly.  Update
8629         recursive calls.
8630         (build_component_ref): Update call to lookup_field.
8631         (set_init_label): Use lookup_field to find initialized field.
8632         Handle returned list of fields like a sequence of designators.
8633
8634 2010-05-09  Richard Guenther  <rguenther@suse.de>
8635
8636         PR middle-end/44024
8637         * fold-const.c (tree_single_nonzero_warnv_p): Properly
8638         handle &FUNCTION_DECL.
8639
8640 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
8641
8642         PR c/4784
8643         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
8644         structures and unions recursively.
8645         (detect_field_duplicates): Move duplicate detection with a hash to
8646         detect_field_duplicates_hash.  Always use a hash if anonymous
8647         structures or unions are present.
8648         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
8649         give errors.
8650
8651 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8652
8653         PR target/44046
8654         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
8655         detect Atom, Core 2 and Core i7.
8656
8657 2010-05-09  Richard Guenther  <rguenther@suse.de>
8658
8659         * gcc.c (store_arg): Handle temporary file deletion for
8660         joined arguments.
8661
8662 2010-05-09  Richard Guenther  <rguenther@suse.de>
8663
8664         PR middle-end/44043
8665         * ipa-inline.c (estimate_function_body_sizes): Return after
8666         disregarding inline limits.
8667
8668 2010-05-09  Richard Guenther  <rguenther@suse.de>
8669
8670         * gcc.c (store_arg): Revert last change.
8671
8672 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8673
8674         PR middle-end/28685
8675         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
8676         (optimize_ops_list): Call it.
8677
8678 2010-05-08  Richard Guenther  <rguenther@suse.de>
8679
8680         PR tree-optimization/44030
8681         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
8682         NECESSARY flag if we propagate from a inserted expression.
8683
8684 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
8685
8686         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
8687         domain types as equal if they are both PLACEHOLDER_EXPRs.
8688
8689 2010-05-08  Richard Guenther  <rguenther@suse.de>
8690
8691         * lto-wrapper.c (run_gcc): Remove linker output from
8692         command line for LTRANS invocation.
8693
8694 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
8695
8696         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8697         lto-macho as lto_binary_reader.
8698         * target.h (struct gcc_target): New hooks lto_start and lto_end.
8699         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
8700         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
8701         in lto_start and lto_end calls.
8702         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
8703         magic numbers.
8704         (scan_prog_file): Update is_elf_or_coff call.
8705         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
8706
8707         * collect2.c (main): Fix enum comparison.
8708
8709         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
8710         Add prototypes.
8711         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
8712         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
8713         and TARGET_ASM_LTO_END.
8714         * darwin.c: Include obstack.h and lto-streamer.h.
8715         (lto_section_names_offset, lto_section_names_obstack,
8716         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
8717         global variables.
8718         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
8719         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
8720         to a temporary file.
8721         (darwin_asm_lto_end): New function.  Restore asm_out_file.
8722         (darwin_asm_named_section): For LTO sections, replace the name with
8723         the offset of the section name in a string table, and build this
8724         table.
8725         (darwin_file_start): Initialize global vars for LTO support.
8726         (darwin_file_end): If output to asm_out_file was redirected, append it
8727         to the proper asm_out_file here.  Add the section names section.
8728
8729 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
8730
8731         * c-pragma.c (pending_weak_d, pending_weak): New.
8732         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
8733         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
8734         handle_pragma_weak): Update the uses of pending_weaks.
8735
8736 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8737
8738         PR documentation/44016
8739         * doc/standards.texi (Standards): Link to unversioned
8740         cxx0x_status.html page.
8741
8742 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
8743
8744         PR target/43708
8745         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
8746         in addition to TREE_USED, to avoid "set but unused" warnings.
8747
8748 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
8749
8750         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
8751         (is_loop_prefetching_profitable): Do not insert prefetches
8752         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
8753         times the prefetch ahead distance.
8754
8755 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
8756
8757         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
8758         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
8759         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
8760         the unroll_factor.
8761
8762 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
8763
8764         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
8765         a diagnostic info when the insn-to-mem ratio is too small.
8766
8767 2010-05-07  Richard Guenther <rguenther@suse.de>
8768
8769         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
8770         the linker plugin.
8771         (store_arg): Queue temp_filename for deletion instead of
8772         the whole argument.
8773
8774 2010-05-07  Richard Guenther  <rguenther@suse.de>
8775
8776         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
8777         (run_gcc): Handle LTRANS phase invocation.
8778         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
8779
8780 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
8781
8782         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
8783         this is also meaningful on PARM_DECLs and RESULT_DECLs.
8784
8785 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8786
8787         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
8788
8789 2010-05-07  Richard Guenther  <rguenther@suse.de>
8790
8791         PR tree-optimization/44020
8792         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
8793         code when PRE is not yet initialized.
8794
8795 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8796
8797         * config/mips/dbxmdebug.h: Remove.
8798         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
8799
8800 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
8801
8802         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
8803         with null pointer and also warn about ordered comparison of zero with
8804         pointer if -Wextra.
8805
8806 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8807
8808         * graphite-blocking.c
8809         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
8810         * graphite-clast-to-gimple.c
8811         (clast_to_gcc_expression): Same.
8812         (precision_for_value): Same.
8813         (precision_for_interval): Same.
8814         (gcc_type_for_interval): Same.
8815         (graphite_create_new_guard): Same.
8816         (compute_bounds_for_level): Same.
8817         (graphite_create_new_loop_guard): Same.
8818         * graphite-interchange.c
8819         (build_linearized_memory_access): Same.
8820         (pdr_stride_in_loop): Same.
8821         (memory_strides_in_loop_1): Same.
8822         (memory_strides_in_loop): Same.
8823         (extend_scattering): Same.
8824         (psct_scattering_dim_for_loop_depth): Same.
8825         (pbb_number_of_iterations): Same.
8826         * graphite-poly.h
8827         (debug_iteration_domains): Same.
8828         * graphite-ppl.c
8829         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8830         (ppl_set_inhomogeneous_gmp): Same.
8831         (ppl_strip_loop): Same.
8832         (ppl_lexico_compare_linear_expressions): Same.
8833         (ppl_read_polyhedron_matrix): Same.
8834         (ppl_max_for_le_pointset): Same.
8835         * graphite-ppl.h
8836         (ppl_read_polyhedron_matrix): Same.
8837         (tree_int_to_gmp): Same.
8838         (gmp_cst_to_tree): Same.
8839         (ppl_set_inhomogeneous): Same.
8840         (ppl_set_inhomogeneous_tree): Same.
8841         (ppl_set_coef): Same.
8842         (ppl_set_coef_tree): Same.
8843         * graphite-sese-to-poly.c
8844         (build_pbb_scattering_polyhedrons): Same.
8845         (build_scop_scattering): Same.
8846         (scan_tree_for_params_right_scev): Same.
8847         (scan_tree_for_params): Same.
8848         (find_params_in_bb): Same.
8849         (find_scop_parameters): Same.
8850         (add_upper_bounds_from_estimated_nit): Same.
8851         (build_loop_iteration_domains): Same.
8852         (add_condition_to_domain): Same.
8853         (pdr_add_memory_accesses): Same.
8854
8855 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8856
8857         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
8858         CLooG's value_* macros to their respective mpz_* counterparts.
8859         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
8860         (graphite_create_new_loop_guard): Same.
8861         * graphite-interchange.c (build_linearized_memory_access): Same.
8862         (pdr_stride_in_loop): Same.
8863         (memory_strides_in_loop_1): Same.
8864         (1st_interchange_profitable_p): Same.
8865         * graphite-poly.c (extend_scattering): Same.
8866         (psct_scattering_dim_for_loop_depth): Same.
8867         (pbb_number_of_iterations): Same.
8868         (pbb_number_of_iterations_at_time): Same.
8869         * graphite-poly.h (new_1st_loop): Same.
8870         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
8871         (oppose_constraint): Same.
8872         (insert_constraint_into_matrix): Same.
8873         (ppl_set_inhomogeneous_gmp): Same.
8874         (ppl_set_coef_gmp): Same.
8875         (ppl_strip_loop): Same.
8876         (ppl_lexico_compare_linear_expressions): Same.
8877         (ppl_max_for_le_pointset): Same.
8878         (ppl_min_for_le_pointset): Same.
8879         (ppl_build_realtion): Same.
8880         * graphite-ppl.h (gmp_cst_to_tree): Same.
8881         (ppl_set_inhomogeneous): Same.
8882         (ppl_set_inhomogeneous_tree): Same.
8883         (ppl_set_coef): Same.
8884         (ppl_set_coef_tree): Same.
8885         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
8886         (build_scop_scattering): Same.
8887         (add_value_to_dim): Same.
8888         (scan_tree_for_params_right_scev): Same.
8889         (scan_tree_for_params_int): Same.
8890         (scan_tree_for_params): Same.
8891         (find_params_in_bb): Same.
8892         (find_scop_parameters): Same.
8893         (add_upper_bounds_from_estimated_nit): Same.
8894         (build_loop_iteration_domains): Same.
8895         (create_linear_expr_from_tree): Same.
8896         (add_condition_to_domain): Same.
8897         (pdr_add_memory_accesses): Same.
8898
8899 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
8900             Jason Merrill  <jason@redhat.com>
8901
8902         * c-common.c (c_common_reswords): Add nullptr.
8903         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
8904         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
8905         (gen_type_die_with_usage): Likewise.
8906         * dbxout.c (dbxout_type): Likewise.
8907         * sdbout.c (plain_type_1): Likewise.
8908
8909 2010-05-06  Jason Merrill  <jason@redhat.com>
8910
8911         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
8912         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
8913         ret appropriately.
8914         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
8915
8916         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
8917         stripping WITH_SIZE_EXPR.
8918         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
8919         change.
8920
8921 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8922
8923         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
8924         list of obsolete configurations.
8925         Disabled check for obsolete configurations.
8926         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
8927         Removed support for previous versions.
8928         * config/mips/iris.h: Removed.
8929         * config/mips/iris5.h: Removed.
8930         * config/mips/iris6.h: Merged old iris.h contents.
8931         (TARGET_IRIX): Removed.
8932         (DRIVER_SELF_SPECS): Removed mabi=32.
8933         (IDENT_ASM_OP): Removed undef.
8934         (STARTFILE_SPEC): Removed mabi=32.
8935         (ENDFILE_SPEC): Likewise.
8936         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
8937         (MACHINE_TYPE): Update for IRIX 6.5.
8938         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
8939         TARGET_IRIX by TARGET_IRIX6.
8940         (mips_file_start): Likewise.
8941         (mips_output_external): Remove IRIX 5/6 O32 support.
8942         (mips_output_function_prologue): Likewise.
8943         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
8944         TARGET_IRIX6.
8945         (TARGET_CPU_CPP_BUILTINS): Likewise.
8946         (TARGET_IRIX): Removed.
8947         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
8948         (MULTILIB_DIRNAMES): Removed 32.
8949         (MULTILIB_OSDIRNAMES): Removed ../lib.
8950         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
8951         (Specific, mips-sgi-irix5): Document removal.
8952         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
8953         Remove references to older IRIX 6 releases and the O32 ABI.
8954
8955 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
8956
8957         PR bootstrap/43994
8958         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
8959         instead of DF_REF_REAL_REG.
8960
8961 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
8962
8963         PR target/43888
8964         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
8965         handling to still return true for x64 targets.
8966
8967 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
8968
8969         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
8970
8971 2010-05-06  Jan Hubicka  <jh@suse.cz>
8972
8973         PR tree-optimization/43791
8974         * ipa-inline.c (update_caller_keys): Remove bogus
8975         disregard_inline_limits check.
8976
8977 2010-05-06  Michael Matz  <matz@suse.de>
8978
8979         PR tree-optimization/43984
8980         * tree-ssa-pre.c (inserted_phi_names): Remove.
8981         (inserted_exprs): Change to bitmap.
8982         (create_expression_by_pieces): Set bits, don't append to vector.
8983         (insert_into_preds_of_block): Don't handle inserted_phi_names.
8984         (eliminate): Don't look at inserted_phi_names, remove deleted
8985         insns from inserted_exprs.
8986         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
8987         (init_pre, fini_pre): Allocate and free bitmaps.
8988         (execute_pre): Insert insns on edges before elimination.
8989
8990 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
8991
8992         * tree.c (initializer_zerop): Handle STRING_CST.
8993
8994 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8995
8996         PR 40989
8997         * doc/invoke.texi (Wimplicit): Document as C only.
8998         * opts.c (common_handle_option): Add argument kind.
8999         (handle_option): Rename as read_cmdline_option. Factor out code to...
9000         (handle_option): ... here. New.
9001         (handle_options): Rename as read_cmdline_options.
9002         (decode_options): Update call.
9003         (set_option): Use option index instead of option pointer. Classify
9004         diagnostics correctly.
9005         (enable_warning_as_error): Call handle_option.
9006         * opts.h (set_option): Update declaration.
9007         (handle_option): Declare.
9008         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
9009         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
9010         * c-opts.c (set_Wimplicit): Delete.
9011         (c_family_lang_mask): New static constant.
9012         (c_common_handle_option): Add argument kind. Use handle_option
9013         instead of set_Wimplicit.
9014         (c_common_post_options): warn_implicit and warn_implicit_int
9015         are disabled by default.
9016         * c-common.c (warn_implicit): Do not define here.
9017         * c-common.h (warn_implicit): Do not declare here.
9018         (c_common_handle_option): Update declaration.
9019         * lto-opts.c (lto_reissue_options): Update call to set_option.
9020
9021 2010-05-06  Richard Guenther  <rguenther@suse.de>
9022
9023         PR tree-optimization/43571
9024         * domwalk.c (walk_dominator_tree): Walk the dominator
9025         sons in more optimal order.
9026
9027 2010-05-06  Richard Guenther  <rguenther@suse.de>
9028
9029         PR tree-optimization/43934
9030         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
9031         (stmt_cost): Likewise.
9032         (extract_true_false_args_from_phi): New helper.
9033         (determine_max_movement): For PHI nodes verify we can hoist them
9034         and compute their cost.
9035         (determine_invariantness_stmt): Handle PHI nodes.
9036         (move_computations_stmt): Likewise.  Hoist PHI nodes in
9037         if-converted form using COND_EXPRs.
9038         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
9039         (tree_ssa_lim): Likewise.
9040         * tree-flow.h (tree_ssa_lim): Adjust prototype.
9041         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
9042
9043 2010-05-06  Richard Guenther  <rguenther@suse.de>
9044
9045         PR tree-optimization/43987
9046         * tree-ssa-structalias.c (could_have_pointers): For possibly
9047         address-taken variables force pointers to be recorded.
9048         (create_variable_info_for_1): Likewise.
9049         (push_fields_onto_fieldstack): Pass in wheter all fields
9050         must have pointers.
9051         (find_func_aliases): Query types instead of vars whether
9052         they contain pointers where appropriate.
9053
9054 2010-05-06  Jan Hubicka  <jh@suse.cz>
9055
9056         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
9057         (record_reference, mark_address, mark_load, mark_store): Record
9058         references.
9059         (record_references_in_initializer): Update call of record_references.
9060         (rebuild_cgraph_edges): Remove all references before rebuiding.
9061         * cgraph.c (cgraph_create_node): Clear ref list.
9062         (cgraph_remove_node): Remove references.
9063         (dump_cgraph_node): Dump references.
9064         (cgraph_clone_node): Clone references.
9065         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
9066         (struct cgraph_node, varpool_node): Add ref_lst.
9067         * ipa-ref.c: New file.
9068         * ipa-ref.h: New file.
9069         * ipa-ref-inline.h: New file.
9070         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
9071         (referenced_from_other_partition_p): New function.
9072         (lto_output_varpool_node): Take set arugment; call
9073         referenced_from_other_partition.
9074         (lto_output_ref): New.
9075         (add_references): New.
9076         (output_refs): New.
9077         (output_cgraph): Compute boundary based on references; output refs.
9078         (output_varpool): Accept cgraph_node_set argument.
9079         (input_ref): New.
9080         (input_refs): New.
9081         (input_cgraph): Call input_refs.
9082         * lto-section-in.c (lto_section_name): Add refs.
9083         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
9084         (ipa-ref.o): New file.
9085         * varpool.c (varpool_node): Clear ipa ref list.
9086         (varpool_remove_node): Remove references.
9087         (dump_varpool_node): Dump references.
9088         (varpool_assemble_decl): Only compile finalized ones.
9089         (varpool_extra_name_alias): Initialize ref list.
9090         * lto-streamer.c (lto-get_section_name): Add .refs section.
9091         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
9092         (referenced_from_other_partition_p): Declared.
9093
9094 2010-05-06  Ira Rosen  <irar@il.ibm.com>
9095
9096         PR tree-optimization/43901
9097         * tree-vect-stmts.c (vectorizable_call): Assert that vector
9098         type is not NULL if it's transformation phase, and return
9099         FALSE if it's analysis.
9100         (vectorizable_conversion, vectorizable_operation,
9101         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
9102
9103 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
9104
9105         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9106         Delete.
9107         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9108         New define.
9109         * config/mips/mips-protos.h
9110         (mips_small_register_classes_for_mode_p): Delete prototype.
9111
9112 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
9113
9114         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
9115         * config/arm/arm.c (multiple_operation_profitable_p,
9116         compute_offset_order): New static functions.
9117         (load_multiple_sequence, store_multiple_sequence): Use them.
9118         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
9119         memory offsets, not register numbers.
9120         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
9121
9122 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
9123
9124         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
9125         (get_pending_sizes, put_pending_size, put_pending_sizes):
9126         Update the uses of pending_sizes.
9127         * c-decl.c (store_parm_decls): Likewise.
9128         * c-tree.h (struct c_arg_info): Likewise.
9129         * tree.h: Update the prototype for get_pending_sizes and
9130         put_pending_sizes.
9131
9132 2010-05-05  Jason Merrill  <jason@redhat.com>
9133
9134         PR debug/43370
9135         * c-common.c (handle_aligned_attribute): Respect
9136         ATTR_FLAG_TYPE_IN_PLACE.
9137
9138         PR testsuite/43758
9139         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
9140         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9141         (TARGET_INITIALIZER): Use it.
9142         * c-common.c (attribute_takes_identifier_p): Call it.
9143         * c-common.h: Update prototype.
9144         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
9145         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9146
9147 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
9148
9149         PR debug/43950
9150         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
9151         DW_ID_down_case for Fortran compilation units.
9152
9153 2010-05-05  Jan Hubicka  <jh@suse.cz>
9154
9155         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
9156         handle aliases.
9157
9158 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
9159
9160         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
9161         a variable-sized RESULT_DECL.
9162
9163 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
9164
9165         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
9166
9167 2010-05-05  Jason Merrill  <jason@redhat.com>
9168
9169         PR c++/43787
9170         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
9171         returns GS_OK.
9172         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
9173
9174 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
9175             Jakub Jelinek  <jakub@redhat.com>
9176
9177         PR debug/43478
9178         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
9179         (dead_debug_init, dead_debug_finish): New functions.
9180         (dead_debug_add, dead_debug_insert_before): Likewise.
9181         (df_note_bb_compute): Initialize a dead_debug object, add dead
9182         debug uses to it, insert debug bind insns before death insns,
9183         reset debug insns that refer to pending uses at the end.
9184         * rtl.h (make_debug_expr_from_rtl): New prototype.
9185         * varasm.c (make_debug_expr_from_rtl): New function.
9186
9187 2010-05-05  Jan Hubicka  <jh@suse.cz>
9188
9189         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
9190         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
9191         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
9192         lto_varpool_encoder_deref, lto_varpool_encoder_size,
9193         lto_varpool_encoder_encode_initializer_p,
9194         lto_set_varpool_encoder_encode_initializer): New functions.
9195         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
9196         call output_varpool.
9197         (input_varpool_node): Do not always set analyzed.
9198         (input_cgraph_1): Return vector of cgraph nodes.
9199         (input_varpool_1): Return vector of varpools.
9200         (input_cgraph): Free the vectors.
9201         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9202         output only initializers needed.
9203         (lto_output): Only call output_cgraph.
9204         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
9205         * lto-section-out.c (lto_new_out_decl_state): Initialize
9206         state->varpool_node_encoder.
9207         * lto-streamer.h (lto_varpool_encoder_d): New.
9208         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
9209         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
9210         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
9211         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
9212         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
9213         Declare.
9214         (output_varpool, input_varpool): Remove declarations.
9215
9216 2010-05-05  Jan Hubicka  <jh@suse.cz>
9217
9218         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
9219         with body can prevail.
9220
9221 2010-05-05  Jan Hubicka  <jh@suse.cz>
9222
9223         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
9224         size.
9225
9226 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9227
9228         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
9229
9230         * gengtype.h (erro_at_line): Constify pos argument.
9231
9232         * gengtype.c: Include hashtab.h.
9233         (enum gc_used): Document GC_MAYBE_POINTED_TO.
9234         (error_at_line): Constify pos argument.
9235         (do_typedef): Initialize p->opt field.
9236         (get_file_gtfilename): Fix comment typo.
9237         (struct walk_type_data): Constify line field.
9238         (get_output_file_for_structure): New function.
9239         (write_local_func_for_structure): Constify orig_s argument.
9240         Use get_output_file_for_structure.
9241         (write_func_for_structure): Use get_output_file_for_structure.
9242         (INDENT): New define.
9243         (dump_pair, dump_type, dump_type_list, dump_typekind)
9244         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
9245         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
9246         functions.
9247         (seen_types): New variable.
9248         (main): New variable do_dump.  Process "-d" command line option.
9249         Call dump_everything if dump requested.
9250
9251 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
9252
9253         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
9254         in a temporary instead of invoking the macro multiple times.
9255         (track_expr_p): Likewise.
9256
9257 2010-05-04  Neil Vachharajani <nvachhar@google.com>
9258
9259         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
9260         per new semantics.
9261         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
9262         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
9263         conditions for printing notes.
9264         * common.opt (-Wcoverage-mismatch): Allow negative, default to
9265         true, update documentation.
9266         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
9267
9268 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
9269
9270         PR c/43981
9271         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
9272         on dimen.
9273
9274 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9275
9276         PR target/43799
9277         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
9278         (*sse_prologue_save_insn1): Likewise.
9279         (SSE prologue save splitter): Likewise.
9280
9281 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
9282
9283         * tree.c (free_lang_data_in_one_sizepos): New inline function.
9284         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
9285         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
9286         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
9287         all decls.  Call it on DECL_FIELD_OFFSET of fields.
9288         (find_decls_types_r): Follow DECL_VALUE_EXPR.
9289         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
9290
9291 2010-05-04  Martin Jambor  <mjambor@suse.cz>
9292
9293         * tree-sra.c (build_access_from_expr_1): The first parameter type
9294         changed to simple tree.
9295         (build_access_from_expr): Likewise, gsi parameter was eliminated.
9296         (scan_assign_result): Renamed to assignment_mod_result, enum elements
9297         renamed as well.
9298         (build_accesses_from_assign): Removed all parameters except for a
9299         simple gimple statement.  Now returns a simple bool.
9300         (scan_function): All non-analysis parts moved to separate functions
9301         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
9302         parameters and updated both callers.
9303         (sra_modify_expr): Removed parameter data.
9304         (sra_modify_function_body): New function.
9305         (perform_intra_sra): Call sra_modify_function_body to modify the
9306         function body.
9307         (replace_removed_params_ssa_names): Parameter data changed into
9308         adjustments vector.
9309         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
9310         changed the parameter dont_convert to convert with the opposite
9311         meaning.
9312         (sra_ipa_modify_assign): Parameter data changed into adjustments
9313         vector, return value changed to bool.
9314         (ipa_sra_modify_function_body): New function.
9315         (sra_ipa_reset_debug_stmts): Updated a comment.
9316         (modify_function): Use ipa_sra_modify_function_body to modify function
9317         body.
9318
9319 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9320
9321         PR middle-end/43671
9322         * alias.c (true_dependence): Handle the same VALUE in x and mem.
9323         (canon_true_dependence): Likewise.
9324         (write_dependence_p): Likewise.
9325
9326 2010-05-04  Jan Hubicka  <jh@suse.cz>
9327
9328         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
9329         * cgraphbuild.c: Include ipa-utils.h
9330         (record_reference_ctx): New struct.
9331         (record_reference): Simplify to work on initializers; not statements.
9332         (mark_address, mark_load, mark_store): New.
9333         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
9334         walk PHI nodes too.
9335         (record_references_in_initializer): Update use of record_reference.
9336         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
9337         walk PHI nodes too.
9338
9339 2010-05-04  Jan Hubicka  <jh@suse.cz>
9340
9341         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
9342         node will be removed anyway.
9343         (lto_varpool_replace_node): Allow also unanalyzed nodes;
9344         relink aliases of node into prevailing node.
9345         * varpool.c (varpool_remove_node): Remove aliases properly;
9346         when removing node, remove all its aliases too; remove DECL_INITIAL
9347         of removed node; ggc_free the varpool node.
9348
9349 2010-05-04  Richard Guenther  <rguenther@suse.de>
9350
9351         PR tree-optimization/43879
9352         * tree-ssa-structalias.c (alias_get_name): Use
9353         DECL_ASSEMBLER_NAME if available.
9354         (create_function_info_for): Return the varinfo node.
9355         (ipa_pta_execute): Associate same-body aliases and extra names
9356         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
9357
9358 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
9359
9360         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
9361
9362 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
9363
9364         PR bootstrap/43964
9365         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
9366         only if HONOR_REG_ALLOC_ORDER is not defined.
9367
9368 2010-05-04  Richard Guenther  <rguenther@suse.de>
9369
9370         PR tree-optimization/43949
9371         * tree-vrp.c (extract_range_from_binary_expr): Only handle
9372         TRUNC_MOD_EXPR.
9373
9374 2010-04-26  Jason Merrill  <jason@redhat.com>
9375
9376         * c.opt (-fstrict-enums): New.
9377         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
9378
9379 2010-05-03  David Ung <davidu@mips.com>
9380             James E. Wilson  <wilson@codesourcery.com>
9381
9382         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
9383         emit the trap instruction before the divide for TUNE_74K.
9384
9385 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
9386
9387         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
9388         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
9389         based on the above, for new target hook.
9390
9391         * hooks.c (hook_bool_mode_true): New generic hook.
9392         * hooks.h (hook_bool_mode_true): Add prototype.
9393
9394         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
9395         target hook.
9396         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
9397         target hook, set to hook_bool_mode_false.
9398         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
9399         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
9400         with targetm.small_register_classes_for_mode_p.
9401         (find_reusable_reload): Likewise.
9402         (combine_reloads): Likewise.
9403         * reload1.c (reload_as_needed): Likewise.
9404         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
9405         * ifcvt.c (noce_process_if_block, check_cond_move_block,
9406         dead_or_predicable): Likewise.
9407         * regmove.c (optimize_reg_copy_1): Likewise.
9408         * calls.c (prepare_call_address): Likewise.
9409         (precompute_register_parameters): Likewise.
9410
9411         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
9412         hook definition.
9413         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
9414         implementation of the hook that considers all register classes
9415         small except for SH64.
9416         (sh_override_options): Use the new hook.
9417         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
9418         Add prototype.
9419
9420         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
9421         hook definition.
9422         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
9423         implementation of the hook that considers all register classes
9424         small for THUMB1.
9425         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
9426         Add prototype.
9427
9428         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
9429         hook definition.
9430         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
9431         implementation of the hook that considers all register classes
9432         small for MIPS16.
9433         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
9434         Add prototype.
9435
9436         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
9437         hook definition.
9438         * config/m32c/m32c.h: Likewise.
9439         * config/pdp11/pdp11.h: Likewise.
9440         * config/avr/avr.h: Likewise.
9441         * config/xtensa/xtensa.h: Likewise.
9442         * config/m68hc11/m68hc11.h: Likewise.
9443         * config/mn10300/mn10300.h: Likewise.
9444         * config/mcore/mcore.h: Likewise.
9445         * config/h8300/h8300.h: Likewise.
9446         * config/bfin/bfin.h: Likewise.
9447
9448         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
9449         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
9450
9451 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
9452
9453         * double-int.h (tree_to_double_int): Remove macro.
9454         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
9455         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
9456         (tree_to_double_int): New function.
9457         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
9458         Move ...
9459         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
9460
9461 2010-05-03  Richard Guenther  <rguenther@suse.de>
9462
9463         PR tree-optimization/43971
9464         * tree-ssa-structalias.c (get_constraint_for_1): Fix
9465         constraints in the !flag_delete_null_pointer_checks case.
9466
9467 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
9468
9469         PR debug/43972
9470         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
9471         result mode matches original rtl mode.
9472
9473 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
9474
9475         PR target/43888
9476         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
9477
9478 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
9479
9480         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
9481         when processing flag options.
9482
9483 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
9484
9485         * gcov-iov.c (main): Change format string placeholder
9486         from %#08x to 0x%08x.
9487         * genchecksum.c (dosum): Change format string placeholder
9488         from %#02x to 0x%02x.
9489
9490 2010-05-02  Richard Guenther  <rguenther@suse.de>
9491
9492         PR tree-optimization/43879
9493         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
9494
9495 2010-05-02  Bruno Haible  <bruno@clisp.org>
9496
9497         * doc/extend.texi (Function Attributes): Fix a typo.
9498
9499 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
9500
9501         Revert:
9502         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
9503         placeholder from 0x%x to %#x.
9504         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
9505         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
9506         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
9507         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
9508         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
9509         * config/i386/i386.c (ix86_target_string): Ditto.
9510         * config/i386/i386.c (output_pic_addr_const): Ditto.
9511         (print_operand): Ditto.
9512
9513 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
9514
9515         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
9516         placeholder from 0x%x to %#x.
9517         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
9518         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
9519         (ASM_OUTPUT_DEBUG_DATA): Ditto.
9520         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
9521         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
9522         * optc-gen.awk: Ditto.
9523         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
9524         (HOST_WIDE_INT_PRINT_HEX): Ditto.
9525         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
9526         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
9527
9528 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
9529
9530         * target.h (struct calls): Add function_value_regno_p field.
9531         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
9532         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
9533         * targhooks.c (default_function_value_regno_p): New function.
9534         * targhooks.h (default_function_value_regno_p): Declare function.
9535         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
9536         * builtins.c. (apply_result_size): (Ditto.).
9537         * combine.c. (likely_spilled_retval_p): (Ditto.).
9538         * mode-switching.c. Include 'target.h'.
9539         (create_pre_exit): Use function_value_regno_p hook.
9540         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
9541         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
9542         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
9543
9544         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
9545         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
9546         (ix86_function_value_regno_p): Declare as static, change argument
9547         type to const unsigned int.
9548         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
9549
9550 2010-05-01  Richard Guenther  <rguenther@suse.de>
9551
9552         PR tree-optimization/43949
9553         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
9554         types.
9555         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
9556
9557 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
9558
9559         * rtl.h (CONST_DOUBLE_P): Define.
9560         (rtx_to_double_int): Declare.
9561         * emit-rtl.c (rtx_to_double_int): New function.
9562         * dwarf2out.c (insert_double): New function.
9563         (loc_descriptor, add_const_value_attribute): Clean up, use
9564         rtx_to_double_int and insert_double functions.
9565
9566 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
9567
9568         * doc/extend.texi (Inline): Add missing return keyword to examples.
9569         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
9570         "command-line".
9571
9572 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
9573
9574         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
9575         the variable part of the offset as well.  Use highest_pow2_factor for
9576         all alignment checks.
9577
9578 2010-04-30  Richard Guenther  <rguenther@suse.de>
9579
9580         PR tree-optimization/43879
9581         * tree-ssa-structalias.c (type_could_have_pointers): Functions
9582         can have pointers.
9583
9584 2010-04-30  Jan Hubicka  <jh@suse.cz>
9585
9586         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
9587         varpool.
9588         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
9589
9590 2010-04-30  Jan Hubicka  <jh@suse.cz>
9591
9592         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
9593         New.
9594         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
9595         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
9596         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
9597         cgraph_node_set_needs_ltrans_p): Remove.
9598
9599 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
9600
9601         * sdbout.c: Include vec.h, do not include varray.h.
9602         (deferred_global_decls, sdbout_global_decl,
9603         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
9604         * toplev.c: Do not include varray.h.
9605         (dump_memory_report): Do not dump VARRAY statistics.
9606         * gengtype.c (open_base_file): Ignore varray.h.
9607         * Makefile.in: Update for abovementioned changes.
9608         Remove all traces of varray.c and varray.h.
9609         * varray.c: Remove file.
9610         * varray.h: Remove file.
9611
9612 2010-04-30  Jan Hubicka  <jh@suse.cz>
9613
9614         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
9615         references.
9616
9617 2010-04-30  Jan Hubicka  <jh@suse.cz>
9618
9619         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
9620         needed.
9621
9622 2010-04-30  Richard Guenther  <rguenther@suse.de>
9623
9624         * tree-ssa-structalias.c (get_constraint_for_1): Generate
9625         constraints for CONSTRUCTOR.
9626
9627 2010-04-30  Richard Guenther  <rguenther@suse.de>
9628
9629         PR lto/43946
9630         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
9631         first after all lowering passes.
9632
9633 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
9634
9635         * toplev.c: Include varray.h for statistics dumping.
9636         * tree.h: Do not declare varray_head_tag.
9637         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
9638         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
9639         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
9640         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
9641         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
9642         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
9643         c-common.c, c-common.h, reg-stack.c, basic-block.h,
9644         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
9645         include varray.h.
9646         * Makefile.in: Update for abovementioned changes.
9647
9648 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
9649
9650         PR debug/43942
9651         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
9652
9653 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
9654
9655         * config/picochip/picochip.c (picochip_legitimize_address): Define.
9656         Use this function to do machine-specific conversion.
9657         (picochip_legitimize_reload_address): Likewise.
9658         (picochip_legitimate_address_p): Check valid base register only if
9659         strict.
9660         (picochip_check_conditional_copy): Check for modw only if opnd is
9661         register.
9662         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
9663         to call the function in c.
9664         * config/picochip/picochip-protos.h
9665         (picochip_legitimize_reload_address): Define.
9666         * config/picochip/picochip.md (supported_compare1): Define.
9667
9668 2010-04-30  Jan Hubicka  <jh@suse.cz>
9669
9670         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
9671         (cgraph_global_info): Remove inlined.
9672         (LTO_cgraph_tag_names): Remove.
9673         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
9674         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
9675         simplify cgraph tags and document.
9676         (lto_output_node): Use only LTO_cgraph_unavail_node and
9677         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
9678         for_functions_valid, global info, process and output flags.
9679         (input_overwrite_node): Initialize estimated stack size and
9680         estimated growth.  Do not read flags we no longer store.
9681         (input_node): Likewise do not read info no longer stored.
9682         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
9683         flag.
9684
9685 2010-04-30  Richard Guenther  <rguenther@suse.de>
9686
9687         PR tree-optimization/43879
9688         * tree-ssa-structalias.c (get_constraint_for_1): Properly
9689         handle non-zero initializers.
9690
9691 2010-04-30  Richard Guenther  <rguenther@suse.de>
9692
9693         * builtins.c (fold_builtin_1): Delete free (0).
9694
9695 2010-04-29  Jan Hubicka  <jh@suse.cz>
9696
9697         * gengtype.c (open_base_files): Add lto-streamer.h
9698         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
9699         (pass_ipa_cp): GGC collect.
9700         * toplev. (compile_file): Do not output symbols.
9701         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
9702         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
9703         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
9704         * lto-section-in.c: Include ggc.h
9705         (lto_new_in_decl_state): Alloc in GGC.
9706         (lto_delete_in_decl_state): Likewise.
9707         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
9708         Collect.
9709
9710 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
9711
9712         PR target/42895
9713         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
9714         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
9715         (HONOR_REG_ALLOC_ORDER): Describe new macro.
9716         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
9717         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
9718         account only if HONOR_REG_ALLOC_ORDER is not defined.
9719         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
9720         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
9721
9722 2010-04-29  Jon Grant  <04@jguk.org>
9723
9724         * collect2.c (vflag): Change type from int to bool.
9725         (debug): Likewise.
9726         (helpflag): New global bool.
9727         (main): Set vflag and debug with boolean, not integer truth values.
9728         Accept new "--help" option and output usage text if found.
9729         * collect2.h (vflag): Update prototype.
9730         (debug): Likewise.
9731
9732 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
9733
9734         PR bootstrap/43936
9735         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
9736
9737 2010-04-29  Richard Guenther  <rguenther@suse.de>
9738
9739         PR bootstrap/43935
9740         * plugin.h (invoke_plugin_callbacks): Annotate arguments
9741         with ATTRIBUTE_UNUSED.
9742
9743 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
9744
9745         PR target/43921
9746         * config/i386/i386.c (get_some_local_dynamic_name): Replace
9747         INSN_P with NONDEBUG_INSN_P.
9748         (distance_non_agu_define): Likewise.
9749         (distance_agu_use): Likewise.
9750
9751 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
9752
9753         From Dominique d'Humieres <dominiq@lps.ens.fr>
9754         PR bootstrap/43858
9755         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
9756         test_set.
9757
9758 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
9759
9760         * plugin.h (invoke_plugin_callbacks): New inline function.
9761         * plugin.c (flag_plugin_added): New global flag.
9762         (add_new_plugin): Initialize above flag.
9763         (invoke_plugin_callbacks): Rename to ...
9764         (invoke_plugin_callbacks_full): ... this.
9765
9766 2010-04-28  Jan Hubicka  <jh@suse.cz>
9767
9768         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
9769         (lto_varpool_replace_node): New.
9770         (lto_symtab_resolve_symbols): Resolve varpool nodes.
9771         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
9772         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
9773         * cgraph.h (varpool_node_ptr): New type.
9774         (varpool_node_ptr): New vector.
9775         (varpool_node_set_def): New structure.
9776         (varpool_node_set): New type.
9777         (varpool_node_set): New vector.
9778         (varpool_node_set_element_def): New structure.
9779         (varpool_node_set_element, const_varpool_node_set_element): New types.
9780         (varpool_node_set_iterator): New type.
9781         (varpool_node): Add prev pointers, add used_from_other_partition,
9782         in_other_partition.
9783         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
9784         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
9785         varpool_get_node, varpool_remove_node): Declare.
9786         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
9787         varpool_node_set_size): New inlines.
9788         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
9789         * tree-pass.h (varpool_node_set_def): Forward declare.
9790         (ipa_opt_pass_d): Summary writting takes vnode sets too.
9791         (ipa_write_optimization_summaries): Update prototype.
9792         * ipa-cp.c (ipcp_write_summary): Update.
9793         * ipa-reference.c (ipa_reference_write_summary): Update.
9794         * lto-cgraph.c (lto_output_varpool_node): New static function.
9795         (output_varpool): New function.
9796         (input_varpool_node): New static function.
9797         (input_varpool_1): New function.
9798         (input_cgraph): Input varpool.
9799         * ipa-pure-const.c (pure_const_write_summary): Update.
9800         * lto-streamer-out.c (lto_output): Update, output varpool too.
9801         (write_global_stream): Kill WPA hack.
9802         (produce_asm_for_decls): Update.
9803         (output_alias_pair_p): Handle variables.
9804         (output_unreferenced_globals): Output only needed partition of varpool.
9805         * ipa-inline.c (inline_write_summary): Update.
9806         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
9807         cgraph.
9808         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
9809         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
9810         varpool_node_set_new, varpool_node_set_add,
9811         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
9812         debug_varpool_node_set): New functions.
9813         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
9814         (execute_one_pass): Process new decls too.
9815         (ipa_write_summaries_2): Pass around vsets.
9816         (ipa_write_summaries_1): Likewise.
9817         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
9818         to add.
9819         (ipa_write_optimization_summaries_1): Pass around vsets.
9820         (ipa_write_optimization_summaries): Likewise.
9821         * varpool.c (varpool_get_node): New.
9822         (varpool_node): Update doubly linked lists.
9823         (varpool_remove_node): New.
9824         (dump_varpool_node): More dumping.
9825         (varpool_enqueue_needed_node): Update doubly linked lists.
9826         (decide_is_variable_needed): Kill ltrans hack.
9827         (varpool_finalize_decl): Kill lto hack.
9828         (varpool_assemble_decl): Skip decls in other partitions.
9829         (varpool_assemble_pending_decls): Update doubly linkes lists.
9830         (varpool_empty_needed_queue): Likewise.
9831         (varpool_extra_name_alias): Likewise.
9832         * lto-streamer.c (lto_get_section_name): Add vars section.
9833         * lto-streamer.h (lto_section_type): Update.
9834         (output_varpool, input_varpool): Declare.
9835
9836 2010-04-28  Mike Stump  <mikestump@comcast.net>
9837
9838         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
9839
9840 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
9841
9842         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
9843         record or union type with RECORD_OR_UNION_TYPE_P predicate.
9844         (lto_input_ts_type_tree_pointers): Likewise.
9845         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
9846         (lto_output_ts_type_tree_pointers): Likewise.
9847
9848 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
9849
9850         Uniquization of constants at the Tree level
9851         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
9852         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
9853         bit to the end.
9854         (tree_output_constant_def): Declare.
9855         * gimplify.c (gimplify_init_constructor): When using block copy, first
9856         uniquize the constant constructor on the RHS.
9857         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
9858         DECL_IN_CONSTANT_POOL flag.
9859         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
9860         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
9861         constant pool.
9862         (assemble_variable): Deal with symbols belonging to the tree constant
9863         pool.
9864         (get_constant_section): Add ALIGN parameter and simplify.
9865         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
9866         (assemble_constant_contents): Use the expression of the VAR_DECL.
9867         (output_constant_def_contents): Use the alignment of the VAR_DECL.
9868         (tree_output_constant_def): New global function.
9869         (mark_constant): Use the expression of the VAR_DECL.
9870         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
9871         its expression.
9872         (output_object_block): Likewise and assemble the expression.
9873
9874 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
9875
9876         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
9877         hash_tree, eq_tree): New tree hash table.
9878         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
9879         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
9880         lto_orig_address_remove): Reimplement.
9881
9882 2010-04-28  Xinliang David Li  <davidxl@google.com>
9883
9884         PR c/42643
9885         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
9886         (compute_uninit_opnds_pos): New function.
9887         (is_non_loop_exit_postdominating): New function.
9888         (compute_control_dep_chain): New function.
9889         (find_pdom): New function.
9890         (convert_control_dep_chain_into_preds): New function.
9891         (find_predicates): New function.
9892         (find_control_equiv_block): New function.
9893         (collect_phi_def_edges): New function.
9894         (find_def_preds): New function.
9895         (find_dom): New function.
9896         (dump_predicates): New function.
9897         (get_cmp_code): New function.
9898         (is_value_included_in): New function.
9899         (find_matching_predicate_in_rest_chains): New function.
9900         (use_pred_not_overlap_with_undef_path_pred): New function.
9901         (is_use_properly_guarded): New function.
9902         (normalize_cond_1): New function.
9903         (is_and_or_or): New function.
9904         (normalize_cond): New function.
9905         (is_gcond_subset_of): New function.
9906         (is_subset_of_any): New function.
9907         (is_or_set_subset_of): New function.
9908         (is_and_set_subset_of): New function.
9909         (is_norm_cond_subset_of): New function.
9910         (is_pred_expr_subset_of): New function.
9911         (is_pred_chain_subset_of): New function.
9912         (is_included_in): New function.
9913         (is_superset_of): New function.
9914         (find_uninit_use): New function.
9915         (warn_uninitialized_phi): New function.
9916         (compute_possibly_undefined_names): New function.
9917         (ssa_undefined_value_p): New function.
9918         (execute_late_warn_uninitialized): New function.
9919         * tree-ssa.c (ssa_undefined_value_p): Removed.
9920         (warn_uninit): Changed to extern.
9921         (warn_uninitialized_phi): Removed.
9922         (warn_uninitialized_vars): Changed to extern.
9923         (execute_late_warn_uninitialized): Removed
9924         * tree-flow.h: Add new prototypes.
9925         * timevar.def: Add new time variable.
9926         * Makefile.in: Add new build file.
9927
9928 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
9929
9930         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
9931         type if available.
9932
9933 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9934
9935         PR target/22224
9936         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
9937
9938 2010-04-28  Martin Jambor  <mjambor@suse.cz>
9939
9940         * cgraph.h (struct cgraph_node): New field indirect_calls.
9941         (struct cgraph_indirect_call_info): New type.
9942         (struct cgraph_edge): Removed field indirect_call. New fields
9943         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
9944         (cgraph_create_indirect_edge): Declare.
9945         (cgraph_make_edge_direct): Likewise.
9946         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
9947         * ipa-prop.h (struct ipa_param_call_note): Removed.
9948         (struct ipa_node_params): Removed field param_calls.
9949         (ipa_create_all_structures_for_iinln): Declare.
9950         * cgraph.c: Described indirect edges and uids in initial comment.
9951         (cgraph_add_edge_to_call_site_hash): New function.
9952         (cgraph_edge): Search also among the indirect edges, use
9953         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
9954         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
9955         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
9956         site hash.
9957         (initialize_inline_failed): Assign a reason to indirect edges.
9958         (cgraph_create_edge_1): New function.
9959         (cgraph_create_edge): Moved some functionality to
9960         cgraph_create_edge_1.
9961         (cgraph_create_indirect_edge): New function.
9962         (cgraph_edge_remove_callee): Add an assert checking for
9963         non-indirectness.
9964         (cgraph_edge_remove_caller): Special-case indirect edges.
9965         (cgraph_remove_edge): Likewise.
9966         (cgraph_set_edge_callee): New function.
9967         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
9968         (cgraph_make_edge_direct): New function.
9969         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
9970         the declaration of the call statement matches.
9971         (cgraph_node_remove_callees): Special-case indirect edges.
9972         (cgraph_clone_edge): Likewise.
9973         (cgraph_clone_node): Clone also the indirect edges.
9974         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
9975         indirect_call, dump count of indirect_calls edges.
9976         * ipa-prop.c (iinlining_processed_edges): New variable.
9977         (ipa_note_param_call): Create indirect edges instead of
9978         creating notes.  New parameter node.
9979         (ipa_analyze_call_uses): New parameter node, pass it on to
9980         ipa_note_param_call.
9981         (ipa_analyze_stmt_uses): Likewise.
9982         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
9983         (print_edge_addition_message): Work on edges rather than on notes.
9984         (update_call_notes_after_inlining): Likewise, renamed to
9985         update_indirect_edges_after_inlining.
9986         (ipa_create_all_structures_for_iinln): New function.
9987         (ipa_free_node_params_substructures): Do not free notes.
9988         (ipa_edge_duplication_hook): Propagate bits within
9989         iinlining_processed_edges bitmap.
9990         (ipa_node_duplication_hook): Do not duplicate notes.
9991         (free_all_ipa_structures_after_ipa_cp): Renamed to
9992         ipa_free_all_structures_after_ipa_cp.
9993         (free_all_ipa_structures_after_iinln): Renamed to
9994         ipa_free_all_structures_after_iinln.
9995         (ipa_write_param_call_note): Removed.
9996         (ipa_read_param_call_note): Removed.
9997         (ipa_write_indirect_edge_info): New function.
9998         (ipa_read_indirect_edge_info): Likewise.
9999         (ipa_write_node_info): Do not stream notes, do stream information
10000         in indirect edges.
10001         (ipa_read_node_info): Likewise.
10002         (lto_ipa_fixup_call_notes): Removed.
10003         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
10004         * ipa-inline.c (pass_ipa_inline): Likewise.
10005         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
10006         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
10007         * tree-inline.c (copy_bb): Removed an unnecessary double check for
10008         is_gimple_call.
10009         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
10010         edges.
10011         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
10012         (output_cgraph): Stream also indirect edges.
10013         (lto_output_edge): Added capability to stream indirect edges.
10014         (input_edge): Likewise.
10015         (input_cgraph_1): Likewise.
10016         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
10017         of indirect edges.
10018
10019 2010-04-28  Richard Guenther  <rguenther@suse.de>
10020
10021         PR tree-optimization/43879
10022         PR tree-optimization/43909
10023         * tree-ssa-structalias.c (struct variable_info): Add
10024         only_restrict_pointers flag.
10025         (new_var_info): Initialize it.  Increment stats.total_vars here.
10026         (create_function_info_for): Do not increment stats.total_vars here.
10027         (get_function_part_constraint): Fix build with C++.
10028         (insert_into_field_list): Remove.
10029         (push_fields_onto_fieldstack): Properly merge fields.
10030         (create_variable_info_for): Split and simplify.
10031         (create_variable_info_for_1): New piece.
10032         (intra_create_variable_infos): Properly make restrict constraints
10033         from parameters.
10034
10035 2010-04-28  Richard Guenther  <rguenther@suse.de>
10036
10037         PR c++/43880
10038         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
10039
10040 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10041             Jan Hubicka <hubicka@ucw.cz>
10042
10043         * doc/invoke.texi (-Wsuggest-attribute=const,
10044         -Wsuggest-attribute=pure): Document.
10045         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
10046         (function_always_visible_to_compiler_p,
10047         suggest_attribute, warn_function_pure, warn_function_const):
10048         New functions.
10049         (check_call): Improve debug info.
10050         (analyze_function): Do not check availability.
10051         (add_new_function): Check availability.
10052         (propagate): Output warnings.
10053         (skip_function_for_local_pure_const): New function.
10054         (local_pure_const): Use it; output warnings.
10055         * common.opt (Wsuggest-attribute=const,
10056         Wsuggest-attribute=pure): New.
10057
10058 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
10059
10060         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
10061         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
10062         or DW_CFA_def_cfa_offset{,_sf}.
10063
10064 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10065
10066         * tree.h: Fix truncated long macros.
10067
10068 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
10069
10070         * collect2.c (TARGET_64BIT): Redefine to target's default.
10071         * tlink.c: Likewise.
10072         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
10073         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
10074         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
10075         for underscoring __USER_LABEL_PREFIX__.
10076         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
10077         (SUB_LINK_ENTRY32): New.
10078         (SUB_LINK_ENTRY64): New.
10079         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
10080         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
10081         (SUB_LINK_ENTRY64): New.
10082         (SUB_LINK_ENTRY): New.
10083         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
10084         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
10085         x64 target is choosen.
10086         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
10087         * configure: Regenerated.
10088         * configure.ac (leading-mingw64-underscores): Option added.
10089
10090 2010-04-27  Jan Hubicka  <jh@suse.cz>
10091
10092         * doc/invoke.texi (-fipa-profile): Document.
10093         * opts.c (decode_options): Enable ipa-profile at -O1.
10094         * timevar.def (TV_IPA_PROFILE): Define.
10095         * common.opt (fipa-profile): Add.
10096         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
10097         flag for clones.
10098         (cgraph_propagate_frequency): Handle only local ones.
10099         * tree-pass.h (pass_ipa_profile): Declare.
10100         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
10101         (pass_ipa_profile): Use TV_IPA_PROFILE.
10102         * ipa.c (ipa_profile): New function.
10103         (gate_ipa_profile): Likewise.
10104         (pass_ipa_profile): New global variable.
10105         * passes.c (pass_ipa_profile): New.
10106
10107 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
10108
10109         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
10110
10111 2010-04-27  Martin Jambor  <mjambor@suse.cz>
10112
10113         PR middle-end/43812
10114         * ipa.c (dissolve_same_comdat_group_list): New function.
10115         (function_and_variable_visibility): Call
10116         dissolve_same_comdat_group_list when comdat group contains external or
10117         newly local nodes.
10118         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
10119         lists are circular and that they contain only DECL_ONE_ONLY nodes.
10120
10121 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10122
10123         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
10124         (const_hash_1) <VECTOR_CST>: New case.
10125         (compare_constant) <VECTOR_CST>: Likewise.
10126         <ADDR_EXPR>: Deal with LABEL_REFs.
10127         (copy_constant) <VECTOR_CST>: New case.
10128
10129 2010-04-27  Jan Hubicka  <jh@suse.cz>
10130
10131         * cgraph.c (cgraph_propagate_frequency): New function.
10132         * cgraph.h (cgraph_propagate_frequency): Declare.
10133         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
10134         cgraph_propagate_frequency.
10135
10136 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
10137
10138         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
10139
10140 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
10141
10142         PR target/40657
10143         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
10144         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
10145         here to determine which regs to push and how much stack to reserve.
10146
10147 2010-04-27  Jie Zhang  <jie@codesourcery.com>
10148
10149         * doc/gimple.texi (gimple_statement_with_ops): Remove
10150         addresses_taken field.
10151         (gimple_statement_with_memory_ops): Likewise.
10152
10153 2010-04-27  Jan Hubicka  <jh@suse.cz>
10154
10155         * tree-inline.c (eni_inlining_weights): Remove.
10156         (estimate_num_insns): Special case more builtins.
10157
10158 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
10159
10160         PR c/32207
10161         * c-typeck.c (build_binary_op): Move forward check for comparison
10162         pointer with null pointer constant and adjust the diagnostic message.
10163
10164 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
10165
10166         PR lto/42776
10167         * configure.ac (gcc_cv_as_section_has_align): Set if installed
10168         binutils supports extended .section directive needed by LTO, or
10169         warn if older binutils found.
10170         (LTO_BINARY_READER): New AC_SUBST'd variable.
10171         (LTO_USE_LIBELF): Likewise.
10172         * gcc/config.gcc (lto_binary_reader): New target-specific configure
10173         variable.
10174         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
10175         (LTO_USE_LIBELF): Likewise.
10176         * configure: Regenerate.
10177
10178         * collect2.c (is_elf): Rename from this ...
10179         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
10180          object files in addition to ELF-formatted ones.
10181         (scan_prog_file): Caller updated.  Also allow for LTO info marker
10182         symbol to be prefixed or not by an extra underscore.
10183
10184         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
10185         * config/i386/winnt.c: Also #include lto-streamer.h
10186         (i386_pe_asm_named_section): Specify 1-byte section alignment for
10187         LTO named sections.
10188         (i386_pe_asm_output_aligned_decl_common): Add comment.
10189         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
10190
10191 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
10192
10193         PR target/43889
10194         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
10195         Add missing earlyclobber for second alternative.
10196
10197 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
10198
10199         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
10200         bits for artificial defs at the top of the block.
10201         * fwprop.c (single_def_use_enter_block): Don't call it.
10202
10203 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
10204
10205         PR 43715
10206         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
10207         instead of "$gcc_cv_objdump -T".
10208         Use "-undefined dynamic_lookup" on darwin.
10209         * gcc/configure: Regenerate.
10210
10211 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
10212
10213         PR c/43893
10214         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
10215
10216 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
10217
10218         * c-parser.c (struct c_token): Move location field up.
10219         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
10220         (struct c_declspecs): Convert typespec_word, storage_class, and
10221         default_int_p into bitfields.
10222         (struct c_declarator): Move loc field up.
10223
10224 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
10225
10226         * cfgloop.h (struct loop): Move can_be_parallel field up.
10227         * ipa-prop.h (struct ip_node_params): Move bitfields up.
10228         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
10229         down.
10230         (struct iv_cand): Convert pos field into a bitfield.
10231         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
10232         field up.
10233         (struct _stmt_vec_info): Shuffle fields for better packing.
10234
10235 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
10236
10237         * varasm.c (IN_NAMED_SECTION): Remove guard.
10238         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
10239         (IN_NAMED_SECTION_P): ...this.
10240         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
10241         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
10242
10243 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
10244
10245         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
10246         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
10247         of shadowing it.  Fix comments.
10248
10249 2010-04-26  Jan Hubicka  <jh@suse.cz>
10250
10251         * cgraph.c (cgraph_create_node): Set node frequency to normal.
10252         (cgraph_clone_node): Copy function frequency.
10253         * cgraph.h (node_frequency): New enum
10254         (struct cgraph_node): Add.
10255         * final.c (rest_of_clean_state): Update.
10256         * lto-cgraph.c (lto_output_node): Output node frequency.
10257         (input_overwrite_node): Input node frequency.
10258         * tre-ssa-loop-ivopts (computation_cost): Update.
10259         * lto-streamer-out.c (output_function): Do not output function
10260         frequency.
10261         * predict.c (maybe_hot_frequency_p): Update and handle functions
10262         executed once.
10263         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
10264         attribute lookup.
10265         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
10266         (compute_function_frequency): Set noreturn functions to be executed
10267         once.
10268         (choose_function_section): Update.
10269         * lto-streamer-in.c (input_function): Do not input function frequency.
10270         * function.c (allocate_struct_function): Do not initialize function
10271         frequency.
10272         * function.h (function_frequency): Remove.
10273         (struct function): Remove function frequency.
10274         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
10275         (try_update): Update.
10276         * tree-inline.c (initialize_cfun): Do not update function frequency.
10277         * passes.c (pass_init_dump_file): Update.
10278         * i386.c (ix86_compute_frame_layout): Update.
10279         (ix86_pad_returns): Update.
10280
10281 2010-04-26  Jie Zhang  <jie@codesourcery.com>
10282
10283         PR tree-optimization/43833
10284         * tree-vrp.c (range_int_cst_p): New.
10285         (range_int_cst_singleton_p): New.
10286         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
10287         when both operands are constants.  Use range_int_cst_p in
10288         BIT_IOR_EXPR case.
10289
10290 2010-04-26  Jan Hubicka  <jh@suse.cz>
10291
10292         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
10293
10294 2010-04-26  Richard Guenther  <rguenther@suse.de>
10295
10296         PR lto/43080
10297         * gimple.c (gimple_decl_printable_name): Deal gracefully
10298         with a NULL DECL_NAME.
10299
10300 2010-04-26  Richard Guenther  <rguenther@suse.de>
10301
10302         PR lto/42425
10303         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
10304         if emitting debug information and it is either a function
10305         or a namespace decl.
10306
10307 2010-04-26  Ira Rosen  <irar@il.ibm.com>
10308
10309         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
10310         determine if the statement is vectorizable, and a macro to access it.
10311         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10312         Skip statements that can't be vectorized. If the analysis fails,
10313         mark the statement as unvectorizable if vectorizing basic block.
10314         (vect_compute_data_refs_alignment): Likewise.
10315         (vect_verify_datarefs_alignment): Skip statements marked as
10316         unvectorizable. Add print.
10317         (vect_analyze_group_access): Skip statements that can't be
10318         vectorized. If the analysis fails, mark the statement as
10319         unvectorizable if vectorizing basic block.
10320         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
10321         * tree-vect-stmts.c (vectorizable_store): Fix the number of
10322         generated stmts for SLP.
10323         (new_stmt_vec_info): Initialize the new field.
10324         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
10325         statements marked as unvectorizable.
10326
10327 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
10328
10329         * c-common.c (flag_isoc1x): New.
10330         (flag_isoc99): Update comment.
10331         * c-common.h (flag_isoc1x): New.
10332         (flag_isoc99): Update comment.
10333         * c-cppbuiltin.c (builtin_define_float_constants): Also define
10334         __<type>_DECIMAL_DIG__.
10335         * c-opts.c (set_std_c1x): New.
10336         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
10337         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
10338         * c.opt (-std=c1x, -std=gnu1x): New options.
10339         * doc/cpp.texi: Mention -std=c1x.
10340         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
10341         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
10342         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
10343         * doc/standards.texi: Mention C1X.
10344         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
10345         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
10346         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
10347         Define for C1X.
10348
10349 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
10350
10351         * config/i386/gmon-sol2.c (_mcleanup): Change format string
10352         placeholder from 0x%x to %#x.
10353         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10354         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10355         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10356         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10357         * config/i386/i386.c (ix86_target_string): Ditto.
10358         (output_pic_addr_const): Ditto.
10359         (print_operand): Ditto.
10360
10361 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
10362
10363         * combine.c (find_split_point): Add third argument.  Use it
10364         to find nested multiply-accumulate instructions.  Adjust calls.
10365         (try_combine): Adjust call to find_split_point.
10366
10367 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
10368
10369         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
10370
10371 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
10372
10373         PR tree-optimization/41442
10374         * fold-const.c (merge_truthop_with_opposite_arm): New function.
10375         (fold_binary_loc): Call it.
10376
10377 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10378
10379         * toplev.c (general_init): Set default for fdiagnostics-show-option.
10380         * opts.c (common_handle_option): Allow disabling it.
10381         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
10382
10383 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
10384
10385         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
10386         between modes if both types are integral.
10387
10388 2010-04-23  Richard Guenther  <rguenther@suse.de>
10389
10390         PR tree-optimization/43572
10391         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
10392
10393 2010-04-23  Richard Guenther  <rguenther@suse.de>
10394
10395         PR lto/43455
10396         * tree-inline.c (tree_can_inline_p): Also check compatibility
10397         of return types.
10398
10399 2010-04-23  Martin Jambor  <mjambor@suse.cz>
10400
10401         PR tree-optimization/43846
10402         * tree-sra.c (struct access): New flag grp_assignment_read.
10403         (build_accesses_from_assign): Set grp_assignment_read.
10404         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
10405         (enum mark_read_status): New type.
10406         (analyze_access_subtree): Propagate grp_assignment_read, create
10407         accesses also if both direct_read and root->grp_assignment_read.
10408
10409 2010-04-23  Martin Jambor  <mjambor@suse.cz>
10410
10411         PR middle-end/43835
10412         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
10413         function does not have type attributes.
10414
10415 2010-04-23  Richard Guenther  <rguenther@suse.de>
10416
10417         PR lto/42653
10418         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
10419         of FUNCTION_DECLs.
10420
10421 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10422
10423         * sese.h (create_if_region_on_edge): Remove.
10424
10425         * sese.c (create_if_region_on_edge): Make static.
10426
10427         * tree-inline.c: Do not include ggc.h.
10428
10429         * expr.c: Do not include ggc.h.
10430
10431         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
10432         dependencies.
10433
10434 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
10435
10436         PR target/43744
10437         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10438         in the middle of insns for casesi_worker_2.
10439
10440 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
10441
10442         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
10443
10444 2010-04-22  Ira Rosen  <irar@il.ibm.com>
10445
10446         PR tree-optimization/43842
10447         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
10448         loop unrolling in update of exit phis. Fix comment.
10449         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
10450         least two reduction statements in the loop before starting SLP
10451         analysis.
10452
10453 2010-04-22  Nick Clifton  <nickc@redhat.com>
10454
10455         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
10456
10457 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
10458
10459         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
10460         to simplify a + ~a.
10461
10462 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10463
10464         * tree-parloops.c (loop_parallel_p): New argument
10465         parloop_obstack.  Pass it down.
10466         (parallelize_loops): New variable parloop_obstack.  Initialize it,
10467         pass it down, free it.
10468
10469         * tree-loop-linear.c (linear_transform_loops): Pass down
10470         lambda_obstack.
10471
10472         * tree-data-ref.h (lambda_compute_access_matrices): New argument
10473         of type struct obstack *.
10474
10475         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
10476         scratch_obstack.  Initialize it, pass down, free it.
10477
10478         * lambda.h (lambda_loop_new): Remove.
10479         (lambda_matrix_new, lambda_matrix_inverse)
10480         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
10481         argument of type struct obstack *.
10482
10483         * lambda-trans.c (lambda_trans_matrix_new): New argument
10484         lambda_obstack.  Pass it down, use obstack allocation for ret.
10485         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
10486         it down.
10487
10488         * lambda-mat.c (lambda_matrix_get_column)
10489         (lambda_matrix_project_to_null): Remove.
10490         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
10491         allocation for mat.
10492         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
10493         lambda_obstack.
10494
10495         * lambda-code.c (lambda_loop_new): New function.
10496         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
10497         (lambda_compute_auxillary_space, lambda_compute_target_space)
10498         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
10499         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
10500         (build_access_matrix): New argument lambda_obstack.  Use obstack
10501         allocation for am.
10502         (lambda_compute_step_signs, lambda_compute_access_matrices): New
10503         argument lambda_obstack.  Pass it down.
10504
10505 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
10506
10507         * optabs.h (expand_widening_mult): Declare.
10508
10509 2010-04-22  Richard Guenther  <rguenther@suse.de>
10510
10511         PR tree-optimization/43845
10512         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
10513         lookup the CALL_EXPR function and arguments.
10514
10515 2010-04-22  Nick Clifton  <nickc@redhat.com>
10516
10517         * config/stormy16/stormy16.c
10518         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
10519         * config/stormy16/stormy16.h: Tidy up formatting.
10520         (DONT_USE_BUILTIN_SETJMP): Remove definition.
10521         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
10522         (ineqbranchsi): Delete pattern.
10523         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
10524         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
10525         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
10526         stormy16-lib2-ucmpsi2.c.
10527
10528 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
10529
10530         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
10531         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
10532         extra set merge_set_noclobber, and use it to relax the final test
10533         slightly.
10534         * df.h (df_simulate_find_noclobber_defs): Declare.
10535         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
10536         conditional defs.
10537         (df_simulate_find_noclobber_defs): New function.
10538
10539 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
10540
10541         * config/i386/i386.md: Use {} around multi-line preparation statements.
10542
10543 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10544
10545         * c-tree.h (push_init_level, pop_init_level, set_init_index)
10546         (process_init_element): New argument of type struct obstack *.
10547
10548         * c-typeck.c (push_init_level, pop_init_level, set_designator)
10549         (set_init_index, set_init_label, set_nonincremental_init)
10550         (set_nonincremental_init_from_string, find_init_member)
10551         (output_init_element, output_pending_init_elements)
10552         (process_init_element): New argument braced_init_obstack.  Pass it
10553         down.
10554         (push_range_stack, add_pending_init): New argument
10555         braced_init_obstack.  Use obstack allocation.
10556
10557         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
10558         braced_init_obstack.  Pass it down.
10559         (c_parser_braced_init): New variables ret, braced_init_obstack.
10560         Initialize obstack, pass it down and finally free it.
10561
10562 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
10563
10564         PR middle-end/29274
10565         * tree-pass.h (pass_optimize_widening_mul): Declare.
10566         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
10567         gate_optimize_widening_mul): New static functions.
10568         (pass_optimize_widening_mul): New.
10569         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
10570         <case MULT_EXPR>: Remove support for widening multiplies.
10571         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
10572         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
10573         simplify_gen_unary rather than directly building extensions.
10574         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
10575         WIDEN_MULT_EXPR.
10576         * expmed.c (expand_widening_mult): New function.
10577         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
10578
10579 2010-04-21  Jan Hubicka  <jh@suse.cz>
10580
10581         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
10582         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
10583         * lto-wpa-fixup.c: Remove.
10584         * Makefile.in (lto-wpa-fixup.o): Remove.
10585         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
10586         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
10587         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
10588
10589 2010-04-21  Jan Hubicka  <jh@suse.cz>
10590
10591         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
10592         add write_optimization_summary, read_optimization_summary.
10593         (ipa_write_summaries_of_cgraph_node_set): Remove.
10594         (ipa_write_optimization_summaries): Declare.
10595         (ipa_read_optimization_summaries): Declare.
10596         * ipa-cp.c (pass_ipa_cp): Update.
10597         * ipa-reference.c (pass_ipa_reference): Update.
10598         * ipa-pure-const.c (pass_ipa_pure_const): Update.
10599         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
10600         Update.
10601         * ipa-inline.c (pass_ipa_inline): Update.
10602         * ipa.c (pass_ipa_whole_program): Update.
10603         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
10604         * passes.c (ipa_write_summaries_1): Do not test wpa.
10605         (ipa_write_optimization_summaries_1): New.
10606         (ipa_write_optimization_summaries): New.
10607         (ipa_read_summaries): Do not test ltrans.
10608         (ipa_read_optimization_summaries_1): New.
10609         (ipa_read_optimization_summaries): New.
10610
10611 2010-04-21  Jan Hubicka  <jh@suse.cz>
10612
10613         * lto-cgraph.c (lto_output_node): Do not output comdat groups
10614         for boundary nodes.
10615         (output_cgraph): Do not arrange comdat groups for boundary nodes.
10616
10617 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
10618
10619         PR debug/40040
10620         * dwarf2out.c (add_name_and_src_coords_attributes): Add
10621         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
10622
10623 2010-04-21  Jan Hubicka  <jh@suse.cz>
10624
10625         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
10626
10627 2010-04-21  Jan Hubicka  <jh@suse.cz>
10628
10629         * varpool.c (decide_is_variable_needed): Variable is always needed
10630         during ltrans.
10631
10632 2010-04-21  Jan Hubicka  <jh@suse.cz>
10633
10634         * opts.c (decode_options): Enable pure-const pass for whopr.
10635
10636 2010-04-21  Jan Hubicka  <jh@suse.cz>
10637
10638         * cgraph.c (dump_cgraph_node): Dump also assembler name.
10639         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
10640         at WPA dumping.
10641         (cgraph_decide_inlining): Do not expect callee to be removed in all
10642         cases.
10643
10644 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
10645
10646         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
10647
10648 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
10649
10650         * config/i386/i386.md (x86_shrd): Add athlon_decode and
10651         amdfam10_decode attributes.
10652
10653 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
10654
10655         PR middle-end/43570
10656         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
10657         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
10658         (lower_copyprivate_clauses): Use private var in outer
10659         context instead of original var.  Make sure the types
10660         are correct for VLAs.
10661
10662 2010-04-21  Richard Guenther  <rguenther@suse.de>
10663
10664         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
10665         to non-pointer objects.
10666
10667 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
10668
10669         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
10670         last chain entry if it starts with the still current label.
10671         (add_location_or_const_value_attribute): Check that
10672         loc_list->first->next is NULL instead of comparing ->first with ->last.
10673         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
10674         to add_var_loc_to_decl.
10675
10676         * dwarf2out.c (output_call_frame_info): For dw_cie_version
10677         >= 4 add also address size and segment size fields into CIE header.
10678
10679         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
10680         long as address size is the same as sizeof (void *) and
10681         segment size is 0.
10682         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
10683         address size or segment size is unexpected, return DW_EH_PE_omit.
10684         (classify_object_over_fdes): If get_cie_encoding returned
10685         DW_EH_PE_omit, return -1.
10686         (init_object): If classify_object_over_fdes returned -1,
10687         pretend there were no FDEs at all.
10688
10689 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
10690
10691         * config/i386/i386.md (bswap<mode>2): Macroize expander from
10692         bswap{si,di}2 using SWI48 mode iterator.
10693         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
10694         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
10695         set modrm attribute of bswap insn to 0 and remove length attribute.
10696         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
10697         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
10698         set mode attribute to <MODE> and remove length attribute.
10699
10700 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
10701
10702         PR rtl-optimization/43520
10703         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
10704         zero available registers.
10705
10706 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10707
10708         * builtins.c (fold_builtin_cproj): Fold more cases.
10709
10710 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10711
10712         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
10713         (fold_builtin_1): Fold builtin cproj.
10714         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
10715         Use ATTR_CONST_NOTHROW_LIST.
10716
10717 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
10718
10719         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
10720         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
10721         ffsi2_no_cmove for !TARGET_CMOVE.
10722         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
10723         (ffssi2): Remove expander.
10724         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
10725         mode iterator.
10726         (ctz<mode>2): Ditto from ctz{si,di}2.
10727         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
10728         mode iterator.
10729         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
10730         mode iterator.
10731
10732 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
10733
10734         * dwarf2out.c (AT_linkage_name): Define.
10735         (clone_as_declaration): Handle DW_AT_linkage_name.
10736         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
10737         of DW_AT_MIPS_linkage_name.
10738         (move_linkage_attr): Likewise.
10739         (dwarf2out_finish): Likewise.
10740
10741 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
10742
10743         PR middle-end/41952
10744         * fold-const.c (fold_comparison): New folding rule.
10745
10746 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
10747
10748         * double-int.h (double_int_setbit): Declare.
10749         * double-int.c (double_int_setbit): New function.
10750         * rtl.h (immed_double_int_const): Declare.
10751         * emit-rtl.c (immed_double_int_const): New function.
10752         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
10753         and immed_double_int_const functions.
10754         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
10755         expand_copysign_bit):  (Ditto.).
10756         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
10757         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
10758         * dojump.c (prefer_and_bit_test): (Ditto.).
10759         * expr.c (convert_modes, reduce_to_bit_field_precision,
10760         const_vector_from_tree): (Ditto.).
10761         * expmed.c (mask_rtx, lshift_value): (Ditto.).
10762
10763 2010-04-20  Jan Hubicka  <jh@suse.cz>
10764
10765         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
10766         (dump_cgraph_node): Dump new flags.
10767         * cgraph.h (struct cgraph_node): Add flags
10768         reachable_from_other_partition and in_other_partition.
10769         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
10770         other partition can not be removed.
10771         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
10772         the other partition must be output; silence sanity checking on
10773         leaking functions bodies from other paritition.
10774         * lto-cgraph.c (reachable_from_other_partition_p): New function.
10775         (lto_output_node): Output new flags; do not sanity check that inline
10776         clones are output; drop lto_forced_extern_inline_p code; do not mock
10777         visibility flags at partition boundaries.
10778         (add_node_to): New function.
10779         (output_cgraph): Use it to sort functions so masters appear before
10780         clones.
10781         (input_overwrite_node): Input new flags.
10782         * passes.c (ipa_write_summaries): Do not call
10783         lto_new_extern_inline_states.
10784         * lto-section-out.c (forced_extern_inline,
10785         lto_new_extern_inline_states lto_delete_extern_inline_states,
10786         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
10787         * lto-streamer.h (lto_new_extern_inline_states,
10788         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
10789         lto_forced_extern_inline_p): Kill.
10790
10791 2010-04-20  Richard Guenther  <rguenther@suse.de>
10792
10793         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
10794         from vars that can have pointers.
10795         (process_constraint): Dump useless constraints.
10796
10797 2010-04-20  Richard Guenther  <rguenther@suse.de>
10798
10799         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
10800         (dump_sa_points_to_info): Remove asserts.
10801         (init_base_vars): nothing_id isn't an escape point nor does it
10802         have pointers.
10803
10804 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
10805
10806         * tree.h (TYPE_REF_IS_RVALUE): Define.
10807         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
10808         should_move_die_to_comdat, prune_unused_types_walk): Handle
10809         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
10810         (modified_type_die, gen_reference_type_die): Emit
10811         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
10812         if TYPE_REF_IS_RVALUE and -gdwarf-4.
10813
10814 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10815
10816         PR target/43635
10817         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
10818         calls for -fpic -m31 if they have been sibcall optimized.
10819
10820 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
10821
10822         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
10823         ar.lc fixed and call-used.
10824
10825         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
10826
10827 2010-04-19  Jan Hubicka  <jh@suse.cz>
10828
10829         * opts.c (decode_options): Disable whpr incompatible passes.
10830         * lto/lto.c (lto_1_to_1_map): Skip clones.
10831         (read_cgraph_and_symbols): Do not mark everything as needed.
10832         (do_whole_program_analysis): Do map only after optimizing;
10833         set proper cgraph_state; use passmanager.
10834
10835 2010-04-19  DJ Delorie  <dj@redhat.com>
10836
10837         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
10838         POINTER_PLUS_EXPR and fix them.
10839
10840 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
10841
10842         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
10843         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
10844         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
10845         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
10846         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
10847         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
10848         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
10849         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
10850         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
10851         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
10852         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
10853
10854 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
10855
10856         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
10857         (check_cond_move_block): Likewise.
10858         (cond_move_process_if_block): Likewise.
10859         (noce_find_if_block): Improve formatting.
10860         (find_if_header): Pass 0 to memset and tweak conditions.
10861         (cond_exec_find_if_block): Fix long lines and tweak conditions.
10862
10863 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
10864
10865         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
10866         for -gdwarf-4.
10867
10868         PR middle-end/43337
10869         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
10870         with non-local decl doesn't need chain.
10871
10872 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
10873
10874         * ira-color.c (allocno_reload_assign): Avoid accumulating
10875         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
10876
10877 2010-04-19  Martin Jambor  <mjambor@suse.cz>
10878
10879         * gimple.h (create_tmp_reg): Declare.
10880         * gimplify.c (create_tmp_reg): New function.
10881         (gimplify_return_expr): Use create_tmp_reg.
10882         (gimplify_omp_atomic): Likewise.
10883         (gimple_regimplify_operands): Likewise.
10884         * tree-dfa.c (make_rename_temp): Likewise.
10885         * tree-predcom.c (predcom_tmp_var): Likewise.
10886         (reassociate_to_the_same_stmt): Likewise.
10887         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
10888         (get_replaced_param_substitute): Likewise.
10889         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
10890         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
10891         * tree-ssa-pre.c (get_representative_for): Likewise.
10892         (create_expression_by_pieces): Likewise.
10893         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
10894         (create_tailcall_accumulator): Likewise.
10895
10896 2010-04-19  Martin Jambor  <mjambor@suse.cz>
10897
10898         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
10899         new_stmt.
10900         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
10901
10902 2010-04-19  Richard Guenther  <rguenther@suse.de>
10903
10904         PR tree-optimization/43796
10905         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
10906         from SCEV in the lattice.
10907         (vrp_visit_phi_node): Dump change.
10908
10909 2010-04-19  Richard Guenther  <rguenther@suse.de>
10910
10911         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
10912         * configure: Re-generated.
10913
10914 2010-04-19  Richard Guenther  <rguenther@suse.de>
10915
10916         PR tree-optimization/43783
10917         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
10918         constant ARRAY_REF operands two and three if possible.
10919
10920 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
10921
10922         PR target/43766
10923         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
10924
10925 2010-04-19  Jie Zhang  <jie@codesourcery.com>
10926
10927         PR target/43662
10928         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
10929
10930 2010-04-19  Ira Rosen  <irar@il.ibm.com>
10931
10932         PR tree-optimization/37027
10933         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
10934         and macro to access it.
10935         (vectorizable_reduction): Add argument.
10936         (vect_get_slp_defs): Likewise.
10937         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
10938         statements for possible use in SLP.
10939         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
10940         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
10941         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
10942         add new argument.
10943         (vectorizable_reduction): Likewise.
10944         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
10945         vect_get_slp_defs.
10946         (vectorizable_type_demotion, vectorizable_type_promotion,
10947         vectorizable_store): Likewise.
10948         (vect_analyze_stmt): Update call to vectorizable_reduction.
10949         (vect_transform_stmt): Likewise.
10950         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
10951         (vect_build_slp_tree): Fix indentation. Check that there are no loads
10952         from different interleaving chains in same node.
10953         (vect_slp_rearrange_stmts): New function.
10954         (vect_supported_load_permutation_p): Allow load permutations for
10955         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
10956         inside SLP nodes if necessary.
10957         (vect_analyze_slp_instance): Handle reductions.
10958         (vect_analyze_slp): Try to build SLP instances originating from groups
10959         of reductions.
10960         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
10961         (vect_get_constant_vectors): Create initial vectors for reductions
10962         according to reduction code. Add new argument.
10963         (vect_get_slp_defs): Add new argument, pass it to
10964         vect_get_constant_vectors.
10965         (vect_schedule_slp_instance): Remove SLP tree root statements.
10966
10967 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
10968
10969         * tree.h (ENUM_IS_SCOPED): Define.
10970         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
10971         for ENUM_IS_SCOPED enums.
10972
10973 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
10974
10975         * fold-const.c (fold_comparison): Use ssizetype.
10976         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
10977         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
10978         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
10979         * tree-object-size.c (compute_object_sizes): Use size_type_node.
10980
10981         * tree.h (initialize_sizetypes): Remove parameter.
10982         (build_common_tree_nodes): Remove second parameter.
10983         * stor-layout.c (initialize_sizetypes): Remove parameter.
10984         Always create an unsigned type.
10985         (set_sizetype): Assert that the passed type is unsigned and simplify.
10986         * tree.c (build_common_tree_nodes): Remove second parameter.
10987         Adjust call to initialize_sizetypes.
10988         * c-decl.c (c_init_decl_processing): Remove second argument in call to
10989         build_common_tree_nodes.
10990
10991 2010-04-18  Matthias Klose  <doko@ubuntu.com>
10992
10993         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
10994
10995 2010-04-18  Ira Rosen  <irar@il.ibm.com>
10996
10997         PR tree-optimization/43771
10998         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
10999         load permutation doesn't have gaps.
11000
11001 2010-04-18  Jan Hubicka  <jh@suse.cz>
11002
11003         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
11004         (sse_prologue_save_insn expander): Use new pattern.
11005         (sse_prologue_save_insn1): New pattern and splitter.
11006         (sse_prologue_save_insn): Update to deal also with 64bit aligned
11007         blocks.
11008         * i386.c (setup_incoming_varargs_64): Do not compute jump
11009         destination here.
11010         (ix86_gimplify_va_arg): Update alignment needed.
11011         (ix86_local_alignment): Do not align all local arrays to 128bit.
11012
11013 2010-04-17  Jan Hubicka  <jh@suse.cz>
11014
11015         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
11016
11017 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11018
11019         * arm.md (negdi2): Remove redundant code to force values into a
11020         register.
11021
11022 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11023
11024         * arm/bpabi.S: Add EABI alignment attributes to objects.
11025         * arm/bpabi-v6m.S: Likewise.
11026         * arm/crti.asm: Likewise.
11027         * arm/crtn.asm: Likewise.
11028         * arm/lib1funcs.asm: Likewise.
11029         * arm/libunwind.S: Likewise.
11030
11031 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11032
11033         * arm-protos.h (tune_params): New structure.
11034         * arm.c (current_tune): New variable.
11035         (arm_constant_limit): Delete.
11036         (struct processors): Add pointer to the tune parameters.
11037         (arm_slowmul_tune): New tuning option.
11038         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
11039         (all_cores): Adjust to pick up the tuning model.
11040         (arm_constant_limit): New function.
11041         (arm_override_options): Select the appropriate tuning model.  Delete
11042         initialization of arm_const_limit.
11043         (arm_split_constant): Use the new constant-limit model.
11044         (arm_rtx_costs): Pick up the current tuning model.
11045         * arm.md (is_strongarm, is_xscale): Delete.
11046         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
11047         for Xscale variant architectures.
11048         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
11049
11050 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11051
11052         * config/arm/arm.c (arm_gen_constant): Remove unused variable
11053         can_shift.
11054         (arm_rtx_costs_1): Remove unused variable extra_cost.
11055         (arm_unwind_emit_set): Use variable offset.
11056         (thumb1_output_casesi): Remove unused variable flags.
11057
11058 2010-04-16  Jeff Law  <law@redhat.com>
11059
11060         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
11061         needing assignment rather than doing a two-phase assignment.  Remove
11062         unused variable 'm'.
11063
11064 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11065
11066         PR bootstrap/43767
11067         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
11068
11069 2010-04-16  Doug Kwan  <dougkwan@google.com>
11070
11071         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
11072         (next_operand_entry_id): New static variable.
11073         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
11074         (add_to_ops_vec): Assigned unique ID to operand entry.
11075         (struct oecount_s): New field ID.
11076         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
11077         (undistribute_ops_list): Assign unique IDs to oecounts.
11078         (init_reassoc): reset next_operand_entry_id.
11079
11080 2010-04-16  Doug Kwan  <dougkwan@google.com>
11081
11082         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
11083         missing left parenthesis.
11084
11085 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
11086
11087         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
11088         *btdi_rex64 using SWI48 mode iterator.
11089         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
11090         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
11091         *jcc_btdi_mask_rex64.
11092
11093 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
11094
11095         * double-int.h (tree_to_double_int): Convert to macro.
11096         * double-int.c (tree_to_double_int): Remove.
11097
11098 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11099
11100         PR debug/43762
11101         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
11102         with want_address 2 and in case a single element list might be
11103         possible, call it again with want_address 0.
11104
11105 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
11106
11107         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
11108         case 'W' print operands for HI mode.
11109         * config/h8300/h8300.h (Y0, Y2) : New constraints.
11110         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
11111         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
11112         * config/h8300/predicate.md (bit_register_indirect_operand): New.
11113
11114         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
11115
11116         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
11117         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
11118         #xx:3 and #xx:4 mode.
11119
11120         * config/h8300/h8300.md (inverted load with HImode dest): Add
11121         support for H8300SX.
11122
11123         * config/h8300/predicate.md (bit_operand): Allow immediate values that
11124         satisfy 'U' constraint.
11125
11126 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11127
11128         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
11129         * configure: Regenerate.
11130         * config.in: Regenerate.
11131         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
11132         works.
11133
11134 2010-04-16  Richard Guenther  <rguenther@suse.de>
11135
11136         * tree.h (struct tree_decl_minimal): Move pt_uid ...
11137         (struct tree_decl_common): ... here.
11138         (DECL_PT_UID): Adjust.
11139         (SET_DECL_PT_UID): Likewise.
11140         (DECL_PT_UID_SET_P): Likewise.
11141
11142 2010-04-16  Richard Guenther  <rguenther@suse.de>
11143
11144         PR tree-optimization/43572
11145         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
11146         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
11147         * tree-flow.h (is_call_clobbered): Remove.
11148         * tree-flow-inline.h (is_call_clobbered): Likewise.
11149         * tree-dfa.c (dump_variable): Do not dump call clobber state.
11150         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
11151         (execute_return_slot_opt): Adjust.
11152         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
11153         check for call clobbered vars here.
11154         (find_tail_calls): Move tailcall verification to the
11155         proper place.
11156
11157 2010-04-16  Diego Novillo  <dnovillo@google.com>
11158
11159         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
11160
11161 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
11162
11163         PR target/40603
11164         * config/arm/arm.md (cbranchqi4): New pattern.
11165         * config/arm/predicates.md (const0_operand,
11166         cbranchqi4_comparison_operator): New predicates.
11167
11168 2010-04-16  Richard Guenther  <rguenther@suse.de>
11169
11170         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
11171         (dump_gimple_stmt): Likewise.
11172
11173 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
11174
11175         * recog.h (struct recog_data): New field is_operator.
11176         (struct insn_operand_data): New field is_operator.
11177         * recog.c (extract_insn): Set recog_data.is_operator.
11178         * genoutput.c (output_operand_data): Emit code to set the
11179         is_operator field.
11180         * reload.c (find_reloads): Use it rather than testing for an
11181         empty constraint string.
11182
11183         PR target/41514
11184         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
11185         If the previous insn is a cbranchsi4_insn with the same arguments,
11186         omit the compare instruction.
11187
11188         * config/arm/arm.md (addsi3_cbranch): If destination is a high
11189         register, inputs must be low registers and we need a low register
11190         scratch.  Handle alternative 2 like alternative 3.
11191
11192 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11193
11194         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
11195         don't call get_addr on both.  If one expression is a VALUE and
11196         the other a REG, check VALUE's locs if the REG isn't among them.
11197
11198 2010-04-16  Christian Bruel  <christian.bruel@st.com>
11199
11200         * config/sh/sh.h (sh_frame_pointer_required): New function.
11201         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
11202         (flag_omit_frame_pointer) Set.
11203         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
11204         (rounded_frame_size): Adjust size with outgoing_args_size.
11205         (sh_set_return_address): Must return from stack pointer.
11206         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
11207         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
11208         (ACCUMULATE_OUTGOING_ARGS): Define.
11209         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
11210         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
11211
11212 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
11213
11214         PR target/43471
11215         * config/sh/sh.c (sh_legitimize_reload_address): Use
11216         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
11217         Remove a unneeded check for offset_base.
11218
11219 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
11220
11221         * configure: Regenerated.
11222
11223 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11224
11225         * config/s390/s390.c (s390_call_save_register_used): Switch back
11226         to HARD_REGNO_NREGS.
11227
11228 2010-04-15  Richard Guenther  <rguenther@suse.de>
11229
11230         * alias.c (alias_set_subset_of): Handle alias-set zero
11231         child properly.
11232
11233 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
11234             Julian Brown  <julian@codesourcery.com>
11235
11236         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
11237         alternatives according to use of high and low regs.
11238         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
11239         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
11240         optimizing for size on Thumb-2.
11241
11242 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
11243
11244         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
11245
11246 2010-04-15  Richard Guenther  <rguenther@suse.de>
11247
11248         * tree-ssa-structalias.c (struct variable_info): Add
11249         is_fn_info flag.
11250         (new_var_info): Initialize it.
11251         (dump_constraints): Support printing last added constraints.
11252         (debug_constraints): Adjust.
11253         (dump_constraint_graph): Likewise.
11254         (make_heapvar_for): Check for NULL cfun.
11255         (get_function_part_constraint): New function.
11256         (get_fi_for_callee): Likewise.
11257         (find_func_aliases): Properly implement IPA PTA constraints.
11258         (process_ipa_clobber): New function.
11259         (find_func_clobbers): Likewise.
11260         (insert_into_field_list_sorted): Remove.
11261         (create_function_info_for): Properly allocate vars for IPA mode.
11262         Do not use insert_into_field_list_sorted.
11263         (create_variable_info_for): Properly generate constraints for
11264         global vars in IPA mode.
11265         (dump_solution_for_var): Always dump the solution.
11266         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
11267         (find_what_var_points_to): Adjust.
11268         (pt_solution_set): Change.
11269         (pt_solution_ior_into): New function.
11270         (pt_solution_empty_p): Export.
11271         (pt_solution_includes_global): Adjust.
11272         (pt_solution_includes_1): Likewise.
11273         (pt_solutions_intersect_1): Likewise.
11274         (dump_sa_points_to_info): Check some invariants.
11275         (solve_constraints): Move constraint dumping ...
11276         (compute_points_to_sets): ... here.
11277         (ipa_pta_execute): ... and here.
11278         (compute_may_aliases): Do not re-compute points-to info
11279         locally if IPA info is available.
11280         (ipa_escaped_pt): New global var.
11281         (ipa_pta_execute): Properly implement IPA PTA.
11282         * tree-into-ssa.c (dump_decl_set): Support dumping
11283         decls not in referenced-vars.
11284         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
11285         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
11286         (dump_points_to_solution): Likewise.
11287         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
11288         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
11289         (remap_gimple_stmt): Reset call clobber/use information if necessary.
11290         (copy_decl_to_var): Copy DECL_PT_UID.
11291         (copy_result_decl_to_var): Likewise.
11292         * tree.c (make_node_stat): Initialize DECL_PT_UID.
11293         (copy_node_stat): Copy it.
11294         * tree.h (DECL_PT_UID): New macro.
11295         (SET_DECL_PT_UID): Likewise.
11296         (DECL_PT_UID_SET_P): Likewise.
11297         (struct tree_decl_minimal): Add pt_uid member.
11298         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
11299         (pt_solution_empty_p): Declare.
11300         (pt_solution_set): Adjust.
11301         (ipa_escaped_pt): Declare.
11302         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
11303         * gimple-pretty-print.c (pp_points_to_solution): New function.
11304         (dump_gimple_call): Dump call clobber/use information.
11305         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
11306         * tree-pass.h (TDF_ALIAS): New dump option.
11307         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
11308         * doc/invoke.texi (-fipa-pta): Update documentation.
11309
11310 2010-04-15  Richard Guenther  <rguenther@suse.de>
11311
11312         * Makefile.in (OBJS-common): Add gimple-fold.o.
11313         (gimple-fold.o): New rule.
11314         * tree.h (maybe_fold_offset_to_reference,
11315         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
11316         prototypes ...
11317         * gimple.h: ... here.
11318         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
11319         may_propagate_address_into_dereference): Move prototypes ...
11320         * gimple.h: ... here.
11321         * tree-ssa-ccp.c (get_symbol_constant_value,
11322         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
11323         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
11324         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
11325         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
11326         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
11327         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
11328         gimplify_and_update_call_from_tree): Move ...
11329         * gimple-fold.c: ... here.  New file.
11330         (ccp_fold_builtin): Rename to ...
11331         (gimple_fold_builtin): ... this.
11332         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
11333
11334 2010-04-15  Richard Guenther  <rguenther@suse.de>
11335
11336         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
11337         fit_double_type, force_fit_type_double, add_double_with_sign,
11338         neg_double, mul_double_with_sign, lshift_double, rshift_double,
11339         lrotate_double, rrotate_double, div_and_round_double): Move ...
11340         * double-int.c: ... here.
11341         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
11342         add_double, neg_double, mul_double_with_sign, mul_double,
11343         lshift_double, rshift_double, lrotate_double, rrotate_double,
11344         div_and_round_double): Move prototypes ...
11345         * double-int.h: ... here.
11346
11347 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
11348
11349         PR target/43742
11350         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
11351         matching constraints to ensure inputs match the output.
11352
11353 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
11354
11355         PR target/43742
11356         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
11357         in an input-only operand.
11358
11359 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
11360
11361         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
11362         (double_int_not, double_int_lshift, double_int_rshift): Declare.
11363         (double_int_negative_p): Convert to static inline function.
11364         * double-int.c (double_int_lshift, double_int_lshift): New functions.
11365         (double_int_negative_p): Remove.
11366         * tree.h (lshift_double, rshift_double):
11367         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
11368         * fold-const.c (fold_convert_const_int_from_real,
11369         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
11370         (lshift_double): Change type of arith argument to bool.
11371         (rshift_double): Change type of arith argument to bool. Correct
11372         comment.
11373         * expmed.c (mask_rtx, lshift_value): (Ditto.).
11374
11375 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
11376
11377         PR target/21803
11378         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
11379         at the start and end of the then/else blocks, and omit them from the
11380         conversion.
11381         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
11382         argument; all callers changed.  Pass zero to old_insns_match_p instead.
11383         (flow_find_head_matching_sequence): New function.
11384         (old_insns_match_p): Check REG_EH_REGION notes for calls.
11385         * basic-block.h (flow_find_cross_jump,
11386         flow_find_head_matching_sequence): Declare functions.
11387
11388 2010-04-14  Jason Merrill  <jason@redhat.com>
11389
11390         PR c++/36625
11391         * c-common.c (attribute_takes_identifier_p): New fn.
11392         * c-common.h: Declare it.
11393
11394 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
11395
11396         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
11397         splitter condition.
11398         (*udivmod<mode>4): Ditto.
11399
11400 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
11401
11402         * config/i386/i386.md (maxmin_int): Rename code attribute from
11403         maxminiprefix and update all users.
11404         (maxmin_float): Ditto from maxminfprefix.
11405         (logic): Ditto from logicprefix.
11406         (absneg_mnemonic): Ditto from absnegprefix.
11407         * config/i386/mmx.md: Update all users of maxminiprefix,
11408         maxminfprefix and logicprefix for rename.
11409         * config/i386/sse.md: Ditto.
11410         * config/i386/sync.md (sync_<code><mode>): Update for
11411         logicprefix rename.
11412
11413 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11414
11415         PR 42966
11416         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
11417         warnings converted to errors.
11418
11419 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
11420
11421         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
11422         used insn_type variable.
11423         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
11424         to avoid set-but-not-used warning.
11425
11426 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
11427
11428         * df-core.c (df_ref_debug): Change format string placeholder
11429         from 0x%x to %#x.
11430         * dwarf2asm.c (dw2_asm_output_data_raw,
11431         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
11432         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
11433         * dwarf2out.c (output_cfi, output_cfi_directive,
11434         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
11435         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
11436         Ditto.
11437         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
11438         * print-rtl.c (print_rtx): Ditto.
11439
11440 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11441
11442         PR middle-end/42694
11443         * builtins.c (expand_builtin_pow_root): New function to expand pow
11444         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
11445         series of sqrt and cbrt calls under -ffast-math.
11446         (expand_builtin_pow): Call it.
11447
11448 2010-04-14  Michael Matz  <matz@suse.de>
11449
11450         PR tree-optimization/42963
11451         * tree-cfg.c (touched_switch_bbs): New static variable.
11452         (group_case_labels_stmt): New function broken out from ...
11453         (group_case_labels): ... here, use the above.
11454         (start_recording_case_labels): Allocate touched_switch_bbs.
11455         (end_recording_case_labels): Deallocate it, call
11456         group_case_labels_stmt.
11457         (gimple_redirect_edge_and_branch): Remember index of affected BB.
11458
11459 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
11460
11461         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
11462         from insn template.
11463
11464 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
11465
11466         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
11467
11468 2010-04-13  Jan Hubicka  <jh@suse.cz>
11469
11470         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
11471         of optimized out static functions.
11472         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
11473         cost computation.  Also sanity check for overflows.
11474         (update_caller_keys): Update cgraph_edge_badness call; properly
11475         update fibheap and sanity check that it is up to date.
11476         (add_new_edges_to_heap): Update cgraph_edge_badness.
11477         (cgraph_decide_inlining_of_small_function): Likewise;
11478         add sanity checking that badness in heap is up to date;
11479         improve dumping of reason; Update badness of calls to the
11480         offline copy of function currently inlined; dump badness
11481         of functions not inlined because of unit growth limits.
11482
11483 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
11484
11485         PR middle-end/32628
11486         * c-common.c (pointer_int_sum): Disregard overflow that occured only
11487         because of sign-extension change when converting to sizetype here...
11488         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
11489
11490         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
11491         the folding to constants.  Remove redundant final conversion.
11492         (fold_binary) <associate>: Do not associate if the re-association of
11493         constants alone overflows.
11494         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
11495         to the end of the list.
11496         (multiple_of_p) <COND_EXPR>: New case.
11497
11498 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11499
11500         * opt-functions.awk (opt_sanitized_name): New.
11501         (opt_enum): New.
11502         * optc-gen.awk: Use it
11503         * opth-gen.awk: Use it.
11504
11505 2010-04-13  Martin Jambor  <mjambor@suse.cz>
11506
11507         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
11508         (sra_modify_assign): Delete stmts loading dead data even if racc has no
11509         children.  Call replace_uses_with_default_def_ssa_name to handle
11510         SSA_NAES on lhs.
11511
11512 2010-04-13  Michael Matz  <matz@suse.de>
11513
11514         PR middle-end/43730
11515         * builtins.c (expand_builtin_interclass_mathfn): Also create
11516         a register if the predicate doesn't match.
11517
11518 2010-04-13  Diego Novillo  <dnovillo@google.com>
11519
11520         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
11521         * c-pch.c: Include timevar.h.
11522         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
11523         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
11524         * ggc-common.c: Include timevar.h.
11525         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
11526         * timevar.def (TV_PCH_SAVE): Define.
11527         (TV_PCH_CPP_SAVE): Define.
11528         (TV_PCH_PTR_REALLOC): Define.
11529         (TV_PCH_PTR_SORT): Define.
11530         (TV_PCH_RESTORE): Define.
11531         (TV_PCH_CPP_RESTORE): Define.
11532
11533 2010-04-13  Michael Matz  <matz@suse.de>
11534
11535         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
11536         into MINUS_EXPRs.
11537         (can_reassociate_p): New function.
11538         (break_up_subtract_bb, reassociate_bb): Use it.
11539
11540 2010-04-13  Richard Guenther  <rguenther@suse.de>
11541
11542         PR bootstrap/43737
11543         * builtins.c (c_readstr): Fix assert.
11544
11545 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
11546
11547         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
11548         when generating cltd insn.
11549
11550         (*ashl<mode>3_1): Remove special handling for register operand 2.
11551         (*ashlsi3_1_zext): Ditto.
11552         (*ashlhi3_1): Ditto.
11553         (*ashlhi3_1_lea): Ditto.
11554         (*ashlqi3_1): Ditto.
11555         (*ashlqi3_1_lea): Ditto.
11556         (*<shiftrt_insn><mode>3_1): Ditto.
11557         (*<shiftrt_insn>si3_1_zext): Ditto.
11558         (*<shiftrt_insn>qi3_1_slp): Ditto.
11559         (*<rotate_insn><mode>3_1): Ditto.
11560         (*<rotate_insn>si3_1_zext): Ditto.
11561         (*<rotate_insn>qi3_1_slp): Ditto.
11562
11563 2010-04-13  Richard Guenther  <rguenther@suse.de>
11564
11565         * tree-ssa-structalias.c (callused_id): Remove.
11566         (call_stmt_vars): New.
11567         (get_call_vi): Likewise.
11568         (lookup_call_use_vi): Likewise.
11569         (lookup_call_clobber_vi): Likewise.
11570         (get_call_use_vi): Likewise.
11571         (get_call_clobber_vi): Likewise.
11572         (make_transitive_closure_constraints): Likewise.
11573         (handle_const_call): Adjust to do per-call call-used handling.
11574         (handle_pure_call): Likewise.
11575         (find_what_var_points_to): Remove general callused handling.
11576         (init_base_vars): Likewise.
11577         (init_alias_vars): Initialize call_stmt_vars.
11578         (compute_points_to_sets): Process call-used and call-clobbered
11579         vars for call statements.
11580         (delete_points_to_sets): Free call_stmt_vars.
11581
11582 2010-04-13  Richard Guenther  <rguenther@suse.de>
11583
11584         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11585         Only add RW dependence for dependence distance zero.
11586         Adjust maximal vectorization factor according to dependences.
11587         Move alignment handling ...
11588         (vect_find_same_alignment_drs): ... here.  New function.
11589         (vect_analyze_data_ref_dependences): Adjust.
11590         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
11591         (vect_analyze_data_refs): Adjust minimal vectorization factor
11592         according to data references.
11593         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
11594         dependences before determining the vectorization factor.
11595         Analyze alignment after determining the vectorization factor.
11596         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
11597         dependences before alignment.
11598         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
11599         Adjust prototype.
11600         (vect_analyze_data_refs): Likewise.
11601         (MAX_VECTORIZATION_FACTOR): New define.
11602
11603 2010-04-13  Duncan Sands  <baldrick@free.fr>
11604
11605         * except.h (lang_eh_type_covers): Remove.
11606         * except.c (lang_eh_type_covers): Likewise.
11607
11608 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11609             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11610
11611         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
11612         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
11613         UNITS_PER_LONG where it is ABI relevant.
11614         (s390_return_addr_rtx): Likewise.
11615         (s390_back_chain_rtx): Likewise.
11616         (s390_frame_area): Likewise.
11617         (s390_frame_info): Likewise.
11618         (s390_initial_elimination_offset): Likewise.
11619         (save_gprs): Likewise.
11620         (s390_emit_prologue): Likewise.
11621         (s390_emit_epilogue): Likewise.
11622         (s390_function_arg_advance): Likewise.
11623         (s390_function_arg): Likewise.
11624         (s390_va_start): Likewise.
11625         (s390_gimplify_va_arg): Likewise.
11626         (s390_function_profiler): Likewise.
11627         (s390_optimize_prologue): Likewise.
11628         (s390_rtx_costs): Likewise.
11629         (s390_secondary_reload): Likewise.
11630         (s390_promote_function_mode): Likewise.
11631         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
11632         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
11633         registers available.
11634         (s390_unwind_word_mode): New function.
11635         (s390_function_value): Split 64 bit values into register pair if
11636         used as return value.
11637         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
11638         function call parameters.  Handle parallels.
11639         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
11640         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
11641         (DWARF_CIE_DATA_ALIGNMENT): New macro.
11642         (s390_expand_setmem): Remove unused variable src_addr.
11643         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
11644         deal with 64 bit registers.
11645         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
11646         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
11647         (UNITS_PER_LONG): New macro.
11648         * libjava/include/s390-signal.h: Define extended ucontext
11649         structure containing the upper halfs of the 64 bit registers.
11650
11651 2010-04-13  Simon Baldwin  <simonb@google.com>
11652
11653         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
11654
11655 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
11656
11657         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
11658         rvalue on the RHS if the LHS is of a non-renamable type.
11659         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
11660
11661 2010-04-13  Matthias Klose  <doko@ubuntu.com>
11662
11663         * gcc.c (cc1_options): Handle -iplugindir before processing
11664         the cc1 spec. Only add -iplugindir once.
11665         (cpp_unique_options): Add -iplugindir option if -fplugin* options
11666         found.
11667         * common.opt (iplugindir): Remove `Separate' property, initialize.
11668         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
11669         option.
11670         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
11671         (distclean): Remove plugin dir.
11672         * doc/invoke.texi: Document -iplugindir.
11673
11674 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
11675
11676         * doc/plugins.texi (Loading Plugins): Document short
11677         -fplugin=foo option.
11678         (Plugin API): Mention default_plugin_dir_name function.
11679
11680         * gcc.c (find_file_spec_function): Add new declaration.
11681         (static_spec_func): Use it for "find-file".
11682         (find_file_spec_function): Add new function.
11683         (cc1_options): Add -iplugindir option if -fplugin* options found.
11684
11685         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
11686
11687         * plugin.c (add_new_plugin): Updated comment, and handle short
11688         plugin name.
11689         (default_plugin_dir_name): Added new function.
11690
11691         * common.opt (iplugindir): New option to set the plugin directory.
11692
11693 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
11694
11695         * config/i386/i386.md (any_rotate): New code iterator.
11696         (rotate_insn): New code attribute.
11697         (rotate): Ditto.
11698         (SWIM124): New mode iterator.
11699         (<rotate_insn>ti3): New expander.
11700         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
11701         any_rotate code iterator.
11702         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
11703         using any_rotate code iterator and SWIM124 mode iterator.
11704         (ix86_rotlti3): New insn_and_split pattern.
11705         (ix86_rotrti3): Ditto.
11706         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
11707         ix86_rotl{di,ti}3 patterns.
11708         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
11709         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
11710         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
11711         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
11712         code iterator and SWI mode iterator.
11713         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
11714         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
11715         code iterator.
11716         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
11717         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
11718         (bswap rotatert splitter): Add splitter.
11719         (bswap splitter): Macroize splitter using any_rotate code iterator.
11720         Add insn predicate to split only for TARGET_USE_XCHGB or when
11721         optimizing function for size.
11722
11723 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
11724
11725         * config/pa/pa.c (emit_move_sequence): Remove use of
11726         deleted variable flag_argument_noalias.
11727
11728 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11729
11730         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
11731         configurations.
11732         Add to unsupported targets list.
11733         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
11734         sparc*-sun-solaris2.[567]* from target lists.
11735         * configure: Regenerate.
11736         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
11737         removal.
11738         Remove Solaris 7 patch references.
11739         (Specific, sparc-sun-solaris2.7): Removed.
11740         (sparc-sun-solaris2*): Update Solaris 7 example.
11741         (sparc64-*-solaris2*): Likewise.
11742
11743 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11744
11745         * config.build (alpha*-dec-osf4*): Remove.
11746         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
11747         of obsolete configurations.
11748         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
11749         support.
11750         * config/alpha/t-osf4: Renamed to ...
11751         * config/alpha/t-osf5: ... this.
11752         * config/alpha/osf.h: Renamed to ...
11753         * config/alpha/osf5.h: ... this.
11754         Merged old osf5.h contents.
11755         Update comments.
11756         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
11757         (EXTRA_SPECS): Removed.
11758         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
11759         reflect removal of Tru64 UNIX V4.0/V5.0 support.
11760         Document that.
11761
11762 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11763
11764         * doc/contrib.texi (Contributors, Rainer Orth): Update.
11765
11766 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
11767
11768         PR/43702
11769         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
11770         __thiscall convention.
11771
11772 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
11773
11774         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
11775         orig_base.
11776         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
11777
11778 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
11779
11780         * function.c (assign_parms_initialize_all): Add unused attribute
11781         to fntype.
11782
11783 2010-04-12  Richard Guenther  <rguenther@suse.de>
11784
11785         * gsstruct.def (GSS_CALL): New.
11786         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
11787         * gimple.h: Include tree-ssa-alias.h.
11788         (struct gimple_statement_call): New.
11789         (union gimple_statement_struct_d): Add gimple_call member.
11790         (gimple_call_reset_alias_info): Declare.
11791         (gimple_call_use_set): New function.
11792         (gimple_call_clobber_set): Likewise.
11793         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
11794         * gimple.c (gimple_call_reset_alias_info): New function.
11795         (gimple_build_call_1): Call it.
11796         * lto-streamer-in.c (input_gimple_stmt): Likewise.
11797         * tree-inline.c (remap_gimple_stmt): Likewise.
11798         (expand_call_inline): Remove callused handling.
11799         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
11800         * tree-dfa.c (dump_variable): Likewise.
11801         * tree-parloops.c (parallelize_loops): Likewise.
11802         * tree-ssa.c (init_tree_ssa): Likewise.
11803         (delete_tree_ssa): Likewise.
11804         * tree-flow-inline.h (is_call_used): Remove.
11805         * tree-flow.h (struct gimple_df): Remove callused member.
11806         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
11807         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
11808         (ref_maybe_used_by_call_p_1): Simplify.
11809         (call_may_clobber_ref_p_1): Likewise.
11810         * tree-ssa-structalias.c (compute_points_to_sets): Set
11811         the call stmt used and clobbered sets.
11812         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
11813         (find_tail_calls): Verify the tail call.
11814
11815 2010-04-12  Richard Guenther  <rguenther@suse.de>
11816
11817         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
11818         single-iteration always-inline inlining.
11819         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
11820         (cgraph_decide_inlining): Do not handle always-inline specially.
11821         (try_inline): Remove always-inline cycle detection special case.
11822         Do not recurse on always-inlines.
11823         (cgraph_early_inlining): Do not iterate if not optimizing.
11824         (cgraph_gate_early_inlining): remove.
11825         (pass_early_inline): Run unconditionally.
11826         (gate_cgraph_decide_inlining): New function.
11827         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
11828         not inlining or optimizing.
11829         (cgraph_decide_inlining_of_small_functions): Also consider
11830         always-inline functions.
11831         (cgraph_default_inline_p): Return true for nodes which should
11832         disregard inline limits.
11833         (estimate_function_body_sizes): Assume zero size and time for
11834         nodes which are marked as disregarding inline limits.
11835         (cgraph_decide_recursive_inlining): Do not perform recursive
11836         inlining on always-inline nodes.
11837
11838 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
11839
11840         PR bootstrap/43699
11841         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
11842         for exprs satisfying handled_component_p.
11843
11844 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
11845
11846         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
11847         non-constant aggregate elements.
11848
11849         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
11850         is a real initialization.
11851
11852 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
11853
11854         PR c/36774
11855         * c-decl.c (start_function): Move forward check for nested function.
11856
11857 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
11858
11859         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
11860         * config/sh/sh.c: Include reload.h.
11861         (sh_legitimize_reload_address): New.
11862         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
11863         sh_legitimize_reload_address.
11864
11865 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
11866
11867         * config/sh/sh.md (*movqi_pop): New insn pattern.
11868         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
11869
11870 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
11871
11872         * config/i386/i386.md (any_shiftrt): New code iterator.
11873         (shiftrt_insn): New code attribute.
11874         (shiftrt): Ditto.
11875         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
11876         using any_shiftrt code iterator.
11877         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
11878         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
11879         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
11880         pattern from corresponding peephole2 patterns.
11881         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
11882         using any_shiftrt code iterator.
11883         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
11884         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
11885         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
11886         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
11887         *{ashr,lshr}<mode>3_cmp_zext.
11888         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
11889
11890 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
11891
11892         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
11893         scratch register.
11894         (*lshr<mode>3_cconly): Ditto.
11895
11896 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
11897
11898         * config/i386/i386.md (lshr<mode>3): Macroize expander from
11899         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
11900         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
11901         pattern from *lshr{di,ti}3_1 and corresponding splitters using
11902         DWI mode iterator.
11903         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
11904         from corresponding peephole2 patterns.
11905         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
11906         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
11907         and *lshrdi3_1_rex64 using SWI mode iterator.
11908         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
11909         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
11910         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
11911         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
11912         and *lshrdi3_cmp_rex64 using SWI mode iterator.
11913         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
11914         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
11915         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
11916         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
11917         SWI mode iterator.
11918
11919 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
11920
11921         * config/i386/i386.md (ashr<mode>3): Macroize expander from
11922         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
11923         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
11924         pattern from *ashr{di,ti}3_1 and corresponding splitters using
11925         DWI mode iterator.
11926         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
11927         from corresponding peephole2 patterns.
11928         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
11929         (ashrsi3_cvt): Rename from ashrsi3_31.
11930         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
11931         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
11932         and x86_64_shift_adj_3 using SWI48 mode iterator.
11933         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
11934         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
11935         and *ashrdi3_1_rex64 using SWI mode iterator.
11936         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
11937         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
11938         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
11939         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
11940         and *ashrdi3_cmp_rex64 using SWI mode iterator.
11941         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
11942         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
11943         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
11944         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
11945         SWI mode iterator.
11946         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
11947         * config/i386/i386.c (ix86_split_ashr): Update for renamed
11948         x86_shift<mode>_adj_3 expanders.
11949
11950 2010-04-10  Wei Guozhi  <carrot@google.com>
11951
11952         PR target/42601
11953         * config/arm/arm.c (arm_pic_static_addr): New function.
11954         (legitimize_pic_address): Call arm_pic_static_addr when it detects
11955         a static symbol.
11956         (arm_output_addr_const_extra): Output expression for new pattern.
11957         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
11958
11959 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
11960
11961         * ira-costs.c (record_reg_classes): Ignore alternatives that are
11962         not enabled.
11963
11964         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
11965         * web.c: Include "insn-config.h" and "recog.h".
11966         (union_match_dups): New function.
11967         (web_main): Call it.
11968         (union_defs): Don't try to recognize match_dups.
11969
11970         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
11971         if doing so would replace the entire pattern.
11972
11973 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
11974
11975         PR target/43707
11976         PR target/43709
11977         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
11978         and splitter pattern.  Change splitter operand 1 predicate to
11979         nonmemory_operand.
11980
11981 2010-04-09  Martin Jambor  <mjambor@suse.cz>
11982
11983         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
11984         lattices are addresses of CONST_DECLs with the same initial value.
11985         (ipcp_print_all_lattices): Print values of CONST_DECLs.
11986         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
11987
11988 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
11989             Bernd Schmidt  <bernds@codesourcery.com>
11990
11991         * loop-invariant.c (replace_uses): New static function.
11992         (move_invariant_reg): Use it to ensure we can replace the uses.
11993
11994 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
11995
11996         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
11997         function template.
11998         (picochip_override_options): Enable section anchors only above -O1.
11999         (picochip_reorg): Fixed a couple of build warnings.
12000
12001 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12002
12003         * configure.ac (plugin -rdynamic test): Log result.
12004         * configure: Regenerate.
12005         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
12006         (RDYNAMIC_SPEC): Define.
12007         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
12008
12009 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12010
12011         * configure.ac: Determine Sun ld version numbers.
12012         (comdat_group): Restrict GNU ld version checks to gld.
12013         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
12014         (enable_comdat): Support --enable-comdat.
12015         * configure: Regenerate.
12016         * doc/install.texi (Configuration): Document --enable-comdat.
12017
12018 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12019
12020         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
12021         * config/sol2-gld.h: ... here.
12022         * config.gcc (sparc*-*-solaris2*): Reflect this.
12023         (i[34567]86-*-solaris2*): Use it.
12024
12025 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
12026
12027         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
12028         setup_clocks_p.
12029         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
12030
12031 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12032
12033         PR 42965
12034         * diagnostic.c (diagnostic_initialize): Initialize
12035         some_warnings_are_errors.
12036         (diagnostic_finish): New.
12037         (diagnostic_action_after_output): Call it before exiting.
12038         (diagnostic_report_diagnostic): Do not print message here. Set
12039         some_warnings_are_errors.
12040         * diagnostic.h (diagnostic_context): Delete
12041         issue_warnings_are_errors_message. Add some_warnings_are_errors.
12042         (diagnostic_finish): Declare.
12043         * toplev.c (toplev_main): Call it before exit.
12044
12045 2010-04-09  Jason Merrill  <jason@redhat.com>
12046
12047         PR c++/42623
12048         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
12049         for incomplete type.
12050
12051         PR c++/41788
12052         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
12053         based on a warning flag.
12054
12055 2010-04-09  Richard Guenther  <rguenther@suse.de>
12056
12057         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
12058
12059 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
12060
12061         PR bootstrap/43684
12062         * varasm.c (default_assemble_visibility): Wrap vars that are
12063         set, but unused, by targets without GAS.
12064         * config/rs6000/rs6000.c (paired_emit_vector_compare):
12065         Remove set, but unused, vars.
12066         (rs6000_legitimize_tls_address): Likewise.
12067         (altivec_expand_dst_builtin): Likewise.
12068         * config/darwin.c (machopic_classify_symbol): Likewise.
12069         (machopic_indirection_name): Likewise.
12070
12071 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
12072
12073         * config/i386/i386.md (DWI): New mode iterator.
12074         (S): New mode attribute.
12075         (shift_operand): Ditto.
12076         (shift_immediate_operand): Ditto.
12077         (ashl_input_operand): Ditto.
12078         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
12079         using SDWIM mode iterator.
12080         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
12081         pattern from *ashl{di,ti}3_1 and corresponding splitters using
12082         DWI mode iterator.
12083         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
12084         from corresponding peephole2 patterns.
12085         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
12086         and x86_64_shift_adj_1 using SWI48 mode iterator.
12087         (x86_shift<mode>_adj_2): Ditto.
12088         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
12089         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
12090         using SWI48 mode iterator.
12091         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
12092         *ashldi3_cmp_rex64 using SWI mode iterator.
12093         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
12094         *ashldi3_cconly_rex64 using SWI mode iterator.
12095         * config/i386/i386.c (ix86_split_ashl): Update for renamed
12096         x86_shift<mode>_adj_{1,2}.
12097         (ix86_split_ashr): Ditto.
12098         (ix86_split_lshr): Ditto.
12099
12100 2010-04-09  Richard Guenther  <rguenther@suse.de>
12101
12102         * target.h (builtin_conversion): Pass in input and output types.
12103         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
12104         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
12105         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
12106         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
12107
12108         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
12109         Handle AVX modes.
12110         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
12111
12112 2010-04-09  Richard Guenther  <rguenther@suse.de>
12113
12114         PR target/43152
12115         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
12116
12117 2010-04-09  Richard Guenther  <rguenther@suse.de>
12118
12119         * tree-vectorizer.h (struct _stmt_vec_info): Document
12120         that vectype is the type of the LHS.
12121         (supportable_widening_operation, supportable_narrowing_operation):
12122         Get both input and output vector types as arguments.
12123         (vect_is_simple_use_1): Declare.
12124         (get_same_sized_vectype): Likewise.
12125         * tree-vect-loop.c (vect_determine_vectorization_factor):
12126         Set STMT_VINFO_VECTYPE to the vector type of the def.
12127         (vectorizable_reduction): Adjust.
12128         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
12129         Adjust.  Specify the output vector type.
12130         (vect_pattern_recog_1): Adjust.
12131         * tree-vect-stmts.c (get_same_sized_vectype): New function.
12132         (vectorizable_call): Adjust.
12133         (vectorizable_conversion): Likewise.
12134         (vectorizable_operation): Likewise.
12135         (vectorizable_type_demotion): Likewise.
12136         (vectorizable_type_promotion): Likewise.
12137         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
12138         the def.
12139         (vect_is_simple_use_1): New function.
12140         (supportable_widening_operation): Get both input and output
12141         vector types.
12142         (supportable_narrowing_operation): Likewise.
12143         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
12144
12145 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
12146
12147         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
12148         __thiscall and _thiscall as predefined macros.
12149         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
12150         thiscall attribute handling.
12151         (ix86_comp_type_attributes): Likewise.
12152         (ix86_function_regparm): Likewise.
12153         (ix86_return_pops_args): Likewise.
12154         (init_cumulative_args): Likewise.
12155         (find_drap_reg): Likewise.
12156         (ix86_static_chain): Likewise.
12157         (x86_this_parameter): Likewise.
12158         (x86_output_mi_thunk): Likewise.
12159         (ix86_attribute_table): Add description for thiscall attribute.
12160         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
12161         * doc/extend.texi: Add documentation for thiscall.
12162
12163 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12164
12165         PR c++/28584
12166         * c.opt (Wint-to-pointer-cast): Available in C++.
12167         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
12168
12169 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
12170
12171         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
12172         * calls.c (expand_call): Pass the function type to aggregate_value_p.
12173         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
12174         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
12175         function type instead.  Reorder and simplify checks.
12176
12177         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
12178
12179 2010-04-08  Jing Yu  <jingyu@google.com>
12180             Zdenek Dvorak  <ook@ucw.cz>
12181
12182         PR tree-optimization/42720
12183         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
12184         loop unswitch conditions here from ...
12185         (tree_unswitch_single_loop): ... here.
12186
12187 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
12188
12189         * tree-if-conv.c: Fix comments and simplify logic.
12190
12191 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
12192
12193         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
12194         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
12195         (main_tree_if_conversion): Update call to tree_if_conversion.
12196
12197 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12198
12199         PR 42485
12200         * doc/invoke.texi (-b,-V): Delete.
12201         * doc/tm.texi: Do not mention -b.
12202         * gcc.c (display_help): Delete -b and -V.
12203         (process_command): Delete -b and -V.
12204         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
12205
12206 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
12207             Wolfgang Gellerich  <gellerich@de.ibm.com>
12208
12209         Implement target hook for loop unrolling
12210         * target.h (loop_unroll_adjust): Add a new target hook function.
12211         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
12212         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
12213         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
12214         (s390_loop_unroll_adjust): Implement the new target hook for s390.
12215         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
12216         target hook.
12217         (decide_unroll_stupid): Likewise.
12218
12219 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12220
12221         PR target/43643
12222         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
12223
12224 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12225
12226         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
12227         (Specific, *-*-solaris2*): Likewise.
12228         Don't prefer Sun as over GNU as.
12229
12230 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
12231
12232         * config/s390/s390.c (override_options): Adjust the z10 defaults
12233         for max-unroll-times, max-completely-peeled-insns
12234         and max-completely-peel-times.
12235
12236 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12237
12238         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
12239         instructions for z10.
12240         (s390_expand_setmem): Likewise.
12241         (s390_expand_cmpmem): Likewise.
12242
12243 2010-04-08  Richard Guenther  <rguenther@suse.de>
12244
12245         PR tree-optimization/43679
12246         * tree-ssa-pre.c (eliminate): Only propagate copies.
12247
12248 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
12249
12250         PR bootstrap/43681
12251         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
12252         set but not used variable warning.
12253
12254 2010-04-08  Wei Guozhi  <carrot@google.com>
12255
12256         PR target/41653
12257         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
12258         (arm_size_rtx_costs): Call the new function when optimized for size.
12259
12260 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
12261
12262         PR debug/43670
12263         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
12264         op0 is not a MEM, just return NULL instead of assertion
12265         failure.
12266         (discover_nonconstant_array_refs): Don't walk debug stmts.
12267
12268 2010-04-08  Doug Kwan  <dougkwan@google.com>
12269
12270         * configure.ac: Recognize gold and do not use its version number
12271         to test ld features.
12272         * configure: Regenerate.
12273
12274 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
12275
12276         PR middle-end/40815
12277         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
12278         (negate_value): Move code to push elements to broken_up_substracts ...
12279         (eliminate_plus_minus_pair): ... here.  Push operands that have no
12280         negative pair to plus_negates.
12281         (repropagate_negates, init_reassoc, fini_reassoc): Update.
12282
12283 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12284
12285         * doc/install.texi (Configuration): Move description of
12286         --enable-lto, --with-libelf*, --enable-gold from Java section to
12287         general section.
12288
12289         * doc/generic.texi (Working with declarations)
12290         (Function Properties, C and C++ Trees): Fix typos.
12291         * doc/sourcebuild.texi (Top Level): Likewise.
12292
12293 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
12294
12295         PR c/18624
12296         * tree.h (DECL_READ_P): Define.
12297         (struct tree_decl_common): Add decl_read_flag.
12298         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
12299         a set but not used warning.
12300         (merge_decls): Merge DECL_READ_P flag.
12301         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
12302         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
12303         * c-common.c (handle_used_attribute, handle_unused_attribute):
12304         Likewise.
12305         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
12306         New prototypes.
12307         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
12308         New functions.
12309         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
12310         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
12311         c_parser_binary_expression, c_parser_cast_expression,
12312         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
12313         Call default_function_array_read_conversion instead of
12314         default_function_array_conversion where needed.
12315         (c_parser_unary_expression, c_parser_conditional_expression,
12316         c_parser_postfix_expression_after_primary, c_parser_initelt):
12317         Likewise.  Call mark_exp_read where needed.
12318         (c_parser_statement_after_labels, c_parser_asm_operands,
12319         c_parser_typeof_specifier, c_parser_sizeof_expression,
12320         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
12321         where needed.
12322         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
12323         New.
12324         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
12325         (warn_unused_but_set_parameter): Default to warn_unused
12326         && extra_warnings.
12327         * doc/invoke.texi: Document -Wunused-but-set-variable and
12328         -Wunused-but-set-parameter.
12329
12330         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
12331         used count variable.
12332         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
12333         when operandN variables aren't used in the body of the expander
12334         or splitter.
12335         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
12336         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
12337         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
12338         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
12339         FOR_EACH_IMM_USE_ON_STMT): Likewise.
12340         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
12341         * tree.c (PROCESS_ARG): Likewise.
12342
12343 2010-04-07  Simon Baldwin  <simonb@google.com>
12344
12345         * diagnostic.h (diagnostic_override_option_index): New macro to
12346         set a diagnostic's option_index.
12347         * c-tree.h (c_cpp_error): Add warning reason argument.
12348         * opts.c (_warning_as_error_callback): New.
12349         (register_warning_as_error_callback): Store callback for
12350         warnings enabled via enable_warning_as_error.
12351         (enable_warning_as_error): Call callback, minor code tidy.
12352         * opts.h (register_warning_as_error_callback): Declare.
12353         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
12354         response to -Werror=.
12355         (c_common_init_options): Register warning_as_error_callback in opts.c.
12356         * common.opt: Add -Wno-cpp option.
12357         * c-common.c (struct reason_option_codes_t): Map cpp warning
12358         reason codes to gcc option indexes.
12359         * (c_option_controlling_cpp_error): New function, lookup the gcc
12360         option index for a cpp warning reason code.
12361         * (c_cpp_error): Add warning reason argument, call
12362         c_option_controlling_cpp_error for diagnostic_override_option_index.
12363         * doc/invoke.texi: Document -Wno-cpp.
12364
12365 2010-04-07  Richard Guenther  <rguenther@suse.de>
12366
12367         * ipa-reference.c (mark_load): Use get_base_address.
12368         (mark_store): Likewise.
12369
12370         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
12371         inserting GIMPLE_NOPs into the IL.
12372         * tree-ssa-structalias.c (get_constraint_for_component_ref):
12373         Explicitly strip handled components and indirect references.
12374
12375         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
12376         folding address expressions.
12377         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
12378         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
12379         operand_equal_p to compare decls.
12380         (ptr_deref_may_alias_decl_p): Likewise.
12381         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
12382         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
12383         Handle reversed comparison ops.
12384         * tree-sra.c (asm_visit_addr): Use get_base_address.
12385         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
12386         * ipa-reference.c (mark_address): Use get_base_address.
12387
12388 2010-04-07  Richard Guenther  <rguenther@suse.de>
12389
12390         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
12391         Propagate constants everywhere.
12392
12393 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
12394
12395         PR debug/43516
12396         * tree.c (MAX_INT_CACHED_PREC): Define.
12397         (nonstandard_integer_type_cache): New array.
12398         (build_nonstandard_integer_type): Cache results for precision
12399         <= MAX_INT_CACHED_PREC.
12400
12401 2010-04-07  Richard Guenther  <rguenther@suse.de>
12402
12403         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
12404         -fargument-noalias-global, -fargument-noalias-anything): Remove.
12405         * common.opt: Likewise.
12406         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
12407         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
12408         (nonoverlapping_memrefs_p): Likewise.
12409         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
12410         * opts.c (common_handle_option): Handle OPT_fargument_alias,
12411         OPT_fargument_noalias, OPT_fargument_noalias_anything and
12412         OPT_fargument_noalias_global for backward compatibility.
12413
12414 2010-04-07  Richard Guenther  <rguenther@suse.de>
12415
12416         PR tree-optimization/43270
12417         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
12418         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
12419         * tree-ssa-pre.c (phi_translate_1): Adjust.
12420         (fully_constant_expression): Split out vn_reference handling to ...
12421         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
12422         Fold reads from constant strings.
12423         (vn_reference_lookup): Handle fully constant references.
12424         (vn_reference_lookup_pieces): Likewise.
12425         * Makefile.in (expmed.o-warn): Add -Wno-error.
12426
12427 2010-04-07  Martin Jambor  <mjambor@suse.cz>
12428
12429         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
12430
12431 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
12432
12433         PR driver/41594
12434         * gcc.c: Add -static-libstdc++ to list of recognized options.
12435
12436 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12437
12438         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
12439
12440 2010-04-07  Richard Guenther  <rguenther@suse.de>
12441
12442         PR middle-end/42617
12443         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
12444         bases build simple mem attributes to retain points-to information.
12445
12446 2010-04-07  Richard Guenther  <rguenther@suse.de>
12447
12448         PR middle-end/42617
12449         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
12450         preserve points-to related information.
12451
12452 2010-04-07  Richard Guenther  <rguenther@suse.de>
12453
12454         PR middle-end/42617
12455         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
12456         discard plain indirect references.
12457         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
12458         * tree.c (tree_nop_conversion): Likewise.
12459
12460 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
12461
12462         PR debug/43628
12463         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
12464
12465 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
12466
12467         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
12468         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
12469
12470 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
12471
12472         * tree-if-conv.c: Fix indentation and comments.
12473
12474 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
12475
12476         * tree-if-conv.c: Sort static functions in topological order.
12477
12478 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
12479
12480         * tree-if-conv.c: Fix indentation and comments.
12481
12482 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
12483
12484         PR middle-end/43519
12485         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
12486         lang_hooks.types.type_for_size instead of
12487         build_nonstandard_integer_type.
12488         When converting an unsigned type to signed, double its precision.
12489         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
12490         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
12491         (graphite_create_new_loop_guard): When ub + 1 wraps around,
12492         use lb <= ub.
12493
12494 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
12495
12496         PR middle-end/43519
12497         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
12498         POINTER_PLUS_EXPR for pointer types.
12499
12500 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
12501
12502         PR middle-end/43519
12503         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
12504         * graphite-clast-to-gimple.c: Include langhooks.h.
12505         (max_signed_precision_type): New.
12506         (max_precision_type): Takes two types as arguments.
12507         (precision_for_value): New.
12508         (precision_for_interval): New.
12509         (gcc_type_for_interval): New.
12510         (gcc_type_for_value): New.
12511         (gcc_type_for_clast_term): New.
12512         (gcc_type_for_clast_red): New.
12513         (gcc_type_for_clast_bin): New.
12514         (gcc_type_for_clast_expr): Split up into several functions.
12515         (gcc_type_for_clast_eq): Rewritten.
12516         (compute_bounds_for_level): New.
12517         (compute_type_for_level_1): New.
12518         (compute_type_for_level): New.
12519         (gcc_type_for_cloog_iv): Removed.
12520         (gcc_type_for_iv_of_clast_loop): Rewritten.
12521         (graphite_create_new_loop): Compute the lower and upper bound types
12522         with gcc_type_for_clast_expr.
12523         (graphite_create_new_loop_guard): Same.
12524         (find_cloog_iv_in_expr): Removed.
12525         (compute_cloog_iv_types_1): Removed.
12526         (compute_cloog_iv_types): Removed.
12527         (gloog): Do not call compute_cloog_iv_types.
12528         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
12529         GBB_CLOOG_IV_TYPES.
12530         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
12531         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
12532         (GBB_CLOOG_IV_TYPES): Removed.
12533
12534 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
12535
12536         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
12537         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
12538         (detect_commutative_reduction): Same.
12539
12540 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
12541
12542         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
12543         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
12544         argument.
12545         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
12546         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
12547         (rewrite_commutative_reductions_out_of_ssa): Same.
12548         * passes.c (execute_function_todo): Call verify_ssa for every pass
12549         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
12550         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
12551         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
12552         with an extra argument.
12553         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
12554         verify_ssa only when the extra argument is true.
12555         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
12556         with an extra argument.
12557         (tree_transform_and_unroll_loop): Same.
12558
12559 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
12560
12561         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
12562         for all the passes of the LNO having LOOP_CLOSED_SSA.
12563         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
12564         * tree-loop-distribution.c (pass_loop_distribution): Same.
12565         * tree-pass.h (TODO_verify_loops): Removed.
12566         * tree-ssa-loop.c (pass_tree_loop_init): Same.
12567         (pass_lim): Same.
12568         (pass_tree_unswitch): Same.
12569         (pass_predcom): Same.
12570         (pass_vectorize): Same.
12571         (pass_linear_transform): Same.
12572         (pass_graphite_transforms): Same.
12573         (pass_iv_canon): Same.
12574         (pass_complete_unroll): Same.
12575         (pass_complete_unrolli): Same.
12576         (pass_parallelize_loops): Same.
12577         (pass_loop_prefetch): Same.
12578         (pass_iv_optimize): Same.
12579
12580 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
12581
12582         PR middle-end/32824
12583         * passes.c (init_optimization_passes): Move pass_lim before
12584         pass_copy_prop and pass_dce_loop.
12585
12586 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
12587
12588         PR target/43667
12589         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
12590         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
12591         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
12592         MULTI_* defines for 4 argument vpermil2p* builtins.
12593
12594 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
12595
12596         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
12597         * config/i386/i386.c (x86_maybe_negate_const_int): New.
12598         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
12599         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
12600         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
12601         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
12602         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
12603         Use x86_maybe_negate_const_int to output insn mnemonic.
12604         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
12605         check from instruction predicate.  Update comments.
12606         * config/i386/sync.md (sync_add<mode>): Use
12607         x86_maybe_negate_const_int to output insn mnemonic.
12608
12609 2010-04-06  Jan Hubicka  <jh@suse.cz>
12610
12611         PR tree-optimization/42906
12612         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
12613         IGNORE_SELF argument.  Set visited_control_parents for fully
12614         processed BBs.
12615         (find_obviously_necessary_stmts): Update call of
12616         mark_control_dependent_edges_necessary.
12617         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
12618
12619 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
12620
12621         * config/i386/i386.md: Remove comment about 'e' and 'E'
12622         operand modifier.
12623
12624 2010-04-06  Richard Guenther  <rguenther@suse.de>
12625
12626         PR tree-optimization/43627
12627         * tree-vrp.c (extract_range_from_unary_expr): Widenings
12628         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
12629         not varying.
12630
12631 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
12632
12633         * BASE-VER: Change to 4.6.0.
12634
12635         PR target/43638
12636         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
12637         handling.
12638
12639 2010-04-06  Richard Guenther  <rguenther@suse.de>
12640
12641         PR middle-end/43661
12642         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
12643
12644 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12645
12646         * doc/invoke.texi (Optimize Options): Document that LTO
12647         won't remove object access purely due to incompatible
12648         declarations.
12649
12650 2010-04-04  Matthias Klose  <doko@ubuntu.com>
12651
12652         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
12653         Initialize variable.
12654
12655 2010-04-03  Richard Guenther  <rguenther@suse.de>
12656
12657         PR middle-end/42509
12658         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
12659         require a non-NULL MEM_OFFSET.
12660
12661 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
12662
12663         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
12664         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
12665         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
12666         config/alpha/predicates.md, config/arm/arm.md,
12667         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
12668         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
12669         config/darwin9.h, config/darwin.c, config/darwin.h,
12670         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
12671         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
12672         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
12673         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
12674         config/mips/mips.md, config/mn10300/mn10300.c,
12675         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
12676         config/rs6000/aix.h, config/rs6000/dfp.md,
12677         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
12678         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
12679         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
12680         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
12681         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
12682         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
12683         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
12684         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
12685         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
12686         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
12687         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
12688         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
12689         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
12690         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
12691         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
12692         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
12693         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
12694         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
12695         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
12696         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
12697         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
12698         opt-functions.awk, opth-gen.awk, params.def, passes.c,
12699         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
12700         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
12701         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
12702         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
12703         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
12704         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
12705         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
12706         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
12707         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
12708         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
12709         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
12710         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
12711         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
12712         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
12713
12714 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12715
12716         PR other/43620
12717         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
12718         * aclocal.m4: Regenerate.
12719
12720 2010-04-02  Richard Guenther  <rguenther@suse.de>
12721
12722         PR tree-optimization/43629
12723         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
12724         if we have seen a constant value.
12725
12726 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
12727
12728         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
12729
12730 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
12731
12732         PR target/43469
12733         * arm.c (legitimize_tls_address): Adjust call to
12734         gen_tls_load_dot_plus_four.
12735         (arm_note_pic_base): New function.
12736         (arm_cannot_copy_insn_p): Use it.
12737         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
12738         constraint.
12739
12740 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12741
12742         PR bootstrap/43531
12743
12744         Revert:
12745         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12746
12747         * Makefile.in ($(out_object_file)): Depend on
12748         gt-$(basename $(notdir $(out_file))).h.
12749
12750 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
12751
12752         * config.gcc (lm32-*-rtems*): Add t-lm32.
12753
12754 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
12755
12756         * config.gcc: Add lm32-*-rtems*.
12757         * config/lm32/rtems.h: New file.
12758
12759 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
12760
12761         PR target/42609
12762         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
12763
12764 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
12765
12766         * dwarf2out.c (output_compilation_unit_header): For
12767         -gdwarf-4 use version 4 instead of version 3.
12768         (output_line_info): For version 4 and above emit additional
12769         maximum ops per insn header field.
12770         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
12771
12772         * dwarf2out.c (is_c_family, is_java): Remove.
12773         (lower_bound_default): New function.
12774         (add_bound_info, gen_descr_array_type_die): Use it.
12775
12776 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
12777
12778         PR debug/43325
12779         * dwarf2out.c (gen_variable_die): Allow debug info for variable
12780         re-declaration when it happens in a function.
12781
12782 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
12783
12784         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
12785         (cgraph_remove_function_insertion_hook): Same.
12786         (cgraph_call_function_insertion_hooks): Same.
12787
12788 2010-04-01  Richard Guenther  <rguenther@suse.de>
12789
12790         PR middle-end/43614
12791         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
12792         and TREE_THIS_VOLATILE.
12793         (copy_ref_info): Likewise.
12794         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
12795         * tree.c (build6_stat): Ignore side-effects of all but arg5
12796         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
12797         TARGET_MEM_REF.
12798
12799 2010-04-01  Richard Guenther  <rguenther@suse.de>
12800
12801         PR tree-optimization/43607
12802         * ipa-type-escape.c (check_call): Do not access non-existing
12803         arguments.
12804
12805 2010-04-01  Richard Guenther  <rguenther@suse.de>
12806
12807         PR middle-end/43602
12808         Revert
12809         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
12810                     Jack Howarth <howarth@bromo.med.uc.edu>
12811
12812         * tree-profile.c (tree_init_ic_make_global_vars): Make static
12813         variables TLS.
12814
12815 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12816
12817         * doc/install.texi (Prerequisites): Document libelf usability on
12818         IRIX 5/6 and Solaris 2.
12819         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
12820         Update GNU as, GNU ld requirements.
12821         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
12822         Document Sun Studio compiler download.
12823         Update and simplify as, ld recommendations.
12824         (Specific, *-*-solaris2.7): Note obsoletion, removal.
12825
12826 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12827
12828         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
12829         with_tune_32 to pentium4.
12830
12831 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
12832
12833         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
12834
12835 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12836
12837         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
12838         obsoletion, removal.
12839         Update IDO URL.
12840         Document GNU as requirement.
12841         Update configure requirements.
12842         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
12843         Recomment IRIX 6.5.18+.
12844         Document IDF/IDL requirement.
12845         Document GNU as requirement.
12846         Document GNU ld bootstrap failure.
12847         Remove freeware.sgi.com reference.
12848
12849 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12850
12851         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
12852         UNIX V4.0, V5.0 obsoletion, removal.
12853         Remove --with-gc=simple reference.
12854         Update VM requirements during bootstrap.
12855         Remove -oldas bootstrap description.
12856         Update binutils reference.
12857         Remove comparison failure note.
12858
12859 2010-03-31  Richard Guenther  <rguenther@suse.de>
12860             Zdenek Dvorak  <ook@ucw.cz>
12861             Sebastian Pop  <sebastian.pop@amd.com>
12862
12863         PR middle-end/43464
12864         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
12865         with multiple arguments.
12866         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
12867
12868 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
12869
12870         * graphite-dependences.c (print_pddr): Call print_pdr with an
12871         extra argument.
12872         * graphite-poly.c (debug_pdr): Add an extra argument for the
12873         verbosity level.
12874         (print_pdr): Same.
12875         (print_pbb_domain): Same.
12876         (print_pbb): Same.
12877         (print_scop_context): Same.
12878         (print_scop): Same.
12879         (print_cloog): Same.
12880         (debug_pbb_domain): Same.
12881         (debug_pbb): Same.
12882         (print_pdrs): Same.
12883         (debug_pdrs): Same.
12884         (debug_scop_context): Same.
12885         (debug_scop): Same.
12886         (debug_cloog): Same.
12887         (print_scop_params): Same.
12888         (debug_scop_params): Same.
12889         (print_iteration_domain): Same.
12890         (print_iteration_domains): Same.
12891         (debug_iteration_domain): Same.
12892         (debug_iteration_domains): Same.
12893         (print_scattering_function): Same.
12894         (print_scattering_functions): Same.
12895         (debug_scattering_function): Same.
12896         (debug_scattering_functions): Same.
12897         * graphite-poly.h (debug_pdr): Update declaration.
12898         (print_pdr): Same.
12899         (print_pbb_domain): Same.
12900         (print_pbb): Same.
12901         (print_scop_context): Same.
12902         (print_scop): Same.
12903         (print_cloog): Same.
12904         (debug_pbb_domain): Same.
12905         (debug_pbb): Same.
12906         (print_pdrs): Same.
12907         (debug_pdrs): Same.
12908         (debug_scop_context): Same.
12909         (debug_scop): Same.
12910         (debug_cloog): Same.
12911         (print_scop_params): Same.
12912         (debug_scop_params): Same.
12913         (print_iteration_domain): Same.
12914         (print_iteration_domains): Same.
12915         (debug_iteration_domain): Same.
12916         (debug_iteration_domains): Same.
12917         (print_scattering_function): Same.
12918         (print_scattering_functions): Same.
12919         (debug_scattering_function): Same.
12920         (debug_scattering_functions): Same.
12921
12922 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
12923
12924         * graphite-poly.c (print_scattering_function_1): New.
12925         (print_scattering_function): Call it.
12926         (print_scop_params): Remove spaces at the end of lines.
12927         (print_cloog): New.
12928         (debug_cloog): New.
12929         * graphite-poly.h (print_cloog): Declared.
12930         (debug_cloog): Declared.
12931
12932 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
12933
12934         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
12935         in loop->header.
12936         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
12937         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
12938         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
12939         to switch between adding the IV bump in loop->latch or in loop->header.
12940
12941 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
12942
12943         * graphite-poly.c (print_scattering_function): Pretty print following
12944         the scoplib format.
12945         (print_pdr): Same.
12946         (print_pbb_domain): Same.
12947         (dump_gbb_cases): Same.
12948         (dump_gbb_conditions): Same.
12949         (print_pdrs): Same.
12950         (print_pbb): Same.
12951         (print_scop_params): Same.
12952         (print_scop_context): Same.
12953         (print_scop): Same.
12954         (print_pbb_body): New.
12955         (lst_indent_to): New.
12956         (print_lst): Start new lines with a #.
12957         * graphite-poly.h (pbb_bb): New.
12958         (pbb_index): Use pbb_bb.
12959         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
12960         disjuncts.
12961         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
12962
12963 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
12964
12965         * dwarf2out.c (size_of_die): For -gdwarf-4 use
12966         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
12967         and 0 instead of 1 for dw_val_class_flag.
12968         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
12969         dw_val_class_range_list, dw_val_class_loc_list,
12970         dw_val_class_lineptr and dw_val_class_macptr, use
12971         DW_FORM_flag_present for dw_val_class_flag and
12972         DW_FORM_exprloc for dw_val_class_loc.
12973         (output_die): For -gdwarf-4 print dw_val_class_loc
12974         size as uleb128 instead of 1 or 2 bytes and don't print
12975         anything for dw_val_class_flag.
12976
12977         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
12978         instead of cselib_lookup following by tweaking locs->setting_insn.
12979
12980         PR bootstrap/43596
12981         * cselib.c (cselib_process_insn): Clear cselib_current_insn
12982         even before returning from label, setjmp call or volatile asm
12983         handling.
12984
12985 2010-03-31  Richard Guenther  <rguenther@suse.de>
12986
12987         PR middle-end/43600
12988         * cgraphunit.c (cgraph_output_in_order): Do not allocate
12989         temporary data on stack.
12990
12991 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12992
12993         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
12994         (PUSHSECTION_ASM_OP): Remove.
12995         (POPSECTION_ASM_OP): Remove.
12996         (PUSHSECTION_FORMAT): Remove.
12997         * config/sol2.h (PUSHSECTION_FORMAT): Define.
12998         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
12999         * config/sol2.c (solaris_output_init_fini): Use it.
13000
13001 2010-03-31  Jie Zhang  <jie@codesourcery.com>
13002
13003         PR 43574
13004         * opt-functions.awk (var_type_struct): Use signed char type
13005         for simple variables.
13006
13007 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13008
13009         * config/sol2.c: Include output.h.
13010         (solaris_assemble_visibility): New function.
13011         * config/t-sol2 (sol2.o): Add output.h dependency.
13012         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
13013         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
13014         Redefine.
13015
13016 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
13017
13018         PR target/43580
13019         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
13020         V2SImode or XFmode on PRE_DEC.
13021
13022         PR debug/43557
13023         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
13024         BLKmode.
13025
13026 2010-03-31  Jie Zhang  <jie@codesourcery.com>
13027
13028         PR 43562
13029         * reload.h (caller_save_initialized_p): Declare.
13030         * toplev.c (backend_init_target): Don't call
13031         init_caller_save but set caller_save_initialized_p to false.
13032         * caller-save.c (caller_save_initialized_p): Define.
13033         (init_caller_save): Check caller_save_initialized_p.
13034         * ira.c (ira): Call init_caller_save if flag_caller_saves.
13035
13036 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13037
13038         PR target/39048
13039         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
13040         and soft-fp/t-softfp to tmake_file.
13041         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
13042         (LIBGCC2_TF_CEXT): Define.
13043         (TF_SIZE): Define.
13044
13045 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
13046
13047         PR debug/42977
13048         * cselib.c (n_useless_values): Document handling of debug locs.
13049         (n_useless_debug_values, n_debug_values): New variables.
13050         (new_elt_loc_list): Don't add to debug values, keep count.
13051         (promote_debug_loc): New.
13052         (cselib_reset_table): Zero new variables.
13053         (entry_and_rtx_equal_p): Promote debug locs.
13054         (discard_useless_locs): Increment n_useless_debug_values for
13055         debug values.
13056         (remove_useless_values): Adjust n_useless_values and n_debug_values
13057         with n_useless_debug_values.
13058         (add_mem_for_addr): Promote debug locs.
13059         (cselib_lookup_mem): Likewise.
13060         (cselib_lookup_addr): Renamed to...
13061         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
13062         (cselib_log_lookup): ... this.  Turn into...
13063         (cselib_lookup_addr): ... new wrapper.
13064         (cselib_lookup_from_insn): New.
13065         (cselib_invalidate_regno): Increment n_useless_debug_values for
13066         debug values.
13067         (cselib_invalidate_mem): Likewise.
13068         (cselib_process_insn): Take n_deleted and n_debug_values into
13069         account to guard remove_useless_value call.
13070         (cselib_finish): Zero n_useless_debug_values.
13071         * cselib.h (cselib_lookup_from_insn): Declare.
13072         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
13073         (sched_analyze_2): Likewise.
13074
13075 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
13076
13077         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
13078         functions.
13079         (adjust_mems): Replace narrowing SUBREG of expression containing
13080         just PLUS, MINUS, MULT and ASHIFT of registers and constants
13081         with operations in the narrower mode.
13082
13083         PR debug/43593
13084         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
13085         regs_invalidated_by_call instead all call_used_reg_set registers.
13086
13087 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
13088
13089         PR middle-end/43430
13090         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
13091         pointer comparisons with types_compatible_p.
13092         * tree-vect-stmts.c (vectorizable_call): Same.
13093         (vectorizable_condition): Same.
13094
13095 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13096
13097         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
13098         stack check if the mask would be zero.
13099
13100 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
13101             Jack Howarth <howarth@bromo.med.uc.edu>
13102
13103         * tree-profile.c (tree_init_ic_make_global_vars): Make static
13104         variables TLS.
13105
13106 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
13107
13108         PR other/25232
13109         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
13110         and __unordtf2.
13111         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
13112         Include ___unordxf2 and ___unordtf2.
13113         * config/i386/libgcc-glibc.ver: Do not define inheritance from
13114         GCC_4.4.0 here.
13115
13116 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
13117
13118         * config/lm32/t-lm32: New file.
13119         * config.gcc: Use the above file when targetting lm32.
13120
13121 2010-03-28  Duncan Sands  <baldrick@free.fr>
13122
13123         * Makefile.in (PLUGIN_HEADERS): Add except.h.
13124
13125 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
13126
13127         PR middle-end/43431
13128         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13129         Improve vectorization cost model diagnostic.
13130
13131 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
13132
13133         PR middle-end/43436
13134         * tree-vect-data-refs.c (vect_analyze_data_refs): When
13135         compute_data_dependences_for_loop returns false, early exit
13136         and output an extra diagnostic for the failed data reference
13137         analysis.
13138
13139 2010-03-29  Richard Guenther  <rguenther@suse.de>
13140
13141         PR tree-optimization/43560
13142         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
13143         (can_sm_ref_p): Treat stores to readonly locations as trapping.
13144
13145 2010-03-29  Jie Zhang  <jie@codesourcery.com>
13146
13147         PR 43564
13148         * toplev.c (process_options): Set optimization_default_node
13149         and optimization_current_node.
13150         * opts.c (decode_options): Don't set optimization_default_node
13151         and optimization_current_node.
13152
13153 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
13154
13155         * config/rtems.h: Abandon -qrtems_debug.
13156
13157 2010-03-28  Jan Hubicka  <jh@suse.cz>
13158
13159         PR tree-optimization/43505
13160         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
13161         map should not be copied.
13162
13163 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13164
13165         PR middle-end/41674
13166         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
13167         cdtors, set DECL_PRESERVE_P.
13168         * ipa.c (cgraph_externally_visible_p): Return true if declaration
13169         should be preseved.
13170
13171 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
13172
13173         PR tree-optimization/43528
13174         * stor-layout.c (place_field): Check that constant fits into
13175         unsigned HWI when skipping calculation of MS bitfield layout.
13176
13177 2010-03-27  Jan Hubicka  <jh@suse.cz>
13178
13179         PR middle-end/43391
13180         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
13181         notice_global_symbol work.
13182
13183 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
13184
13185         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
13186         instead of dwarf2out_decl.
13187         (struct var_loc_node): Remove section_label field.
13188         (dwarf2out_function_decl): New function.
13189         (dwarf2out_var_location): Don't set section_label field.
13190         (dwarf2out_begin_function): Don't empty decl_loc_table here.
13191
13192 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
13193
13194         PR tree-optimization/43544
13195         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
13196         First argument for builtin vectorized function hook is now a
13197         tree to be able to distinguish between machine specific and
13198         standard builtins.
13199         * targhooks.c (default_builtin_vectorized_function): Ditto.
13200         * targhooks.h (default_builtin_vectorized_function): Ditto.
13201         * target.h (struct gcc_target): Ditto.
13202         * tree-vect-stmts.c (vectorizable_function): Ditto.
13203         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
13204         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
13205         Ditto.
13206
13207 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
13208
13209         PR c/43381
13210         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
13211         nested binding iff it is a FUNCTION_DECL.
13212         (store_parm_decls_newstyle): Pass nested=true to bind for
13213         FUNCTION_DECLs amongst parameters.
13214
13215 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
13216
13217         * var-tracking.c (vt_expand_loc_callback): Don't run
13218         cselib_expand_value_rtx_cb in dummy mode if
13219         cselib_dummy_expand_value_rtx_cb returned false.
13220
13221         * var-tracking.c (emit_note_insn_var_location): For one part
13222         notes with offset 0, don't add EXPR_LIST around the location.
13223         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
13224         add_location_or_const_value_attribute): Adjust for that change.
13225
13226         PR debug/43540
13227         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
13228         into first operand and location into second.
13229         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
13230         dw_cfi_oprnd_loc for DW_CFA_expression.
13231         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
13232         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
13233         assume first argument is regnum and second argument is location.
13234
13235 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
13236
13237         PR target/42113
13238         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
13239         of scratch register to DImode.  Split to DImode comparison operator.
13240         Use SImode subreg of scratch register in the multiplication.
13241         (*cmp_sadd_sidi): Ditto.
13242         (*cmp_ssub_si): Ditto.
13243         (*cmp_ssub_sidi): Ditto.
13244
13245 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
13246
13247         PR target/43524
13248         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
13249         Remove invalid assert and wrong comment.
13250
13251 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
13252
13253         PR debug/43516
13254         * flags.h (final_insns_dump_p): New extern.
13255         * final.c (final_insns_dump_p): New variable.
13256         (rest_of_clean_state): Set it before -fdump-final-insns=
13257         dumping, clear afterwards.
13258         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
13259         MEM_ALIAS_SET on MEMs.
13260
13261 2010-03-26  David S. Miller  <davem@davemloft.net>
13262
13263         * configure.ac: Fix sparc GOTDATA_OP bug check.
13264         * configure: Rebuild.
13265
13266 2010-03-26  Alan Modra  <amodra@gmail.com>
13267
13268         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
13269
13270 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13271
13272         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
13273         TLS_SECTION_ASM_FLAG.
13274
13275 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
13276
13277         PR bootstrap/43511
13278         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
13279         Clear first_function_block_is_cold.
13280
13281         PR c/43385
13282         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
13283         argument if the argument is truth_value_p.
13284
13285 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13286
13287         * config/rs6000/constraints.md: Update copyright year for my changes.
13288
13289         PR target/43484
13290         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
13291         used in reg+reg addressing, swap registers.
13292
13293 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
13294
13295         PR debug/43293
13296         * target.h (struct gcc_target): Add code_end hook.
13297         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
13298         if not yet defined.
13299         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
13300         * toplev.c (compile_file): Call targetm.asm_out.code_end
13301         hook before unwind info/debug info output.
13302         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
13303         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
13304         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
13305         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
13306         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
13307         * config/i386/i386.c (ix86_file_end): Renamed to...
13308         (ix86_code_end): ... this.  Make static.  Don't call
13309         file_end_indicate_exec_stack.  Emit unwind info using
13310         final_start_function/final_end_function.
13311         (darwin_x86_file_end): Remove.
13312         (TARGET_ASM_CODE_END): Define.
13313         * config/i386/i386.h (TARGET_ASM_FILE_END,
13314         NEED_INDICATE_EXEC_STACK): Don't define.
13315         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
13316         (TARGET_ASM_FILE_END): Define to darwin_file_end.
13317         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
13318         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
13319
13320         PR target/43498
13321         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
13322         at the beginning and final_end_function at the end.
13323         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
13324
13325 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13326
13327         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
13328         and Sun as TLS syntax.
13329         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
13330         * configure: Regenerate.
13331         * config.in: Regenerate.
13332         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
13333         (default_elf_asm_named_section): Use it.
13334         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
13335         (i386_output_dwarf_dtprel): Likewise.
13336         (output_addr_const_extra): Likewise.
13337         (output_pic_addr_const): Lowercase @GOTTPOFF.
13338         (output_addr_const_extra): Likewise.
13339         (output_pic_addr_const): Lowercase @GOTNTPOFF.
13340         (output_addr_const_extra): Likewise.
13341         (output_pic_addr_const): Lowercase @INDNTPOFF.
13342         (output_addr_const_extra): Likewise.
13343         (output_pic_addr_const): Lowercase @NTPOFF.
13344         (output_addr_const_extra): Likewise.
13345         (output_pic_addr_const): Lowercase @TPOFF.
13346         (output_addr_const_extra): Likewise.
13347         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
13348         (*tls_global_dynamic_64): Likewise.
13349         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
13350         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
13351
13352         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
13353         (ASM_OUTPUT_TLS_COMMON): Use it.
13354         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
13355
13356         PR target/38118
13357         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
13358         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13359         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
13360         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
13361         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
13362         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
13363
13364 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13365
13366         * config/i386/i386.c (override_options): Don't accept
13367         -mtls-dialect=sun any longer.
13368         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
13369         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
13370         (*tls_local_dynamic_base_32_sun): Likewise.
13371         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
13372
13373 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
13374
13375         PR debug/43508
13376         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
13377         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
13378
13379         PR debug/43479
13380         * ira.c (adjust_cleared_regs): New function.
13381         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
13382
13383         PR debug/19192
13384         PR debug/43479
13385         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
13386         from gimple_block.
13387         * expr.c (expand_expr_real): Restore previous
13388         curr_insn_source_location and curr_insn_block after
13389         expand_expr_real_1 call.
13390         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
13391         instead of expand_expr_real_1.
13392
13393 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
13394
13395         PR rtl-optimization/43413
13396         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
13397         hard regs too.
13398
13399 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
13400
13401         PR target/43348
13402         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
13403         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
13404
13405 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
13406
13407         * config/i386/i386.c (ix86_target_string): Add -mfma.
13408         Fix a typo in comment.
13409
13410 2010-03-22  Mike Stump  <mikestump@comcast.net>
13411
13412         PR target/23071
13413         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
13414         Don't overly align based upon packed packed fields.
13415
13416 2010-03-22  Jason Merrill  <jason@redhat.com>
13417
13418         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
13419         Use () rather than [], and move before the element type.
13420
13421 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13422
13423         * doc/configfiles.texi (Configuration Files): Removed
13424         fixinc/Makefile*, intl/Makefile.*.
13425         * doc/makefile.texi: Fixed markup. Abstract from version
13426         control system used.
13427         (Makefile): Removed obsolete gcc/java/parse.y example.
13428         * doc/sourcebuild.texi: Likewise.
13429         (Top Level): Added config, gnattools, libdecnumber, libgcc,
13430         libgomp, libssp.  Removed fastjar.
13431         (Miscellaneous Docs): Clarify location.
13432         Added COPYING3, COPYING3.LIB.
13433         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
13434
13435 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13436
13437         PR target/38085
13438         * config/i386/i386.c (x86_function_profiler)
13439         [!NO_PROFILE_COUNTERS]: Fix typo.
13440         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
13441         instead of callq.
13442
13443 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
13444             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13445
13446         * doc/sourcebuild.texi (Test Directives): Split into six
13447         subsections, with most of the current text in new subsections
13448         Directives, Selectors, and Final Actions.
13449         (Directives): Split list of test directives into multiple
13450         subsubsections.
13451         (Selectors): Describe use and syntax of selectors.
13452         (Effective-Target Keywords): Describe all existing keywords.
13453         (Add Options): Describe features for dg-add-options.
13454         (Require Support): Describe variants of dg-require-support.
13455         (Final Actions): Describe commands to use in dg-final.
13456
13457 2010-03-22  Michael Matz  <matz@suse.de>
13458
13459         PR middle-end/43475
13460         * recog.c (validate_replace_rtx_group): Replace also in
13461         REG_EQUAL and REG_EQUIV notes.
13462
13463 2010-03-22  Richard Guenther  <rguenther@suse.de>
13464
13465         PR tree-optimization/43390
13466         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
13467         sure vector extracts are type correct.
13468
13469 2010-03-22  Richard Guenther  <rguenther@suse.de>
13470
13471         PR middle-end/40106
13472         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
13473         x * sqrt (x) even when optimizing for size if the target
13474         has native support for sqrt.
13475
13476 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
13477
13478         * varasm.c (make_decl_rtl_for_debug): Also clear
13479         flag_mudflap for the duration of make_decl_rtl call.
13480
13481         PR debug/43443
13482         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
13483         locs from preserved VALUEs.
13484
13485 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13486
13487         PR middle-end/42718
13488         * pa.md (movmemsi): Set align to one if zero.
13489         (movmemdi): Likewise.
13490
13491 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
13492
13493         PR target/42321
13494         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
13495         with their corresponding prologue pushes.
13496
13497 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
13498
13499         PR target/43156
13500         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
13501         at the begining or end.
13502         (spu_expand_epilogue): Likewise.
13503
13504 2010-03-20  Richard Guenther  <rguenther@suse.de>
13505
13506         PR rtl-optimization/43438
13507         * combine.c (make_extraction): Properly zero-/sign-extend an
13508         extraction of the low part of a CONST_INT.  Also handle
13509         CONST_DOUBLE.
13510
13511 2010-03-19  Mike Stump  <mikestump@comcast.net>
13512
13513         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
13514         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
13515         (override_options): Use SUBTARGET32_DEFAULT_CPU.
13516
13517 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
13518
13519         PR c/43211
13520         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
13521         an error.
13522
13523 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
13524
13525         PR rtl-optimization/42258
13526         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
13527         use that may match DEF.
13528
13529         PR target/40697
13530         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
13531         the cost of loading the constant rather than assuming
13532         COSTS_N_INSNS (1).
13533         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
13534         outer code is AND, do the same tests as the andsi3 expander and
13535         return COSTS_N_INSNS (1) if and is cheap.
13536
13537         * optabs.c (avoid_expensive_constant): Fix formatting.
13538
13539 2010-03-19  Michael Matz  <matz@suse.de>
13540
13541         PR c++/43116
13542         * attribs.c (decl_attributes): When rebuilding a function pointer
13543         type use the same qualifiers as the original pointer type.
13544
13545 2010-03-19  Martin Jambor  <mjambor@suse.cz>
13546
13547         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
13548         and is_gimple_ip_invariant_address.
13549
13550 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13551
13552         Revert
13553         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13554
13555         * config/arm/arm.c (arm_override_options): Turn off
13556         flag_dwarf2_cfi_asm for AAPCS variants.
13557
13558 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13559
13560         PR target/43399
13561         * config/arm/arm.c (emit_multi_reg_push): Update comments.
13562         Use PRE_MODIFY instead of PRE_DEC.
13563         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
13564         (vfp_emit_fstmd): Likewise.
13565
13566 2010-03-19  Michael Matz  <matz@suse.de>
13567
13568         PR target/43305
13569         * builtins.c (expand_builtin_interclass_mathfn,
13570         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
13571         if that fails.
13572
13573 2010-03-19  Richard Guenther  <rguenther@suse.de>
13574
13575         PR tree-optimization/43415
13576         * tree-ssa-pre.c (phi_translate): Split out worker to ...
13577         (phi_translate_1): ... this.
13578         (phi_translate): Move all caching here.  Cache all NARY
13579         and REFERENCE translations.
13580
13581 2010-03-19  David S. Miller  <davem@davemloft.net>
13582
13583         With help from Eric Botcazou.
13584         * config/sparc/sparc.c: Include dwarf2out.h.
13585         (emit_pic_helper): Delete.
13586         (pic_helper_symbol_name): Delete.
13587         (pic_helper_emitted_p): Delete.
13588         (pic_helper_needed): New.
13589         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
13590         (get_pc_thunk_name): New.
13591         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
13592         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
13593         Set pic_helper_needed to true.  Don't call emit_pic_helper.
13594         (sparc_expand_prologue): Update load_pic_register call.
13595         (sparc_output_mi_thunk): Likewise.
13596         (sparc_file_end): Emit a hidden comdat symbol for the PIC
13597         thunk if possible.  Output CFI information as needed.
13598
13599 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13600             Jack Howarth <howarth@bromo.med.uc.edu>
13601
13602         PR target/36399
13603         * config/i386/i386.h: Fix ABI on darwin x86-32.
13604
13605 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
13606
13607         * tree.h: Declare make_decl_rtl_for_debug.
13608         * varasm.c (make_decl_rtl_for_debug): New.
13609         * dwarf2out.c (rtl_for_decl_location): Call it.
13610         * cfgexpand.c (expand_debug_expr): Call it.
13611
13612 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
13613
13614         PR bootstrap/43399
13615         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
13616         mem_mode.
13617
13618         PR bootstrap/43403
13619         * var-tracking.c (vt_init_cfa_base): Do nothing if
13620         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
13621
13622 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
13623
13624         PR debug/42873
13625         * var-tracking.c (canonicalize_vars_star): New.
13626         (dataflow_post_merge_adjust): Use it.
13627
13628 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
13629
13630         PR debug/43058
13631         * var-tracking.c (non_suitable_const): New function.
13632         (add_uses): For DEBUG_INSNs with constants, don't record any
13633         value, instead just the constant value itself.
13634         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
13635         is not VAR_LOC_UNKNOWN_P, set var to the constant.
13636         (emit_notes_in_bb): Likewise.
13637         (emit_note_insn_var_location): For onepart variables if
13638         cur_loc is a VOIDmode constant, use DECL_MODE.
13639
13640 2010-03-18  Martin Jambor  <mjambor@suse.cz>
13641
13642         PR middle-end/42450
13643         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
13644         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
13645         all non-clones.  Moved call redirection...
13646         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
13647         (cgraph_materialize_all_clones): Dispose of all
13648         combined_args_to_skip bitmaps.
13649         (verify_cgraph_node): Do not check for edges pointing to wrong
13650         nodes in inline clones.
13651         * tree-inline.c (copy_bb): Call
13652         cgraph_redirect_edge_call_stmt_to_callee.
13653         * ipa.c (cgraph_remove_unreachable_nodes): Call
13654         cgraph_node_remove_callees even when there are used clones.
13655
13656 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
13657
13658         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
13659
13660 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
13661
13662         PR target/43383
13663         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
13664         for 32bit.
13665
13666 2010-03-18  Michael Matz  <matz@suse.de>
13667
13668         PR middle-end/43419
13669         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
13670         into sqrt(x) if we need to preserve signed zeros.
13671
13672 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
13673             Eric Botcazou  <ebotcazou@adacore.com>
13674
13675         PR rtl-optimization/43360
13676         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
13677         note if we don't know its invariant status.
13678
13679 2010-03-18  Michael Matz  <matz@suse.de>
13680
13681         PR tree-optimization/43402
13682         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
13683         PHI chains of ssa names registered for update.
13684
13685 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
13686
13687         PR target/42427
13688         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
13689         non-offsettable and pre_modify update addressing.
13690         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
13691         and "2" alternatives "#".
13692         (*movdd_softfloat32): Make all alternatives "#";
13693         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
13694         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
13695         (*movdf_softfloat32): Make all alternatives "#";
13696         (movdi): Use the new DIFD mode iterator to create a common splitter
13697         for movdi, movdf and movdd patterns.
13698
13699 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
13700
13701         * common.opt (dumpdir): Remove redundant tab.
13702
13703 2010-03-17  Martin Jambor  <mjambor@suse.cz>
13704
13705         PR tree-optimization/43347
13706         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
13707         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
13708
13709 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
13710
13711         PR rtl-optimization/42216
13712         * regrename.c (create_new_chain): New function, broken out from...
13713         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
13714         appending a use to an empty chain.
13715         (build_def_use): Remove previous changes that convert OP_INOUT to
13716         OP_OUT operands; instead detect the case where an OP_INOUT operand
13717         uses a previously untracked register and create an empty chain for it.
13718
13719 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13720
13721         * doc/extend.texi (Function Attributes): Rewrite unfinished
13722         sentence in ms_abi documentation.
13723
13724 2010-03-17  Alan Modra  <amodra@gmail.com>
13725
13726         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
13727         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
13728         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
13729         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
13730
13731 2010-03-16  Richard Henderson  <rth@redhat.com>
13732
13733         PR middle-end/43365
13734         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
13735         (lower_try_finally): Save and restore eh_seq around the expansion
13736         of the try-finally.
13737
13738 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
13739
13740         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
13741         statements before splitting block.
13742
13743 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13744
13745         * doc/sourcebuild.texi (Testsuites): Fix markup.
13746         Use pathnames relative to gcc/testsuite.
13747         (Test Directives): Move description of how timeout is determined.
13748         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
13749         (C Tests): Correct gcc.misc-tests directory.
13750         Framework tests now live in gcc.test-framework.
13751
13752 2010-03-16  Richard Guenther  <rguenther@suse.de>
13753
13754         PR middle-end/43379
13755         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
13756         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
13757
13758 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
13759             Alexandre Oliva  <aoliva@redhat.com>
13760
13761         PR tree-optimization/42917
13762         * lambda-code.c (remove_iv): Skip debug statements.
13763         (lambda_loopnest_to_gcc_loopnest): Likewise.
13764         (not_interesting_stmt): Debug statements are not interesting.
13765
13766 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
13767
13768         PR debug/43051
13769         PR debug/43092
13770         * cselib.c (cselib_preserve_constants,
13771         cfa_base_preserved_val): New static variables.
13772         (preserve_only_constants): New function.
13773         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
13774         clear its REG_VALUES.  If cselib_preserve_constants, don't
13775         empty the whole hash table, but preserve there VALUEs with constants,
13776         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
13777         (cselib_preserve_cfa_base_value): New function.
13778         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
13779         (cselib_init): Change argument to int bitfield.  Set
13780         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
13781         is in it.
13782         (cselib_finish): Clear cselib_preserve_constants and
13783         cfa_base_preserved_val.
13784         * cselib.h (enum cselib_record_what): New enum.
13785         (cselib_init): Change argument to int.
13786         (cselib_preserve_cfa_base_value): New prototype.
13787         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
13788         * dse.c (dse_step1): Likewise.
13789         * cfgcleanup.c (thread_jump): Likewise.
13790         * sched-deps.c (sched_analyze): Likewise.
13791         * gcse.c (local_cprop_pass): Likewise.
13792         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
13793         If FN is non-NULL, call the callback always and whenever it returns
13794         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
13795         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
13796         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
13797         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
13798         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
13799         * var-tracking.c: Include recog.h.
13800         (bb_stack_adjust_offset): Remove.
13801         (vt_stack_adjustments): Don't call it, instead just gather the
13802         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
13803         (adjust_stack_reference): Remove.
13804         (compute_cfa_pointer): New function.
13805         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
13806         (struct adjust_mem_data): New type.
13807         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
13808         functions.
13809         (get_address_mode): New function.
13810         (replace_expr_with_values): Use it.
13811         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
13812         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
13813         (adjust_sets): Remove.
13814         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
13815         Use get_address_mode.
13816         (get_adjusted_src): Remove.
13817         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
13818         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
13819         (add_with_sets): Don't call adjust_sets.
13820         (fp_setter, vt_init_cfa_base): New functions.
13821         (vt_initialize): Change return type to bool.  Move most of pool etc.
13822         initialization to the beginning of the function from end.  Pass
13823         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
13824         If !frame_pointer_needed, call vt_stack_adjustment before mos
13825         vector is filled, call vt_init_cfa_base if argp/framep has been
13826         eliminated to sp.  If frame_pointer_needed and argp/framep has
13827         been eliminated to hard frame pointer, set
13828         hard_frame_pointer_adjustment and call vt_init_cfa_base after
13829         encountering fp setter in the prologue.  For MO_ADJUST, call
13830         log_op_type before pusing the op into mos vector, not afterwards.
13831         Call adjust_insn before cselib_process_insn/add_with_sets,
13832         call cancel_changes (0) afterwards.
13833         (variable_tracking_main_1): Adjust for vt_initialize calling
13834         vt_stack_adjustments and returning whether it succeeded or not.
13835
13836 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
13837
13838         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
13839         debug statements.
13840
13841 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
13842
13843         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
13844         has been set.
13845         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
13846         drap_reg has not been set.
13847
13848 2010-03-15  Michael Matz  <matz@suse.de>
13849
13850         PR middle-end/43300
13851         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
13852         use it to expand block copies.
13853         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
13854         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
13855         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
13856
13857 2010-03-15  Richard Guenther  <rguenther@suse.de>
13858
13859         PR tree-optimization/43367
13860         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
13861         elimination check.
13862
13863 2010-03-15  Richard Guenther  <rguenther@suse.de>
13864
13865         PR tree-optimization/43317
13866         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
13867
13868 2010-03-15  Martin Jambor  <mjambor@suse.cz>
13869
13870         PR tree-optimization/43141
13871         * tree-sra.c (create_abstract_origin): New function.
13872         (modify_function): Call create_abstract_origin.
13873
13874 2010-03-15  Chris Demetriou  <cgd@google.com>
13875
13876         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
13877         wasn't copied.
13878
13879 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
13880
13881         PR middle-end/43354
13882         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
13883         call insert_out_of_ssa_copy for default definitions.
13884
13885 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
13886
13887         * graphite-clast-to-gimple.c (my_long_long): Defined.
13888         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
13889         * graphite-sese-to-poly.c (my_long_long): Defined.
13890         (scop_ivs_can_be_represented): Use it.
13891
13892 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
13893
13894         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
13895         graphite-max-bbs-per-function, and loop-block-tile-size.
13896         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
13897         with "maximum".
13898         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
13899
13900 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
13901
13902         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
13903         forward declaration.
13904         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
13905         (add_upper_bounds_from_estimated_nit): New.
13906         (build_loop_iteration_domains): Use it.
13907
13908 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
13909
13910         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
13911
13912 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
13913
13914         PR middle-end/43306
13915         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
13916         should be an INTEGER_CST.  Also handle CASE_CONVERT.
13917
13918 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
13919
13920         * graphite.c (graphite_initialize): To bound the number of bbs per
13921         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
13922         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
13923         * doc/invoke.texi: Document it.
13924
13925 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
13926
13927         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
13928         * graphite-sese-to-poly.h (build_poly_scop): Same.
13929
13930 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
13931
13932         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
13933         the number of parameters in the scop.  Use as an upper bound
13934         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
13935         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
13936         * doc/invoke.texi: Document it.
13937
13938 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
13939
13940         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
13941         * doc/c-tree.texi: Remove.
13942         * doc/generic.texi: Merge c-tree.texi here.
13943         * doc/gccint.texi (Trees): Remove menu entry.
13944         (c-tree.texi): Remove @include.
13945         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
13946         * doc/languages.texi (Reading RTL): Ditto.
13947
13948 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
13949
13950         PR target/42869
13951         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
13952
13953 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
13954
13955         PR middle-end/42431
13956         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
13957         code added to work around reload clobbering CONST insns.
13958
13959 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
13960
13961         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
13962         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
13963         (cselib_preserve_only_values): Remove retain argument, don't
13964         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
13965         * cselib.h (cselib_preserve_only_values): Remove retain argument.
13966         * var-tracking.c (micro_operation): Move insn field before union.
13967         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
13968         (struct variable_tracking_info_def): Remove n_mos field, change
13969         mos into a vector of micro_operations.
13970         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
13971         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
13972         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
13973         changing into a vector.
13974         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
13975         come before all other uops generated by add_stores.
13976         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
13977         argument removal.
13978         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
13979         a vector.  Run just one pass over the bbs instead of separate counting
13980         and computation phase.
13981         (vt_finalize): Free VTI (bb)->mos vector instead of array.
13982
13983         PR debug/43329
13984         * tree-inline.c (remap_decls): Put old_var rather than origin_var
13985         into *nonlocalized_list vector.
13986         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
13987         even if origin is non-NULL.
13988         (gen_variable_die): Likewise.
13989         (process_scope_var): Don't change origin.
13990         (gen_decl_die): Likewise.
13991         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
13992         before adding new edges instead of after it, fix moving over
13993         debug stmts.
13994
13995 2010-03-11  David S. Miller  <davem@davemloft.net>
13996
13997         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
13998         of four.
13999         * configure: Rebuild.
14000
14001 2010-03-11  Martin Jambor  <mjambor@suse.cz>
14002
14003         PR tree-optimization/43257
14004         * tree.c (assign_assembler_name_if_neeeded): New function.
14005         (free_lang_data_in_cgraph): Assembler name assignment moved to the
14006         above new function.
14007         * tree.h (assign_assembler_name_if_neeeded): Declare.
14008         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
14009         the function if needed.
14010
14011 2010-03-11  Chris Demetriou  <cgd@google.com>
14012
14013         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
14014         include/stdint-gcc.h, and include/stdint.h world-readable.
14015
14016 2010-03-11  Richard Guenther  <rguenther@suse.de>
14017
14018         PR tree-optimization/43255
14019         * tree-vrp.c (process_assert_insertions_for): Do not insert
14020         asserts for trivial conditions.
14021
14022 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14023
14024         PR tree-optimization/43280
14025         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
14026         generation.  Move calculation of size out of the if branch.
14027         (find_bswap): Modify compare number generation.
14028
14029 2010-03-11  Richard Guenther  <rguenther@suse.de>
14030
14031         PR lto/43200
14032         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
14033         (input_gimple_stmt): Fixup handled component types during
14034         operand read.  Also fix up decls in ADDR_EXPRs.
14035
14036 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
14037
14038         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
14039         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
14040
14041 2010-03-10  Jan Hubicka  <jh@suse.cz>
14042
14043         PR c/43288
14044         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
14045         * varasm.c (get_variable_section): Don't do that here...
14046         (make_decl_rtl): ... and here.
14047         (do_assemble_alias): Produce decl RTL.
14048         (assemble_alias): Likewise.
14049
14050 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
14051
14052         PR debug/43290
14053         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
14054         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
14055         of fde->vdrap_reg.
14056         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
14057         (based_loc_descr): Only express drap or vdrap regno based expressions
14058         using DW_OP_fbreg when not optimizing.
14059         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
14060         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
14061         REG_CFA_SET_VDRAP note.
14062
14063 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
14064
14065         PR tree-optimization/43236
14066         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
14067         error in calculation of base address in reverse iteration case.
14068         (generate_builtin): Take number of latch executions if the statement
14069         is in the latch.
14070
14071 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
14072
14073         PR middle-end/42859
14074         * tree-eh.c: Include pointer-set.h.
14075         (lower_eh_dispatch): Filter out duplicate case labels and
14076         remove the unneeded edge when the label is unused.  Return
14077         true when some edges are removed.
14078         (execute_lower_eh_dispatch): When any lowering resulted in
14079         removing an edge, also delete unreachable blocks.
14080
14081 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
14082
14083         PR bootstrap/43287
14084         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14085         UNSPEC_MACHOPIC_OFFSET.
14086
14087 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
14088
14089         PR target/43294
14090         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
14091         (m68k_delegitimize_address): New function.
14092
14093 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
14094
14095         PR debug/43299
14096         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
14097
14098         PR debug/43299
14099         * var-tracking.c (adjust_sets): New function.
14100         (count_with_sets, add_with_sets): Use it.
14101         (get_adjusted_src): New inline function.
14102         (add_stores): Use it.
14103
14104         PR debug/43304
14105         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
14106         call cselib_dummy_expand_value_rtx_cb instead of
14107         cselib_expand_value_rtx_cb.
14108
14109         PR debug/43293
14110         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
14111         * config/i386/i386.c: Include debug.h and dwarf2out.h.
14112         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
14113         and .cfi_endproc around the pic thunks.
14114         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
14115         all queued unwind info register saves are saved before the call.
14116         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
14117         considered as sp-=4 for unwind info and the pop as sp+=4 which
14118         also clobbers dest, but doesn't actually restore it.
14119
14120         PR debug/43290
14121         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
14122         RTX_FRAME_RELATED_P.
14123
14124 2010-03-09  Jie Zhang  <jie@codesourcery.com>
14125
14126         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
14127         whitespaces in output template.
14128
14129 2010-03-09  Jie Zhang  <jie@codesourcery.com>
14130
14131         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
14132         out array boundary.
14133
14134 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
14135
14136         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
14137         builtins.exp in a separate job.
14138
14139 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14140
14141         * graphite-sese-to-poly.c (add_param_constraints): Use
14142         lower_bound_in_type and upper_bound_in_type.
14143
14144 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14145
14146         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
14147         instead of unsigned_type_node.
14148
14149 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14150             Reza Yazdani  <reza.yazdani@amd.com>
14151
14152         PR middle-end/43065
14153         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
14154         on pointer type parameters.
14155
14156 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
14157
14158         PR middle-end/42644
14159         PR middle-end/42130
14160         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
14161         handle conversions from pointer to integers.
14162         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
14163         induction variable, to be able to work with code generated by CLooG.
14164         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
14165         (build_poly_scop): Bail out if we cannot codegen a loop.
14166
14167 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
14168
14169         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
14170         code generation with gloog_error.
14171
14172 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14173
14174         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
14175         Call fold_convert on all the returned values.
14176         (expand_scalar_variables_expr): Pass to
14177         expand_scalar_variables_ssa_name the type of the resulting expression.
14178
14179 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14180
14181         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
14182         ppl_min_for_le_pointset.
14183         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
14184         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
14185
14186 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14187
14188         * graphite-dependences.c (map_into_dep_poly): Removed.
14189         (dependence_polyhedron_1): Use combine_context_id_scat.
14190
14191 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14192
14193         * graphite-poly.h (struct poly_scattering): Add layout documentation.
14194         (struct poly_bb): Same.
14195         (combine_context_id_scat): New.
14196
14197 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14198
14199         PR middle-end/42326
14200         * sese.c (name_defined_in_loop_p): Return false for default
14201         definitions.
14202
14203 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14204
14205         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
14206         and clean up the logic.
14207
14208 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14209
14210         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
14211         early return.
14212
14213 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
14214
14215         * var-tracking.c (remove_cselib_value_chains): Define only for
14216         ENABLE_CHECKING.
14217         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
14218         delete_slot_part, emit_notes_for_differences_1): Don't call
14219         remove_cselib_value_chains here.
14220         (set_slot_part, emit_notes_for_differences_2): Don't call
14221         add_cselib_value_chains here.
14222         (preserved_values): New vector.
14223         (preserve_value): New function.
14224         (add_uses, add_stores, vt_add_function_parameters): Use it
14225         instead of cselib_preserve_value.
14226         (changed_values_stack): New vector.
14227         (check_changed_vars_0): New function.
14228         (check_changed_vars_1, check_changed_vars_2): Use it.
14229         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
14230         changed_values_stack VALUEs.
14231         (vt_emit_notes): For all preserved_values call
14232         add_cselib_value_chains.  If ENABLE_CHECKING call
14233         remove_cselib_value_chains before verifying value_chains is empty.
14234         Initialize and free changed_values_stack.
14235         (vt_initialize): Initialize preserved_values.
14236         (vt_finalize): Free preserved_values.
14237
14238 2010-03-08  Richard Guenther  <rguenther@suse.de>
14239
14240         PR tree-optimization/43269
14241         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
14242         region detection.
14243
14244 2010-03-08  Martin Jambor  <mjambor@suse.cz>
14245
14246         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
14247         (ipa_is_param_called): Removed.
14248         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
14249         (ipa_print_node_params): Do not print the called flag.
14250         (ipa_write_node_info): Do not stream the called flag.
14251         (ipa_read_node_info): Likewise.
14252
14253 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
14254
14255         PR debug/43176
14256         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
14257         * cselib.c (struct expand_value_data): Add dummy field.
14258         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
14259         dummy to false.
14260         (cselib_dummy_expand_value_rtx_cb): New function.
14261         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
14262         any rtl.
14263         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
14264         * var-tracking.c: Include pointer-set.h.
14265         (variable): Change n_var_parts to char from int.  Add
14266         cur_loc_changed and in_changed_variables fields.
14267         (variable_canonicalize): Remove.
14268         (shared_var_p): New inline function.
14269         (unshare_variable): Maintain cur_loc_changed and
14270         in_changed_variables fields.  If var was in changed_variables,
14271         replace it there with new_var.  Just copy cur_loc instead of
14272         resetting it to something else.
14273         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
14274         (dataflow_set_union): Don't call variable_canonicalize.
14275         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
14276         of their DEBUG_EXPR_TREE_DECLs.
14277         (canonicalize_loc_order_check): Verify that cur_loc is NULL
14278         and in_changed_variables and cur_loc_changed is false.
14279         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
14280         and cur_loc_changed.  Don't update cur_loc here.
14281         (variable_merge_over_src): Don't call variable_canonicalize.
14282         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
14283         removing loc that is equal to cur_loc, clear cur_loc,
14284         set cur_loc_changed and ensure variable_was_changed is called.
14285         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
14286         compare pointers in cur_loc check, if it is equal to loc,
14287         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
14288         (variable_different_p): Remove compare_current_location argument,
14289         don't compare cur_loc.
14290         (dataflow_set_different_1): Adjust variable_different_p caller.
14291         (variable_was_changed): If dv had some var in changed_variables
14292         already, reset in_changed_variables flag for it and propagate
14293         cur_loc_changed over to the new variable.  On empty var
14294         always set cur_loc_changed.  Set in_changed_variables on whatever
14295         var is added to changed_variables.
14296         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
14297         Use shared_var_p.  When removing loc that is equal to cur_loc,
14298         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
14299         end, don't set it to something else, just call variable_was_changed.
14300         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
14301         loc being removed, clear cur_loc and set cur_loc_changed.
14302         Set cur_loc_changed if all locations have been removed.
14303         (struct expand_loc_callback_data): New type.
14304         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
14305         allocated.  Always create SUBREGs if simplify_subreg failed.
14306         Prefer to use cur_loc, when that fails and still in
14307         changed_variables (and seen first time) recompute it.  Set
14308         cur_loc_changed of variables which had to change cur_loc and
14309         compute elcd->cur_loc_changed if any of the subexpressions used
14310         had to change cur_loc.
14311         (vt_expand_loc): Adjust to pass arguments in
14312         expand_loc_callback_data structure.
14313         (vt_expand_loc_dummy): New function.
14314         (emitted_notes): New variable.
14315         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
14316         that weren't used for any other decl in current
14317         emit_notes_for_changes call call vt_expand_loc_dummy to update
14318         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
14319         first loc_chain location if NULL before.  Always use just
14320         cur_loc instead of first loc_chain location.  When cur_loc_changed
14321         is false, when not --enable-checking=rtl just don't emit any note.
14322         When rtl checking, compute the note and assert it is the same
14323         as previous note.  Clear cur_loc_changed and in_changed_variables
14324         at the end before removing from changed_variables.
14325         (check_changed_vars_3): New function.
14326         (emit_notes_for_changes): Traverse changed_vars to call
14327         check_changed_vars_3 on each changed var.
14328         (emit_notes_for_differences_1): Clear cur_loc_changed and
14329         in_changed_variables.  Recompute cur_loc of new_var.
14330         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
14331         (vt_emit_notes): Initialize and destroy emitted_notes.
14332
14333 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
14334
14335         PR rtl-optimization/42220
14336         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
14337         Use verify_reg_tracked to determine if we should use OP_OUT rather
14338         than OP_INOUT.
14339         (build_def_use): If we see an in-out operand for a register that we
14340         know nothing about, treat is an output if possible, fail the block if
14341         not.
14342
14343 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
14344
14345         PR debug/42897
14346         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
14347         permanently.
14348
14349 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
14350
14351         PR debug/42897
14352         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
14353         uses of relevant DEFs that are dead outside the loop too.
14354
14355 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
14356
14357         * var-tracking.c (dataflow_set_merge): Swap src and src2.
14358         Reverted:
14359         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
14360         PR debug/41371
14361         * var-tracking.c (values_to_unmark): New variable.
14362         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
14363         values_to_unmark vector.  Moved body to...
14364         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
14365         instead queue it into values_to_unmark vector.
14366         (vt_find_locations): Free values_to_unmark vector.
14367
14368 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
14369
14370         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
14371         (site.exp): Export them when plugins are enabled.
14372
14373 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
14374
14375         PR middle-end/42326
14376         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
14377         that contain scevs.
14378         (chrec_fold_multiply): Same.
14379
14380 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
14381
14382         PR c/43248
14383         * c-decl.c (build_compound_literal): Return early if init is
14384         an error_mark_node.
14385
14386 2010-03-04  Martin Jambor  <mjambor@suse.cz>
14387
14388         PR tree-optimization/43164
14389         PR tree-optimization/43191
14390         * tree-sra.c (type_consists_of_records_p): Reject records with
14391         zero-size bit-fields at the end.
14392
14393 2010-03-04  Mike Stump  <mikestump@comcast.net>
14394
14395         * Makefile.in (TAGS): Remove *.y.
14396
14397 2010-03-04  Richard Guenther  <rguenther@suse.de>
14398
14399         PR tree-optimization/40761
14400         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
14401         in reverse order.
14402         (my_rev_post_order_compute): New function.
14403         (init_pre): Call it.
14404
14405 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
14406
14407         PR middle-end/43209
14408         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
14409         decrease the cost of an IV candidate when the cost is infinite.
14410
14411 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14412
14413         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
14414         Use '3DNow!' for the extension of that name, ensure normal space
14415         after the string.
14416         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
14417
14418 2010-03-03  Jeff Law  <law@redhat.com>
14419
14420         * PR middle-end/32693
14421         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
14422         than gen_rtx_SUBREG.
14423         (extract_bit_field_1): Likewise.
14424
14425 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
14426
14427         * doc/sourcebuild.texi (Test directives): Document that arguments
14428         include-opts and exclude-opts are now optional for dg-skip-if,
14429         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
14430
14431 2010-03-03  Jason Merrill  <jason@redhat.com>
14432
14433         PR c++/12909
14434         * cgraph.h (varpool_node): Add extra_name field.
14435         * varpool.c (varpool_extra_name_alias): New.
14436         (varpool_assemble_decl): Emit extra name aliases.
14437         (varpool_mark_needed_node): Look past an extra name alias.
14438         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
14439         * lto-streamer-in.c (lto_input_tree): Read it.
14440         * lto-streamer-out.c (output_unreferenced_globals): Write it.
14441
14442 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
14443
14444         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
14445         (sparc*-*-solaris2*): ...this.
14446
14447 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
14448
14449         PR debug/43229
14450         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
14451         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
14452         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
14453         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
14454
14455         PR debug/43237
14456         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
14457         fallthrough to default handling, just with want_address 0 instead of 2.
14458         For single element lists, add_AT_loc directly, otherwise create an
14459         artificial variable DIE and stick location list to it.
14460
14461         PR debug/43177
14462         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
14463         (VAL_EXPR_HAS_REVERSE): Define.
14464         (reverse_op): New function.
14465         (add_stores): For reversible operations add an extra MO_VAL_USE.
14466
14467 2010-03-02  Jason Merrill  <jason@redhat.com>
14468
14469         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
14470
14471 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
14472
14473         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
14474         (sparc64-*-linux*): Likewise.
14475         (sparc64-*-solaris2*): Include assembler files before linker ones.
14476         (sparc-*-solaris2*): Simplify and reorder to match previous case.
14477         * config/sparc/gas.h: Delete.
14478         * config/sparc/sol2-64.h: Add copyright notice.
14479         * config/sparc/sol2-gas-bi.h: Likewise.
14480         * config/sparc/sol2-gld.h: Likewise.
14481         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
14482         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
14483         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
14484         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
14485         (sparc_elf_asm_named_section): Rename into...
14486         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
14487
14488 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
14489
14490         * config/alpha/alpha.c (override_options): Fix -mtune error message.
14491
14492 2010-03-02  Jeff Law  <law@redhat.com>
14493
14494         PR middle-end/42431
14495         * reload1.c (rtx_p, substitute_stack): Declare.
14496         (substitute): Record addresses of changed rtxs.
14497         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
14498         Restore the original rtx when complete.
14499         (reload): Free subsitute_stack when complete.
14500
14501 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
14502
14503         * doc/gccint.texi (menu): Add Testsuites as a chapter.
14504         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
14505         new chapter.
14506         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
14507         LTO Testing, gcov Testing, profopt Testing, compat Testing,
14508         Torture Tests): Change from subsection to section.
14509
14510 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
14511             Steven Bosscher  <steven@gcc.gnu.org>
14512
14513         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
14514         instead of bb.
14515
14516 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
14517
14518         PR middle-end/42640
14519         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
14520         the assignment from the new induction variable to the assignment
14521         of the value from the original loop PHI function.
14522
14523 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
14524             Daniel Jacobowitz  <dan@codesourcery.com>
14525
14526         * doc/sourcebuild.texi (Test directives): Clarify options to
14527         dg-skip-if.
14528
14529 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14530
14531         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
14532         Disable cfi directives unless GCC and gas agree on using read-only
14533         .eh_frame sections for 64-bit.
14534         * configure: Regenerate.
14535
14536 2010-03-01  Richard Guenther  <rguenther@suse.de>
14537
14538         PR tree-optimization/43220
14539         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
14540         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
14541
14542 2010-03-01  Richard Guenther  <rguenther@suse.de>
14543             Martin Jambor  <mjambor@suse.cz>
14544
14545         PR middle-end/41250
14546         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
14547         gimplified parameters.
14548
14549 2010-03-01  Christian Bruel  <christian.bruel@st.com>
14550
14551         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
14552
14553 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
14554
14555         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
14556
14557 2010-03-01  Richard Guenther  <rguenther@suse.de>
14558
14559         PR middle-end/43213
14560         * expr.c (expand_assignment): Use the alias-oracle to tell
14561         if the rhs aliases the result decl.
14562
14563 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14564
14565         PR pch/14940
14566         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
14567         to sol_gt_pch_get_address.
14568         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
14569         64-bit, SPARC and x86.
14570         (sol_gt_pch_get_address): New function.
14571
14572 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
14573
14574         * toplev.h (inform_n, error_n): Declare.
14575         * diagnostic.c (inform_n, error_n): New function.
14576
14577 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
14578
14579         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
14580         has no rtl yet when processing local_decls, queue it and recheck
14581         if deferred stack allocation hasn't assigned it rtl.
14582
14583 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
14584
14585         * config/sh/sh.c (unspec_bbr_uid): New.
14586         (gen_block_redirect): Use it instead of INSN_UID.
14587         (gen_far_branch): Likewise.
14588
14589 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
14590
14591         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
14592         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
14593
14594 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14595
14596         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
14597         (Warning Options): -Wno-conversion-null is valid for
14598         Objective-C++ as well.
14599         * doc/tm.texi (Named Address Spaces): Likewise.
14600         * doc/plugins.texi (Plugins): Replace TABs with spaces.
14601         * doc/tree-ssa.texi (Tree SSA): Likewise.
14602
14603 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
14604
14605         PR bootstrap/43202
14606         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
14607         by default.  Don't set the default arch for
14608         i[34567]86-*-darwin*|x86_64-*-darwin*.
14609
14610 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
14611
14612         PR bootstrap/43202
14613         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
14614         default.  Set the default 32bit/64bit archs with $with_arch
14615         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
14616
14617 2010-02-27  Richard Guenther  <rguenther@suse.de>
14618
14619         PR tree-optimization/43186
14620         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
14621         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
14622         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
14623         unroller iterations.
14624
14625 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
14626
14627         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
14628         required and i[34567]86-*-* targets don't support 64bit ISA.
14629
14630 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
14631
14632         PR ada/43096
14633         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
14634         the same alias set.
14635
14636 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
14637
14638         * config.gcc: Set the default arch at least to Prescott for
14639         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
14640         if SSE math is enabled.
14641
14642 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14643
14644         * diagnostic.c (diagnostic_initialize): Update.
14645         (diagnostic_report_diagnostic): Test inhibit_notes_p for
14646         informative notes.
14647         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
14648         (diagnostic_inhibit_notes): New.
14649         * toplev.c (process_options): inhibit notes with -fcompare-debug.
14650
14651 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14652
14653         PR c/20631
14654         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
14655         * doc/standards.texi: Likewise.
14656         * doc/extend.texi: Likewise.
14657         * doc/trouble.texi: Likewise.
14658         * doc/cppopts.texi: Likewise.
14659         * doc/install.texi: Likewise.
14660         * c.opt (std=c90,std=gnu90): New options.
14661         * c-opts.c (c_common_handle_option): Handle them.
14662
14663 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14664
14665         PR c/24577
14666         * c-decl.c (undeclared_variable): Use an informative note.
14667
14668 2010-02-26  Richard Guenther  <rguenther@suse.de>
14669
14670         PR tree-optimization/43186
14671         * gimple.h (gimple_fold): Remove.
14672         * gimple.c (gimple_fold): Remove.  Inline into single user ...
14673         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
14674         Try harder for conditions.
14675
14676 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
14677
14678         PR debug/43190
14679         * function.c (used_types_insert): Don't skip through named pointer
14680         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
14681         and it is different from the main variant's type.
14682
14683 2010-02-26  Nick Clifton  <nickc@redhat.com>
14684
14685         * config/rx/rx.md (sminsi3): Remove bogus alternative.
14686
14687 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
14688
14689         * config.gcc: Support --with-fpmath=sse for x86.
14690
14691         * config/i386/ssemath.h: New.
14692
14693         * doc/install.texi (--with-fpmath=sse): Documented.
14694
14695 2010-02-26  Richard Guenther  <rguenther@suse.de>
14696
14697         PR tree-optimization/43188
14698         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
14699         vector types of over-aligned element type.
14700
14701 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
14702
14703         PR target/43175
14704         * config/i386/i386.c (expand_vec_perm_blend): Use correct
14705         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
14706
14707 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
14708
14709         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
14710
14711 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
14712
14713         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
14714         * var-tracking.c: Include diagnostic.h.
14715         (debug_dv): New function.
14716         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
14717
14718         PR debug/43160
14719         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
14720         (add_value_chain, add_value_chains, remove_value_chain,
14721         remove_value_chains): Handle DEBUG_EXPRs.
14722         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
14723
14724         PR debug/43161
14725         * regcprop.c (struct queued_debug_insn_change): New type.
14726         (struct value_data_entry): Add debug_insn_changes field.
14727         (struct value_data): Add n_debug_insn_changes field.
14728         (debug_insn_changes_pool): New variable.
14729         (free_debug_insn_changes, apply_debug_insn_changes,
14730         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
14731         (kill_value_one_regno): Call free_debug_insn_changes if needed.
14732         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
14733         fields.
14734         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
14735         changes for them.
14736         (copyprop_hardreg_forward_1): Don't call apply_change_group for
14737         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
14738         changes, call cprop_find_used_regs via note_stores.
14739         (copyprop_hardreg_forward): When copying vd from predecessor
14740         which has any queued DEBUG_INSN changes, make sure the pointers are
14741         cleared.  At the end call df_analyze and then if there are any
14742         DEBUG_INSN changes queued at the end of some basic block for still
14743         live registers, apply them.
14744         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
14745
14746 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
14747
14748         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
14749         (arm*-*-*): Ditto.
14750
14751 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
14752
14753         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
14754         targets.  Set the default with_cpu/with_arch from arch/cpu.
14755         Allow x86-64 and native for with_cpu/with_arch.
14756
14757 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
14758
14759         * ebitmap.c: Change calls to verify_popcount with calls to
14760         sbitmap_verify_popcount.
14761         (ebitmap_clear_bit): Fixed map->cacheindex test and
14762         map>cache update when bit clearing results in an empty
14763         element.
14764
14765 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
14766
14767         PR target/43154
14768         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
14769         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
14770         and support both V2DF and V2DI modes.
14771         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
14772         support both V2DF and V2DI modes.
14773         (general): Delete trailing whitespace from a few patterns.
14774
14775         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14776         V2DF/V2DI interleave high/low builtins.
14777
14778         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
14779         new VSX builtins.
14780
14781         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
14782         interleave high/low functions.
14783
14784 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
14785
14786         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
14787         #pragma extern_prefix.
14788
14789 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
14790
14791         PR debug/43166
14792         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
14793         BLKmode, assert op0 is a MEM and just adjust its mode.
14794
14795         PR debug/43165
14796         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
14797         if bitpos isn't multiple of mode's bitsize.
14798
14799 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14800
14801         * c.opt (-ftemplate-depth=): New.
14802         (-ftemplate-depth-): Deprecate.
14803         * optc-gen.awk: Handle -ftemplate-depth=.
14804         * opth-gen.awk: Likewise.
14805         * c-opts.c (c_common_handle_option): Likewise.
14806         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
14807
14808 2010-02-24  Jason Merrill  <jason@redhat.com>
14809
14810         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
14811
14812 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14813
14814         * cfg.c (alloc_aux_for_block): Remove inline.
14815         (alloc_aux_for_edge): Likewise.
14816
14817 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14818
14819         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
14820
14821 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14822
14823         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
14824         * config/i386/sol2-gas.h: New file.
14825         * config.gcc (i[34567]86-*-solaris2*): Use it.
14826
14827 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14828
14829         PR c/43128
14830         * c-typeck.c (ep_convert_and_check): New.
14831         (build_conditional_expr): Use it.
14832         (build_binary_op): Likewise.
14833
14834 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
14835
14836         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
14837
14838         PR debug/43150
14839         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
14840         bounds even for -O+.
14841         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
14842         expr needs to have DECL_NAME set.
14843
14844 2010-02-24  Nick Clifton  <nickc@redhat.com>
14845
14846         * config/mep/mep.c: Include gimple.h.
14847         (mep_function_uses_sp): Delete unused function.
14848         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
14849         parameters.  Use unsigned integers to count args.  Return a
14850         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
14851
14852 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
14853
14854         PR target/43107
14855         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
14856         greater or equal to nelt instead of 2 * nelt.
14857         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
14858         with nelt - 1.
14859
14860 2010-02-23  Jason Merrill  <jason@redhat.com>
14861
14862         PR debug/42800
14863         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
14864         in cfun->local_decls even if they have register types.
14865
14866         PR c++/42837
14867         * stor-layout.c (place_field): Don't warn about unnecessary
14868         DECL_PACKED if the type is packed.
14869
14870 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
14871
14872         PR target/43139
14873         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
14874         GOTOFF relocs, even when the base reg isn't pic pointer.
14875
14876 2010-02-23  Michael Matz  <matz@suse.de>
14877
14878         PR debug/43077
14879         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
14880         (expand_gimple_basic_block): Generate and use debug temps if there
14881         are debug uses left after the last real use of TERed ssa names.
14882         Unlink debug immediate uses when they are expanded.
14883
14884 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14885
14886         PR 43123
14887         * config/i386/i386.c (override_options): Reorganise to provide
14888         better error messages.
14889
14890 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
14891
14892         PR middle-end/43083
14893         * graphite-scop-detection.c (create_single_exit_edge): Move
14894         the call to find_single_exit_edge to....
14895         (create_sese_edges): ...here.  Don't handle multiple edges
14896         exiting the function.
14897         (build_graphite_scops): Don't handle multiple edges
14898         exiting the function.
14899
14900 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
14901
14902         PR middle-end/43097
14903         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
14904         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
14905
14906 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
14907
14908         PR middle-end/43026
14909         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
14910
14911 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14912
14913         PR c++/43126
14914         * c-typeck.c (convert_arguments): Print declaration location.
14915         * c-common.c (validate_nargs): Rename as
14916         builtin_function_validate_nargs.
14917         (check_builtin_function_arguments): Update.
14918
14919 2010-02-22  Richard Guenther  <rguenther@suse.de>
14920
14921         PR lto/43045
14922         * tree-inline.c (declare_return_variable): Use the type of
14923         the call stmt lhs if available.
14924
14925 2010-02-22  Duncan Sands  <baldrick@free.fr>
14926
14927         * passes.c (register_pass): Always consider all pass lists when
14928         ref_pass_instance_number is zero.
14929
14930 2010-02-22  Richard Guenther  <rguenther@suse.de>
14931
14932         PR tree-optimization/42749
14933         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
14934         parameter.  Do arithmetic in the original type.
14935         (update_accumulator_with_ops): Likewise.
14936         (adjust_accumulator_values): Adjust.
14937
14938 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14939
14940         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
14941         (QI to BLKmode splitter): New splitter.
14942
14943 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
14944
14945         * config/i386/i386.c (initial_ix86_tune_features): Turn on
14946         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
14947
14948 2010-02-22  Richard Guenther  <rguenther@suse.de>
14949
14950         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
14951
14952 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
14953
14954         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
14955         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
14956         ($(T)crti.o, $(T)crtn.o): Remove rules.
14957
14958 2010-02-21  Tobias Burnus  <burnus@net-b.de>
14959
14960         PR fortran/35259
14961         * doc/invoke.texi (-fassociative-math): Document that this
14962         option is automatically enabled for Fortran.
14963
14964 2010-02-20  David S. Miller  <davem@davemloft.net>
14965
14966         * configure.ac: Test if linker and assembler properly support
14967         GOTDATA_OP relocations.
14968         * configure: Rebuild.
14969         * config.in: Likewise.
14970         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
14971         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
14972         (movsi_high_pic): Likewise.
14973         (movdi_lo_sum_pic): Likewise.
14974         (movdi_high_pic): Likewise.
14975         (movsi_pic_gotdata_op): New pattern.
14976         (movdi_pic_gotdata_op): Likewise.
14977         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
14978         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
14979
14980 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
14981
14982         PR target/43067
14983         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
14984         attribute to ssemul.
14985         (xop_mulv2div2di3_high): Ditto.
14986
14987 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14988
14989         PR c++/35669
14990         * c.opt (Wconversion-null): New option.
14991         * doc/invoke.texi (Wconversion-null): Document.
14992
14993 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14994
14995         * common.opt (Wlarger-than-): Add Undocumented.
14996
14997 2010-02-19  Mike Stump  <mikestump@comcast.net>
14998
14999         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
15000
15001 2010-02-19  Jason Merrill  <jason@redhat.com>
15002
15003         PR target/40332
15004         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
15005         * configure: Likewise.
15006
15007 2010-02-20  Alan Modra  <amodra@gmail.com>
15008
15009         PR middle-end/42344
15010         * cgraph.h (cgraph_make_decl_local): Declare.
15011         * cgraph.c (cgraph_make_decl_local): New function.
15012         (cgraph_make_node_local): Use it.
15013         * cgraphunit.c (cgraph_function_versioning): Likewise.
15014         * ipa.c (function_and_variable_visibility): Likewise.
15015
15016 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15017
15018         PR bootstrap/43121
15019         * except.c (sjlj_emit_function_enter): Don't call
15020         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
15021         directly.
15022         * rtl.h (add_reg_br_prob_note): Remove prototype.
15023
15024 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15025
15026         PR 41779
15027         * c-common.c (conversion_warning): Remove widening conversions
15028         before checking the conversion of integers to reals.
15029
15030 2010-02-19  Mike Stump  <mikestump@comcast.net>
15031
15032         PR middle-end/43125
15033         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
15034
15035         PR objc/43061
15036         * cgraphunit.c (process_function_and_variable_attributes): Check
15037         DECL_PRESERVE_P instead of looking up attribute "used".
15038         * ipa-pure-const.c (check_decl): Likewise.
15039         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
15040         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
15041         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
15042         instead of attribute "used".
15043         * config/sol2-c.c (solaris_pragma_init): Likewise.
15044         (solaris_pragma_fini): Likewise.
15045
15046 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15047
15048         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
15049         Use XCNEW instead of xcalloc.
15050         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
15051         XNEW instead of xmalloc.
15052         (get_fields): Use XNEWVEC instead of xmalloc.
15053
15054         PR debug/43084
15055         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
15056         populate vars array.
15057         (create_new_general_access): For debug stmts just reset value.
15058         (get_stmt_accesses): For accesses within debug stmts just record them
15059         using add_access_to_acc_sites instead of preventing the peeling or
15060         counting them as accesses.
15061
15062         PR middle-end/42233
15063         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
15064
15065 2010-02-19  Richard Guenther  <rguenther@suse.de>
15066
15067         PR tree-optimization/42916
15068         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
15069         instructions.
15070
15071 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
15072
15073         * configure.ac: Replace all uses of changequote in macro arguments
15074         with proper quoting.
15075
15076 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15077
15078         PR middle-end/42233
15079         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
15080
15081 2010-02-19  Richard Guenther  <rguenther@suse.de>
15082
15083         PR tree-optimization/42944
15084         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
15085         test for aliasing with errno.
15086
15087 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15088
15089         PR middle-end/42233
15090         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
15091         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
15092         * dojump.c: Include output.h.
15093         (inv): New inline function.
15094         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
15095         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
15096         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
15097         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
15098         argument, pass it down to other calls.
15099         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
15100         add REG_BR_PROB note to the conditional jump.
15101         * cfgexpand.c (add_reg_br_prob_note): Removed.
15102         (expand_gimple_cond): Don't call it, add the probability
15103         as last argument to jumpif_1/jumpifnot_1.
15104         * Makefile.in (dojump.o): Depend on output.h.
15105         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
15106         callers.
15107         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
15108         * stmt.c (do_jump_if_equal): Likewise.
15109         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
15110         * loop-unswitch.c (compare_and_jump_seq): Likewise.
15111         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
15112         Likewise.
15113         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
15114         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
15115         jumpifnot_1 callers.
15116         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
15117         callers.
15118         (store_expr): Adjust jumpifnot caller.
15119         (store_constructor): Adjust jumpif caller.
15120
15121         PR middle-end/42233
15122         * gimplify.c (gimple_boolify): For __builtin_expect call
15123         gimple_boolify also on its first argument.
15124
15125 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
15126
15127         * configure.ac (gnu-unique-object): Wrap regexps using [] in
15128         changequote block.
15129         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
15130         * configure: Regenerated.
15131
15132 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15133
15134         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
15135         lang_hooks.types_compatible_p instead of comptypes.
15136
15137 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
15138
15139         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
15140         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
15141         if __prefer_thumb__ is defined.
15142
15143 2010-02-18  Martin Jambor  <mjambor@suse.cz>
15144
15145         PR tree-optimization/43066
15146         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
15147         array with zero-sized element type.
15148
15149 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
15150
15151         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
15152         rtx, allocate struct var_loc_node here and return it to the
15153         caller, and only if it is actually needed.
15154         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
15155         move it earlier and return immediately if it returns NULL.
15156
15157 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
15158
15159         * config/sparc/gas.h: New file.  Restore
15160         TARGET_ASM_NAMED_SECTION to its ELF default.
15161         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
15162         check !HAVE_GNU_AS.
15163         * config/sparc/sparc.c (sparc_elf_asm_named_section):
15164         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
15165         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
15166         after sparc/sysv4.h.
15167
15168 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
15169
15170         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
15171
15172 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
15173
15174         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
15175         patterns from predicated pattern.
15176
15177 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
15178
15179         PR target/43103
15180         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
15181         for insn mnemonic suffix.
15182
15183 2010-02-17  Richard Guenther  <rguenther@suse.de>
15184
15185         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
15186         to loop PHI nodes.
15187
15188 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
15189
15190         PR debug/42918
15191         * caller-save.c (save_call_clobbered_regs): If BB ends with
15192         a DEBUG_INSN, move any notes in between last real insn and the last
15193         DEBUG_INSN after the last DEBUG_INSN.
15194
15195 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
15196
15197         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
15198         Fix return type.  Fix argument type.  Explain meaning of return value.
15199
15200 2010-02-16  Richard Guenther  <rguenther@suse.de>
15201
15202         PR tree-optimization/41043
15203         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
15204         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
15205         statements ...
15206         (vrp_visit_phi_node): ... but only for loop PHI nodes.
15207
15208 2010-02-16  Ira Rosen  <irar@il.ibm.com>
15209
15210         PR tree-optimization/43074
15211         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
15212         * tree-vect-loop.c (vect_analyze_loop_operations): Add
15213         vectorizable cycles in hybrid SLP check.
15214         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
15215
15216 2010-02-16  Richard Guenther  <rguenther@suse.de>
15217
15218         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
15219         (true_dependence): If memrefs_conflict_p computes must-alias
15220         trust it.  Move TBAA check after offset-based disambiguation.
15221         (canon_true_dependence): Likewise.
15222
15223 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
15224
15225         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
15226         * doc/invoke.texi: Document it.
15227         * var-tracking.c: Include toplev.h and params.h.
15228         (vt_find_locations): Return bool indicating success.  Compute
15229         hash sizes unconditionally.  Check new parameter, report.
15230         (variable_tracking_main_1): Check vt_find_locations results and
15231         retry.  Renamed from...
15232         (variable_tracking_main): ... this.  New wrapper to preserve
15233         flag_var_tracking_assignments.
15234         * Makefile.in (var-tracking.o): Adjust dependencies.
15235
15236 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
15237             Jakub Jelinek <jakub@redhat.com>
15238
15239         PR target/42854
15240         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
15241         if weak_import attribute is present.
15242         * config/darwin.c (machopic_select_section): Likewise.
15243
15244 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
15245
15246         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
15247         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
15248         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
15249         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
15250
15251         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
15252         types.
15253
15254         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15255         Fix argument types.
15256
15257         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
15258         Rewrite text to refer to the names.
15259
15260 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
15261
15262         * config/i386/i386-builtin-types.def
15263         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
15264         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
15265         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
15266         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
15267         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
15268         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
15269         IX86_BUILTIN_VPERMIL2PS256.
15270         (MULTI_ARG_4_DF2_DI_I): Defined.
15271         (MULTI_ARG_4_DF2_DI_I1): Defined.
15272         (MULTI_ARG_4_SF2_SI_I): Defined.
15273         (MULTI_ARG_4_SF2_SI_I1): Defined.
15274         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
15275         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
15276         __builtin_ia32_vpermil2ps256.
15277         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
15278         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
15279         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
15280         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
15281         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
15282         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
15283         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
15284         CODE_FOR_xop_vpermil2v8sf3.
15285         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
15286         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
15287         * config/i386/xopintrin.h (_mm_permute2_pd): New.
15288         (_mm256_permute2_pd): New.
15289         (_mm_permute2_ps): New.
15290         (_mm256_permute2_ps): New.
15291
15292 2010-02-15  Nick Clifton  <nickc@redhat.com>
15293
15294         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
15295         boolean parameters.  Use emit_jump_insn when emitting a pop
15296         instruction containing a return insn.
15297         (push): Use 'true' rather than '1' as second parameter to F.
15298         (h8300_expand_prologue): Likewise.
15299         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
15300         (h8300_expand_epilogue): Likewise.
15301
15302 2010-02-15  Richard Guenther  <rguenther@suse.de>
15303
15304         PR middle-end/43068
15305         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
15306         if that is zero.
15307
15308 2010-02-15  Nick Clifton  <nickc@redhat.com>
15309
15310         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
15311         delta.
15312
15313 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
15314
15315         * intl.c (fake_ngettext): New function.
15316         * intl.h (fake_ngettext): Declare.
15317         (ngettext): Define macro.
15318         * collect2.c (notice_translated): New function.
15319         (main): Use notice_translated and ngettext.
15320         * collect2.h (notice_translated): Declare.
15321
15322 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
15323
15324         * reorg.c (delete_computation): Comment fixes.
15325         * caller-save.c (setup_save_areas): Idem.
15326         * sel-sched-dump.c (dump_lv_set): Idem.
15327         * rtl.def: Idem.
15328
15329 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15330
15331         * config/s390/s390.c (s390_sched_init): New function.
15332         (TARGET_SCHED_INIT): Target hook defined.
15333
15334 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
15335             Jack Howarth  <howarth@bromo.med.uc.edu>
15336             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15337
15338         PR target/42982
15339         Partial revert of unintended change in fix for PR41605.
15340         * config/darwin.h: Fix typo.
15341         * config/darwin9.h: Same.
15342
15343 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
15344
15345         * c-pch.c (pch_init): Clear v.
15346
15347 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
15348
15349         PR middle-end/42930
15350         * graphite-scop-detection.c (graphite_can_represent_scev): Call
15351         graphite_can_represent_init for MULT_EXPR.
15352
15353 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
15354
15355         PR middle-end/42914
15356         PR middle-end/42530
15357         * graphite-sese-to-poly.c (remove_phi): New.
15358         (translate_scalar_reduction_to_array): Call remove_phi.
15359
15360 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
15361
15362         PR middle-end/42771
15363         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
15364         * graphite-clast-to-gimple.h (gloog): Update declaration.
15365         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
15366         * graphite-poly.h (struct poly_bb): Add missing comments.
15367         (struct scop): Add poly_scop_p field.
15368         (POLY_SCOP_P): New.
15369         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
15370         * graphite.c (graphite_transform_loops): Build the polyhedral
15371         representation for each scop before code generation.
15372         * sese.c (rename_variables_in_operand): Removed.
15373         (rename_variables_in_expr): Return the renamed expression.
15374         (rename_sese_parameters): New.
15375         * sese.h (rename_sese_parameters): Declared.
15376
15377 2010-02-11  Richard Guenther  <rguenther@suse.de>
15378
15379         PR tree-optimization/42998
15380         * tree-ssa-pre.c (create_expression_by_pieces): Treat
15381         POINTER_PLUS_EXPR properly.
15382
15383 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
15384             Changpeng Fang  <changpeng.fang@amd.com>
15385
15386         PR middle-end/40886
15387         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
15388         the cost of an IV candidate when the IV is used in a test against zero.
15389
15390         * gcc.dg/tree-ssa/ivopts-3.c: New.
15391
15392 2010-02-11  Richard Guenther  <rguenther@suse.de>
15393
15394         PR lto/41664
15395         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
15396         pointer-vs-decl case by swapping refs.  Handle some cases
15397         of pointer-vs-decl disambiguations more conservatively.
15398         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
15399         to false after expanding.
15400
15401 2010-02-11  Richard Guenther  <rguenther@suse.de>
15402
15403         PR driver/43021
15404         * gcc.c (process_command): Handle LTO file@offset case more
15405         appropriately.
15406
15407 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
15408
15409         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
15410         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
15411         of DEBUG_INSNs.
15412         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
15413
15414         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
15415         if MEM's mode size isn't DWARF2_ADDR_SIZE.
15416         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
15417         Optimize eq/ne comparisons when both arguments are known to be
15418         zero-extended.
15419         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
15420         Don't mask operands unnecessarily if they are known to be already
15421         zero-extended.
15422
15423 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
15424
15425         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
15426         instead of loop.
15427
15428 2010-02-10  Richard Guenther  <rguenther@suse.de>
15429
15430         PR tree-optimization/43017
15431         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
15432         for wrapping signed arithmetic.
15433
15434 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
15435
15436         PR debug/43010
15437         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
15438         if no debug info should be emitted for it.
15439
15440 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
15441
15442         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
15443         note when flag_exceptions is set.
15444
15445 2010-02-10  Duncan Sands  <baldrick@free.fr>
15446
15447         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
15448
15449 2010-02-10  Richard Guenther  <rguenther@suse.de>
15450
15451         PR c/43007
15452         * tree.c (get_unwidened): Handle constants.
15453         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
15454
15455 2010-02-10  Martin Jambor  <mjambor@suse.cz>
15456
15457         PR lto/42985
15458         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
15459         check for variable argument counts independently.
15460
15461 2010-02-10  Christian Bruel  <christian.bruel@st.com>
15462
15463         PR target/42841
15464         * config/sh/sh.c (find_barrier): Increase length for non delayed
15465         conditional branches.
15466
15467 2010-02-10  Christian Bruel  <christian.bruel@st.com>
15468
15469         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
15470
15471 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
15472
15473         * builtins.c (set_builtin_user_assembler_name): Also handle
15474         ffs if int is smaller than word.
15475
15476 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
15477
15478         PR middle-end/42973
15479         * ira-conflicts.c (get_dup): Remove.
15480         (process_reg_shuffles): Add new parameter.  Use it as an
15481         additional guard for copy generation.
15482         (add_insn_allocno_copies): Rewrite.
15483
15484 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
15485
15486         * common.opt (fsched2-use-traces): Preserved for backward
15487         compatibility.
15488         * doc/invoke.texi: Remove the documentation about option
15489         -fsched2-use-traces.
15490         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
15491         flag_sched2_use_traces.
15492         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
15493         the backward compatibility flag section.
15494
15495 2010-02-09  Richard Guenther  <rguenther@suse.de>
15496
15497         PR tree-optimization/43008
15498         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
15499         make HEAP variables initialized from global memory if they
15500         are not known builtin functions.
15501         (find_func_aliases): Adjust.
15502
15503 2010-02-09  Richard Guenther  <rguenther@suse.de>
15504
15505         PR tree-optimization/43000
15506         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
15507         arithmetic manually.
15508
15509 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
15510
15511         PR tree-optimization/42931
15512         * tree-loop-linear.c (try_interchange_loops): Don't call
15513         double_int_mul if estimated_loop_iterations failed.
15514
15515 2010-02-08  Martin Jambor  <mjambor@suse.cz>
15516
15517         PR middle-end/42898
15518         * tree-sra.c (build_accesses_from_assign): Do not mark in
15519         should_scalarize_away_bitmap if stmt has volatile ops.
15520         (sra_modify_assign): Do not process assigns piecemeal if if stmt
15521         has volatile ops.
15522
15523 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
15524
15525         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
15526
15527 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
15528
15529         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
15530         before the pattern.
15531
15532 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
15533
15534         PR middle-end/42946
15535         * df-core.c (df_finish_pass): Change type of saved_flags to int.
15536
15537 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
15538
15539         PR middle-end/42988
15540         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
15541         to unknown_dependence.
15542         (graphite_legal_transform_dr): Handle the unknown_dependence.
15543         (graphite_carried_dependence_level_k): Same.
15544
15545 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
15546
15547         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
15548
15549 2010-02-07  Richard Guenther  <rguenther@suse.de>
15550
15551         PR middle-end/42991
15552         * expr.c (get_inner_reference): Always initialize *pbitsize.
15553
15554 2010-02-07  Richard Guenther  <rguenther@suse.de>
15555
15556         PR middle-end/42956
15557         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
15558         new ARRAY_REFs on variable size element or minimal index arrays.
15559         Complete.
15560         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
15561         gimple_fold_indirect_ref.
15562
15563 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
15564
15565         PR target/42957
15566         * arm.c (arm_override_options): Just return if the user has specified
15567         an invalid fpu name.
15568
15569 2010-02-03  Jason Merrill  <jason@redhat.com>
15570
15571         PR c++/42870
15572         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
15573         i386_pe_maybe_record_exported_symbol.
15574
15575 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
15576
15577         PR target/42924
15578         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
15579         (pa_delegitimize_address): New function.
15580
15581 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
15582
15583         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
15584         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
15585
15586 2010-02-05  Richard Guenther  <rguenther@suse.de>
15587
15588         PR lto/42762
15589         * lto-streamer-in.c (get_resolution): Deal with references
15590         to undefined functions.
15591
15592 2010-02-05  Richard Guenther  <rguenther@suse.de>
15593
15594         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
15595         (fold_const_aggregate_ref): Likewise.
15596         (ccp_fold_stmt): Substitute loads.
15597         (maybe_fold_reference): Verify types before substituting.
15598         Unshare properly.
15599         (fold_gimple_assign): Unshare properly.
15600         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
15601
15602 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
15603
15604         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
15605         for rs6000_gen_cell_microcode.
15606
15607 2010-02-04  Richard Guenther  <rguenther@suse.de>
15608
15609         PR rtl-optimization/42952
15610         * dse.c (const_or_frame_p): Remove MEM handling.
15611
15612 2010-02-04  Nick Clifton  <nickc@redhat.com>
15613
15614         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
15615         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
15616         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
15617         (mn10300_asm_output_mi_thunk): New function.
15618         (mn10300_can_output_mu_thunk): New function.
15619         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
15620         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
15621         (FUNCTION_ARG): Delete incorrect comment.
15622
15623 2010-02-03  Jason Merrill  <jason@redhat.com>
15624
15625         PR c++/40138
15626         * fold-const.c (operand_equal_p): Handle erroneous types.
15627
15628 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
15629
15630         * config/h8300/h8300.md (can_delay): Fix attibute condition.
15631
15632 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
15633
15634         PR rtl-optimization/42941
15635         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
15636         of xmalloc.
15637
15638 2010-02-03  Jason Merrill  <jason@redhat.com>
15639
15640         PR c++/35652
15641         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
15642
15643 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
15644
15645         PR debug/42896
15646         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
15647         (cselib_reset_table): Renamed from...
15648         (cselib_reset_table_with_next_value): ... this.
15649         (cselib_get_next_uid): Renamed from...
15650         (cselib_get_next_unknown_value): ... this.
15651         * cselib.c (next_uid): Renamed from...
15652         (next_unknown_value): ... this.
15653         (cselib_clear_table): Adjust.
15654         (cselib_reset_table): Adjust.  Renamed from...
15655         (cselib_reset_table_with_next_value): ... this.
15656         (cselib_get_next_uid): Adjust.  Renamed from...
15657         (cselib_get_next_unknown_value): ... this.
15658         (get_value_hash): Use hash.
15659         (cselib_hash_rtx): Likewise.
15660         (new_cselib_val): Adjust.  Set and dump uid.
15661         (cselib_lookup_mem): Pass next_uid as hash.
15662         (cselib_subst_to_values): Likewise.
15663         (cselib_log_lookup): Dump uid.
15664         (cselib_lookup): Pass next_uid as hash.  Adjust.
15665         (cselib_process_insn): Adjust.
15666         (cselib_init): Initialize next_uid.
15667         (cselib_finish): Adjust.
15668         (dump_cselib_table): Likewise.
15669         * dse.c (canon_address): Dump value uid.
15670         * print-rtl.c (print_rtx): Print value uid.
15671         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
15672         (dvuid): New type.
15673         (dv_uid): New function, sort of renamed from...
15674         (dv_htab_hash): ... this, reimplemented in terms of it and...
15675         (dv_uid2hash): ... this.  New.
15676         (variable_htab_eq): Drop excess assertions.
15677         (tie_break_pointers): Removed.
15678         (canon_value_cmp): Compare uids.
15679         (variable_post_merge_New_vals): Print uids.
15680         (vt_add_function_parameters): Adjust.
15681         (vt_initialize): Reset table.  Adjust.
15682
15683 2010-02-03  Richard Guenther  <rguenther@suse.de>
15684
15685         PR tree-optimization/42944
15686         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
15687         (call_may_clobber_ref_p_1): Likewise.  Properly handle
15688         malloc and calloc clobbering errno.
15689
15690 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
15691
15692         * doc/invoke.texi: Fix name of sched1 dump.
15693
15694         * opts.c (decode_options): Set flag_tree_switch_conversion
15695         only conditionally on optimize >= 2.
15696
15697         * gcse.c: Assorted comment fixes in pass description.
15698
15699 2010-02-03  Anthony Green  <green@moxielogic.com>
15700
15701         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
15702         nop padding in order to maintain alignment of storage location of
15703         target function address.
15704         (moxie_trampoline_init): Store target function address at newly
15705         aligned location.
15706         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
15707         to 32.
15708         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
15709
15710 2010-02-03  Richard Guenther  <rguenther@suse.de>
15711
15712         PR middle-end/42927
15713         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
15714
15715 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15716
15717         * config.gcc: Reenable check for obsolete targets.
15718         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
15719         mips-sgi-irix6.[0-4]*.
15720
15721 2010-02-02  Nick Clifton  <nickc@redhat.com>
15722
15723         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
15724         constant size of 4 as being the same as 0.
15725         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
15726         can take values in the range 0..4.
15727
15728 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
15729
15730         PR java/41991
15731         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
15732         as _darwin10_Unwind_FindEnclosingFunction().
15733         * libgcc-libsystem.ver: New.
15734
15735 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
15736
15737         PR target/41399
15738         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
15739         implicitly set registers.
15740
15741 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
15742
15743         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
15744         (arm_override_options): Allow automatic selection of the thread
15745         pointer register if thumb2.
15746         (legitimize_pic_address): Improve code sequences for Thumb2.
15747         (arm_call_tls_get_addr): Likewise.
15748         (legitimize_tls_address): Likewise.
15749         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
15750         (pic_load_addr_32bit): ... this.  New named pattern.
15751         * thumb2.md (pic_load_addr_thumb2): Delete.
15752         (pic_load_dot_plus_four): Delete.
15753         (tls_load_dot_plus_four): New named pattern.
15754
15755 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15756
15757         PR libgomp/29986
15758         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
15759         Document fix for TLS bug.
15760
15761 2010-01-31  Richard Guenther  <rguenther@suse.de>
15762
15763         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
15764         conservatively correct.
15765
15766 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15767
15768         PR target/42850
15769         Revert:
15770         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15771
15772         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
15773
15774 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15775
15776         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
15777
15778 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
15779
15780         * config.gcc: Adjust order of makefile fragments for mingw targets.
15781
15782 2010-01-31  Richard Guenther  <rguenther@suse.de>
15783
15784         PR middle-end/42898
15785         * gimplify.c (gimplify_init_constructor): For volatile LHS
15786         initialize a temporary.
15787
15788 2010-01-31  Matthias Klose  <doko@ubuntu.com>
15789
15790         * configure.ac: Fix __stack_chk_fail check for cross builds configured
15791         --with-headers
15792         * configure: Regenerate.
15793
15794 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
15795
15796         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15797         the same alias set and their sizes different constantness.
15798         (aliasing_component_refs_p): Revert 2009-10-24 change.
15799
15800 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15801
15802         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
15803         unused.
15804
15805 2010-01-29  Richard Guenther  <rguenther@suse.de>
15806
15807         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
15808         Assert we successfully updated the call.
15809
15810 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
15811
15812         PR rtl-optimization/42889
15813         * df.h (df_set_bb_dirty_nonlr): New prototype.
15814         * df-core.c (df_set_bb_dirty_nonlr): New function.
15815         * df-scan.c (df_insn_rescan): Call it instead of
15816         df_set_bb_dirty for DEBUG_INSNs.
15817
15818 2010-01-29  Richard Guenther  <rguenther@suse.de>
15819
15820         PR middle-end/37448
15821         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
15822         quadratic behavior in most cases.
15823
15824 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
15825
15826         PR target/42891
15827         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
15828         in the call to gen_x86_movsicc_0_m1.
15829
15830 2010-01-28  Richard Guenther  <rguenther@suse.de>
15831
15832         PR tree-optimization/42871
15833         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
15834
15835 2010-01-28  Richard Guenther  <rguenther@suse.de>
15836
15837         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
15838         into call arguments.
15839
15840 2010-01-28  Richard Guenther  <rguenther@suse.de>
15841
15842         PR middle-end/42883
15843         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
15844         the forwarder if the destination is an EH landing pad.
15845
15846 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
15847
15848         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
15849         block list passed to gimple_duplicate_sese_tail.
15850         (parallelize_loops): Avoid parallelization when the function
15851         has_nonlocal_label.
15852         Avoid parallelization when the preheader is IRREDUCIBLE.
15853         Try to optimize when estimated_loop_iterations_int is unresolved.
15854         Add the loop's location to the dump file.
15855         * tree-cfg.c (add_phi_args_after_redirect): Remove.
15856         (gimple_duplicate_sese_tail): Remove the check for the latch.
15857         Redirect nexits to the exit block.
15858         Remove handling of the incoming edges to the latch.
15859         Redirect the backedge from the copied latch to the exit bb.
15860
15861 2010-01-28  Michael Matz  <matz@suse.de>
15862
15863         PR target/42881
15864         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
15865         Wrap force_reg into a sequence, emit it before user.
15866
15867 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
15868
15869         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
15870         (arm_rev): New.
15871         (arm_legacy_rev): Likewise.
15872         (thumb_legacy_rev): Likewise.
15873
15874 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
15875
15876         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
15877         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
15878         on MEM's address failed, try avoid_constant_pool_reference and
15879         recurse if it returned something different.
15880         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
15881         address, try avoid_constant_pool_reference and recurse if it
15882         returned something different.
15883         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
15884         address and avoid_constant_pool_reference returned something
15885         different, don't set have_address.
15886
15887 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
15888
15889         PR debug/42861
15890         * var-tracking.c (val_store): Add modified argument, obey it.
15891         Adjust callers.
15892         (count_uses): Move down logging of main.
15893         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
15894         don't need resolution.
15895         (emit_notes_in_bb): Likewise.
15896
15897 2010-01-27  Richard Guenther  <rguenther@suse.de>
15898
15899         PR middle-end/42878
15900         * tree-inline.c (remap_decl): Delay remapping of SSA name
15901         default definitions until we need them.
15902
15903 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
15904
15905         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
15906         (rs6000_delegitimize_address): New function.
15907
15908         * config/s390/s390.c (s390_delegitimize_address): Call
15909         delegitimize_mem_from_attrs.
15910
15911         PR middle-end/42874
15912         * tree-inline.c (cannot_copy_type_1): Removed.
15913         (copy_forbidden): Don't forbid copying of functions containing
15914         records/unions with variable length fields.
15915
15916 2010-01-27  Christian Bruel  <christian.bruel@st.com>
15917
15918         Revert:
15919         PR target/42841
15920         * config/sh/sh.c (find_barrier): Increase length for non delayed
15921         conditional branches.
15922
15923 2010-01-27  Matthias Klose  <doko@ubuntu.com>
15924
15925         * configure.ac (gnu-unique-object): Fix ldd version check.
15926         * configure: Regenerate.
15927
15928 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15929
15930         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
15931         HAVE_GNU_AS value.
15932         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
15933         Test for HAVE_GNU_AS value.
15934
15935 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15936
15937         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
15938         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
15939         INT64_TYPE): Define.
15940         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
15941         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15942         INT_LEAST64_TYPE): Define.
15943         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
15944         UINT_LEAST64_TYPE): Define.
15945         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
15946         INT_FAST64_TYPE): Define.
15947         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15948         UINT_FAST64_TYPE): Define.
15949         (INTMAX_TYPE, UINTMAX_TYPE): Define.
15950         (INTPTR_TYPE, UINTPTR_TYPE): Define.
15951         (SIG_ATOMIC_TYPE): Define.
15952
15953 2010-01-26  Richard Guenther  <rguenther@suse.de>
15954
15955         * df-scan.c (df_scan_set_bb_info): Remove assert.
15956         (df_insn_rescan_debug_internal): Merge asserts.
15957         (df_install_ref): Likewise.
15958         (df_mark_reg): Use bitmap_set_range.
15959         (df_hard_reg_used_p): Remove assert.
15960         (df_hard_reg_used_count): Likewise.
15961
15962 2010-01-26  Richard Guenther  <rguenther@suse.de>
15963
15964         PR rtl-optimization/42685
15965         * web.c (web_main): Ignore DEBUG_INSNs.
15966
15967 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
15968
15969         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
15970
15971         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
15972         Fix types of fndecl and arglist parameters.
15973
15974 2010-01-26  Richard Guenther  <rguenther@suse.de>
15975
15976         PR middle-end/42806
15977         * tree-eh.c (unsplit_eh): Skip debug insns.
15978
15979 2010-01-26  Richard Guenther  <rguenther@suse.de>
15980
15981         PR tree-optimization/42250
15982         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
15983
15984 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
15985
15986         PR fortran/42866
15987         * omp-low.c (expand_omp_sections): Only use single_pred if
15988         l2_bb is single_pred_p.
15989
15990 2010-01-25  Christian Bruel  <christian.bruel@st.com>
15991
15992         PR target/42841
15993         * config/sh/sh.c (find_barrier): Increase length for non delayed
15994         conditional branches.
15995         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
15996
15997 2010-01-24  David S. Miller  <davem@davemloft.net>
15998
15999         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
16000         define if not using GAS.
16001         * config/sparc/sparc.c (sparc_elf_asm_named_section):
16002         Likewise.  Delete SECTION_MERGE code, which is only applicable
16003         when using GAS.
16004
16005 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
16006
16007         PR c++/42748
16008         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
16009         mangling of va_list in system headers.
16010
16011 2010-01-23  Toon Moene  <toon@moene.org>
16012
16013         * tree-predcom.c (combine_chains): Return NULL, not false.
16014
16015 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
16016
16017         * tree-loop-distribution.c (distribute_loop): Fix declaration and
16018         initialization of variable res to agree with return type.
16019
16020 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
16021
16022         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
16023         * tree-sra.c: Add include of expr.h.
16024
16025 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
16026
16027         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
16028         insert the debug stmt on the single non-EH edge from the stmt.
16029
16030 2010-01-22  Richard Henderson  <rth@redhat.com>
16031
16032         PR tree-opt/42833
16033         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
16034         the RHS until after generate_subtree_copies has insertted its
16035         code before the current statement.
16036
16037 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
16038
16039         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
16040
16041         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
16042
16043 2010-01-21  Martin Jambor  <mjambor@suse.cz>
16044
16045         PR tree-optimization/42585
16046         * tree-sra.c (struct access): New field grp_total_scalarization.
16047         (dump_access): Dump the new field.
16048         (should_scalarize_away_bitmap): New variable.
16049         (cannot_scalarize_away_bitmap): Likewise.
16050         (sra_initialize): Allocate new bitmaps.
16051         (sra_deinitialize): Free new bitmaps.
16052         (create_access_1): New function.
16053         (create_access): Parts moved to create_access_1.
16054         (type_consists_of_records_p): New function.
16055         (completely_scalarize_record): Likewise.
16056         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
16057         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
16058         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
16059         access.
16060         (analyze_all_variable_accesses): Completely scalarize small eligible
16061         records.
16062
16063 2010-01-21  Martin Jambor  <mjambor@suse.cz>
16064
16065         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
16066
16067 2010-01-21  Andrew Haley  <aph@redhat.com>
16068
16069         * gcc.c (process_command): Move lang_specific_driver before
16070         setting cc_libexec_prefix.
16071
16072 2010-01-21  Richard Guenther  <rguenther@suse.de>
16073
16074         PR middle-end/19988
16075         * fold-const.c (negate_expr_p): Pretend only negative
16076         real constants are easily negatable.
16077
16078 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
16079             Jason Merrill  <jason@redhat.com>
16080
16081         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
16082         (TYPE_TRANSPARENT_AGGR): this, for union and record.
16083         * calls.c (initialize argument_information): Handle it.
16084         * c-common.c (handle_transparent_union_attribute): Use new name.
16085         * c-decl.c (finish_struct): Ditto.
16086         * c-typeck.c (type_lists_compatible_p): Ditto.
16087         (convert_for_assignment): Use new name and also handle record.
16088         * function.c (aggregate_value_p): Handle it.
16089         (pass_by_reference): Ditto.
16090         (assign_parm_data_types): Ditto.
16091         * print-tree.c (print_node): Ditto.
16092         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
16093         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
16094         * tree.c (first_field): New fn.
16095
16096 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
16097
16098         PR target/42818
16099         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
16100         even when linking statically, for now.
16101
16102 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
16103
16104         PR debug/42715
16105         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
16106         without a cselib val.
16107         (count_uses): Accept MO_VAL_SET with no val on stores.
16108         (add_stores): Likewise.
16109
16110 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16111
16112         * var-tracking.c (check_value_val): Add a compile time assertion.
16113         (dv_is_decl_p): Simplify.
16114         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
16115         gcc_assert if ENABLE_CHECKING.
16116
16117 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
16118
16119         PR debug/42782
16120         * var-tracking.c: Include tree-flow.h.
16121         (mem_dies_at_call): New.
16122         (dataflow_set_preserve_mem_locs): Use it.
16123         (dataflow_set_remove_mem_locs): Likewise.
16124         (dump_var): Renamed from dump_variable.  Adjust all callers.
16125         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
16126         * Makefile.in (var-tracking.o): Adjust deps.
16127
16128 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
16129
16130         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
16131
16132 2010-01-20  Richard Guenther  <rguenther@suse.de>
16133
16134         PR tree-optimization/42717
16135         * tree-ssa-dce.c (get_live_post_dom): Remove.
16136         (forward_edge_to_pdom): Take an arbitrary edge to copy
16137         degenerate PHI args from.
16138         (remove_dead_stmt): Use the first post-dominator even if it
16139         does not contain live statements as redirection destination.
16140
16141 2010-01-20  Richard Guenther  <rguenther@suse.de>
16142
16143         * tree-inline.c (estimate_num_insns): Handle EH builtins.
16144
16145 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16146
16147         * sel-sched.c (create_speculation_check): Remove set but not used
16148         variable twin.
16149         (try_transformation_cache): Remove set but not used variable ds.
16150         (calculate_privileged_insns): Remove set but not used variables
16151         cur_insn and min_spec_insn.
16152         (find_best_expr): Remove set but not used variable avail_n.
16153         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
16154         variable e.
16155         * cgraphunit.c (assemble_thunk): Remove set but not used variable
16156         false_label.
16157         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
16158         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
16159         new_scop_exit_edge.
16160
16161 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
16162
16163         PR bootstrap/42786
16164         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
16165         cpu types.  Add support for *-sse3 cpu types.
16166         (x86_64-*-*): Ditto.
16167
16168 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16169
16170         PR middle-end/42803
16171         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
16172         argument, call initializer_constant_valid_p_1 instead of
16173         initializer_constant_valid_p, pass CACHE to it, return NULL
16174         immediately if first call returns NULL.
16175         (initializer_constant_valid_p_1): New function.
16176         (initializer_constant_valid_p): Use it.
16177
16178 2010-01-20  Thomas Quinot  <quinot@adacore.com>
16179
16180         * tree.def (PLACEHOLDER_EXPR): Fix comment.
16181
16182 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16183
16184         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
16185         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
16186         (loc_list_from_tree): Don't handle unsigned division.  Handle
16187         signed modulo using DW_OP_{over,over,div,mul,minus}.
16188         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
16189         modulo instead of signed.
16190
16191 2010-01-20  DJ Delorie  <dj@redhat.com>
16192
16193         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
16194         (Fpa): Pass it
16195         (h8300_emit_stack_adjustment): Propogate it.
16196         (push): Pass it.
16197         (h8300_expand_prologue): Likewise.
16198         (h8300_expand_epilogue): Likewise.
16199
16200 2010-01-19  Michael Matz  <matz@suse.de>
16201
16202         PR tree-optimization/41783
16203         * tree-data-ref.c (toplevel): Include flags.h.
16204         (dump_data_dependence_relation):  Also dump the inputs if the
16205         result will be unknown.
16206         (split_constant_offset_1): Look through some conversions.
16207         * tree-predcom.c (determine_roots_comp): Restart a new chain if
16208         the offset from last element is too large.
16209         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
16210         (reassociate_to_the_same_stmt): Handle vector registers.
16211         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
16212         (e.g. conversions).
16213         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
16214         wide_prolog_niters argument, emit widening instructions.
16215         (vect_do_peeling_for_alignment): Adjust caller, use widened
16216         variant of the iteration cound.
16217         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
16218
16219 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16220
16221         PR target/38697
16222         * config/arm/neon-testgen.m (emit_automatics): New parameter
16223         features. Adjust for Fixed_return_reg feature.
16224         (test_intrinsic): Call emit_automatics with new feature.
16225         * config/arm/neon.ml: Update copyright years.
16226         (features): New Fixed_return_reg feature.
16227         (ops): Update feature for Vget_low.
16228
16229 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
16230
16231         PR tree-optimization/42719
16232         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
16233         stmt uses.
16234
16235         PR debug/42728
16236         * fwprop.c (all_uses_available_at): Return false if def_set dest
16237         is a REG that is used in def_insn.
16238
16239 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
16240
16241         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
16242
16243         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
16244         Add argument names.
16245
16246         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
16247
16248         * target.h (struct gcc_target) <secondary_reload>: Change type
16249         of last argument to secondary_reload_info *.
16250
16251 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
16252
16253         PR target/42774
16254         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
16255         memory references with unaligned offsets.  Remove CQImode handling.
16256         (unaligned_memory_operand): Return 1 for memory references with
16257         unaligned offsets.  Remove CQImode handling.
16258
16259 2010-01-18  Richard Guenther  <rguenther@suse.de>
16260
16261         PR middle-end/39954
16262         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
16263         builtin calls.
16264
16265 2010-01-18  Richard Guenther  <rguenther@suse.de>
16266
16267         PR tree-optimization/42781
16268         * tree-ssa-structalias.c (find_what_var_points_to): Skip
16269         restrict processing only if the original variable was artificial.
16270
16271 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
16272
16273         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
16274         find number of popped argument bytes.
16275
16276         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
16277         Fix the text that describes the return value for invalid insns.
16278
16279         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
16280
16281         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
16282         Clarify what 'cost of the -dependence' is.  Fix quoting.
16283
16284         * toplev.c (default_get_pch_validity): Rename argument to "sz".
16285         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
16286
16287 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
16288
16289         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
16290         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
16291
16292 2010-01-17  Richard Guenther  <rguenther@suse.de>
16293
16294         PR middle-end/42248
16295         * function.c (split_complex_args): Take a VEC to modify.
16296         (assign_parms_augmented_arg_list): Build a VEC instead of
16297         a chain of PARM_DECLs.
16298         (assign_parms_unsplit_complex): Take a VEC of arguments.
16299         Do not fixup unmodified parms.
16300         (assign_parms): Deal with the VEC.
16301         (gimplify_parameters): Likewise.
16302
16303 2010-01-17  Richard Guenther  <rguenther@suse.de>
16304
16305         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
16306         node existence check.
16307         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
16308         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
16309         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
16310         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
16311         (gimple_execute_on_growing_pred): Likewise.
16312
16313 2010-01-17  Richard Guenther  <rguenther@suse.de>
16314
16315         PR tree-optimization/42773
16316         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
16317         (compute_antic_aux): Likewise.
16318         (compute_partial_antic_aux): Likewise.
16319
16320 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
16321
16322         PR debug/42767
16323         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
16324         and US_TRUNCATE.
16325
16326 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
16327
16328         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
16329         appearance.
16330
16331         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
16332         Fix markup for strict argument.
16333
16334         (TARGET_SCHED_REORDER2): Fix argument types.
16335
16336         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
16337         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
16338
16339         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
16340         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
16341
16342         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
16343         Add argument name.
16344
16345         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
16346         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
16347         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
16348         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
16349         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
16350
16351         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
16352
16353         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
16354
16355         (TARGET_ASM_RELOC_RW_MASK): Add return type.
16356         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
16357
16358         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
16359
16360         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
16361         Use prototype.
16362
16363         (TARGET_ASM_NAMED_SECTION): Fix argument list.
16364
16365         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
16366         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
16367
16368         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
16369
16370         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
16371
16372         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
16373         referring to it.  Fix language.
16374
16375         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
16376
16377         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
16378
16379         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
16380
16381         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
16382
16383         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
16384         '@var{stream}.  Remove stray 'and'.
16385
16386         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
16387
16388         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
16389
16390         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
16391
16392         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
16393         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
16394
16395         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
16396         Fix description of return value.
16397         Rename argument "sz" to "len."
16398
16399         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
16400         Clarify meaning of 'true' return value.
16401
16402         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
16403
16404         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
16405         rep_mode versus mode_rep.
16406
16407         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
16408
16409         (TARGET_BUILTIN_DECL): Fix name.
16410
16411         (TARGET_COMMUTATIVE_P): Fix type of first argument.
16412
16413         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
16414
16415         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
16416
16417         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
16418
16419         (TARGET_RELAXED_ORDERING): Use @deftypevr.
16420
16421         (TARGET_GET_DRAP_RTX): Note that this is a hook.
16422         Clarify language.
16423
16424         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
16425         Rename argument tm_fn to md_fn.
16426
16427         (TARGET_OPTION_PRINT): Fix argument list.
16428
16429 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
16430
16431         PR target/42664
16432         * config/i386/i386.c (ix86_fixup_binary_operands):
16433         Revert FMA4 fixup of operands.
16434
16435 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16436
16437         PR gcc/42525
16438         * Makefile.in (write_entries_to_file, install-plugin):
16439         Use \012 instead of \n with tr.
16440
16441 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
16442
16443         * configure.ac (HAVE_AS_REF): New C macro.
16444         * configure: Regenerate.
16445         * config.in: Likewise.
16446         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
16447         if HAVE_AS_REF.
16448         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
16449         if HAVE_AS_REF.
16450
16451 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
16452
16453         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
16454
16455         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
16456
16457         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
16458
16459         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
16460
16461         (TARGET_IN_SMALL_DATA_P): Fix argument type.
16462
16463         (TARGET_BINDS_LOCAL_P): Fix argument type.
16464
16465         (TARGET_ASM_FILE_END): Use prototype.
16466
16467         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
16468
16469         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
16470
16471         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
16472
16473         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
16474
16475         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
16476         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
16477
16478         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
16479         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
16480
16481         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
16482         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
16483         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
16484         (TARGET_ADDR_SPACE_CONVERT): Likewise.
16485
16486         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
16487
16488         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
16489
16490         (TARGET_INIT_BUILTINS): Use prototype.
16491
16492         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
16493         Put 'const char *' in braces.  Fix parameter types.
16494         (TARGET_INVALID_CONVERSION): Fix parameter types.
16495         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
16496         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
16497
16498         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
16499         Fix argument type.
16500
16501         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
16502
16503         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
16504
16505 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
16506
16507         * doc/tm.texi (TARGET_HELP): Fix return type.
16508
16509         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
16510         in braces.  Fix argument types.
16511
16512         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
16513
16514         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
16515
16516         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
16517
16518         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
16519         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
16520
16521         (TARGET_MANGLE_TYPE): Fix argument types.
16522
16523         (TARGET_IRA_COVER_CLASSES): Use prototype.
16524
16525         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
16526
16527         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
16528
16529         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
16530
16531         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
16532
16533         (TARGET_CALLEE_COPIES): Fix argument types.
16534
16535         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
16536
16537         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
16538
16539         (TARGET_FUNCTION_VALUE): Fix argument types.
16540
16541         (TARGET_RETURN_IN_MSB): Fix argument type.
16542
16543         (TARGET_RETURN_IN_MEMORY): Fix argument types.
16544
16545         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
16546
16547         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
16548
16549         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
16550         agree with return type.
16551
16552         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
16553
16554 2010-01-15  Jing Yu  <jingyu@google.com>
16555
16556         PR rtl-optimization/42691
16557         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
16558         a pseudo to a constant and are merged, and adjust comments.
16559
16560 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
16561
16562         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
16563
16564 2010-01-15  Richard Guenther  <rguenther@suse.de>
16565
16566         PR middle-end/42739
16567         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
16568         labels of computed or non-local gotos to the destination.
16569         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
16570         landing pad label is the first label.
16571
16572 2010-01-15  Richard Guenther  <rguenther@suse.de>
16573
16574         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
16575
16576 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16577
16578         PR target/42747
16579         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
16580         to allow generation of the xssqrtdp instruction on power7.
16581         (sqrtdf2_fpr): Ditto.
16582
16583 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
16584
16585         PR middle-end/42674
16586         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
16587         functions with noreturn attribute.
16588
16589         PR c++/42608
16590         * varasm.c (declare_weak): Add weak attribute to decl if it
16591         doesn't have one already.
16592         (assemble_external): Only add decls to weak_decls if they also
16593         have weak attribute.
16594
16595 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
16596
16597         * var-tracking.c (var_reg_delete): Don't delete the association
16598         between REGs and values or one-part variables if the register
16599         isn't clobbered.
16600
16601 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
16602
16603         PR debug/42657
16604         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
16605         because its first operand is a non-localized variable.
16606
16607 2010-01-14  Martin Jambor  <mjambor@suse.cz>
16608
16609         PR tree-optimization/42706
16610         * tree-sra.c (encountered_recursive_call): New variable.
16611         (encountered_unchangable_recursive_call): Likewise.
16612         (sra_initialize): Initialize both new variables.
16613         (callsite_has_enough_arguments_p): New function.
16614         (scan_function): Call decl and flags check only for IPA-SRA, check
16615         whether there is a recursive call and whether it has enough arguments.
16616         (all_callers_have_enough_arguments_p): New function.
16617         (convert_callers): Look for recursive calls only when
16618         encountered_recursive_call is set.
16619         (ipa_early_sra): Bail out either if
16620         !all_callers_have_enough_arguments_p or
16621         encountered_unchangable_recursive_call.
16622
16623 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
16624
16625         * sel-sched.c: Add 2010 to copyright years.
16626         * sel-sched-ir.c: Likewise.
16627         * sel-sched-ir.h: Likewise.
16628
16629 2010-01-14  Martin Jambor  <mjambor@suse.cz>
16630
16631         PR tree-optimization/42714
16632         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
16633         constructors specially.
16634
16635 2010-01-14  Andi Kleen  <ak@linux.intel.com>
16636
16637         * config/i386/drivers-i386.c (detect_caches_intel):
16638         Add l2sizekb parameter and fill in.
16639         (host_detect_local_cpu): Add l2sizekb, fill in.
16640         Add Atom small cache heuristic.
16641
16642 2010-01-14  Andi Kleen  <ak@linux.intel.com>
16643
16644         * config/i386/drivers-i386.c (detect_caches_cpuid4):
16645         Add level3 parameter and fill in.
16646         (detect_caches_intel): Handle level3 cache.
16647
16648 2010-01-14  Andi Kleen  <ak@linux.intel.com>
16649
16650         * config/i386/drivers-i386.c (host_detect_local_cpu):
16651         Fix core duo detection.
16652
16653 2010-01-14  Andi Kleen  <ak@linux.intel.com>
16654
16655         * config/i386/drivers-i386.c (host_detect_local_cpu):
16656         Fix Atom detection.
16657
16658 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
16659
16660         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
16661         (rs6000_variable_issue_1): this.  Use...
16662         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
16663
16664 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
16665
16666         * sel-sched-ir.c (sel_restore_other_notes): Rename to
16667         sel_restore_notes.  Update all callers.  Call reemit_notes
16668         for all insns.
16669
16670 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
16671
16672         PR rtl-optimization/42246
16673         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
16674         loops.
16675
16676 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
16677
16678         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
16679         all successors is the same as number of successors in current region.
16680
16681 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
16682
16683         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
16684         to rename is not separable.  Otherwise check that its LHS is not NULL.
16685
16686 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
16687
16688         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
16689
16690 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
16691
16692         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
16693         available registers when failed to discover LHS register class.
16694         Fix indentation.  Update comment.
16695
16696 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
16697             Alexander Monakov  <amonakov@ispras.ru>
16698
16699         PR rtl-optimization/42389
16700         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
16701         to can_issue_more.
16702         (advance_state_on_fence): Likewise.
16703         (sel_target_adjust_priority): Print debug output only when
16704         sched_verbose >= 4, not 2.
16705         (get_expr_cost): Do not issue all unique insns on the next cycle.
16706         (fill_insns): Initialize can_issue_more from the value saved
16707         with the fence.
16708         * sel-sched-ir.c (flist_add): New parameter issue_more.
16709         Init FENCE_ISSUE_MORE with it.
16710         (merge_fences): Likewise.
16711         (init_fences): Update call to flist_add.
16712         (add_to_fences, add_clean_fence_to_fences)
16713         (add_dirty_fence_to_fences): Likewise.
16714         (move_fence_to_fences): Update call to merge_fences.
16715         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
16716         sched groups.
16717         * sel-sched-ir.h (struct _fence): New field issue_more.
16718         (FENCE_ISSUE_MORE): New accessor macro.
16719
16720 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
16721
16722         PR rtl-optimization/42388
16723         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
16724         that have no predecessors nor successors.  Do not call move_bb_info
16725         for empty blocks outside of current region.
16726
16727 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
16728
16729         PR rtl-optimization/42294
16730         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
16731         * sel-sched.c (move_exprs_to_boundary): Transitively add all
16732         originators' originators.
16733
16734 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
16735
16736         PR rtl-optimization/39453
16737         PR rtl-optimization/42246
16738         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
16739         for pipelining_p.
16740         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
16741
16742 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
16743             Alexander Monakov  <amonakov@ispras.ru>
16744
16745         PR middle-end/42245
16746         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
16747         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
16748         argument.  Update all callers.
16749         (tidy_control_flow): ... and here.  Recompute topological order
16750         of basic blocks in region if necessary.
16751         (sel_redirect_edge_and_branch): Change return type.  Return true
16752         if topological order might have been invalidated.
16753         (purge_empty_blocks): Export and move from...
16754         * sel-sched.c (purge_empty_blocks): ... here.
16755         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
16756         (maybe_tidy_empty_bb): Delete prototype.
16757         (purge_empty_blocks): Declare.
16758
16759 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
16760
16761         PR rtl-optimization/42249
16762         * sel-sched.c (try_replace_dest_reg): When chosen register
16763         and original register is the same, do not bail out early, but
16764         still check all original insns for validity of replacing destination
16765         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
16766         in this case.
16767
16768 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
16769
16770         PR c/42721
16771         Port from no-undefined-overflow branch:
16772         2009-03-09  Richard Guenther  <rguenther@suse.de>
16773
16774         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
16775
16776 2010-01-14  Richard Guenther  <rguenther@suse.de>
16777
16778         PR lto/42665
16779         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
16780
16781 2010-01-14  Ira Rosen  <irar@il.ibm.com>
16782
16783         PR tree-optimization/42709
16784         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
16785         as scalar type in creation of constant vector operand.
16786
16787 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16788
16789         PR testsuite/42414
16790         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
16791         (check-parallel-%): Match `testsuite' directory component only
16792         at the end.
16793
16794 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
16795
16796         PR translation/39521
16797         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
16798         strings with _().
16799
16800 2010-01-13  Richard Guenther  <rguenther@suse.de>
16801
16802         PR tree-optimization/42730
16803         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
16804         offset zero.
16805
16806 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
16807
16808         PR target/pr42542
16809         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
16810         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
16811         them signed.
16812
16813 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
16814
16815         * config/bfin/libgcc-bfin.ver: Regenerate based on current
16816         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
16817         ___umulsi3_highpart.
16818
16819         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
16820         rather than schedule_insns if the pass is enabled.
16821
16822 2010-01-13  Martin Jambor  <mjambor@suse.cz>
16823
16824         PR tree-optimization/42704
16825         * tree-sra.c (sra_modify_assign): Do not delete assignments to
16826         SSA_NAMEs.
16827
16828 2010-01-13  Martin Jambor  <mjambor@suse.cz>
16829
16830         PR tree-optimization/42703
16831         * tree-sra.c (analyze_access_subtree): Check that we can build a
16832         reference to the original data within the aggregate.
16833
16834 2010-01-13  Richard Guenther  <rguenther@suse.de>
16835
16836         PR tree-optimization/42705
16837         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
16838
16839 2010-01-13  Richard Guenther  <rguenther@suse.de>
16840
16841         PR middle-end/42716
16842         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
16843
16844 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
16845
16846         PR debug/41371
16847         * var-tracking.c (values_to_unmark): New variable.
16848         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
16849         values_to_unmark vector.  Moved body to...
16850         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
16851         instead queue it into values_to_unmark vector.
16852         (vt_find_locations): Free values_to_unmark vector.
16853
16854 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
16855
16856         * config/s390/s390.c (override_options): Set
16857         default of max-pending-list-length to 256
16858
16859 2010-01-13  Richard Guenther  <rguenther@suse.de>
16860
16861         PR lto/42678
16862         * tree-pass.h (PROP_gimple_lcx): New.
16863         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
16864         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
16865         before the final cleanup_eh.
16866         (dump_properties): Dump PROP_gimple_lcx.
16867         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
16868         (tree_lower_complex_O0): Remove.
16869         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
16870         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
16871         tree_lower_complex, schedule TODO_update_ssa.
16872         * lto-streamer-out.c (output_function): Stream the functions
16873         properties.
16874         * lto-streamer-in.c (input_function): Likewise.
16875         (lto_read_body): Do not override them here.
16876
16877 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
16878
16879         PR c/42708
16880         * c-typeck.c (build_c_cast): Fold value cast to union type before
16881         wrapping it in a CONSTRUCTOR.
16882
16883 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
16884
16885         PR rtl-optimization/42699
16886         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
16887         involved.
16888
16889 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16890
16891         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
16892         SUBTARGET_WARN_UNUSED_SPEC): Move ...
16893         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
16894         SUBTARGET_WARN_UNUSED_SPEC): ... here
16895         * config/mips/iris5.h (LIBGCC_SPEC): Define.
16896
16897 2010-01-12  Julian Brown  <julian@codesourcery.com>
16898
16899         * config/arm/neon-schedgen.ml (Utils): Don't try to
16900         open missing module.
16901         (find_with_result): New.
16902
16903 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
16904
16905         PR debug/42662
16906         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
16907         sharing when canonicalizing ({lt,ge}u (plus a b) b).
16908
16909         PR tree-optimization/42645
16910         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
16911         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
16912         decl_map, set processing_debug_stmt to -1 and return name without
16913         any remapping.
16914
16915 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
16916
16917         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
16918         binutils version, and reword target configuration description.
16919
16920 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
16921
16922         * config/avr/avr.h (LINKER_NAME): Remove.
16923
16924 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
16925
16926         PR target/42416
16927         * config/rs6000/rs6000.c (rs6000_override_options): On targets
16928         that support VSX, warn for -mno-altivec if vsx is not disabled,
16929         and disable vsx.
16930
16931 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
16932             Shujing Zhao  <pearly.zhao@oracle.com>
16933
16934         PR translation/42469
16935         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
16936         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
16937         character between option name and help text.
16938         * c.opt (imultilib): Likewise.
16939
16940 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
16941
16942         * lto-streamer-out.c (output_unreferenced_globals): Output static
16943         variables.
16944
16945 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
16946
16947         PR rtl-optimization/42621
16948         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
16949         optimizing for size.
16950         (duplicate_computed_gotos): Remove now-redundant check.
16951
16952 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
16953
16954         PR target/37454
16955         * configure.ac: Save and restore LDFLAGS and LIBS
16956         * configure: Regenerate.
16957
16958 2010-01-10  Richard Guenther  <rguenther@suse.de>
16959
16960         PR middle-end/42667
16961         * builtins.c (fold_builtin_strlen): Add type argument and
16962         convert the resulting length to it.
16963         (fold_builtin_1): Adjust.
16964
16965 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
16966
16967         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
16968         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
16969         1 insn.
16970         (num_insns_constant_wide): Adjust for that change.
16971
16972 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
16973
16974         PR debug/42631
16975         * web.c (union_defs): Add used argument, to combine uses of
16976         uninitialized regs.
16977         (entry_register): Adjust type and tests of used argument.
16978         (web_main): Widen used for new use.  Pass it to union_defs.
16979         * df.h (union_defs): Adjust prototype.
16980
16981 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
16982
16983         PR debug/42630
16984         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
16985         uses in new incoming argument.  Free body.
16986         (reset_debug_uses_in_loop): New.
16987         (analyze_insn_to_expand_var): Call the latter if the former found
16988         anything.  Fix whitespace.  Reject invalid dest overlaps before
16989         going through all insns in the loop.
16990
16991 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
16992
16993         PR debug/42629
16994         * haifa-sched.c (dying_use_p): Debug insns don't count.
16995
16996 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
16997
16998         PR middle-end/42363
16999         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
17000         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
17001         (verify_gimple_call): Reject LHS in noreturn calls.
17002
17003 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17004
17005         PR debug/42604
17006         PR debug/42395
17007         * tree-vect-loop-manip.c (adjust_info): New type.
17008         (adjust_vec): New pointer to vector.
17009         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
17010         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
17011         (slpeel_update_phis_for_duplicate_loop): Use them.
17012         (slpeel_update_phi_nodes_for_guard1): Likewise.
17013         (slpeel_update_phi_nodes_for_guard2): Likewise.
17014         (slpeel_tree_peel_loop_to_edge): Likewise.
17015         (vect_update_ivs_after_vectorizer): Likewise.
17016
17017 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17018
17019         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
17020         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
17021
17022 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17023
17024         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
17025         bogus uninitialized warning.
17026
17027 2010-01-09  Richard Guenther  <rguenther@suse.de>
17028
17029         PR middle-end/42512
17030         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
17031         the evolution is compatible with the initial condition.
17032
17033 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
17034
17035         * gcc.c (process_command): Update copyright notice dates.
17036         * gcov.c (print_version): Likewise.
17037         * gcov-dump.c (print_version): Likewise.
17038         * mips-tfile.c (main): Likewise.
17039         * mips-tdump.c (main): Likewise.
17040
17041 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
17042
17043         PR target/41885
17044         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
17045         (rotlhi3): Delete.
17046         (rotlhi3_8): Delete.
17047         (rotlsi3): Delete.
17048         (rotlsi3_8): Delete.
17049         (rotlsi3_16): Delete.
17050         (rotlsi3_24): Delete.
17051         (rotl<mode>3): New.
17052         (*rotw<mode>3): New.
17053         (*rotb<mode>3): New.
17054         * config/avr/avr.c (avr_rotate_bytes): New function.
17055         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
17056
17057 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
17058
17059         PR target/37454
17060         * configure.ac: Modify -rdynamic check.
17061         * configure: Regenerate.
17062
17063 2010-01-08  DJ Delorie  <dj@redhat.com>
17064
17065         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
17066         register popping order.
17067
17068 2010-01-08  Richard Guenther  <rguenther@suse.de>
17069
17070         PR lto/42528
17071         * c.opt (fsigned-char): Also let LTO handle this option.
17072         (funsigned-char): Likewise.
17073
17074 2010-01-07  Richard Guenther  <rguenther@suse.de>
17075
17076         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
17077         (gimple_op): Likewise.
17078         (gimple_op_ptr): Likewise.
17079         (gimple_assign_set_lhs): Remove gcc_assert.
17080         (gimple_assign_set_rhs1): Likewise.
17081         (gimple_assign_set_rhs2): Likewise.
17082         (gimple_call_set_lhs): Likewise.
17083         (gimple_call_set_fn): Likewise.
17084         (gimple_call_set_fndecl): Likewise.
17085         (gimple_call_fndecl): Likewise.
17086         (gimple_call_return_type): Likewise.
17087         (gimple_call_set_chain): Likewise.
17088         (gimple_call_num_args): Likewise.
17089         (gimple_call_set_arg): Likewise.
17090         (gimple_cond_set_code): Likewise.
17091         (gimple_cond_set_lhs): Likewise.
17092         (gimple_cond_set_rhs): Likewise.
17093         (gimple_cond_set_true_label): Likewise.
17094         (gimple_cond_set_false_label): Likewise.
17095         (gimple_label_set_label): Likewise.
17096         (gimple_goto_set_dest): Likewise.
17097         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
17098         (gimple_debug_bind_get_value): Likewise.
17099         (gimple_debug_bind_get_value_ptr): Likewise.
17100         (gimple_debug_bind_set_var): Likewise.
17101         (gimple_debug_bind_set_value): Likewise.
17102         (gimple_debug_bind_reset_value): Likewise.
17103         (gimple_debug_bind_has_value_p): Likewise.
17104         (gimple_return_retval_ptr): Remove gcc_assert.
17105         (gimple_return_retval): Likewise.
17106         (gimple_return_set_retval): Likewise.
17107         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
17108         (safe_referenced_var_iterator): Remove.
17109         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
17110         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
17111         (fill_referenced_var_vec): Remove.
17112         (first_readonly_imm_use): Remove redundant gcc_assert.
17113         (phi_arg_index_from_use): Combine gcc_asserts.
17114         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
17115         (first_imm_use_stmt): Remove redundant gcc_assert.
17116         * tree-cfg.c (verify_gimple_call): Verify function and chain
17117         operands.  Verify arguments.
17118         (verify_types_in_gimple_stmt): Verify condition code and labels.
17119
17120 2010-01-07  Richard Guenther  <rguenther@suse.de>
17121
17122         PR tree-optimization/42641
17123         * sese.c (rename_map_elt_info): Use the SSA name version, do
17124         not hash pointers.
17125
17126 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
17127
17128         PR tree-optimization/42625
17129         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
17130         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
17131
17132 2010-01-07  Duncan Sands  <baldrick@free.fr>
17133
17134         * Makefile.in (PLUGIN_HEADERS): Add version.h.
17135
17136 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
17137
17138         PR target/42511
17139         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
17140         note itself is not function_invariant_p.
17141
17142 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
17143
17144         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
17145         Do not add the DF_NOTE problem.
17146         * store-motion.c (execute_rtl_store_motion): Likewise.
17147
17148 2010-01-07  Martin Jambor  <mjambor@suse.cz>
17149
17150         PR tree-optimization/42157
17151         * tree-sra.c (compare_access_positions): Stabilize sort if both
17152         accesses have integer types, return zero immediately if they are the
17153         same.
17154
17155 2010-01-06  Richard Henderson  <rth@redhat.com>
17156
17157         PR middle-end/41883
17158         * haifa-sched.c (add_to_note_list): Merge into ...
17159         (concat_note_lists): ... here, and ...
17160         (unlink_other_notes, rm_other_notes): Merge into...
17161         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
17162         NOTE_INSN_EPILOGUE_BEG.
17163
17164 2010-01-06  Richard Guenther  <rguenther@suse.de>
17165
17166         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
17167         not inline regular functions into always-inline functions.
17168
17169 2010-01-06  Nick Clifton  <nickc@redhat.com>
17170
17171         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
17172         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
17173         used together.
17174         (OVERRIDE_OPTIONS): Delete.
17175         (OPTIMIZATION_OPTIONS): Define.
17176         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
17177         * config/rx/rx.c (rx_handle_option): Issue an error message if
17178         -mcpu=rx200 and -fpu are used together.
17179         (rx_set_optimization_options): New function.  Issue an error
17180         message if an optimization attribute attempts to reset the FPU/
17181         math optimization pairing.
17182         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
17183         * config/rx/rx.opt: Set the default to 32-bit doubles.
17184         * config/rx/t-rx: Add multilibs for -nofpu option.
17185         * doc/invoke.texi: Update documentation of RX options.
17186
17187 2010-01-06  Richard Guenther  <rguenther@suse.de>
17188
17189         * tree-ssa-pre.c (name_to_id): New global.
17190         (alloc_expression_id): Simplify SSA name handling.
17191         (lookup_expression_id): Likewise.
17192         (init_pre): Zero name_to_id.
17193         (fini_pre): Free it.
17194
17195 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
17196
17197         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
17198
17199 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17200
17201         PR target/42542
17202         * config/i386/sse.md (smaxv2di3): New.
17203         (umaxv2di3): Likewise.
17204         (sminv2di3): Likewise.
17205         (uminv2di3): Likewise.
17206
17207 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
17208
17209         PR target/42564
17210         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
17211         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
17212         (legitimize_tls_address): Likewise.
17213         (sparc_tls_referenced_p): Likewise.
17214         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
17215         and adjust calls to legitimize_pic_address.
17216         (legitimate_constant_p) Use sparc_tls_referenced_p.
17217         (legitimate_pic_operand_p): Likewise.
17218         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
17219         (sparc_tls_symbol_ref_1): Delete.
17220         (sparc_tls_referenced_p): Make static, recognize specific patterns.
17221         (legitimize_tls_address): Make static, handle CONST patterns.
17222         (legitimize_pic_address): Make static, remove unused parameter and
17223         adjust recursive calls.
17224         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
17225         and adjust call to legitimize_pic_address.
17226         (sparc_output_mi_thunk): Likewise.
17227
17228 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
17229             H.J. Lu  <hongjiu.lu@intel.com>
17230
17231         PR target/42542
17232         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
17233         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
17234         operands to make them signed.
17235
17236         Revert:
17237         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17238
17239         PR target/42542
17240         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
17241         GTU to GT for V4SI and V2DI.
17242
17243         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
17244         (umin<mode>3): Removed.
17245         (uminv8hi3): New.
17246         (uminv4si3): Likewise.
17247
17248 2010-01-05  Martin Jambor  <mjambor@suse.cz>
17249
17250         PR tree-optimization/42462
17251         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
17252         current_function_decl to helper functions and macros.
17253
17254 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17255
17256         PR bootstrap/41771
17257         * flags.h: Don't include real.h.
17258         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
17259         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
17260         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
17261         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
17262         * dominance.c: Update copyright.
17263         * gimple.c (walk_gimple_op): Remove inline.
17264         * tree-ssa-reassoc.c: Include real.h.
17265         * Makefile.in (FLAGS_H): Remove $(REAL_H).
17266         (tree-ssa-reassoc.o): Depend on $(REAL_H).
17267
17268 2010-01-05  Nick Clifton  <nickc@redhat.com>
17269
17270         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
17271         register to push into the stack frame when the accumulator has to
17272         be saved during interrupts.
17273
17274 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
17275
17276         * doc/invoke.texi: Remove the documentation about option
17277         -Wunreachable-code.
17278         * common.opt (Wunreachable-code):  Preserved for backward
17279         compatibility.
17280         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
17281         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
17282         the backward compatibility flag section.
17283
17284 2010-01-05  Richard Guenther  <rguenther@suse.de>
17285
17286         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
17287
17288 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
17289
17290         PR other/42611
17291         * cfgexpand.c (expand_one_var): Diagnose too large variables.
17292
17293         PR tree-optimization/42508
17294         * tree-sra.c (convert_callers): Check for recursive call
17295         by comparing cgraph nodes instead of decls.
17296         (modify_function): Call ipa_modify_formal_parameters also
17297         on all same_body aliases.
17298
17299         * cgraphunit.c (cgraph_materialize_all_clones): Compare
17300         cgraph nodes when checking for same_body aliases.
17301
17302 2010-01-05  Richard Guenther  <rguenther@suse.de>
17303
17304         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
17305         allocation and lookup.
17306         (get_or_alloc_expr_for_constant): Likewise.
17307         (phi_translate): Sink allocation.
17308
17309 2010-01-04  Richard Guenther  <rguenther@suse.de>
17310
17311         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
17312         a new entry only if needed.
17313         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
17314         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
17315         hashtable lookup.
17316         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
17317         the result array.
17318         (phi_translate): Handle CONSTANTs early.
17319
17320 2010-01-04  Martin Jambor  <mjambor@suse.cz>
17321
17322         PR tree-optimization/42398
17323         * tree-sra.c (struct access): Removed flag grp_different_types.
17324         (dump_access): Do not dump the removed flag.
17325         (sort_and_splice_var_accesses): Do not set the removed flag.
17326         (sra_modify_expr): Check for type compatibility directly.
17327
17328 2010-01-04  Martin Jambor  <mjambor@suse.cz>
17329
17330         PR tree-optimization/42366
17331         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
17332         edges with variable number of parameters.
17333         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
17334         flag instead of asserting it.
17335         (ipa_read_node_info): Read uses_analysis_done flag.
17336
17337 2010-01-04  Richard Guenther  <rguenther@suse.de>
17338
17339         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
17340         iterative_hash_* as intended.
17341         (vn_reference_compute_hash): Likewise.  Simplify hashing
17342         SSA names.
17343         (vn_reference_lookup_2): Likewise.
17344         (vn_nary_op_compute_hash): Likewise.
17345         (vn_phi_compute_hash): Likewise.
17346         (expressions_equal_p): Remove strange code.
17347         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
17348         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
17349         (bitmap_insert_into_set_1): Take value-id as parameter.
17350         (add_to_value): Pass it.
17351         (bitmap_insert_into_set): Likewise.
17352         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
17353
17354 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
17355
17356         PR driver/42442
17357         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
17358         (do_self_spec): For switches with SWITCH_IGNORE set set also
17359         SWITCH_IGNORE_PERMANENTLY.
17360         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
17361         of SWITCH_IGNORE.
17362
17363 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
17364
17365         * lto-streamer-out.c (output_unreferenced_globals): Output the full
17366         tree of an unreferenced global var.
17367
17368 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17369
17370         PR target/42542
17371         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
17372         GTU to GT for V4SI and V2DI.
17373
17374         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
17375         (umin<mode>3): Removed.
17376         (uminv8hi3): New.
17377         (uminv4si3): Likewise.
17378
17379 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17380
17381         PR lto/42581
17382         * collect2.c (main): Turn on trace in collect2 if -v is passed
17383         to gcc with LTO.
17384
17385 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
17386
17387         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
17388         description of expression operand.
17389
17390 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
17391
17392         * configure.ac: Add install-html to target_list for Make-hooks.
17393         * configure: Regenerate.
17394         * fortran/Make-lang.in (F95_HTMLFILES): New.
17395         (fortran.html): Use it.
17396         (fortran.install-html): New.
17397         * Makefile.in (install-html): Add lang.install-html.
17398         * java/Make-lang.in (JAVA_HTMLFILES): New.
17399         (java.html): Use it.
17400         (java.install-html): New.
17401         * objc/Make-lang.in (objc.install-html): New.
17402         * objcp/Make-lang.in (obj-c++.install-html): New.
17403         * cp/Make-lang.in (c++.install-html): New.
17404         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
17405         * lto/Make-lang.in (lto.install-html): New.
17406
17407 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
17408
17409         PR lto/42520
17410         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
17411
17412 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
17413
17414         PR rtl-optimization/41862
17415         * store-motion.c (store_killed_in_insn, compute_store_table,
17416         remove_reachable_equiv_notes, replace_store_insn,
17417         build_store_vectors): Ignore all DEBUG_INSNs.
17418
17419 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
17420
17421         PR lto/41564
17422         * common.opt: Add dumpdir.
17423
17424         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
17425         isn't specified.
17426         (option_map): Add --dumpdir.
17427
17428         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
17429
17430         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
17431
17432         * opts.c (decode_options): Try dump_dir_name first if
17433         dump_base_name isn't an absolute path.
17434         (common_handle_option): Handle OPT_dumpdir.
17435
17436         * toplev.c (dump_dir_name): New.
17437         (print_switch_values): Also ignore -dumpdir.
17438
17439         * toplev.h (dump_dir_name): New.
17440
17441 2010-01-03  Richard Guenther  <rguenther@suse.de>
17442
17443         PR tree-optimization/42589
17444         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
17445         double-word expansion of bswap32.
17446
17447 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
17448
17449         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
17450         with BLOCK_FOR_INSN.
17451         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
17452         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
17453         noce_process_if_block): Likewise.
17454         * gcse.c (compute_local_properties, insert_expr_in_table,
17455         insert_set_in_table, canon_list_insert, find_avail_set,
17456         pre_insert_copy_insn): Likewise.
17457
17458         * basic-block.h (BLOCK_NUM): Move from here...
17459         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
17460
17461 2010-01-03  Richard Guenther  <rguenther@suse.de>
17462
17463         PR tree-optimization/42438
17464         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
17465         contains_may_not_return_call flag.
17466         (BB_MAY_NOTRETURN): New.
17467         (valid_in_sets): Trapping nary operations are not valid
17468         in blocks that may not return.
17469         (insert_into_preds_of_block): Remove check for trapping expressions.
17470         (compute_avail): Compute also BB_MAY_NOTRETURN.
17471
17472 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
17473
17474         * doc/invoke.texi: Add 2010 to copyright years.
17475
17476 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
17477
17478         * config/sparc/sparc.c: Fix formatting nits.
17479
17480 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
17481             Alexander Monakov  <amonakov@ispras.ru>
17482
17483         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
17484
17485 2010-01-02  Richard Guenther  <rguenther@suse.de>
17486
17487         PR middle-end/42577
17488         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
17489         (simplify_switch_using_ranges): Mark to be removed edges
17490         as non-executable.
17491
17492 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17493
17494         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17495
17496         * collect2.c (scan_libraries): Add missing argument in call to
17497         scan_prog_file.
17498
17499 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
17500
17501         PR target/42448
17502         * config/alpha/predicates.md (aligned_memory_operand): Return false
17503         for CQImode.
17504         (unaligned_memory_operand): Return true for CQImode.
17505         * config/alpha/alpha.c (get_aligned_mem): Assert that location
17506         doesn not cross aligned SImode word boundary.
17507
17508 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
17509
17510         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
17511         Remove.
17512         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
17513         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
17514
17515 2010-01-02  Richard Guenther  <rguenther@suse.de>
17516
17517         PR lto/41597
17518         * toplev.c (compile_file): Emit LTO marker properly.  Change
17519         it to __gnu_lto_v1.
17520         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
17521
17522 2010-01-01  Richard Guenther  <rguenther@suse.de>
17523
17524         PR debug/42455
17525         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
17526
17527 2010-01-01  Richard Guenther  <rguenther@suse.de>
17528
17529         PR c/42570
17530         * c-decl.c (grokdeclarator): For zero-size arrays force
17531         structural equality checks as layout_type does.
17532
17533 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
17534
17535         * builtins.c: Update copyright to 2010.
17536
17537 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
17538
17539         PR lto/42531
17540         * lto-streamer-out.c (produce_asm): Revert the last change.
17541         (copy_function): Likewise.
17542
17543         * lto-streamer.c (lto_get_section_name): Skip any leading
17544         asterisk in name.
17545
17546 2010-01-01  Richard Guenther  <rguenther@suse.de>
17547
17548         PR middle-end/42559
17549         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
17550         for LABEL_DECLs.
17551
17552 \f
17553 Copyright (C) 2010 Free Software Foundation, Inc.
17554
17555 Copying and distribution of this file, with or without modification,
17556 are permitted in any medium without royalty provided the copyright
17557 notice and this notice are preserved.